networkupstools / nut

The Network UPS Tools repository. UPS management protocol Informational RFC 9271 published by IETF at https://www.rfc-editor.org/info/rfc9271 Please star NUT on GitHub, this helps with sponsorships!
https://networkupstools.org/
Other
2.13k stars 355 forks source link

Numeric Digital 800 plus supported by blazer_usb #115

Closed JasperWallace closed 7 years ago

JasperWallace commented 10 years ago

Manufacturer: Numeric Model Digital 800 plus

They don't seem to have online docs anymore afaict.

upsc:

battery.charge: 23
battery.voltage: 11.00
battery.voltage.high: 13.00
battery.voltage.low: 10.40
battery.voltage.nominal: 12.0
device.type: ups
driver.name: blazer_usb
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.6.4
driver.version.internal: 0.08
input.current.nominal: 3.0
input.frequency: 50.1
input.frequency.nominal: 50
input.voltage: 248.8
input.voltage.fault: 248.8
input.voltage.nominal: 220
output.voltage: 211.8
ups.beeper.status: disabled
ups.delay.shutdown: 30
ups.delay.start: 180
ups.load: 3
ups.productid: 5161
ups.status: OL TRIM
ups.temperature: 25.0
ups.type: offline / line interactive
ups.vendorid: 0665

upscmd:

Instant commands supported on UPS [lobbyups]:

beeper.toggle - Toggle the UPS beeper
load.off - Turn off the load immediately
load.on - Turn on the load immediately
shutdown.return - Turn off the load and return when power is back
shutdown.stayoff - Turn off the load and remain off
shutdown.stop - Stop a shutdown in progress
test.battery.start - Start a battery test
test.battery.start.deep - Start a deep battery test
test.battery.start.quick - Start a quick battery test
test.battery.stop - Stop the battery test

beeper.toggle and test.battery.start don't seem to work, not tried any others.

Unfortunately it looks like this particular ups is fairly old and the batteries are dead, so no shutdown test (it lasts 2 seconds or so).

