Hi. I have BPI-R3 and UPS connected to it via usb. But sometimes ups begins constantly reconnect.
Tue Jan 31 07:19:57 2023 kern.info kernel: [71460.122576] usb 1-2: USB disconnect, device number 49
Tue Jan 31 07:19:59 2023 daemon.notice upsd: Data for UPS [UPS] is stale - check driver
Tue Jan 31 07:20:01 2023 kern.info kernel: [71464.378390] usb 1-2: new low-speed USB device number 50 using xhci-mtk
Tue Jan 31 07:20:04 2023 daemon.notice upsd: UPS [UPS] data is no longer stale
Tue Jan 31 07:20:17 2023 kern.info kernel: [71480.160605] usb 1-2: USB disconnect, device number 50
Tue Jan 31 07:20:19 2023 daemon.notice upsd: Data for UPS [UPS] is stale - check driver
Tue Jan 31 07:20:21 2023 kern.info kernel: [71484.418258] usb 1-2: new low-speed USB device number 51 using xhci-mtk
Tue Jan 31 07:20:24 2023 daemon.notice upsd: UPS [UPS] data is no longer stale
How can I resolve this issue?
please confirm if UPS device need more power.
Not sure but I just lost my RNDIS device too. LSUSB showed no devices, reboot fixed the problem.
Something is weird. dmesg just shows nothing when reconnecting the device.
I think, UPS needs 100mA only?
I had something similar on R64. I used a usb3 hub, but only with a usb2 device on the hub, no usb3 devices. The problem went away when there was also at least 1 usb3 device on the hub.
Maybe this is similar.
How often do these reconnects happen? (X minutes/hours/days after plugging/bootup)
Every day. Every 15-22 hours.
I found this topic with similar issue: Link
But I can not found /etc/udev/ directory on my router. Maybe there is another directory with similar functionality on OpenWRT?
UPS keeps disconnecting once or twice per day. Pollinterval and similar options in NUT have no effect. It seems, usb port just “hangs”.
UPS works after usbreset command or manual reconnecting USB cable.