Страница 1 из 1

Nut c USB упсом

Добавлено: 2014-12-09 16:44:50
andrian_freebsd
не подскажете в чем может быть проблема?

Код: Выделить всё

root@lvho01srfs03:/usr/home/andrian # /usr/local/etc/rc.d/nut start
Network UPS Tools - UPS driver controller 2.7.2
Network UPS Tools - BCMXCP UPS driver 0.28 (2.7.2)
USB communication subdriver 0.22
Communications with UPS lost: Error executing command
Could not communicate with the ups: Device busy
CLOSING

Driver failed to start (exit status=1)
/usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut
root@lvho01srfs03:/usr/home/andrian #

а если протестировать драйвер, тоже проблема Device busy, но выплевывает данные ...

Код: Выделить всё

root@lvho01srfs03:/usr/home/andrian # /usr/local/libexec/nut/bcmxcp_usb -DD -u root -a pw9125
Network UPS Tools - BCMXCP UPS driver 0.28 (2.7.2)
USB communication subdriver 0.22
   0.000000     debug level is '2'
   0.002060     entering nutusb_open()
   0.003823     device /dev/ugen3.2 opened successfully
   0.008783     entering get_answer(31)
   0.055815     get_answer: (16 bytes) => 5c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
   0.055840     get_answer: wrong header
   0.058786     entering get_answer(31)
   0.087801     get_answer: (8 bytes) => 00 51 00 00 51 00 00 51
   0.087822     get_answer: wrong header
   0.090784     entering get_answer(31)
   0.119822     get_answer: (8 bytes) => 00 00 51 51 00 00 51 00
   0.119850     get_answer: wrong header
   0.122797     entering get_answer(31)
   0.151816     get_answer: (8 bytes) => 00 00 00 00 00 00 00 00
   0.151843     get_answer: wrong header
   0.154796     entering get_answer(31)
   0.185261     get_answer: (8 bytes) => 00 00 00 51 ec ab 01 2e
   0.185321     get_answer: wrong header
   0.185339     Communications with UPS lost: Error executing command
   0.185581     Could not communicate with the ups: Device busy
   0.185634     CLOSING

root@lvho01srfs03:/usr/home/andrian #
куда копать?

Nut c USB упсом

Добавлено: 2015-02-06 8:27:49
Alex Keda
Дебажить....
Может, какая "force" есть опция?

Nut c USB упсом

Добавлено: 2015-02-08 21:18:17
andrian_freebsd
что за "force" опция чего - я не понял?