9 Replies Latest reply on Feb 26, 2016 2:33 PM by jcuzella

    Reconnect Wifi after a network interruption on Edison

    oloynet

      Hi,

       

      The Intel Edison don't reconnect after a network interruption (like my Wifi box shutdown)

      Edison is installed with the last software

       

      I have the problem with or without connman installed.

       

      Is it normal ? Or I missing something ?


      I have to reconnect with wpa_cli like this


      wpa_cli reconfigure

      wpa_cli select_network wlan0

      udhcpc -i wlan0

       

      Or if connman is installed, I reconnect with

       

      connmanctl scan wifi

       

      Olivier

        • 1. Re: Reconnect Wifi after a network interruption on Edison
          mhahn

          on connman it might take a while until it's reconnected. However, if you set connect to auto for that WiFi service it should reconnect after a while

          • 2. Re: Reconnect Wifi after a network interruption on Edison
            oloynet

            Yes AutoConnect=true in settings file

            Sometimes it takes long time, but most of time it does not reconnect.

            • 3. Re: Reconnect Wifi after a network interruption on Edison
              mhahn

              "I have the problem with or without connman installed."

              That would possibly indicate a wifi driver issue meaning that kernel wifi driver does not notice that AP was shutdown etc.

              ConnMan only listens various kernel messages about the network link and then acts accordingly. If these message are missing or lost, then there is not much ConnMan can do. Of course there might be other culprit but without debug logs from ConnMan and wpa_supplicant it is difficult to say.

               

              btw: which Edison image are you using?

              • 4. Re: Reconnect Wifi after a network interruption on Edison
                vjou

                Hi oloynet,

                 

                I'm not sure my case is same with yours, but it looks similar. I have been experiencing Wifi disconnection almost everyday after I flashed my Edison with ww05-15. Though I may be doing something wrong in my script that uploads status report to share drive periodically, I have never seen this kind of Wifi disconnection when with the previous image (ww42-14). I'm not sure it recovers by itself every time because Wifi disconnection continues hours and I cannot wait.

                I removed p2p service from wpa_supplicant.service, but the behavior did not change.

                Below is part of the journalctl output when Wifi disconnection happened.

                I will try Wifi reconnect that you mentioned, in my script.

                 

                Thank you,

                vjou

                 

                ... (For first disconnection in this log, I rebooted Edison about 3 hours later after Wifi disconnection.)

                Mar 17 15:30:48 Edison systemd-timesyncd[157]: interval/delta/delay/jitter/drift 2048s/+0.010s/0.024s/0.039s/+9ppm (ignored)

                Mar 17 16:04:56 Edison systemd-timesyncd[157]: interval/delta/delay/jitter/drift 2048s/-0.001s/0.019s/0.034s/+9ppm

                Mar 17 16:32:39 Edison kernel: CFG80211-ERROR) wl_is_linkdown : Link down Reason : WLC_E_DEAUTH_IND

                Mar 17 16:32:39 Edison kernel: link down if wlan0 may call cfg80211_disconnected. event : 6, reason=23 from 20:37:06:ab:6e:1f

                Mar 17 16:32:39 Edison kernel: CFG80211-ERROR) wl_is_linkdown : Link down Reason : WLC_E_LINK

                Mar 17 16:32:39 Edison kernel: cfg80211: Calling CRDA to update world regulatory domain

                Mar 17 16:32:39 Edison kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

                Mar 17 16:32:39 Edison wpa_cli[250]: event DISCONNECTED received from wpa_supplicant

                Mar 17 16:32:39 Edison wpa_cli[250]: 28446 root      2404 S    udhcpc -i wlan0 -p /var/run/udhcpc-wlan0.pid -S

                Mar 17 16:32:39 Edison udhcpc[28446]: Received SIGTERM

                Mar 17 16:32:39 Edison wpa_cli[250]: rm: can't remove '/var/run/udhcpc-wlan0.pid': No such file or directory

                Mar 17 16:32:40 Edison mDNSResponder[244]: mDNSPlatformSendUDP got error 99 (Cannot assign requested address) sending packet to FF02:0000:0000:0000:0000:0000:0000:00FB on interface FE80:0000:0000:0000:FEC2:DEFF:FE31:6B48/wlan0/3

                Mar 17 16:32:40 Edison mDNSResponder[244]: mDNSPlatformSendUDP got error 99 (Cannot assign requested address) sending packet to FF02:0000:0000:0000:0000:0000:0000:00FB on interface FE80:0000:0000:0000:FEC2:DEFF:FE31:6B48/wlan0/3

                Mar 17 16:32:40 Edison mDNSResponder[244]: mDNSPlatformSendUDP got error 99 (Cannot assign requested address) sending packet to FF02:0000:0000:0000:0000:0000:0000:00FB on interface FE80:0000:0000:0000:FEC2:DEFF:FE31:6B48/wlan0/3

                Mar 17 16:32:48 Edison kernel: CFG80211-ERROR) wl_notify_pfn_status : >>> PNO Event

                -- Reboot --

                ... (After reboot, Wifi had been working until 0:30 am, then disconnected. It came back 4:05 am by itself.)

                Mar 17 23:28:13 Edison systemd-timesyncd[157]: interval/delta/delay/jitter/drift 2048s/-0.013s/0.026s/0.022s/+10ppm (ignored)

                Mar 18 00:02:21 Edison systemd-timesyncd[157]: interval/delta/delay/jitter/drift 2048s/-0.027s/0.026s/0.021s/+3ppm

                Mar 18 00:29:12 Edison udhcpc[16409]: Sending renew...

                Mar 18 00:29:12 Edison udhcpc[16409]: Lease of XXX.XXX.XXX.XXX obtained, lease time 14400

                Mar 18 00:30:04 Edison kernel: CFG80211-ERROR) wl_is_linkdown : Link down Reason : WLC_E_DEAUTH_IND

                Mar 18 00:30:04 Edison kernel: link down if wlan0 may call cfg80211_disconnected. event : 6, reason=23 from 20:37:06:ab:6e:1f

                Mar 18 00:30:04 Edison kernel: CFG80211-ERROR) wl_is_linkdown : Link down Reason : WLC_E_LINK

                Mar 18 00:30:04 Edison kernel: cfg80211: Calling CRDA to update world regulatory domain

                Mar 18 00:30:04 Edison wpa_cli[251]: event DISCONNECTED received from wpa_supplicant

                Mar 18 00:30:04 Edison kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

                Mar 18 00:30:04 Edison wpa_cli[251]: 16409 root      2404 S    udhcpc -i wlan0 -p /var/run/udhcpc-wlan0.pid -S

                Mar 18 00:30:04 Edison udhcpc[16409]: Received SIGTERM

                Mar 18 00:30:04 Edison wpa_cli[251]: rm: can't remove '/var/run/udhcpc-wlan0.pid': No such file or directory

                Mar 18 00:30:05 Edison mDNSResponder[247]: mDNSPlatformSendUDP got error 99 (Cannot assign requested address) sending packet to FF02:0000:0000:0000:0000:0000:0000:00FB on interface FE80:0000:0000:0000:FEC2:DEFF:FE31:6B48/wlan0/3

                Mar 18 00:30:05 Edison mDNSResponder[247]: mDNSPlatformSendUDP got error 99 (Cannot assign requested address) sending packet to FF02:0000:0000:0000:0000:0000:0000:00FB on interface FE80:0000:0000:0000:FEC2:DEFF:FE31:6B48/wlan0/3

                Mar 18 00:30:05 Edison mDNSResponder[247]: mDNSPlatformSendUDP got error 99 (Cannot assign requested address) sending packet to FF02:0000:0000:0000:0000:0000:0000:00FB on interface FE80:0000:0000:0000:FEC2:DEFF:FE31:6B48/wlan0/3

                Mar 18 00:30:12 Edison kernel: CFG80211-ERROR) wl_notify_pfn_status : >>> PNO Event

                Mar 18 04:05:14 Edison wpa_supplicant[213]: Successfully initialized wpa_supplicant

                Mar 18 04:05:14 Edison wpa_supplicant[213]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (org.freedesktop.DBus.Error.Failed) failed to parse WPA IE

                Mar 18 04:05:14 Edison wpa_supplicant[213]: dbus: Failed to construct signal

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: Trying to associate with 20:37:06:ab:6e:1f (SSID='xxxxxxxxxx' freq=5200 MHz)

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: Associated with 20:37:06:ab:6e:1f

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: CTRL-EVENT-EAP-STARTED EAP authentication started

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=17 -> NAK

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=13

                Mar 18 04:05:14 Edison wpa_supplicant[213]: EAP-TLS: Private key not configured

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: EAP: Failed to initialize EAP method: vendor 0 method 13 (TLS)

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=25

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: CTRL-EVENT-EAP-PEER-CERT depth=3 subject='/C=US/O=VeriSign, Inc./OU=Class 3 Public Primary Certification Authority'

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: CTRL-EVENT-EAP-PEER-CERT depth=3 subject='/C=US/O=VeriSign, Inc./OU=Class 3 Public Primary Certification Authority'

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: CTRL-EVENT-EAP-PEER-CERT depth=2 subject='/C=US/O=VeriSign, Inc./OU=VeriSign Trust Network/OU=(c) 2006 VeriSign, Inc. - For authorized use only/CN=VeriSign Class 3 Public Primary Certification Authority - G5'

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: CTRL-EVENT-EAP-PEER-CERT depth=1 subject='/C=US/O=VeriSign, Inc./OU=VeriSign Trust Network/OU=Terms of use at https://www.verisign.com/rpa (c)10/CN=VeriSign Class 3 International Server CA - G3'

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: CTRL-EVENT-EAP-PEER-CERT depth=0 subject='/C=US/ST=XXXXXXXX/L=XXXXXXXX/O=XXXXXXX/CN=ddpwlrad'

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: WPA: Key negotiation completed with 20:37:06:ab:6e:1f [PTK=CCMP GTK=TKIP]

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: CTRL-EVENT-CONNECTED - Connection to 20:37:06:ab:6e:1f completed (auth) [id=0 id_str=]

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: WPA: Group rekeying completed with 20:37:06:ab:6e:1f [GTK=TKIP]

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: WPA: Group rekeying completed with 20:37:06:ab:6e:1f [GTK=TKIP]

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: WPA: Group rekeying completed with 20:37:06:ab:6e:1f [GTK=TKIP]

                Mar 18 04:05:14 Edison kernel: CFG80211-ERROR) wl_cfg80211_connect : Connectting with20:37:06:ab:6e:10 channel (11) ssid "xxxxxxxxxx", len (9)

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: WPA: Group rekeying completed with 20:37:06:ab:6e:1f [GTK=TKIP]

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: WPA: Group rekeying completed with 20:37:06:ab:6e:1f [GTK=TKIP]

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: Associated with 20:37:06:ab:6e:10

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: Authentication with 20:37:06:ab:6e:10 timed out.

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: CTRL-EVENT-DISCONNECTED bssid=20:37:06:ab:6e:10 reason=3 locally_generated=1

                Mar 18 04:05:14 Edison wpa_supplicant[213]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (org.freedesktop.DBus.Error.Failed) failed to parse WPA IE

                Mar 18 04:05:14 Edison wpa_supplicant[213]: dbus: Failed to construct signal

                Mar 18 04:05:14 Edison wpa_supplicant[213]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (org.freedesktop.DBus.Error.Failed) failed to parse WPA IE

                Mar 18 04:05:14 Edison wpa_supplicant[213]: dbus: Failed to construct signal

                Mar 18 04:05:14 Edison wpa_supplicant[213]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (org.freedesktop.DBus.Error.Failed) failed to parse WPA IE

                Mar 18 04:05:14 Edison wpa_supplicant[213]: dbus: Failed to construct signal

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: Trying to associate with 20:37:06:ab:6e:1f (SSID='xxxxxxxxxx' freq=5200 MHz)

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: Associated with 20:37:06:ab:6e:1f

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: WPA: Key negotiation completed with 20:37:06:ab:6e:1f [PTK=CCMP GTK=TKIP]

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: CTRL-EVENT-CONNECTED - Connection to 20:37:06:ab:6e:1f completed (auth) [id=0 id_str=]

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: WPA: Group rekeying completed with 20:37:06:ab:6e:1f [GTK=TKIP]

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: WPA: Group rekeying completed with 20:37:06:ab:6e:1f [GTK=TKIP]

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: CTRL-EVENT-DISCONNECTED bssid=20:37:06:ab:6e:1f reason=23

                Mar 18 04:05:14 Edison wpa_supplicant[213]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="xxxxxxxxxx" auth_failures=1 duration=10

                Mar 18 04:05:14 Edison wpa_supplicant[213]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (org.freedesktop.DBus.Error.Failed) failed to parse WPA IE

                Mar 18 04:05:14 Edison wpa_supplicant[213]: dbus: Failed to construct signal

                Mar 18 04:05:14 Edison wpa_supplicant[213]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (org.freedesktop.DBus.Error.Failed) failed to parse WPA IE

                Mar 18 04:05:14 Edison wpa_supplicant[213]: dbus: Failed to construct signal

                Mar 18 04:05:14 Edison wpa_supplicant[213]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (org.freedesktop.DBus.Error.Failed) failed to parse WPA IE

                Mar 18 04:05:14 Edison wpa_supplicant[213]: dbus: Failed to construct signal

                Mar 18 04:05:14 Edison wpa_supplicant[213]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (org.freedesktop.DBus.Error.Failed) failed to parse WPA IE

                Mar 18 04:05:14 Edison kernel: wl_bss_connect_done succeeded with 20:37:06:ab:6e:10

                Mar 18 04:05:14 Edison kernel: wl_bss_connect_done succeeded with 20:37:06:ab:6e:10

                Mar 18 04:05:14 Edison wpa_supplicant[213]: dbus: Failed to construct signal

                Mar 18 04:05:15 Edison systemd-timesyncd[157]: Network configuration changed, trying to establish connection.

                Mar 18 04:05:15 Edison wpa_cli[251]: event CONNECTED received from wpa_supplicant

                Mar 18 04:05:15 Edison udhcpc[27768]: udhcpc (v1.22.1) started

                Mar 18 04:05:15 Edison wpa_cli[251]: udhcpc (v1.22.1) started

                Mar 18 04:05:15 Edison systemd-timesyncd[157]: Network configuration changed, trying to establish connection.

                Mar 18 04:05:15 Edison udhcpc[27768]: Sending discover...

                Mar 18 04:05:15 Edison wpa_cli[251]: Sending discover...

                Mar 18 04:05:15 Edison mDNSResponder[247]: mDNSPlatformSendUDP got error 101 (Network is unreachable) sending packet to FF02:0000:0000:0000:0000:0000:0000:00FB on interface FE80:0000:0000:0000:FEC2:DEFF:FE31:6B48/wlan0/3

                Mar 18 04:05:15 Edison mDNSResponder[247]: mDNSPlatformSendUDP got error 101 (Network is unreachable) sending packet to FF02:0000:0000:0000:0000:0000:0000:00FB on interface FE80:0000:0000:0000:FEC2:DEFF:FE31:6B48/wlan0/3

                Mar 18 04:05:16 Edison mDNSResponder[247]: mDNSPlatformSendUDP got error 101 (Network is unreachable) sending packet to FF02:0000:0000:0000:0000:0000:0000:00FB on interface FE80:0000:0000:0000:FEC2:DEFF:FE31:6B48/wlan0/3

                Mar 18 04:05:16 Edison mDNSResponder[247]: mDNSPlatformSendUDP got error 101 (Network is unreachable) sending packet to FF02:0000:0000:0000:0000:0000:0000:00FB on interface FE80:0000:0000:0000:FEC2:DEFF:FE31:6B48/wlan0/3

                Mar 18 04:05:17 Edison mDNSResponder[247]: mDNSPlatformSendUDP got error 101 (Network is unreachable) sending packet to FF02:0000:0000:0000:0000:0000:0000:00FB on interface FE80:0000:0000:0000:FEC2:DEFF:FE31:6B48/wlan0/3

                Mar 18 04:05:18 Edison udhcpc[27768]: Sending discover...

                Mar 18 04:05:18 Edison wpa_cli[251]: Sending discover...

                Mar 18 04:05:19 Edison mDNSResponder[247]: mDNSPlatformSendUDP got error 101 (Network is unreachable) sending packet to FF02:0000:0000:0000:0000:0000:0000:00FB on interface FE80:0000:0000:0000:FEC2:DEFF:FE31:6B48/wlan0/3

                Mar 18 04:05:19 Edison udhcpc[27768]: Sending select for XXX.XXX.XXX.XXX...

                Mar 18 04:05:19 Edison wpa_cli[251]: Sending select for XXX.XXX.XXX.XXX...

                Mar 18 04:05:19 Edison udhcpc[27768]: Lease of XXX.XXX.XXX.XXX obtained, lease time 14400

                Mar 18 04:05:19 Edison wpa_cli[251]: Lease of XXX.XXX.XXX.XXX obtained, lease time 14400

                Mar 18 04:05:19 Edison systemd-timesyncd[157]: Network configuration changed, trying to establish connection.

                Mar 18 04:05:19 Edison wpa_cli[251]: /etc/udhcpc.d/50default: Adding DNS XXX.XXX.XXX.XXX

                Mar 18 04:05:19 Edison wpa_cli[251]: /etc/udhcpc.d/50default: Adding DNS XXX.XXX.XXX.XXX

                Mar 18 04:05:19 Edison wpa_cli[251]: /etc/udhcpc.d/50default: Adding DNS XXX.XXX.XXX.XXX

                Mar 18 04:06:30 Edison systemd-timesyncd[157]: Using NTP server XXX.XXX.XXX.XXX:123 (XXXXXXXX.XXXXXXX.XXX).

                Mar 18 04:06:30 Edison systemd-timesyncd[157]: interval/delta/delay/jitter/drift 32s/+0.063s/0.004s/0.036s/+500ppm

                ...

                • 5. Re: Reconnect Wifi after a network interruption on Edison
                  Intel_Peter

                  Hello oloynet,

                   

                  Could you provide a little more information about your environment, which image are you using? How is your board getting its IP, Static IP? DHCP? Is your network secured? Please post any other detail about your network configuration.

                   

                  Peter.

                  • 6. Re: Reconnect Wifi after a network interruption on Edison
                    peter__wu

                    Hi Peter,

                     

                    My Edison also lost wifi connection if it is connected over hours and it won't reconnect. If I turn-off interface wlan0 and turn-on again, it can connect to wifi normally.

                    Can you advise a method to auto-reconnect?

                    Thanks!

                    • 7. Re: Reconnect Wifi after a network interruption on Edison
                      Levitate

                      I'm having the same issue. I have two Intel Edisons running at two locations. If their network drops temporarily they seem to permanently lose their connection until reset.

                      Is there a setting or something I have to configure beyond the default Edison configuration to get them reconnecting reliably?

                       

                      I'm on the latest Edison image.

                       

                      They are both getting IP with DHCP.

                       

                      Networks are secure.

                       

                      If I run "wpa_cli status" I get "wpa_state=INTERFACE_DISABLED"

                      • 8. Re: Reconnect Wifi after a network interruption on Edison
                        Dave_CT

                        Here we go - had the same issue, just figured how to get around it ;

                         

                        Quick easy way to get your Edison to reconnect to WiFi without rebooting

                        1 of 1 people found this helpful
                        • 9. Re: Reconnect Wifi after a network interruption on Edison
                          jcuzella

                          @Dave_CT: Good idea to set scan_ssid to 0!  I hadn't tried that one yet.

                           

                          Depending on what is actually happening internal to your board... it may be the issue that myself and another user are experiencing in this thread:

                           

                          https://communities.intel.com/message/376144#376144

                           

                           

                          The above issue is that the WiFi has been disconnecting & re-connecting and not coming back up with an IP.  Not sure if there's a complete solution yet... but I've gone down the path of troubleshooting the OS services responsible for the above mentioned issue.

                           

                          I was able to find out a way of getting the services to restart & recover from a state of fast disconnect & reconnect cycles.

                           

                          It doesn't look like yours is doing it too rapidly, but the same restart process should also work.