Имеем:
FreeBSD 8.1-i386
Nut nut-2.4.1_6
Ippon Smart Power 2000 подключенный по USB
Конфиги:ups.conf
Код: Выделить всё
[ippon]
driver = megatec_usb
port = auto
battvolts = 53:39
vendorid = 06DA
productid = 0003
ondelay=5
offdelay=2
subdriver = phoenix
mfr = "Ippon"
model = "Smart Winner"
desc = "Web server"
Код: Выделить всё
[root@nagainos /usr/local/libexec/nut]# ./megatec_usb -DD -a ippon
Network UPS Tools - Megatec protocol driver 1.6 (2.4.1)
Serial-over-USB transport layer 0.10
debug level is '2'
Checking device (06DA/0003) (/dev/usb//dev/ugen0.2)
- VendorID: 06da
- ProductID: 0003
- Manufacturer: OMRON
- Product: USB UPS
- Serial Number: unknown
- Bus: /dev/usb
Trying to match device
Device matches
DTR=1, RTS=0
Starting UPS detection process...
Asking for UPS information [I]...
I => FAILED [short read]
Asking for UPS status [Q1]...
Q1 => FAILED [short read]
Asking for UPS status [Q1]...
Q1 => FAILED [short read]
Asking for UPS status [Q1]...
Q1 => FAILED [short read]
Asking for UPS status [Q1]...
Q1 => FAILED [short read]
Asking for UPS status [Q1]...
Q1 => FAILED [short read]
5 out of 5 detection attempts failed (minimum failures: 2).
Megatec protocol UPS not detected.
Код: Выделить всё
[root@nagainos /usr/local/libexec/nut]# ./megatec_usb -DD -a ippon
Network UPS Tools - Megatec protocol driver 1.6 (2.4.1)
Serial-over-USB transport layer 0.10
debug level is '2'
Checking device (06DA/0003) (/dev/usb//dev/ugen0.2)
- VendorID: 06da
- ProductID: 0003
- Manufacturer: OMRON
- Product: USB UPS
- Serial Number: unknown
- Bus: /dev/usb
Trying to match device
Device matches
DTR=1, RTS=0
Starting UPS detection process...
Asking for UPS information [I]...
^C^C^C^C^CI => FAILED [short read]
Asking for UPS status [Q1]...
^C^C^C^C^CQ1 => FAILED [short read]
Asking for UPS status [Q1]...
^C^C^C^C^C^C^C^C^CQ1 => OK [(233.8 200.8 233.8 009 50.0 53.1 57.6 00001000]
Q1 VALUES => [233.8 200.8 233.8 9.0 50.0 53.1 57.6 00001000]
Asking for UPS status [Q1]...
^C^C^C^C^C^C^C^C^CQ1 => OK [(233.8 233.8 233.8 009 50.0 53.1 57.6 00001000]
Q1 VALUES => [233.8 233.8 233.8 9.0 50.0 53.1 57.6 00001000]
Asking for UPS status [Q1]...
^C^C^C^C^C^C^C^C^C^CQ1 => FAILED [short read]
Asking for UPS status [Q1]...
^C^C^C^C^C^C^C^CQ1 => OK [(231.7 231.7 231.7 009 50.0 53.1 57.4 00001000]
Q1 VALUES => [231.7 231.7 231.7 9.0 50.0 53.1 57.4 00001000]
2 out of 5 detection attempts failed (minimum failures: 2).
Cancelling any pending shutdown or battery test.
Asking for UPS information [I]...
^CI => FAILED [short read]
Megatec protocol UPS detected.
Parameter [ignoreoff]: [false]
Asking for UPS power ratings [F]...
^C^C^CF => OK [#240.0 008 048.0 50.0]
F VALUES => [240.0 8.0 48.0 50.0]
48.0V battery, interval [40.0V, 54.6V].
Parameter [battvolts]: [53:39]
Overriding battery voltage interval [53.0V, 39.0V].
Done setting up the UPS.
Asking for UPS status [Q1]...
^C^C^CQ1 => FAILED [short read]
Poll failure [1].
dstate_init: sock /var/db/nut/megatec_usb-ippon open on fd 6