Skip to content

Troubleshooting eventual disconnections (Data stale)

Jim Klimov edited this page Aug 31, 2023 · 9 revisions

There are numerous reports in the issue tracker, mailing list, and internet discussions about various vendors' USB devices losing connection over time. CyberPower (CPS) brand is mentioned maybe more often that others, but is certainly not alone.

Discussions at:

...and countless others suggest that certain controllers may disconnect (often via USB reset) if there was no interaction for more than some time, e.g. 20 sec, while others may be overwhelmed by interactions too frequent and intense, causing the UPS controller to stall or reboot.

Such situations may need to balance pollinterval (for usbhid-ups; see manpages about equivalent settings for other drivers where available) to be frequent enough to keep the connection alive with their model, and modest enough to not outstay the welcome.

There was some work in the lead-up to NUT v2.8.0 release and/or soon after it, which should have improved the drivers' own ability to detect a connection loss/freeze and try to reconnect, e.g. PR #1335, PR #1430, PR #1632, and possibly others.

Also note that on some platforms it is possible to programmatically command the USB hardware (hubs, ports) to reset.

Clone this wiki locally