Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Wifi Reconnecting Issue
icon4.gif  Wifi Reconnecting Issue [message #1739463] Tue, 02 August 2016 05:00 Go to next message
Jith CR is currently offline Jith CRFriend
Messages: 7
Registered: August 2016
Junior Member
Hi,

I am facing wifi reconnection issue with Kura.Wifi is not getting reconnect to properly to access point once the external access point is restarted.

Below mentioned are the steps followed for wifi connection

1.Static IP configured in /etc/network/interfaces for wlan0
2.Access point selection is selected through Kura WebUI under Network option(WebUI accesing through Ethernet interface)
3.Rebooted the system without Ethernet
4.System booted up with given static IP and connected to selected access point.
5.Pinged successfully to external domain (say 8.8.8.8)
6.Access point restarted.
7.System is not pinging to external domain(say 8.8.8.8)

Its seems like route and IP is not available after the restart of access point.checked by ifconfig and route -n command.


Looking for valuable comments to solve the issue..

Thanks
Re: Wifi Reconnecting Issue [message #1740012 is a reply to message #1739463] Mon, 08 August 2016 07:36 Go to previous messageGo to next message
Jith CR is currently offline Jith CRFriend
Messages: 7
Registered: August 2016
Junior Member
Looking forward to valuable suggestions
Re: Wifi Reconnecting Issue [message #1740260 is a reply to message #1740012] Wed, 10 August 2016 22:05 Go to previous messageGo to next message
Ilya Binshtok is currently offline Ilya BinshtokFriend
Messages: 14
Registered: September 2015
Junior Member
Hi Jith,

The first thing I would do is to try to understand if the problem is reassociating with AP or in L3. To do this, after you restart AP, try either
iw dev wlan0 link
or
wpa_cli -i wlan0 status

Please let me know what the output of these command is as well as output of ifconfig and route -n commands.

Another thing ...
You have mentioned that you have static ip configured for the wlan0 interface in the /etc/network/interfaces. Have you done it manually or via Kura Web UI? You should do it via Web UI.

Best regards,

Ilya
Re: Wifi Reconnecting Issue [message #1740287 is a reply to message #1740260] Thu, 11 August 2016 08:44 Go to previous messageGo to next message
Jith CR is currently offline Jith CRFriend
Messages: 7
Registered: August 2016
Junior Member
Hi,

Thank you for your response.

Console after AP restart

root@beaglebone:~# iw dev wlan0 link
nl80211 not found.
root@beaglebone:~# wpa_cli -i wlan0 status
bssid=08:86:3b:d7:cd:da
ssid=IOTDEMO
id=0
mode=station
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
address=74:da:38:5d:86:6c
root@beaglebone:~# ifconfig
eth0 Link encap:Ethernet HWaddr c8:a0:30:b4:27:b6
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:40

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:113 errors:0 dropped:0 overruns:0 frame:0
TX packets:113 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8726 (8.5 KiB) TX bytes:8726 (8.5 KiB)

wlan0 Link encap:Ethernet HWaddr 74:da:38:5d:86:6c
inet6 addr: fe80::76da:38ff:fe5d:866c/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:374 errors:0 dropped:162 overruns:0 frame:0
TX packets:57 errors:0 dropped:2 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:156893 (153.2 KiB) TX bytes:29858 (29.1 KiB)

root@beaglebone:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
root@beaglebone:~#
root@beaglebone:~#

I have configured Static IP through WebUI under Network->wlan0->TCP/IP option and the Status option is selected as "Enabled for WAN" The give IP information has been set in the /etc/network/interfaces file

[Updated on: Thu, 11 August 2016 09:04]

Report message to a moderator

Re: Wifi Reconnecting Issue [message #1740288 is a reply to message #1740287] Thu, 11 August 2016 08:44 Go to previous messageGo to next message
Jith CR is currently offline Jith CRFriend
Messages: 7
Registered: August 2016
Junior Member
Attached screen shot for reference

[Updated on: Thu, 11 August 2016 08:48]

Report message to a moderator

Re: Wifi Reconnecting Issue [message #1740291 is a reply to message #1740288] Thu, 11 August 2016 08:54 Go to previous messageGo to next message
Jith CR is currently offline Jith CRFriend
Messages: 7
Registered: August 2016
Junior Member
For your reference
I am using Beaglebone black with Edimax EW 7811un.
Beglebone is loaded with bone-debian-7.11 and Kura 2.0

Debug console without AP restart

root@beaglebone:~# iw dev wlan0 link
nl80211 not found.
root@beaglebone:~# wpa_cli -i wlan0 status
bssid=08:86:3b:d7:cd:da
ssid=IOTDEMO
id=0
mode=station
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
ip_address=192.168.0.103
address=74:da:38:5d:86:6c
root@beaglebone:~# ifconfig
eth0 Link encap:Ethernet HWaddr c8:a0:30:b4:27:b6
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:40

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:85 errors:0 dropped:0 overruns:0 frame:0
TX packets:85 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7402 (7.2 KiB) TX bytes:7402 (7.2 KiB)

wlan0 Link encap:Ethernet HWaddr 74:da:38:5d:86:6c
inet addr:192.168.0.101 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::76da:38ff:fe5d:866c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:79 errors:0 dropped:2 overruns:0 frame:0
TX packets:39 errors:0 dropped:1 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20079 (19.6 KiB) TX bytes:4124 (4.0 KiB)

root@beaglebone:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
root@beaglebone:~#
root@beaglebone:~#
root@beaglebone:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
root@beaglebone:~#
root@beaglebone:~#
root@beaglebone:~#
root@beaglebone:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=53 time=84.0 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=53 time=30.1 ms

[Updated on: Thu, 11 August 2016 09:04]

Report message to a moderator

Re: Wifi Reconnecting Issue [message #1740803 is a reply to message #1740291] Thu, 18 August 2016 15:21 Go to previous messageGo to next message
Ilya Binshtok is currently offline Ilya BinshtokFriend
Messages: 14
Registered: September 2015
Junior Member
Hi Jith,
Based on the ' wpa_cli -i wlan0 status' command in your previous post, it looks like your unit re-associates with AP after it is back up, but there is no IP address assigned to the interface. I think the problem is that DHCP client is confused. I have never worked with the Beaglebone so my instructions may not be 100% correct ... Please try this ...
1. Use the 'ps ax' command to see if DHCP client is still running
2. If so, kill it (something like 'killall dhclient' or kill -9 <pid>)
3. Manually restart DHCP client and see if this helps.

I will try to recreate this issue today, but I may get different results since I will use Raspberry Pi 2, but we will try to recreate this on the Beaglebone as well. Please let me know if suggested manual procedure helps.

Best regards,

Ilya
Re: Wifi Reconnecting Issue [message #1740841 is a reply to message #1740803] Thu, 18 August 2016 20:39 Go to previous message
Ilya Binshtok is currently offline Ilya BinshtokFriend
Messages: 14
Registered: September 2015
Junior Member
Jith,

It worked for me on Raspberry Pi 2

Best regards,

Ilya
Previous Topic:Kura 2.0 web ui
Next Topic:kura 2.0.1 - WebUI problem on Intel-Edison
Goto Forum:
  


Current Time: Sat Apr 20 03:16:03 GMT 2024

Powered by FUDForum. Page generated in 0.03624 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top