Unstable USB/WIFI

Post Reply
BadPritt
Posts: 159
Joined: Wed Jan 17, 2018 4:08 am
languages_spoken: english dutch french spanish german
ODROIDs: Odroid C2
Odroid XU4Q
Has thanked: 17 times
Been thanked: 17 times
Contact:

Unstable USB/WIFI

Unread post by BadPritt » Wed Apr 24, 2019 7:30 am

Hi all.
When using many peripherals on USB at once I sometimes experience issue's.

1. Interference USB3 - 2.4Ghz wifi.
One example is when I plug my SSD->USB3 in. My wireless mouse starts to lag, and has moments of a full second it doesn't work. This both in Stretch and Ubuntu.

2. USB controller crashing
I've had is that all USB ports suddenly stop working. The desktop still shows movements(cpufrequency monitor, temperature monitor). But I can't get mouse or keyboard to work. Even replugging everything doesn't help.
Only thing I can do then is pull the plug. I've just had it with Stretch, I've had it with Ubuntu too.
I think something happens with the USB controller what makes it stop working.

3. Wifi dongle suddenly stops working.
I don't think is related. But I'm not sure.
I use a usb hub for my wifi dongle (can't get a good connection without). This wifi dongle often stops working, and I need to replug it. There's no light on it anymore on the dongle then, while the usb hub is still powered. I've plugged my keyboard next to my wifi to see if that also suddenly stops working. I haven't had this happen yet.

The voltage on the USB ports is always stable. It doesn't budge a bit when all cores are maxed. When I plug my ssd in it only changes 0.03V. So that's nothing. It's not the voltage that's causing these things.
Anyone else had these problems? Anyone an idea what's happening. It's hard to check logs when keyboard/mouse ain't working. Now it's still rendering normal, but no USB device works anymore.
Cheers, NicoD
Last edited by BadPritt on Wed Apr 24, 2019 9:57 am, edited 1 time in total.

User avatar
tobetter
Posts: 3791
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 29 times
Been thanked: 130 times
Contact:

Re: Unstable USB/WIFI

Unread post by tobetter » Wed Apr 24, 2019 8:45 am

I've found the articles about the interference issue of USB 3.0 to 2.4GHz devices.
https://superuser.com/questions/1282590 ... hz-devices

There are many articles and explainations and I am also new to this issue, I am planning to test today if it does.

xabolcs
Posts: 47
Joined: Fri Jun 22, 2018 6:37 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 60 times
Been thanked: 1 time
Contact:

Re: Unstable USB/WIFI

Unread post by xabolcs » Wed Apr 24, 2019 9:35 am

BadPritt wrote:
Wed Apr 24, 2019 7:30 am
...

One example is when I plug my SSD->USB3 in. My wireless mouse starts to lag, and has moments of a full second it doesn't work. This both in Stretch and Ubuntu.

...

I also confirm, that USB 3.0 interference with 2.4GHz devices! Just like the 2.4G Wifi, or my Logitech Unifying keyboard or mice.

If I run an iperf test on my laptop on the 2.4G Wifi my mice and keyboard does lag.
If I connect an SSD to my laptop's USB 3.0 and do throughput test (e.g. with f3) then my keyboard and mice does lag also.
If I connect a noname USB 3.0 hub (with USB 2.0 devices) to my USB 3.0 enabled dualband router, it kills the 2.4G Wifi.

:(

BadPritt
Posts: 159
Joined: Wed Jan 17, 2018 4:08 am
languages_spoken: english dutch french spanish german
ODROIDs: Odroid C2
Odroid XU4Q
Has thanked: 17 times
Been thanked: 17 times
Contact:

Re: Unstable USB/WIFI

Unread post by BadPritt » Wed Apr 24, 2019 9:54 am

Interesting.
I've had this problem with the rock64 also. It also doesn't have on-board wifi, and has USB3. When wifi is plugged in or near the USB3 it can't receive my wifi router.
Here again the same on the N2. No problem when using a long enough usb cable. I'll try with a long cable instead of a usb hub tomorrow with wifi to see if that makes it more stable. It's not that bad.

I do not think problem 2, the crashing of the usb hub is related to that interference. I think I've always noticed a short block of everything for a few seconds. Then everything works again, except usb. I then immediatly get the message that wifi is disabled.
Maybe again a kernel setting? USB controller isn't restarting after some sort slowdown/crash. I'll try more tomorrow. It doesn't happen much, so hard to debug. I'll install vnc. So when my usb stops working I can still access everything with my pc.
I've let it run for 1 hour without usb devices. Plugged them all out and replugged, plugged another keyboard, ... The USB controller was dead. But my render kept on going. No use in letting it finish since it doesn't save the result automatically.

I'll check the kernel settings again tomorrow. But there's probably hundreds of entrys about usb...
I'll try the armbian 5.1 kernel and see if anything like this happens.
I only had it about 5 times in 2 weeks.
Greetings, NicoD

User avatar
tobetter
Posts: 3791
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 29 times
Been thanked: 130 times
Contact:

Re: Unstable USB/WIFI

Unread post by tobetter » Wed Apr 24, 2019 10:12 am

@BadPritt, I also don't think issue #2 is relevant to USB 3.0 interference problem. Just wondering if USB storage is attached when the issue happens. There is a trick to reset on-board USB hub, let me share you the command when I reach to my office...not able to find it on my mobile.

"Tapatalk wishes you to have fun with ODROID"


User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: Unstable USB/WIFI

Unread post by mad_ady » Wed Apr 24, 2019 2:42 pm

@BadPritt: there's also a microusb connector on the board going to a different usb controller - you can plug an otg adapter and your unifying adapter and regain control.
Regsrding interference - I think the unifying dongle uses a narrow band somwere around wifi channel 9 and doesn't use frequency hopping like bluetooth to minimize interference. Try moving your wifi to channel 1 so that the spectrum doesn't overlap. Also consider switching to 5GHz (you can set up an ap on a wired odroid if your router doesn't support it). 2.4 is crap in urban areas.
These users thanked the author mad_ady for the post:
tobetter (Wed Apr 24, 2019 2:45 pm)

BadPritt
Posts: 159
Joined: Wed Jan 17, 2018 4:08 am
languages_spoken: english dutch french spanish german
ODROIDs: Odroid C2
Odroid XU4Q
Has thanked: 17 times
Been thanked: 17 times
Contact:

Re: Unstable USB/WIFI

Unread post by BadPritt » Thu Apr 25, 2019 1:47 am

mad_ady wrote:
Wed Apr 24, 2019 2:42 pm
@BadPritt: there's also a microusb connector on the board going to a different usb controller - you can plug an otg adapter and your unifying adapter and regain control.
I let it run the whole afternoon while rendering. After 5hours it happened again. Suddenly everything stopped working for about 30 seconds, then it started to work normal again, but without USB.
I've tried with the microUSB and OTG cable. It also doesn't work. My idea of using vnc wasn't too bright. I'm using wifi, so that's not going to work.

I've now tried to connect via my NanoPi M4 with UART. But I'm not getting a response. It doesn't tell me there's no connection.

I've used baud rate 115200. Is this correct for the N2? I don't want to reboot it now since it took more than 5 hours to get this far.

User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: Unstable USB/WIFI

Unread post by mad_ady » Thu Apr 25, 2019 1:54 am

115200 is fine. Is thee connection 3.3V? How are you connecting? Via a usb uart? Hardkernel's or other? Or directly wires to your nanopi gpio?

BadPritt
Posts: 159
Joined: Wed Jan 17, 2018 4:08 am
languages_spoken: english dutch french spanish german
ODROIDs: Odroid C2
Odroid XU4Q
Has thanked: 17 times
Been thanked: 17 times
Contact:

Re: Unstable USB/WIFI

Unread post by BadPritt » Thu Apr 25, 2019 2:43 am

mad_ady wrote:
Thu Apr 25, 2019 1:54 am
115200 is fine. Is thee connection 3.3V? How are you connecting? Via a usb uart? Hardkernel's or other? Or directly wires to your nanopi gpio?
I'm using an uart cable with the correct plug for the N2.
https://www.friendlyarm.com/index.php?r ... uct_id=178
It's got a button to disable the voltage what I did. The NanoPi finds ttyUSB0, I don't know if that's just the controller or the N2.
I'm trying to connect to /dev/ttyUSB0 with baud rate of 115200.
Could be uart is also disabled with usb, I'll see when I reboot the N2.

BadPritt
Posts: 159
Joined: Wed Jan 17, 2018 4:08 am
languages_spoken: english dutch french spanish german
ODROIDs: Odroid C2
Odroid XU4Q
Has thanked: 17 times
Been thanked: 17 times
Contact:

Re: Unstable USB/WIFI

Unread post by BadPritt » Thu Apr 25, 2019 3:11 am

I'm using Meveric's Stretch.
I've just reboot the N2 and still don't see anything on uart.

User avatar
tobetter
Posts: 3791
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 29 times
Been thanked: 130 times
Contact:

Re: Unstable USB/WIFI

Unread post by tobetter » Thu Apr 25, 2019 3:16 am

BadPritt wrote:
Thu Apr 25, 2019 3:11 am
I'm using Meveric's Stretch.
I've just reboot the N2 and still don't see anything on uart.
Are you able to see /dev/ttyUSB* for ODROID-N2?
Did you set the serial protocol as 115200bps and no flow control?
Do you see LED is blink on the USB-to-SERAIL debug board whenever you press a key?

User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: Unstable USB/WIFI

Unread post by mad_ady » Thu Apr 25, 2019 3:18 am

If you got the uart recently check its temperature. There were some recent problems with some of them overheating

BadPritt
Posts: 159
Joined: Wed Jan 17, 2018 4:08 am
languages_spoken: english dutch french spanish german
ODROIDs: Odroid C2
Odroid XU4Q
Has thanked: 17 times
Been thanked: 17 times
Contact:

Re: Unstable USB/WIFI

Unread post by BadPritt » Thu Apr 25, 2019 3:28 am

I've got another uart connector with 3.3V.
I'm just not sure about the direction of the pins.
_____UART____
|Pin 4 - GND|
|Pin 3 - RXD|
|Pin 2 - TXD|
|Pin 1 - VCC|
\___________|

Am i right to say the one on the left(with the ethernet facing to the left) is vcc, en the right is ground?

The led didn't blink on the other uart cable, it was on.

User avatar
tobetter
Posts: 3791
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 29 times
Been thanked: 130 times
Contact:

Re: Unstable USB/WIFI

Unread post by tobetter » Thu Apr 25, 2019 3:37 am

BadPritt wrote:
Thu Apr 25, 2019 3:28 am
I've got another uart connector with 3.3V.
I'm just not sure about the direction of the pins.
_____UART____
|Pin 4 - GND|
|Pin 3 - RXD|
|Pin 2 - TXD|
|Pin 1 - VCC|
\___________|

Am i right to say the one on the left(with the ethernet facing to the left) is vcc, en the right is ground?

The led didn't blink on the other uart cable, it was on.
The right way to connect the UART board.
IMG_20190425_0333183.jpg
IMG_20190425_0333183.jpg (306.42 KiB) Viewed 1211 times
RED - VCC
BLUE - TXD
GREEN - RXD
BLACK - GND

BadPritt
Posts: 159
Joined: Wed Jan 17, 2018 4:08 am
languages_spoken: english dutch french spanish german
ODROIDs: Odroid C2
Odroid XU4Q
Has thanked: 17 times
Been thanked: 17 times
Contact:

Re: Unstable USB/WIFI

Unread post by BadPritt » Thu Apr 25, 2019 4:22 am

Here with my 3.3V uart.
I've got to use the cable in the other way, but connected the right way. Black is vcc here. The colored cable on the right is ground here.(colorblind...)
uart test.jpg
uart test.jpg (659.09 KiB) Viewed 1208 times
Still not getting anything.

I'm just seeing that next to my ground is rtx and next to vcc(3.3V) is txd.

If I'm remembering right txd needs to go into rxd, and my rtx into txd.
The one from friendlyElec has TX, RX, 5V, GND.
So that's also not correct. I can't use jumber wires in that connector. That s*cks...
I should have other ttl connectors. I'll have a search. I only got one cable with this connector, otherwise I'd change the wires. But I need this one for the NanoPi DUO2.

BadPritt
Posts: 159
Joined: Wed Jan 17, 2018 4:08 am
languages_spoken: english dutch french spanish german
ODROIDs: Odroid C2
Odroid XU4Q
Has thanked: 17 times
Been thanked: 17 times
Contact:

Re: Unstable USB/WIFI

Unread post by BadPritt » Fri Apr 26, 2019 4:01 am

Update.
I gave up on uart. Now connected the N2 to my router with ethernet cable, and using x11vncserver to cast my desktop on my pc.
I've got the usual USB devices connected. 2 keyboards, a mouce, my ssd, a usb hub, ... Now the waiting game is on for it to happen.

If ethernet doesn't quit when USB is dead, then I'll still be able to debug with my pc. (let's hope)

For problem No1: I can confirm there's no/less interference on the OTG uUSB port. I've been testing with multiple keyboards. With my ssd connected to USB3 and keyboard wifi dongles also in a neighbouring USB3 port they hardly work. With the keyboards in a USB hub, and hub in USB3 it's better. But not great.
When using the OTG port for keyboard/wifi, I do not notice issues. So I'll connect my hub to OTG in the and use that for mouse/keyboard/2.4Ghz wifi dongles in the future.

I'll keep you all posted when I've got news. Cheers.

User avatar
meveric
Posts: 10402
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 121 times
Contact:

Re: Unstable USB/WIFI

Unread post by meveric » Fri Apr 26, 2019 4:16 am

the UART on the ODROIDs are 1.8V if I remember correctly, not 3.3V not sure if that can be an issue, as the description says 1.8~3.3V
https://www.hardkernel.com/shop/usb-uart-module-kit/
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
tobetter
Posts: 3791
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 29 times
Been thanked: 130 times
Contact:

Re: Unstable USB/WIFI

Unread post by tobetter » Fri Apr 26, 2019 4:51 am

meveric wrote:
Fri Apr 26, 2019 4:16 am
the UART on the ODROIDs are 1.8V if I remember correctly, not 3.3V not sure if that can be an issue, as the description says 1.8~3.3V
https://www.hardkernel.com/shop/usb-uart-module-kit/
The voltage of the UART signal on ODROID-XU4/HC1/HC2 is 1.8V, while ODROID-C0/1/2/N2 is 3.3V.
The chipset on USB-to-SERIAL debug board, CP2104, can operate from 1.8~3.3V as the description.

BadPritt
Posts: 159
Joined: Wed Jan 17, 2018 4:08 am
languages_spoken: english dutch french spanish german
ODROIDs: Odroid C2
Odroid XU4Q
Has thanked: 17 times
Been thanked: 17 times
Contact:

Re: Unstable USB/WIFI

Unread post by BadPritt » Fri Apr 26, 2019 6:34 am

I'll order an Odroid uart. I didn't know there was so much variation in them.
I've used UART on multiple boards. But I could always use jumper wires to connect it the way it needs to be.
I've just checked the datasheet of the Odroid one. The 2 middle pins are reversed with my Pine64 uart. The friendlyElec one has ground and vcc next to each other.
This is a point where more conformity between different SBC makers would be good. Just a matter of choosing the same pinout for uart. They all follow rpi's 40-pin header...
Or using a normal pin-header wouldn't have given any problem either.
I learn every day, and that's what I like about it.
Cheers.

Edit
I'm stupid, I can still use jumper wires to reverse the pins from the conector to the cable :) I'm not using my head too well.

BadPritt
Posts: 159
Joined: Wed Jan 17, 2018 4:08 am
languages_spoken: english dutch french spanish german
ODROIDs: Odroid C2
Odroid XU4Q
Has thanked: 17 times
Been thanked: 17 times
Contact:

Re: Unstable USB/WIFI

Unread post by BadPritt » Fri Apr 26, 2019 9:48 pm

This morning the desktop and all running applications had crashed, but USB is still working.
I did get +100 times this error: Here's just a few of them.

Code: Select all

[15504.536893] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x0500 with error -110
[15504.652948] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x0500 with error -110
[15504.768964] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x7010 with error -110
[15504.884959] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x7010 with error -110
[15505.000859] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x0404 with error -110
[15505.116859] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x0500 with error -110
[15505.232854] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x0500 with error -110
[15505.348844] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x0500 with error -110
[15505.464819] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x0500 with error -110

At the end of that error list there`s this:

Code: Select all

[15521.831876] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x101c with error -110
[15521.947830] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x132c with error -110
[15522.063849] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x132c with error -110
[15522.115087] ieee80211 phy1: rt2800usb_tx_sta_fifo_read_completed: Warning - TX status read failed -71
[15522.173016] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x1328 with error -110
[15522.264497] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x101c with error -19
[15522.264516] usb 1-1.2.1: USB disconnect, device number 9
[57154.432051] hdmitx: system: irq 80000004
[57154.481972] hdmitx: system: plugout
[57154.482019] hdmitx: system: clear RX hdr info
[57154.484681] hdmitx: system: update physcial size: 16 9
[57154.795750] hdmitx: system: irq 80000002
[57155.301921] hdmitx: system: plugin
[57155.478021] hdmitx: edid: EDID Parser:
[57155.478052] hdmitx: edid: PLUGIN_DVI_OUT
[57155.480551] hdmitx: edid: EDID BlockCount=0
[57155.484822] hdmitx: edid: set default vic
[57155.488945] hdmitx: edid: edid blk0 checksum:224 ext_flag:0
[57155.494726] hdmitx: edid: check sum invalid
[57155.498964] hdmitx: edid: blk0 raw data
[57155.502958] hdmitx: edid: 
               000000000000003e000000000000003e000000000000003e000000000000003e
               000000000000003e000000000000003e000000000000003e000000000000003e
               000000000000003e000000000000003e000000000000003e000000000000003e
               000000000000003e000000000000003e000000000000003e000000000000003e
I`m not sure if this is the same issue but having another sympton. But it for sure has something to do with USB.

I'll keep working until the usb devices crash again.
Cheers

BadPritt
Posts: 159
Joined: Wed Jan 17, 2018 4:08 am
languages_spoken: english dutch french spanish german
ODROIDs: Odroid C2
Odroid XU4Q
Has thanked: 17 times
Been thanked: 17 times
Contact:

Re: Unstable USB/WIFI

Unread post by BadPritt » Wed May 01, 2019 10:59 pm

Fix for problem no 1 : Use the OTG port for all 2.4Ghz wifi modules(on a USB hub)
Fix for problem no 2 : Use the OTG port for all 2.4Ghz wifi modules(on a USB hub)
Fix for problem no 3 : Use the OTG port for all 2.4Ghz wifi modules(on a USB hub)

I've been working for 4 days like that and haven't had any issue. Yesterday I thought to try it again connecting it all to USB3 and immediatly started to have problems again.
It's not yet solved, but it is fixed. Greetings all.

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 0 guests