ODROID XU4 Wi-Fi Module 3 Dropout

Post Reply
swansonkar98
Posts: 16
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by swansonkar98 » Tue Nov 27, 2018 4:31 am

Hello!

I've been working with ODROID XU4s with Wifi Module #3s for some time now and I am consistently experiencing connection dropouts. Here's my system information

OS: Ubuntu 18.04.1 LTS (Bionic Beaver)
Kernel: Linux version 4.14.73-149 (root@ba3e5121f23a) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-16ubuntu3)) #1 SMP PREEMPT Sun Sep 30 23:32:27 -03 2018

While running ping tests from a separate computer, connection to the ODORID XU4 drops out regularly. Once connection is lost, it is rarely (but sometimes) re-established after some time. My project requires a consistent wireless connection to function properly.

I've been trying to diagnose this problem for some time, and have been following posts on power management (viewtopic.php?f=117&t=7803&p=61821&hili ... rop#p61821) which I thought could have been the issue.

Has anyone experienced something similar and have a fix?

User avatar
odroid
Site Admin
Posts: 31363
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 50 times
Been thanked: 184 times
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by odroid » Tue Nov 27, 2018 10:35 am

As far as I know, the power-management option should be disabled by default in our Ubuntu 18.04 image.
Can you check your current "wireless-power" option settings?

swansonkar98
Posts: 16
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by swansonkar98 » Wed Nov 28, 2018 2:23 am

Thanks for the quick response!

Power-management is off, I checked with iwconfig (see attached odroid-iwconfig.PNG)

The device should be receiving enough power otherwise, the ODROID is powered by a 5V 4A standard power adapter from a 120VAC wall outlet.
Attachments
odroid-iwconfig.PNG
odroid-iwconfig.PNG (14.25 KiB) Viewed 1705 times

User avatar
odroid
Site Admin
Posts: 31363
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 50 times
Been thanked: 184 times
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by odroid » Wed Nov 28, 2018 10:51 am

We will try to reproduce the issue with Kernel 4.14.81.
Is it fine to ping to XU4 via WiFi module from a remote PC in every 2 hours for a couple of days to reproduce the issue?

swansonkar98
Posts: 16
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by swansonkar98 » Wed Nov 28, 2018 10:16 pm

That test sounds acceptable to me, that's what I've been doing on my end, and I can clearly see the issue from doing so (see new screenshots).

Please let me know how the test goes, and let me know if there is anything I can do.

Thanks!
odroid-pingtest.PNG
odroid-pingtest.PNG (27.52 KiB) Viewed 1650 times
odroid-pingtest-2.PNG
odroid-pingtest-2.PNG (36.92 KiB) Viewed 1650 times

User avatar
odroid
Site Admin
Posts: 31363
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 50 times
Been thanked: 184 times
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by odroid » Thu Nov 29, 2018 9:27 am

We will try it and update the test status by early next week.

joshua.yang
Posts: 230
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2
Has thanked: 2 times
Been thanked: 20 times
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by joshua.yang » Tue Dec 04, 2018 3:57 pm

Hi, @swansonkar98.

I tested Wifi module 3 with a ODROID-XU4 that upgrades its packages to the latest. It has Ubuntu 18.04.1 and 4.9.81 kernel.

I wrote a simple script file to make the test more realistic by adding sleep command.
That script loops the two commands sequentially. As you can see, I meant to make the ping command executes for every 2 hours.

Code: Select all

ping -c 10 8.8.8.8
sleep 7200
It's been testing for about 20 hours now, and I attached the log file here.
In our test, actually, we couldn't reproduce the issue. In the log file, sometimes the first ping latency is slightly high but comes to normal right back.
I think that "slightly high latency" is caused as the Network Interface fell asleep. But that is for a very short time.

Any feedback will be welcomed. :)
Attachments
181203_20hours_ping_test.log
(8.16 KiB) Downloaded 25 times

swansonkar98
Posts: 16
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by swansonkar98 » Tue Dec 04, 2018 10:19 pm

Thanks for testing @joshua.yang!

During my tests I also saw rather high latency, but also saw frequent packet loss ranging anywhere from 2-50% during a given test (I would put the average around 15% packet loss).

When you say the high latency may be cause by the Network Interface falling asleep, is there any way to prevent this? I would like to keep my XU4 connected and active on the network as it is operating as a server.

I've attached another ping log from my end.
ping_log-12-4-18.log
(1.61 KiB) Downloaded 33 times
Thanks again!

joshua.yang
Posts: 230
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2
Has thanked: 2 times
Been thanked: 20 times
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by joshua.yang » Wed Dec 05, 2018 10:59 am

