OpenSprinkler Forums Hardware Questions OpenSprinkler Beagle (OSBo) Edimax Nano, disconnects and packet loss with Ubuntu image Re: Re: Edimax Nano, disconnects and packet loss with Ubuntu ima

#25823

polygnwnd
Member

Some more debug info (while connected via wired Ethernet):

uname

[email protected]:~# uname -a
Linux arm 3.8.13-bone28 #1 SMP Fri Sep 13 01:11:14 UTC 2013 armv7l armv7l armv7l GNU/Linux

dmesg when USB wifi adapter inserted:

[  188.176953] usb usb1: usb wakeup-resume
[ 188.177052] usb usb1: usb auto-resume
[ 188.177105] hub 1-0:1.0: hub_resume
[ 188.177225] hub 1-0:1.0: port 1: status 0101 change 0001
[ 188.281147] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[ 188.281274] hub 1-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
[ 188.386435] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[ 188.506564] usb 1-1: default language 0x0409
[ 188.507427] usb 1-1: udev 2, busnum 1, minor = 1
[ 188.507473] usb 1-1: New USB device found, idVendor=7392, idProduct=7811
[ 188.507511] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 188.507545] usb 1-1: Product: 802.11n WLAN Adapter
[ 188.507576] usb 1-1: Manufacturer: Realtek
[ 188.507608] usb 1-1: SerialNumber: 00xxxx00000x
[ 188.511681] usb 1-1: usb_probe_device
[ 188.511742] usb 1-1: configuration #1 chosen from 1 choice
[ 188.513465] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[ 188.519681] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 188.519802] hub 1-0:1.0: port 1 enable change, status 00000503
[ 189.260354] cfg80211: Calling CRDA to update world regulatory domain
[ 189.496848] rtl8192cu 1-1:1.0: usb_probe_interface
[ 189.496919] rtl8192cu 1-1:1.0: usb_probe_interface - got id
[ 189.497346] rtl8192cu: Chip version 0x10
[ 189.611075] rtl8192cu: MAC address: 80:1f:02:bb:fe:10
[ 189.611153] rtl8192cu: Board Type 0
[ 189.611395] rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
[ 189.611783] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
[ 189.632273] usbcore: registered new interface driver rtl8192cu
[ 189.773844] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
[ 189.786898] rtlwifi: wireless switch is on

lsusb

[email protected]:~# lsusb
Bus 001 Device 002: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lshw

[email protected]:~# lshw -C network -sanitize
*-network:0
description: Ethernet interface
physical id: 1
logical name: eth0
serial: [REMOVED]
capabilities: ethernet physical
configuration: broadcast=yes driver=TI CPSW Driver v1.0 driverversion=1.0 ip=[REMOVED] link=yes multicast=yes
*-network:1
description: Ethernet interface
physical id: 2
logical name: usb0
serial: [REMOVED]
capabilities: ethernet physical
configuration: broadcast=yes driver=g_ether driverversion=29-May-2008 firmware=musb-hdrc ip=[REMOVED] link=no multicast=yes
*-network:2 DISABLED
description: Wireless interface
physical id: 3
bus info: [email protected]:1
logical name: wlan1
serial: [REMOVED]
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl8192cu driverversion=3.8.13-bone28 firmware=N/A link=no multicast=yes wireless=IEEE 802.11bgn

lsmod

[email protected]:~# lsmod
Module Size Used by
arc4 1660 2
rtl8192cu 87084 0
rtlwifi 76713 1 rtl8192cu
rtl8192c_common 59545 1 rtl8192cu
mac80211 494605 3 rtlwifi,rtl8192c_common,rtl8192cu
cfg80211 421373 2 mac80211,rtlwifi
rfkill 18327 1 cfg80211
g_multi 56263 0
libcomposite 17089 1 g_multi

Now bringing up wifi interface

[email protected]:~# ifup wlan1
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan1/80:1f:02:bb:fe:10
Sending on LPF/wlan1/80:1f:02:bb:fe:10
Sending on Socket/fallback
DHCPREQUEST of 192.168.1.180 on wlan1 to 255.255.255.255 port 67 (xid=0x230b0c4f)
DHCPREQUEST of 192.168.1.180 on wlan1 to 255.255.255.255 port 67 (xid=0x230b0c4f)
DHCPREQUEST of 192.168.1.180 on wlan1 to 255.255.255.255 port 67 (xid=0x230b0c4f)
DHCPACK of 192.168.1.180 from 192.168.1.1
bound to 192.168.1.180 -- renewal in 38388 seconds.

dmesg now says


[ 744.386533] rtl8192cu: MAC auto ON okay!
[ 744.454592] rtl8192cu: Tx queue select: 0x05
[ 744.912888] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 747.610632] wlan1: authenticate with [WIRELESS_AP_MAC]
[ 747.633050] wlan1: send auth to [WIRELESS_AP_MAC] (try 1/3)
[ 747.833633] wlan1: send auth to [WIRELESS_AP_MAC] (try 2/3)
[ 748.034804] wlan1: send auth to [WIRELESS_AP_MAC] (try 3/3)
[ 748.235955] wlan1: authentication with [WIRELESS_AP_MAC] timed out
[ 749.145721] wlan1: authenticate with [WIRELESS_AP_MAC]
[ 749.166245] wlan1: send auth to [WIRELESS_AP_MAC] (try 1/3)
[ 749.366823] wlan1: send auth to [WIRELESS_AP_MAC] (try 2/3)
[ 749.567988] wlan1: send auth to [WIRELESS_AP_MAC] (try 3/3)
[ 749.769168] wlan1: authentication with [WIRELESS_AP_MAC] timed out
[ 750.674845] wlan1: authenticate with [WIRELESS_AP_MAC]
[ 750.696906] wlan1: send auth to [WIRELESS_AP_MAC] (try 1/3)
[ 750.898088] wlan1: send auth to [WIRELESS_AP_MAC] (try 2/3)
[ 751.099271] wlan1: send auth to [WIRELESS_AP_MAC] (try 3/3)
[ 751.300425] wlan1: authentication with [WIRELESS_AP_MAC] timed out
[ 752.208067] wlan1: authenticate with [WIRELESS_AP_MAC]
[ 752.229125] wlan1: send auth to [WIRELESS_AP_MAC] (try 1/3)
[ 752.429323] wlan1: send auth to [WIRELESS_AP_MAC] (try 2/3)
[ 752.630493] wlan1: send auth to [WIRELESS_AP_MAC] (try 3/3)
[ 752.831660] wlan1: authentication with [WIRELESS_AP_MAC] timed out
[ 753.748137] wlan1: authenticate with [WIRELESS_AP_MAC]
[ 753.768598] wlan1: send auth to [WIRELESS_AP_MAC] (try 1/3)
[ 753.772072] wlan1: authenticated
[ 753.775149] wlan1: associate with [WIRELESS_AP_MAC] (try 1/3)
[ 753.789979] wlan1: RX AssocResp from [WIRELESS_AP_MAC] (capab=0x431 status=0 aid=1)
[ 753.791445] wlan1: associated
[ 753.791551] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready

iwconfig after a minute or so:

[email protected]:~# iwconfig wlan1
wlan1 IEEE 802.11bgn ESSID:"[MY_NETWORK_SSID]"
Mode:Managed Frequency:2.462 GHz Access Point: [WIRELESS_AP_MAC]
Bit Rate=72.2 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr=2347 B Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=70/70 Signal level=-35 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:12 Missed beacon:0