From owner-freebsd-arm@freebsd.org Thu Sep 1 03:35:03 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A83FBBC7DD3 for ; Thu, 1 Sep 2016 03:35:03 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: from mail-qk0-x22d.google.com (mail-qk0-x22d.google.com [IPv6:2607:f8b0:400d:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 64207E4E for ; Thu, 1 Sep 2016 03:35:03 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: by mail-qk0-x22d.google.com with SMTP id v123so72414238qkh.2 for ; Wed, 31 Aug 2016 20:35:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=JUEwmO3fB+64AbDESZSIfvaCTMxjANcp9IMIQv0vnG4=; b=LiO8TZT3EMTEYrma9typoLsOloa5JOIq7t22Dobm3yYmUc8jRM9oCA36+QITTK97a4 zAfamNQfdgQtNIO1ajvvTfguRQqblq0Ll62lNyMUl2dfc3ghCSUfKpy4z6M6h+kGrM1/ ZX8XcgmHKCnbB3xWmo3ZN49kk4Ql/u95d7G9k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=JUEwmO3fB+64AbDESZSIfvaCTMxjANcp9IMIQv0vnG4=; b=gQ7qpwGAHLe2t12ZvfqVhMro5ShgtXp4LJTsRbr31dVmPIxNKZDDplpPtU+5/K7O4a N4WOoKGVII6Tl1SqMu+0vNFnxzq5oJpnK3u+QYj4lCTuoAf7+qgMVr+n3w+wLwG0BQyw OsebfNzZ6gmogRxDojbyY7CbqbG3M4SqwWkzmu44Hk4kyWnoZAfkp65p3zJK7SKwRY6B OCGrvsnYjWEyzErcWwAyJgQc+lr2WgvpddbjcP4R3UlmFtPYyKWN8f66yEUw2ZP1S9pF ww81pMpW7QXiUpOzAzQP40mFr4T73HN67LkP8Be/+/XLqfdwBu4AiwOIDEiPSIlwZ4Tf U8yg== X-Gm-Message-State: AE9vXwMngFjpRiSRcvq7LZuM2Wlhc5rrh4njAAcTYHjXyCUx/sIVadLTYROPrdG6LXNadw== X-Received: by 10.55.16.86 with SMTP id a83mr15476144qkh.212.1472700902454; Wed, 31 Aug 2016 20:35:02 -0700 (PDT) Received: from [192.168.0.11] ([187.60.94.34]) by smtp.googlemail.com with ESMTPSA id q68sm1748549qka.1.2016.08.31.20.34.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Aug 2016 20:35:00 -0700 (PDT) Subject: Re: urtwn instable on Beaglebone Black To: Adrian Chadd , Andriy Voskoboinyk References: <0a35e401-47ba-dddb-3769-1b64353c3202@bsd.com.br> Cc: "freebsd-wireless@freebsd.org" , "freebsd-arm@freebsd.org" , Hans Petter Selasky From: =?UTF-8?B?T3RhY8OtbGlv?= Message-ID: <9dc9d2b8-848e-a1c0-4dd5-2841003df189@bsd.com.br> Date: Thu, 1 Sep 2016 00:34:46 -0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2016 03:35:03 -0000 wifi and webcam C920 connected using a USB host connected to beaglebone black I tested with two chipsets: chipset 1 % dmesg | grep urtwn urtwn0: 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 RATES DSPARMS<1> ERP<0x4> ???<2f0104> RSN XRATES<12,18,24,96> HTCAP HTINFO WPS VEN WPA WME 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: at usbus1 urtwn0: 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: 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 RATES DSPARMS<1> ERP<0x4> ???<2f0104> RSN XRATES<12,18,24,96> HTCAP HTINFO WPS VEN WPA WME 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 wrote: >> hi, >> >> What's the signal level? (ifconfig -v wlan0 list sta) >> >> >> >> -a >> >> >> On 30 August 2016 at 12:21, Andriy Voskoboinyk wrote: >>> Tue, 30 Aug 2016 21:33:28 +0300 було написано Otacílio >>> : >>> >>> 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"