To prevent from the Network Interface falling asleep,
try to change the value of wifi.powersave located at /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf from 3 to 2.

Further information: https://askubuntu.com/questions/695867/ ... management

It's been about 40 hours on my test, and there's still no packet loss for me.
Please let us know the results after disabling power management for the wireless network interface.

swansonkar98
Posts: 16
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by swansonkar98 » Wed Dec 05, 2018 10:28 pm

Unfortunately I already tried this method while attempting to diagnose the issue with Wi-Fi dropoff.

My default-wifi-powersave-on.conf has had wifi.powersave = 2 set from the start of my testing, a month ago.

Additionally under iwconfig, I have Power Management:off so I am unsure if this is a powersave issue (altough it seems like it).

An interesting thing to note, when Wi-Fi drops out, it can usually be fixed by unplugging the adapter and then plugging it back in.

User avatar
rooted
Posts: 6547
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 54 times
Been thanked: 15 times
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by rooted » Wed Dec 05, 2018 11:21 pm

Have you tried moving the adapter to USB 3 port or the USB 2 port?

Any other USB devices plugged in? Have you tried unplugging them?

swansonkar98
Posts: 16
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by swansonkar98 » Thu Dec 06, 2018 4:02 am

@rooted

Yes, I've moved the adapter all around the device to no avail (would there be a reason it would work on the 3.0 vs 2.0 port?).

There is a camera attached to the ODROID via USB, but even testing without the camera this problem still came up. Additionally I measured current draw from the ODROID power supply and individual components, and verified that the loads were well within what was supplied, so I don't believe it is a power draw issue.

User avatar
rooted
Posts: 6547
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 54 times
Been thanked: 15 times
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by rooted » Thu Dec 06, 2018 4:13 am

No reason about USB 3/2, they use different drivers and one could be buggy or have some random issue.

Could you try the dongle in another device and verify it works properly?

swansonkar98
Posts: 16
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by swansonkar98 » Thu Dec 06, 2018 5:40 am

Currently testing it on my Ubuntu laptop, I'll let you know the results tomorrow after it's ran for a while.

Thanks!

swansonkar98
Posts: 16
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by swansonkar98 » Thu Dec 06, 2018 10:08 pm

Still seeing some packet loss on my laptop, but not to extent that I saw on the ODROIDS (IE connection dropping for > 1 minute).

Could this be a driver issue? I'm seeing a lot of posts speculating on this issue.

User avatar
rooted
Posts: 6547
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 54 times
Been thanked: 15 times
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by rooted » Fri Dec 07, 2018 1:08 am

I don't know if it's a driver issue mate, I don't have module 3 to test different/updated drivers.

But you could try compiling a different driver if you can find one.

swansonkar98
Posts: 16
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by swansonkar98 » Fri Dec 07, 2018 3:11 am

@rooted working on that. Are there any other details I can post to help out with debugging this issue?

User avatar
rooted
Posts: 6547
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 54 times
Been thanked: 15 times
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by rooted » Sat Dec 08, 2018 10:42 am

swansonkar98 wrote:@rooted working on that. Are there any other details I can post to help out with debugging this issue?
The output of dmesg (pastebin it please) after having latency issues.

swansonkar98
Posts: 16
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by swansonkar98 » Tue Dec 11, 2018 6:57 am

Currently away from the device, I'll get a pastebin in tomorrow. However I do recall it spits out a lot of:

rtl_usb: Pending RX skbuff queue full! (qlen: 64)

reports when failure is seen.

swansonkar98
Posts: 16
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by swansonkar98 » Wed Dec 12, 2018 4:26 am

Here is a link to the full dmesg of the ODROID. A connection dropout did occour for 5+ minutes:

https://pastebin.com/x82M857M

User avatar
rooted
Posts: 6547
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 54 times
Been thanked: 15 times
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by rooted » Wed Dec 12, 2018 6:52 am

swansonkar98 wrote:Here is a link to the full dmesg of the ODROID. A connection dropout did occour for 5+ minutes:

https://pastebin.com/x82M857M
I'm guessing the issue is you have a USB camera on the same hub as WiFi module 3?

Did you plug in a camera or was it plugged the whole time?

User avatar
odroid
Site Admin
Posts: 31363
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 50 times
Been thanked: 184 times
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by odroid » Wed Dec 12, 2018 11:55 am

In that case, lower the UVC packet value something like "uvcvideo quirks=128" or less.
https://stackoverflow.com/questions/256 ... uvc-driver

swansonkar98
Posts: 16
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by swansonkar98 » Thu Dec 13, 2018 11:06 pm

The camera was plugged in for the whole time.

