Date: Thu, 1 Sep 2016 00:34:46 -0300 From: =?UTF-8?B?T3RhY8OtbGlv?= <otacilio.neto@bsd.com.br> To: Adrian Chadd <adrian.chadd@gmail.com>, Andriy Voskoboinyk <avos@freebsd.org> Cc: "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>, Hans Petter Selasky <hps@selasky.org> Subject: Re: urtwn instable on Beaglebone Black Message-ID: <9dc9d2b8-848e-a1c0-4dd5-2841003df189@bsd.com.br> In-Reply-To: <CAJ-VmokDT4LRUSfxkyNM-w9bt6ZwOLm-WpOFw6aSLLnNjmcxjQ@mail.gmail.com> References: <0a35e401-47ba-dddb-3769-1b64353c3202@bsd.com.br> <op.ym0v2iic4dikkl@localhost> <CAJ-VmompQ1oMeG1ucSg3fBcp6JhWUiGPaNWepgTYMdetgwKakw@mail.gmail.com> <CAJ-VmokDT4LRUSfxkyNM-w9bt6ZwOLm-WpOFw6aSLLnNjmcxjQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
wifi and webcam C920 connected using a USB host connected to beaglebone black I tested with two chipsets: chipset 1 % dmesg | grep urtwn urtwn0: <vendor 0x0bda product 0x8178, class 0/0, rev 2.00/2.00, addr 3> on usbus1 urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R urtwn0: enabling 11n signal level: % ifconfig -v wlan0 list sta ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG 58:23:8c:c6:e1:aa 3 1 54M 12.0 0 14 16752 EP AQE SSID<Diana> RATES<B2,B4,B11,B22,36,48,72,108> DSPARMS<1> ERP<0x4> ???<2f0104> RSN<v1 mc:TKIP uc:AES-CCMP+TKIP km:8021X-PSK> XRATES<12,18,24,96> HTCAP<cap 0x18bc param 0x1b mcsset[0-15] extcap 0x0 txbf 0x0 antenna 0x0> HTINFO<ctl 1, 8,15,0,0 basicmcs[]> WPS<v:1.0 st:C uuid-e:47-e6-e4-ac-0e-16-2a-14-5e-94-3b-d0-8d-c5-bf-f1> VEN<dd090010180203000c0000> WPA<v1 mc:TKIP uc:AES-CCMP+TKIP km:8021X-PSK> WME<qosinfo 0x84 BE[aifsn 3 cwmin 4 cwmax 10 txop 0] BK[aifsn 7 cwmin 4 cwmax 10 txop 0] VO[aifsn 2 cwmin 3 cwmax 4 txop 94] VI[aifsn 2 cwmin 2 cwmax 3 txop 47]> After open a MJPEG stream near immediately I got: Network is down % urtwn0: ieee80211_crypto_encap returns NULL. urtwn0: ieee80211_crypto_encap returns NULL. urtwn0: ieee80211_crypto_encap returns NULL. So I unplugged the device and then plug another, after some time I got: Aug 31 23:51:38 beaglebone wpa_supplicant[412]: ioctl[SIOCS80211, op=25, val=0, arg_len=0]: Device not configured Aug 31 23:51:38 beaglebone dhclient[783]: ioctl(SIOCGIFFLAGS) on wlan0: Operation not permitted Aug 31 23:51:38 beaglebone dhclient[783]: Interface wlan0 no longer appears valid. Aug 31 23:51:38 beaglebone dhclient[783]: No live interfaces to poll on - exiting. Aug 31 23:51:38 beaglebone dhclient[783]: exiting. Aug 31 23:51:38 beaglebone dhclient[607]: connection closed Aug 31 23:51:38 beaglebone dhclient[607]: exiting. Aug 31 23:51:38 beaglebone wpa_supplicant[412]: ioctl[SIOCS80211, op=95, val=208, arg_len=0]: Device not configured Aug 31 23:51:38 beaglebone wpa_supplicant[412]: ioctl[SIOCS80211, op=17, val=0, arg_len=0]: Device not configured Aug 31 23:51:38 beaglebone wpa_supplicant[412]: ioctl[SIOCS80211, op=26, val=0, arg_len=0]: Device not configured Aug 31 23:51:38 beaglebone wpa_supplicant[412]: ioctl[SIOCGIFFLAGS]: Device not configured Aug 31 23:51:38 beaglebone wpa_supplicant[412]: ioctl[SIOCS80211, op=95, val=208, arg_len=0]: Device not configured Aug 31 23:51:38 beaglebone wpa_supplicant[412]: ioctl[SIOCS80211, op=17, val=0, arg_len=0]: Device not configured Aug 31 23:51:38 beaglebone wpa_supplicant[412]: ioctl[SIOCS80211, op=26, val=0, arg_len=0]: Device not configured Aug 31 23:51:38 beaglebone wpa_supplicant[412]: ioctl[SIOCS80211, op=16, val=1, arg_len=0]: Device not configured ugen1.3: <vendor 0x0bda> at usbus1 urtwn0: <vendor 0x0bda product 0x8176, class 0/0, rev 2.00/2.00, addr 3> on usbus1 urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R urtwn0: enabling 11n wlan0: Ethernet address: 80:3f:5d:11:28:e6 chipset 2: % dmesg | grep urtwn urtwn0: <vendor 0x0bda product 0x8176, class 0/0, rev 2.00/2.00, addr 3> on usbus1 urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R urtwn0: enabling 11n signal level: % ifconfig -v wlan0 list sta ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG 58:23:8c:c6:e1:aa 3 1 54M 16.0 0 18 27216 EP AQE SSID<Diana> RATES<B2,B4,B11,B22,36,48,72,108> DSPARMS<1> ERP<0x4> ???<2f0104> RSN<v1 mc:TKIP uc:AES-CCMP+TKIP km:8021X-PSK> XRATES<12,18,24,96> HTCAP<cap 0x18bc param 0x1b mcsset[0-15] extcap 0x0 txbf 0x0 antenna 0x0> HTINFO<ctl 1, 8,15,0,0 basicmcs[]> WPS<v:1.0 st:C uuid-e:47-e6-e4-ac-0e-16-2a-14-5e-94-3b-d0-8d-c5-bf-f1> VEN<dd090010180203000c0000> WPA<v1 mc:TKIP uc:AES-CCMP+TKIP km:8021X-PSK> WME<qosinfo 0x84 BE[aifsn 3 cwmin 4 cwmax 10 txop 0] BK[aifsn 7 cwmin 4 cwmax 10 txop 0] VO[aifsn 2 cwmin 3 cwmax 4 txop 94] VI[aifsn 2 cwmin 2 cwmax 3 txop 47]> Network is down urtwn0: ieee80211_crypto_encap returns NULL. % urtwn0: ieee80211_crypto_encap returns NULL. urtwn0: ieee80211_crypto_encap returns NULL. So, I remove the camera from HUB, plug it on my notebook. the urtwn stay in HUB+Beaglebone. Now, I transmit from my notebook to beaglebone and back to notebook. Throughput of rx | tx --------------------------------------+------------------ bytes 66,43 MiB | 860,85 MiB --------------------------------------+------------------ max 4,36 Mbit/s | 24,80 Mbit/s average 1,66 Mbit/s | 21,57 Mbit/s min 6 kbit/s | 18,35 Mbit/s --------------------------------------+------------------ packets 51283 | 667960 --------------------------------------+------------------ max 412 p/s | 2342 p/s average 156 p/s | 2042 p/s min 0 p/s | 1740 p/s --------------------------------------+------------------ time 5,45 minutes And no problems. I think that the bug occurs when the webcam and wifi dongle are in the same USB HUB. Maybe a electric problem? I'm using a external power source to USB HUB. []'s -Otacílio Em 30/08/2016 20:33, Adrian Chadd escreveu: > .. and which chipset? (dmesg | grep urtwn) > > > > -a > > > On 30 August 2016 at 16:32, Adrian Chadd <adrian.chadd@gmail.com> wrote: >> hi, >> >> What's the signal level? (ifconfig -v wlan0 list sta) >> >> >> >> -a >> >> >> On 30 August 2016 at 12:21, Andriy Voskoboinyk <avos@freebsd.org> wrote: >>> Tue, 30 Aug 2016 21:33:28 +0300 було написано Otacílio >>> <otacilio.neto@bsd.com.br>: >>> >>> I have no ideas here (it works (mostly) fine on x86 and I have no >>> possibility >>> to check it with ARM). >>> >>> P.S. Other (ARM-specific?) issues: >>> https://lists.freebsd.org/pipermail/freebsd-arm/2016-July/014382.html >>> https://forums.freebsd.org/threads/57396 >>> >>> >>> >>>> Dears >>>> >>>> I'm using a beaglebone black to stream video over UDP. I wrote a software >>>> and have tested it using a urtwn device + webcam Logitech C920. All is >>>> connected using a USB hub with external power source. So urtwn and webcam, >>>> both are plugged in the same USB hub. When I plug the hub and run my >>>> software on a old notebook intel centrino with FreeBSD 11.0-RC2 AMD64 all >>>> works fine. Last night the system stream video all night. But, when I >>>> replace the notebook by beaglebone black running FreeBSD 11.0-RC1 with the >>>> same USB HUB, the same wrtwn device and same camera, randomly after some >>>> time the beaglebone black network shutdown and terminal shows this messages >>>> : >>>> >>>> >>>> Network is down >>>> % urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> urtwn0: ieee80211_crypto_encap returns NULL. >>>> >>>> Then, I need to run >>>> >>>> /etc/rc.d/netif stop >>>> >>>> /etc/rc.d/netif start >>>> >>>> To enable network again. So, someone can give me a hit about what can be >>>> this and how to fix? >>>> >>>> Thanks a lot >>>> >>>> []'s >>>> >>>> -Otacilio >>>> >>>> _______________________________________________ >>>> freebsd-wireless@freebsd.org mailing list >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>>> To unsubscribe, send any mail to >>>> "freebsd-wireless-unsubscribe@freebsd.org" >>> _______________________________________________ >>> freebsd-wireless@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9dc9d2b8-848e-a1c0-4dd5-2841003df189>