# /lib/nut/blazer_usb -a lobbyups -DDDD
Network UPS Tools - Megatec/Q1 protocol USB driver 0.08 (2.6.4)
   0.000000 debug level is '4'
   0.044295 Checking device (1D6B/0001) (002/001)
   0.045622 - VendorID: 1d6b
   0.046455 - ProductID: 0001
   0.047059 - Manufacturer: unknown
   0.047893 - Product: unknown
   0.048593 - Serial Number: unknown
   0.049101 - Bus: 002
   0.049583 Trying to match device
   0.050296 Device does not match - skipping
   0.050463 Checking device (0665/5161) (001/002)
   0.087592 - VendorID: 0665
   0.088191 - ProductID: 5161
   0.088301 - Manufacturer: INNO TECH
   0.088595 - Product: USB to Serial
   0.088705 - Serial Number: 20100826
   0.088802 - Bus: 001
   0.089194 Trying to match device
   0.089317 Device matches
   0.092755 Trying megatec protocol...
   0.096592 send: Q1
   0.335512 read: (247.0 246.6 210.0 002 50.1 10.8 25.0 00101001
   0.337034 Status read in 1 tries
   0.338072 Supported UPS detected with megatec protocol
   0.342505 send: F
   0.495454 read: #220.0 003 12.00 50.0
   0.496595 Ratings read in 1 tries
   0.500454 send: I
   1.504122 read: error sending control message: Operation not permitted
   1.505152 blazer_vendor: short reply
   1.505885 Vendor information read 1 failed
   1.510090 send: I
   2.512744 read: error sending control message: Operation not permitted
   2.513765 blazer_vendor: short reply
   2.514505 Vendor information read 2 failed
   2.518735 send: I
   3.522375 read: error sending control message: Operation not permitted
   3.523355 blazer_vendor: short reply
   3.524158 Vendor information read 3 failed
   3.524808 Vendor information unavailable
   3.525548 No values provided for battery high/low voltages in ups.conf

   3.526281 Using 'guestimation' (low: 10.400000, high: 13.000000)!
   3.526805 Battery runtime will not be calculated (runtimecal not set)
   3.531411 send: Q1
   3.790246 read: (246.6 246.6 210.0 002 50.1 10.8 25.0 00101001
   3.791766 dstate_init: sock /var/run/nut/blazer_usb-lobbyups open on fd 5
   3.796394 send: Q1
   4.046193 read: (247.0 247.0 210.0 002 50.1 10.8 25.0 00101001
   5.798571 send: Q1
   6.061488 read: (246.6 246.6 210.0 002 50.1 10.8 25.0 00101001
   7.799858 send: Q1
   8.044768 read: (246.6 246.6 210.3 003 50.1 11.0 25.0 00101001
   9.802159 send: Q1
  10.060059 read: (246.6 246.6 210.0 002 50.1 10.8 25.0 00101001
  11.803463 send: Q1
  12.043421 read: (247.0 247.0 210.3 002 50.1 10.8 25.0 00101001
  13.804768 send: Q1
  14.058675 read: (246.6 247.0 210.0 002 50.1 11.0 25.0 00101001
  15.806065 send: Q1
  16.041987 read: (247.0 246.6 210.0 002 50.1 10.8 25.0 00101001
  17.808384 send: Q1
  18.057292 read: (246.6 246.6 210.0 002 50.1 10.8 25.0 00101001
  19.809695 send: Q1
  20.072601 read: (247.0 247.0 210.3 002 50.1 11.0 25.0 00101001
  21.812008 send: Q1
  22.055924 read: (247.0 246.6 210.0 002 50.1 10.8 25.0 00101001
  23.813327 send: Q1
  24.071238 read: (247.0 246.6 210.0 002 50.1 10.8 25.0 00101001
  25.815647 send: Q1
  26.054580 read: (246.6 246.6 210.0 003 50.1 11.0 25.0 00101001
  27.816975 send: Q1
  28.069881 read: (246.6 247.0 210.0 002 50.1 10.8 25.0 00101001
  29.819299 send: Q1
  30.053216 read: (246.6 246.6 210.3 002 50.1 10.8 25.0 00101001
  31.820624 send: Q1
  32.068561 read: (246.6 247.0 210.3 002 50.1 11.0 25.0 00101001
  33.822964 send: Q1
  34.083883 read: (246.6 246.6 210.0 002 50.1 10.8 25.0 00101001
  35.824300 send: Q1
  36.067233 read: (247.0 246.6 210.0 002 50.1 10.8 25.0 00101001
  37.826633 send: Q1
  38.082550 read: (247.0 247.0 210.3 002 50.1 11.0 25.0 00101001
  39.827982 send: Q1
  40.065881 read: (247.0 247.0 210.0 002 50.1 10.8 25.0 00101001
clepple commented 10 years ago

@JasperWallace, thanks for submitting this! If you get a chance, could you please test this with NUT 2.7.1 (or the Git master branch) and see if this UPS works with the nutdrvqx driver? That driver will eventually supersede the blazer* drivers.

aquette commented 10 years ago

@JasperWallace : have you been able to test using nutdrv_qx, as pointed by @clepple ? thx

JasperWallace commented 10 years ago

I havn't yet, will try building it now.

JasperWallace commented 10 years ago

Using the latest source on the master branch,

Running ./nutdrv_qx -DDDD -a test with: [test] driver = nutdrv_qx port = auto

in /usr/local/ups/etc/ups.conf

I get: 0.000000 debug level is '4' 0.008688 upsdrv_initups... 0.055926 Checking device (1D6B/0001) (002/001) 0.057347 - VendorID: 1d6b 0.058223 - ProductID: 0001 0.058838 - Manufacturer: unknown 0.059446 - Product: unknown 0.066162 - Serial Number: unknown 0.066780 - Bus: 002 0.067234 Trying to match device 0.067708 Device does not match - skipping 0.068244 Checking device (0403/6001) (001/052) 0.068908 - VendorID: 0403 0.069427 - ProductID: 6001 0.069972 - Manufacturer: unknown 0.070333 - Product: unknown 0.070681 - Serial Number: unknown 0.070886 - Bus: 001 0.071227 Trying to match device 0.071464 Device does not match - skipping 0.071695 Checking device (2341/0043) (001/051) 0.072222 - VendorID: 2341 0.072653 - ProductID: 0043 0.072990 - Manufacturer: unknown 0.073193 - Product: unknown 0.073548 - Serial Number: unknown 0.073835 - Bus: 001 0.074200 Trying to match device 0.074445 Device does not match - skipping 0.074673 Checking device (05E3/0608) (001/050) 0.075087 - VendorID: 05e3 0.075127 - ProductID: 0608 0.075152 - Manufacturer: unknown 0.075177 - Product: unknown 0.075202 - Serial Number: unknown 0.075227 - Bus: 001 0.075250 Trying to match device 0.075284 Device does not match - skipping 0.074673 Checking device (05E3/0608) (001/050) 0.075087 - VendorID: 05e3 0.075127 - ProductID: 0608 0.075152 - Manufacturer: unknown 0.075177 - Product: unknown 0.075202 - Serial Number: unknown 0.075227 - Bus: 001 0.075250 Trying to match device 0.075284 Device does not match - skipping 0.075330 Checking device (05E3/0608) (001/049) 0.075419 - VendorID: 05e3 0.075448 - ProductID: 0608 0.075473 - Manufacturer: unknown 0.075497 - Product: unknown 0.075522 - Serial Number: unknown 0.075546 - Bus: 001 0.075569 Trying to match device 0.075600 Device does not match - skipping 0.075637 Checking device (05E3/0608) (001/048) 0.075724 - VendorID: 05e3 0.075752 - ProductID: 0608 0.075777 - Manufacturer: unknown 0.075801 - Product: unknown 0.075826 - Serial Number: unknown 0.075850 - Bus: 001 0.075873 Trying to match device 0.075904 Device does not match - skipping 0.075941 Checking device (0665/5161) (001/003) 0.112451 - VendorID: 0665 0.112538 - ProductID: 5161 0.112563 - Manufacturer: INNO TECH 0.112588 - Product: USB to Serial 0.112613 - Serial Number: 20100826 0.112638 - Bus: 001 0.112661 Trying to match device 0.112700 Device matches 0.119452 send: QGS 1.121238 read: error sending control message: Operation not permitted (-110) 1.122440 qx_process_answer: short reply (input.voltage) 1.127218 send: QGS 1.200255 read: QGS 1.201225 qx_process_answer: short reply (input.voltage) 1.205184 send: QGS 1.264242 read: QGS 1.265063 qx_process_answer: short reply (input.voltage) 1.269169 send: M 1.328231 read: C 1.329241 voltronic_qs_protocol: invalid protocol [C] 1.330029 ups_infoval_set: failed to preprocess value [ups.firmware.aux: C] 1.334176 send: M 1.392228 read: C 1.393101 voltronic_qs_protocol: invalid protocol [C] 1.393803 ups_infoval_set: failed to preprocess value [ups.firmware.aux: C] 1.398166 send: M 1.456234 read: C 1.457153 voltronic_qs_protocol: invalid protocol [C] 1.457875 ups_infoval_set: failed to preprocess value [ups.firmware.aux: C] 1.462159 send: M 1.520206 read: C 1.521158 voltronic_qs_hex_protocol: invalid protocol [C] 1.521933 ups_infoval_set: failed to preprocess value [ups.firmware.aux: C] 1.526147 send: M 1.584195 read: C 1.585030 voltronic_qs_hex_protocol: invalid protocol [C] 1.585749 ups_infoval_set: failed to preprocess value [ups.firmware.aux: C] 1.590136 send: M 1.648181 read: C 1.649026 voltronic_qs_hex_protocol: invalid protocol [C] 1.649739 ups_infoval_set: failed to preprocess value [ups.firmware.aux: C] 1.654123 send: QS 1.712177 read: QS 1.713105 qx_process_answer: short reply (input.voltage) 1.717112 send: QS 1.776183 read: QS 1.777061 qx_process_answer: short reply (input.voltage) 1.781092 send: QS 1.840154 read: QS 1.840974 qx_process_answer: short reply (input.voltage) 1.846101 send: D 1.904151 read: D 1.905077 qx_process_answer: short reply (input.voltage) 1.909078 send: D 1.968154 read: D 1.969054 qx_process_answer: short reply (input.voltage) 1.973068 send: D 2.032135 read: D 2.032981 qx_process_answer: short reply (input.voltage) 2.037059 send: Q1 2.288060 read: (244.8 244.8 208.4 003 50.1 10.4 25.0 00101001 2.293024 send: QPI 2.352080 read: QPI 2.352917 qx_process_answer: ups.firmware.aux - invalid start character [51], expected [28] 2.357005 send: Q1 2.608011 read: (244.8 244.8 208.4 003 50.1 10.3 25.0 00101001 2.612975 send: QPI 2.672036 read: QPI 2.672869 qx_process_answer: ups.firmware.aux - invalid start character [51], expected [28] 2.676963 send: Q1 2.927966 read: (244.8 244.8 208.4 003 50.1 10.3 25.0 00101001 2.933123 send: QPI 2.991994 read: QPI 2.992864 qx_process_answer: ups.firmware.aux - invalid start character [51], expected [28] 2.996917 send: Q1 3.247920 read: (244.8 245.2 208.4 003 50.1 10.3 25.0 00101001 3.252880 send: I 4.255762 read: error sending control message: Operation not permitted (-110) 4.256824 qx_process_answer: short reply (ups.firmware) 4.260743 send: Q1 4.495734 read: (244.8 244.8 208.4 003 50.1 11.4 25.0 00101001 4.500695 send: I 5.503580 read: error sending control message: Operation not permitted (-110) 5.505750 qx_process_answer: short reply (ups.firmware) 5.509559 send: Q1 5.743601 read: (243.5 243.5 207.3 003 50.1 10.3 25.0 00101001 5.748512 send: I 6.751395 read: error sending control message: Operation not permitted (-110) 6.752430 qx_process_answer: short reply (ups.firmware) 6.756381 send: Q1 6.991368 read: (243.5 243.5 207.3 003 50.1 10.2 25.0 01101001 6.996328 send: FW? 7.055387 read: FW? 7.056339 qx_process_answer: short reply (ups.firmware) 7.060313 send: Q1 7.311314 read: (243.9 243.9 207.7 003 50.1 11.4 25.0 01101001 7.316279 send: FW? 7.375344 read: FW? 7.376212 qx_process_answer: short reply (ups.firmware) 7.380272 send: Q1 7.631292 read: (245.2 244.8 208.4 003 50.1 11.4 25.0 00101001 7.636235 send: FW? 7.695290 read: FW? 7.696119 qx_process_answer: short reply (ups.firmware) 7.700221 send: Q1 7.951243 read: (244.8 244.8 208.4 003 50.1 11.5 25.0 00101001 7.952398 Using protocol: Q1 0.03 7.953211 upsdrv_initinfo... 7.958198 send: Q1 8.207185 read: (244.8 244.8 208.4 003 50.1 10.4 25.0 00101001 8.209384 Can't autodetect number of battery packs [-1/10.40] 8.210379 Battery runtime will not be calculated (runtimecal not set) 8.211127 upsdrv_updateinfo... 8.211800 Quick update... 8.216157 send: Q1 8.463166 read: (244.8 245.2 208.4 003 50.1 10.3 25.0 00101001 8.464891 dstate_init: sock /var/state/ups/nutdrv_qx-test open on fd 5 8.465925 upsdrv_updateinfo... 8.466633 Quick update... 8.471160 send: Q1 8.719123 read: (244.8 244.8 208.4 003 50.1 10.3 25.0 00101001 10.467791 upsdrv_updateinfo... 10.467920 Quick update... 10.471859 send: Q1 10.734856 read: (244.8 244.8 208.8 003 50.1 11.4 25.0 00101001 12.469645 upsdrv_updateinfo... 12.469764 Quick update... 12.473551 send: Q1 12.718519 read: (243.9 243.9 207.7 003 50.1 10.3 25.0 00101001 14.471426 upsdrv_updateinfo... 14.472398 Quick update... 14.476243 send: Q1 14.734218 read: (243.9 243.9 207.7 003 50.1 10.3 25.0 00101001 16.473247 upsdrv_updateinfo... 16.473374 Quick update... 16.476972 send: Q1 16.717924 read: (245.2 245.2 208.4 003 50.1 11.4 25.0 00101001 18.475085 upsdrv_updateinfo... 18.476059 Quick update... 18.480631 send: Q1 18.733668 read: (245.2 244.4 208.8 003 50.1 10.3 25.0 00101001 20.476904 upsdrv_updateinfo... 20.477033 Quick update... 20.480363 send: Q1 20.717327 read: (244.4 244.4 208.1 003 50.1 10.3 25.0 00101001 22.477132 upsdrv_updateinfo... 22.477252 Quick update... 22.481076 send: Q1 22.733082 read: (244.8 244.8 208.4 003 50.1 11.4 25.0 00101001 24.479013 upsdrv_updateinfo... 24.479912 Quick update...

[repeats]

Let me know if you want me to run anything else.

aquette commented 10 years ago

@JasperWallace : As for the previous run, outputs for upsc / upsrw / upscmd would be appreciated. thanks.