ODROID XU4 Wi-Fi Module 3 Dropout

Moderators: odroid, mdrjr

ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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&hilit=wifi+drop#p61821) which I thought could have been the issue.

Has anyone experienced something similar and have a fix?
swansonkar98
 
Posts: 13
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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?
User avatar
odroid
Site Admin
 
Posts: 29098
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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 728 times
swansonkar98
 
Posts: 13
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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?
User avatar
odroid
Site Admin
 
Posts: 29098
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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 673 times


odroid-pingtest-2.PNG
odroid-pingtest-2.PNG (36.92 KiB) Viewed 673 times
swansonkar98
 
Posts: 13
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4

Re: ODROID XU4 Wi-Fi Module 3 Dropout

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

We will try it and update the test status by early next week.
User avatar
odroid
Site Admin
 
Posts: 29098
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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 10 times
joshua.yang
 
Posts: 108
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: English
ODROIDs: XU4, XU4Q + Cloudshell2

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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 10 times


Thanks again!
swansonkar98
 
Posts: 13
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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.
joshua.yang
 
Posts: 108
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: English
ODROIDs: XU4, XU4Q + Cloudshell2

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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.
swansonkar98
 
Posts: 13
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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?
User avatar
rooted
 
Posts: 5908
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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.
swansonkar98
 
Posts: 13
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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?
User avatar
rooted
 
Posts: 5908
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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: 13
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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.
swansonkar98
 
Posts: 13
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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.
User avatar
rooted
 
Posts: 5908
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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?
swansonkar98
 
Posts: 13
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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.
User avatar
rooted
 
Posts: 5908
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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: 13
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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
swansonkar98
 
Posts: 13
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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
rooted
 
Posts: 5908
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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
User avatar
odroid
Site Admin
 
Posts: 29098
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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: 13
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4

Re: ODROID XU4 Wi-Fi Module 3 Dropout

Unread postby 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
swansonkar98
 
Posts: 13
Joined: Tue Nov 27, 2018 4:15 am
languages_spoken: english
ODROIDs: Odroid XU4


Return to Issues

Who is online

Users browsing this forum: No registered users and 2 guests