1 2 3 Previous Next 32 Replies Latest reply on Jul 28, 2017 4:15 PM by Intel Corporation

    Edison Arduino WiFi Connecting Intermittently

    Steve_Albright

      Hi,

       

      My Edison board connects to my wifi network intermittently.   Sometimes when I boot up the board, the wifi connection seems automatic and I am able to hit the device page through the browser:

       

      http://192.168.1.100/

       

      Other times, the device page doesnt load, and I need to use the configure_edision --wifi command.   Sometimes this command works and I am able to connect to my wifi network.   At other times, this error appears:

       

      Failed to connect to non-global ctrl_ifname: (null)  error: No such file or directory

       

      Initiating connection to albright. Please wait...

      Attempting to enable network access, please check 'wpa_cli status' after a minute to confirm.

      Not connected. Something went wrong.

      root@Edison:~# wpa_cli status

      Selected interface 'wlan0'

      wpa_state=INTERFACE_DISABLED

      p2p_device_address=fe:db:b3:9b:80:d3

      address=fc:db:b3:9b:80:d3

       

      My router and wifi network appear to be normal as my laptop is able to use the Internet without issue.   Any ideas why this might be happening?

       

      Thanks,

       

      Steve

        • 1. Re: Edison Arduino WiFi Connecting Intermittently
          Intel Corporation
          This message was posted on behalf of Intel Corporation

          Hi Steve,
           
          Thanks for contacting us.
           
          I have seen some threads in the community regarding that issue and I’d suggest you to take a look at these threads since you will find useful information:

          • Edison Wifi does not connect: User found that the /etc/wpa_supplicant/wpa_supplicant.conf file had become corrupted so edited it.
          • No Wifi at startup: User was getting issues with configure_edison –wifi and solved it flashing the image 159.devkit
           
          Hope you find this information useful.
           
          Regards,
          -Yermi A.
          • 2. Re: Edison Arduino WiFi Connecting Intermittently
            Steve_Albright

            Hi Yermi,

             

            Thanks for the information.   In my case, I am running version 146 of the image, which is what Intel support instructed me to run in a prior thread:

             

            Re: Intel Edison Arduino Board Drivers

             

            I am not very familiar with WPA Supplicant, but here are the contents of my conf file:

             

            ctrl_interface=/var/run/wpa_supplicant

            ctrl_interface_group=0

            config_methods=virtual_push_button virtual_display push_button keypad

            update_config=1

            fast_reauth=1

            device_name=Edison

            manufacturer=Intel

            model_name=Edison

             

            network={

            ssid="albright"

             

              key_mgmt=WPA-PSK

              pairwise=CCMP TKIP

              group=CCMP TKIP WEP104 WEP40

              eap=TTLS PEAP TLS

            psk="clobber1"

            }

             

            network={

            ssid="albright"

            - /etc/wpa_supplicant/wpa_supplicant.conf 1/212 0%

             

            Does anything look to be wrong here?

            • 3. Re: Edison Arduino WiFi Connecting Intermittently
              Intel Corporation
              This message was posted on behalf of Intel Corporation

              Access the board through a web browser is a known issue with the latest image as Sergio mentioned in the other thread, so the image you should use for that purpose are the 146 or 159 versions, however the 159 is newer than the 146.
               
              Regarding to the wpa_supplicant.conf file, I’d suggest you to edit the file and delete the following text:
               
              network={
              ssid="albright"
              - /etc/wpa_supplicant/wpa_supplicant.conf 1/212 0%
               
              You can edit it using the Linux editor Vi, on this site: How To Use vi Editor  you can find useful information about how to use Vi.
               
              Regards,
              -Yermi A.
               

              • 4. Re: Edison Arduino WiFi Connecting Intermittently
                Steve_Albright

                Hi,

                 

                I have edited the wpa_supplicant.conf file and ran configure_edison --wifi again.   Here are the errors I am seeing:

                 

                Enter 0 to rescan for networks.

                Enter 1 to exit.

                Enter 2 to input a hidden network SSID.

                Enter a number between 3 to 6 to choose one of the listed network SSIDs: 6

                Is albright correct? [Y or N]: y

                Password must be between 8 and 63 characters.

                What is the network password?: ********

                Initiating connection to albright. Please wait...

                Attempting to enable network access, please check 'wpa_cli status' after a minute to confirm.

                Not connected. Something went wrong.

                 

                root@Edison:/etc/wpa_supplicant# wpa_cli status

                Selected interface 'wlan0'

                wpa_state=INTERFACE_DISABLED

                p2p_device_address=fe:db:b3:9b:80:d3

                address=fc:db:b3:9b:80:d3

                 

                Here is the wpa_supplicant.conf file contents:

                 

                ctrl_interface=/var/run/wpa_supplicant

                ctrl_interface_group=0

                config_methods=virtual_push_button virtual_display push_button keypad

                update_config=1

                fast_reauth=1

                device_name=Edison

                manufacturer=Intel

                model_name=Edison

                 

                 

                 

                 

                network={

                  ssid="albright"

                 

                 

                  key_mgmt=WPA-PSK

                  pairwise=CCMP TKIP

                  group=CCMP TKIP WEP104 WEP40

                  eap=TTLS PEAP TLS

                  psk="clobber1"

                }

                 

                 

                 

                I have not updated the Edison image yet.   Do you see anything wrong with the file contents above?

                • 5. Re: Edison Arduino WiFi Connecting Intermittently
                  Intel Corporation
                  This message was posted on behalf of Intel Corporation

                  Looking at your wpa_supplicant.conf file, I don’t see anything wrong. In this case I’d recommend you to re-flash your Edison to the image 159, which is available to download here:  http://downloadmirror.intel.com/25028/eng/edison-image-ww25.5-15.zip, and the instructions to flash the Edison on this other site: Flashing your Board.  
                   
                  Let me know your results.
                   
                  Regards,
                  -Yermi A.
                   

                  • 6. Re: Edison Arduino WiFi Connecting Intermittently
                    Steve_Albright

                    As you instructed, I reflashed my Edison to image 159.   Now configure_edison --wifi command is able to connect the board to my wireless network.  But I am still seeing some issues.   I can view device information on edison.local in the browser of my laptop, but if I enter the ip address of the board (192.168.1.119) the connection times out in the browser.   Also if I try to ping google.com through the Putty session on the board, it will time out.   So does a ping from my laptop to the board.

                     

                    Enter 0 to rescan for networks.

                    Enter 1 to exit.

                    Enter 2 to input a hidden network SSID.

                    Enter 3 to choose albright: 3

                    Is albright correct? [Y or N]: y

                    Password must be between 8 and 63 characters.

                    What is the network password?: ********

                    Initiating connection to albright. Please wait...

                    Attempting to enable network access, please check 'wpa_cli status' after a minute to confirm.

                    Done. Please connect your laptop or PC to the same network as this device and go to http://192.168.1.119 or http://edison.local in your browser.

                    root@edison:~# ^C

                    root@edison:~# ping google.com

                    ping: bad address 'google.com'

                     

                    root@edison:~# wpa_cli status

                    Selected interface 'wlan0'

                    bssid=60:38:e0:db:29:eb

                    ssid=albright

                    id=6

                    mode=station

                    pairwise_cipher=CCMP

                    group_cipher=CCMP

                    key_mgmt=WPA2-PSK

                    wpa_state=COMPLETED

                    ip_address=192.168.1.119

                    p2p_device_address=fe:db:b3:9b:80:d3

                    address=fc:db:b3:9b:80:d3

                    • 7. Re: Edison Arduino WiFi Connecting Intermittently
                      Intel Corporation
                      This message was posted on behalf of Intel Corporation

                      Hi,

                       

                      That is a strange behavior, it seems that it does not have internet connection, please try the following commands in a serial communication session with your board:

                       

                      ifconfig usb0 down
                      ifconfig wlan0 down
                      ifconfig usb0 up
                      ifconfig wlan0 up
                      

                       

                      Additionally, you can check this other thread: Wifi connection times out. You need to ensure that there is no IP conflict between wlan0 and usb0. 

                       

                      In case you still continue getting connectivity issues, try this alternate method to set up Wi-Fi: Connect to a Wireless Network via Linux* for Intel® Edison Boards.

                       

                      Let me know if this helps.

                       

                      Regards,
                      -Yermi A.

                      • 8. Re: Edison Arduino WiFi Connecting Intermittently
                        Steve_Albright

                        Hi Yermi,

                         

                        Thanks for the information.   The ifconfig commands did not allow me to ping google.com successfully from the Edison board.  Here is the IP information for wlan0 and usb0:

                         

                        root@edison:~# netstat -rn

                        Kernel IP routing table

                        Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface

                        0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 wlan0

                        192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 wlan0

                        192.168.2.0     0.0.0.0         255.255.255.0   U         0 0          0 usb0

                        root@edison:~# route

                        Kernel IP routing table

                        Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

                        default         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0

                        192.168.1.0     *               255.255.255.0   U     0      0        0 wlan0

                        192.168.2.0     *               255.255.255.0   U     0      0        0 usb0

                         

                        Based on this, the IPs dont appear to be in conflict with each other.

                         

                        I went through the alternate method of setting up a connection through Linux.   Here are the results:

                         

                        > > add_network

                        0

                        > set_network 0 ssid albright

                        FAIL

                        > set_network 0 ssid "albright"

                        OK

                        > set_network 0 psk "clobber1"

                        OK

                        > enable_network 0

                        OK

                        <3>CTRL-EVENT-SCAN-RESULTS

                        <3>WPS-AP-AVAILABLE

                        <3>Trying to associate with 60:38:e0:db:29:eb (SSID='albright' freq=2457 MHz)

                        <3>Associated with 60:38:e0:db:29:eb

                        <3>WPA: Key negotiation completed with 60:38:e0:db:29:eb [PTK=CCMP GTK=CCMP]

                        <3>CTRL-EVENT-CONNECTED - Connection to 60:38:e0:db:29:eb completed (auth) [id=0 id_str=]

                        quit

                        > > root@edison:~#

                        root@edison:~# ping google.com

                        ping: bad address 'google.com'

                         

                        I cannot ping google.com or ping the board ip address from my laptop.   However, I can ping this address from my laptop, which shows up as an unidentified network in network and sharing center.   This address is different from the device address shown on the edison.local web page (192.168.1.119).  Also, attached is a screenshot of my network connections from my laptop.

                         

                        IPv4 address: 192.168.2.2

                        Manufacturer: Intel Corporation

                        Description: Intel Edison USB RNDIS Device

                        Driver version: 1.1.0.0

                        Physical address (MAC): 36-29-77-23-3F-07

                        • 9. Re: Edison Arduino WiFi Connecting Intermittently
                          Intel Corporation
                          This message was posted on behalf of Intel Corporation

                          Please double check if you are in a VPN because it can interfere with the connection, also, it may be necessary to shut off a local machine firewall just to test if it is interfering with the connection.
                           
                          Regards,
                          -Yermi A.
                           

                          • 10. Re: Edison Arduino WiFi Connecting Intermittently
                            Steve_Albright

                            Hi Yermi,

                             

                            I have deactivated my Windows and anti-virus firewalls, and confirmed that I am not on a VPN connection (see attached images).   I still cannot ping Google.com from the board.  Do I maybe have to share the wifi connection with the board somehow through Windows 10 advanced sharing settings?   This was an issue in the past when I did some work with Beaglebone Green boards.

                             

                            Thanks,

                             

                            Stevevpn.PNGfirewall.PNG

                            • 11. Re: Edison Arduino WiFi Connecting Intermittently
                              Intel Corporation
                              This message was posted on behalf of Intel Corporation

                              Hi Steve,
                               
                              The network connection that shows “Intel Edison USB RNDIS Device” is for connecting to the Edison using Ethernet over USB and it is a different IP address, on this site you can find more details: Connecting to your Board Using Ethernet over USB.
                               
                              I would like to confirm the following information:
                               

                              • Your Edison IP address is 192.168.1.119 which is displayed next to inet addr: under wlan0. The ifconfig command display this information.
                              • When your Edison has been connected successfully to "albright" and you ping google.com it fails, right?
                              • When you ping 192.168.1.119 from your PC, it fails, right?
                              • Which is the IP address of your PC? You can check it using ipconfig command
                              • Could you please give some details regarding the connection issue you had with the Beaglebone board? It can give us some information that may help with this issue.
                               
                              I’ll be waiting for your response.
                               
                              Regards,
                              -Yermi A.
                              • 12. Re: Edison Arduino WiFi Connecting Intermittently
                                Steve_Albright
                                • My RNDIS adapter IPV4 is 192.168.137.1 (the same as my PC Ethernet adapter).   Could this be an issue?   *See attached image.laptop info.PNG
                                • Your Edison IP address is 192.168.1.119 which is displayed next to inet addr: under wlan0. The ifconfig command display this information.  Correct
                                • When your Edison has been connected successfully to "albright" and you ping google.com it fails, right?  Correct
                                • When you ping 192.168.1.119 from your PC, it fails, right?  Correct
                                • Which is the IP address of your PC? You can check it using ipconfig command   192.168.137.1
                                • Could you please give some details regarding the connection issue you had with the Beaglebone board? It can give us some information that may help with this issue.   I had a similar issue where a connection could not be established from the Beaglebone board to the internet.  I could not ping any web sites and npm was failing to download packages to the board.  The solution was to share my laptop wifi connection with the Beaglebone board ethernet connection.
                                • 13. Re: Edison Arduino WiFi Connecting Intermittently
                                  Intel Corporation
                                  This message was posted on behalf of Intel Corporation

                                  Thanks for the information. Please try modifying the content of the /etc/resolv.conf file to point to Google’s DNS (8.8.8.8 and 8.8.4.4) then restarted usb0 and wlan0 and test your connection. The reserve.conf file will look like this:
                                   
                                  root@yermi:~# cat /etc/resolv.conf
                                  nameserver 8.8.8.8
                                  nameserver 8.8.4.4

                                  I have a doubt, are you using your PC as a Wi-Fi hotspot (sharing the Internet connection) and connecting your Edison to it?
                                   
                                  Regards,
                                  -Yermi A.
                                   

                                  • 14. Re: Edison Arduino WiFi Connecting Intermittently
                                    Steve_Albright

                                    Some odd behavior as I try to change the contents of /etc/resolv.conf.     I am able to update it using vi editor, but after issuing ifconfig commands on usb0 and wlan0, the file appears to be reverting back to its original contents (see attached image)resolv.conf.PNG

                                    I am connected to my WiFi router through my laptop.   The USB connections are made to the Edison board.  The WiFi network adapter on my laptop is made available for sharing through Windows (see attached image)wifi sharing.PNG

                                    1 2 3 Previous Next