I'll give the UVC packet value edit a try. Thanks for the help guys!

swansonkar98
Posts: 16
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by swansonkar98 » Fri Dec 14, 2018 9:58 pm

Even with the UVC change, the issue still occurs with the same frequency.

Packet value was set to 128

User avatar
odroid
Site Admin
Posts: 31363
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 50 times
Been thanked: 184 times
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by odroid » Tue Dec 18, 2018 3:11 pm

What happens if you use a WiFi only?

swansonkar98
Posts: 16
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by swansonkar98 » Tue Dec 18, 2018 11:05 pm

The dropout still occurs with or without the USB camera being plugged in.

User avatar
odroid
Site Admin
Posts: 31363
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 50 times
Been thanked: 184 times
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by odroid » Wed Dec 19, 2018 9:53 am

It is really hard to help you since we couldn't reproduce the issue.

Do you have any other AP/router ?

phaseshifter
Posts: 3428
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 34 times
Been thanked: 37 times
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by phaseshifter » Wed Dec 19, 2018 10:28 am

i have this module unit ..

i have used it on xu4/n-1 without any issues .t hooked up and worked well on 18.04/debian on my n1 and a few other machines
i did find this however...after some time not shore how much exactly...many month`s...
it`s most likely that the usb plug it`s self fails this i did find and i had to angle it in an upwards manner..to keep a stable connection...

the usb plug part came lose why i dont know... but that is my exp with the unit..

maybe it is just wear and tear on the unit over time...had the unit about 1 year approx..

check to see if it wobbles slightly in an up/down manner with reference to north south....with the unit removed in your hand to test...

P.s...while your doing a ping test keep an eye on the tiny red light/led on top of the unit..this i often found went out or even dimmed..at times ...
there is not really any info i have found on this module..this point i make may lead to some relevance to the issue...not shore weather this coincides to your predicament..
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!

swansonkar98
Posts: 16
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by swansonkar98 » Wed Dec 19, 2018 11:23 pm

Hi @phaseshifter, the USB plug is secured in a fairly stable manner, the case I've built to house my ODROIDs does not allow for wobble (I read that there may be issues with the contacts inside the Module 3)

The disconnection issue always "fixes" itself, within 5-10 minutes of a disconnect I am able to successfully ping the device once again. The ODROIDs remain in a static position during this time.

All of my Module 3 adapters are brand new, so I would hope that there wouldn't be a wear and tear problem, they are also directed straight up.

@odroid I see disconnects far less frequently with one of my ODROIDs that is connected directly to a monitor with a user logged in at all times. On the ODROIDs that are accessed via SSH the issue seems far more prevalent. If it is any help, the camera I am using is: https://www.amazon.com/ELP-fisheye-Rasp ... 01E8OWZM4/

Is there any way that I could provide you with better information/logs that could help address the issue?

User avatar
odroid
Site Admin
Posts: 31363
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 50 times
Been thanked: 184 times
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by odroid » Thu Dec 20, 2018 9:01 am

Can you find any clue in the dmesg output when you see disconnects?

Do you use Mate desktop image? or minimal image?

swansonkar98
Posts: 16
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by swansonkar98 » Fri Dec 21, 2018 10:15 pm

I am using the minimal image of Ubuntu.

The only clues I have from dmesg are these messages that seem to display when the issue crops up:

Code: Select all

rtl_usb: Pending RX skbuff queue full! (qlen: 64)
wlan0: deauthenticated from 2c:33:11:74:af:82 (Reason: 7=CLASS3_FRAME_FROM_NONASSOC_STA)
wlan0: Limiting TX power to 23 (23 – 0) dBm as advertised by 2c:33:11:74:af:82

User avatar
odroid
Site Admin
Posts: 31363
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 50 times
Been thanked: 184 times
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by odroid » Mon Dec 24, 2018 11:10 am

Something must be related to the power management options even though we couldn't reproduce the issue on our test environment. :(

We will try the same test on the latest minimal 18.04 image.

joshua.yang
Posts: 230
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2
Has thanked: 2 times
Been thanked: 20 times
Contact:

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread post by joshua.yang » Wed Dec 26, 2018 10:21 am

We've tested with the latest minimal image ubuntu-18.04.1-4.14-minimal-odroid-xu4-20181203.img.xz and I didn't update the packages to keep that reproducible environment.
It's the same test we did before.

The test has been continued about 44 hours and no errors appeared.
I used nmcli utility to configure the wireless internet. (https://wiki.odroid.com/troubleshooting ... ?s[]=nmcli)

I attached that log file.
Attachments
181224_wifi_m3_ping_test.log
(17.06 KiB) Downloaded 10 times

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 2 guests