Usb disconnects randomly

Hello everyone,

When I send my USB over WiFi and I launch a software to establish communication between this software and the USB, it disconnects randomly only when I start it up.
It's a USB B female connector on my electronic board, but when I send a USB C female connector with roughly the same board, it works. Could the problem come from there?

Thanks.

#2

Sounds like a power supply problem to me. Put a powered usb hub between your device and the server.

#3
#4

What device are you using to run virtualhere server?

#6

can you follow syslog and post the results here when the device drops

sudo tail -f /var/log/syslog

(or sudo journalctl -f)


Can you post the results here

#7

Apr 11 08:24:57 pi0 kernel: dwc2 20980000.usb: Not connected
Apr 11 08:24:57 pi0 kernel: usb 1-1: usbfs: usb_submit_urb returned -19
Apr 11 08:24:57 pi0 kernel: dwc2 20980000.usb: Not connected
Apr 11 08:24:57 pi0 kernel: usb 1-1: usbfs: usb_submit_urb returned -19
Apr 11 08:24:57 pi0 kernel: dwc2 20980000.usb: Not connected
Apr 11 08:24:57 pi0 kernel: usb 1-1: usbfs: usb_submit_urb returned -19
Apr 11 08:24:57 pi0 kernel: dwc2 20980000.usb: Not connected
Apr 11 08:24:57 pi0 kernel: dwc2 20980000.usb: Not connected
Apr 11 08:24:57 pi0 kernel: dwc2 20980000.usb: Not connected
Apr 11 08:24:57 pi0 kernel: usb 1-1: reset full-speed USB device number 2 using dwc2
Apr 11 08:25:02 pi0 kernel: usb 1-1: device descriptor read/all, error -110
Apr 11 08:25:06 pi0 vhusbdarm.1[366]: Device 11 [0483:5000] SURPRISE UNBOUND from connection 1
Apr 11 08:25:06 pi0 kernel: usb 1-1: USB disconnect, device number 2
Apr 11 08:25:06 pi0 vhusbdarm.1[366]: Unmanaging device 11 [0483:5000]
Apr 11 08:25:09 pi0 kernel: usb usb1-port1: attempt power cycle

#8

OK it seems like the firmware inside the "electronic board" you mention is crashing and the usb bus is disconnecting it because its stopped responding. It might be sensitive to latency. Perhaps your other board is not as sensitive to latency (e.g buffer underrun) so it works fine.

 

#9

i'm not usb expert so what is the thing or things i have to check then may be i have to modify ?

#10

There is nothing you can modify its the manufacturer which would need to investigate.

#12

You need to debug it yourself if you have the firmware source code.

Put HID outbound/inbound data into a queue before putting on the USB bus rather than just writing to the bus without a queue. That way you  wont lose data.

#14

No, its different

#16

I don't know,

#17

I tested it on macOS.
I encounter the same issue, but the USB reappears on macOS and not on Windows.