On 09.05.2021 21:51, Hans Petter Selasky wrote:
Could you do:
usbdump -i usbusX -f Y -s 65536 -vvv
Where X.Y are the numbers after ugen for this device. Are you certain that NUT
only execute exactly the same commands like the windows tool for this UPS? Does
apcupsd work for this device too? I've never used NUT myself.
Ok, results are encouraging:
If NUT's (user-mode) driver starts fast enough to detect UPS, UPS stops to
disconnect and works! After that, NUT could be stopped and/or restarted, but
UPS remains connected.
It is almost impossible to achieve with running NUT on startup (as UPS
flickering from system power-up and there is no guarantee, that startup scripts
will run in proper moment). Even `devd` could be not fast enough :-(
Traffic received with usbdump is here:
http://lev.serebryakov.spb.ru/_sklad/ups/ups-freebsd-with-nut-no-flickr-usbdump.txt
Looks like, I need small kernel-level driver which "prime" HID UPSes on
connect with pre-canned requests to stop them from disconnect.
--
// Lev Serebryakov
_______________________________________________
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"