USB device constantly reconnects on BPI-R3

Hi. I have BPI-R3 and UPS connected to it via usb. But sometimes ups begins constantly reconnect.

Log:

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[2723]: 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[2723]: 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[2723]: 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[2723]: UPS [UPS] data is no longer stale

How can I resolve this issue?

please confirm if UPS device need more power.

  1. Will this happen when other USB devices are connected? Such as U disk.
  2. The USB3.0 socket of R3 can only provide a maximum current of 1400mA, please confirm the power consumption of your UPS

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? simple_editor_20230201_093236

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”.

Edit. UPS works after usbreset command or manual reconnecting USB cable.