2.8.2_1 blazer_usb, nutdrv_qx
-
"novendor" makes no difference. Still 0% battery charge and battery voltage now 2.17.
/usr/local/libexec/nut/nutdrv_qx -DDD -a ABB Network UPS Tools - Generic Q* USB/Serial driver 0.36 (2.8.1.1) USB communication driver (libusb 1.0) 0.46 0.000000 [D3] do_global_args: var='user' val='root' 0.000049 [D1] testval_reloadable: setting 'user' exists and differs: new value 'root' vs. 'nut' 0.000095 [D1] Overriding previously specified user 'nut' with 'root' specified in global section 0.000128 [D3] main_arg: var='driver' val='nutdrv_qx' 0.000151 [D3] main_arg: var='port' val='auto' 0.000185 [D3] main_arg: var='vendorid' val='06da' 0.000235 [D3] main_arg: var='productid' val='0005' 0.000274 [D3] main_arg: var='subdriver' val='phoenix' 0.000337 [D3] main_arg: var='protocol' val='megatec' 0.000371 [D3] main_arg: var='novendor' val='<null>' 0.000444 [D1] Network UPS Tools version 2.8.1.1 (release/snapshot of 2.8.1.1) built with FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152); Target: x86_64-unknown-freebsd14.0; Thread model: posix and configured with flags: --sysconfdir=/usr/local/etc/nut --program-transform-name= --localstatedir=/var/db/nut --datadir=/usr/local/etc/nut --with-devd-dir=/usr/local/etc/devd --with-drvpath=/usr/local/libexec/nut --with-statepath=/var/db/nut --with-altpidpath=/var/db/nut --with-pidpath=/var/db/nut --with-pkgconfig-dir=/usr/local/libdata/pkgconfig --with-user=nut --with-group=nut --with-python=/usr/local/bin/python3.11 --without-python2 --with-python3=/usr/local/bin/python3.11 --without-nut_monitor --with-ltdl --with-nut-scanner --with-avahi --with-cgi --with-cgipath=/usr/local/www/cgi-bin/nut --with-htmlpath=/usr/local/www/nut --with-gd-includes=-I/usr/local/include --with-gd-libs='-L/usr/local/lib -lgd' --without-dev --with-freeipmi --without-ipmi --with-doc=no --with-modbus --with-neon --without-nss --with-openssl --with-powerman --with-serial --with-snmp --with-usb=auto --prefix=/usr/local --mandir=/usr/local/man --disable-silent-rules --infodir=/usr/local/share/info/ --build=amd64-portbld-freebsd14.0 0.000478 [D1] debug level is '3' 0.001973 [D1] Succeeded to become_user(root): now UID=0 GID=0 0.002215 [D1] upsdrv_initups... 0.003367 [D2] Checking device 1 of 6 (0000/0000) 0.003987 [D1] nut_libusb_open: invalid libusb bus number 0 0.004098 [D2] - VendorID: 0000 0.004114 [D2] - ProductID: 0000 0.004127 [D2] - Manufacturer: AMD 0.004141 [D2] - Product: XHCI root HUB 0.004154 [D2] - Serial Number: unknown 0.004167 [D2] - Bus: 000 0.004181 [D2] - Bus Port: unknown 0.004193 [D2] - Device: 001 0.004206 [D2] - Device release number: 0100 0.004220 [D2] Trying to match device 0.004233 [D3] match_function_regex: matching a device... 0.004260 [D2] match_function_regex: failed match of VendorID: 0 0.004276 [D2] Device does not match - skipping 0.004331 [D2] Checking device 2 of 6 (0000/0000) 0.004446 [D1] nut_libusb_open: invalid libusb bus number 0 0.004496 [D2] - VendorID: 0000 0.004511 [D2] - ProductID: 0000 0.004525 [D2] - Manufacturer: AMD 0.004537 [D2] - Product: EHCI root HUB 0.004577 [D2] - Serial Number: unknown 0.004590 [D2] - Bus: 001 0.004603 [D2] - Bus Port: unknown 0.004616 [D2] - Device: 001 0.004629 [D2] - Device release number: 0100 0.004642 [D2] Trying to match device 0.004655 [D3] match_function_regex: matching a device... 0.004674 [D2] match_function_regex: failed match of VendorID: 0 0.004688 [D2] Device does not match - skipping 0.004787 [D2] Checking device 3 of 6 (0000/0000) 0.004875 [D1] nut_libusb_open: invalid libusb bus number 0 0.004923 [D2] - VendorID: 0000 0.004938 [D2] - ProductID: 0000 0.004951 [D2] - Manufacturer: AMD 0.004963 [D2] - Product: EHCI root HUB 0.004977 [D2] - Serial Number: unknown 0.004989 [D2] - Bus: 002 0.005005 [D2] - Bus Port: unknown 0.005021 [D2] - Device: 001 0.005061 [D2] - Device release number: 0100 0.005074 [D2] Trying to match device 0.005087 [D3] match_function_regex: matching a device... 0.005105 [D2] match_function_regex: failed match of VendorID: 0 0.005119 [D2] Device does not match - skipping 0.005163 [D2] Checking device 4 of 6 (06DA/0005) 0.091336 [D1] nut_libusb_open get iSerialNumber failed, retrying... 0.120336 [D1] nut_libusb_open get iSerialNumber failed, retrying... 0.149337 [D1] nut_libusb_open get iSerialNumber failed, retrying... 0.149383 [D2] - VendorID: 06da 0.149396 [D2] - ProductID: 0005 0.149426 [D2] - Manufacturer: PPC 0.149452 [D2] - Product: USB UPS 0.149464 [D2] - Serial Number: unknown 0.149477 [D2] - Bus: 000 0.149490 [D2] - Bus Port: 003 0.149502 [D2] - Device: 002 0.149515 [D2] - Device release number: 0001 0.149528 [D2] Trying to match device 0.149569 [D3] match_function_regex: matching a device... 0.149610 [D2] Device matches 0.149625 [D2] Reading configuration descriptor 1 of 1 0.149829 [D3] libusb_kernel_driver_active() returned 0: Success 0.149863 [D2] Claimed interface 0 successfully 0.149883 [D3] nut_usb_set_altinterface: skipped libusb_set_interface_alt_setting(udev, 0, 0) 0.149953 [D2] Skipping protocol Voltronic 0.08 0.149970 [D2] Skipping protocol Voltronic-QS 0.09 0.150013 [D2] Skipping protocol Voltronic-QS-Hex 0.10 0.150027 [D2] Skipping protocol Mustek 0.08 0.150042 [D2] Skipping protocol Megatec/old 0.08 0.150057 [D2] Skipping protocol BestUPS 0.07 0.150072 [D2] Skipping protocol Mecer 0.08 1.134230 [D3] flush: Timeout (-7) 1.141703 [D3] send: Q1 1.371755 [D3] read: (226.3 226.3 230.4 051 49.9 2.17 28.1 00000001 1.372009 Using protocol: Megatec 0.07 1.372054 [D2] blazer_initups: skipping device.mfr 1.372090 [D2] blazer_initups: skipping device.model 1.372135 [D2] blazer_initups: skipping ups.firmware 1.372258 [D1] upsdrv_initinfo... 2.482213 [D3] flush: Timeout (-7) 2.489697 [D3] send: Q1 2.723945 [D3] read: (226.7 226.7 230.4 049 49.9 2.17 28.0 00000001 3.798980 [D3] flush: Timeout (-7) 3.805445 [D3] send: F 3.915503 [D3] read: #230.0 004 036.0 50.0 3.915997 No values for battery high/low voltages 3.916095 Using 'guesstimation' (low: 31.200000, high: 39.000000)! 3.916132 Autodetected 18 as number of battery packs [36/2.17] 3.916151 Battery runtime will not be calculated (runtimecal not set) 3.916266 [D1] upsdrv_updateinfo... 3.916287 [D1] Quick update... 5.098255 [D3] flush: Timeout (-7) 5.104794 [D3] send: Q1 5.339946 [D3] read: (226.3 226.3 230.1 049 49.9 2.17 28.0 00000001 5.341228 [D2] dstate_init: sock /var/db/nut/nutdrv_qx-ABB open on fd 8 5.341417 [D1] Group and/or user account for this driver was customized ('root:nut') compared to built-in defaults. Fixing socket '/var/db/nut/nutdrv_qx-ABB' ownership/access. 5.341470 [D1] WARNING: opening socket file for stat/chown failed (45), which is rather typical for Unix socket handling: Operation not supported 5.341615 [D1] Group access for this driver successfully fixed (using file name based methods) 5.341752 Running as foreground process, not saving a PID file 5.341847 [D1] Driver initialization completed, beginning regular infinite loop 5.341869 upsnotify: failed to notify about state 2: no notification tech defined, will not spam more about it 5.341891 [D1] upsdrv_updateinfo... 5.341911 [D1] Quick update... 6.417257 [D3] flush: Timeout (-7) 6.423736 [D3] send: Q1 6.659836 [D3] read: (226.3 226.3 229.9 049 49.9 2.17 28.1 00000001 6.660055 sock_connect: enabling asynchronous mode (auto) 6.660247 [D3] new connection on fd 9 6.660322 [D2] send_to_one: sending SETINFO battery.charge "0" 6.660389 [D2] send_to_one: sending SETINFO battery.voltage "2.17" 6.660416 [D2] send_to_one: sending SETINFO battery.voltage.high "39.00" 6.660465 [D2] send_to_one: sending SETINFO battery.voltage.low "31.20" 6.660489 [D2] send_to_one: sending SETINFO battery.voltage.nominal "36.0" 6.660512 [D2] send_to_one: sending SETINFO device.type "ups" 6.660565 [D2] send_to_one: sending SETINFO driver.debug "3" 6.660610 [D2] send_to_one: sending SETFLAGS driver.debug RW NUMBER 6.660644 [D2] send_to_one: sending SETINFO driver.flag.allow_killpower "0" 6.660713 [D2] send_to_one: sending SETFLAGS driver.flag.allow_killpower RW NUMBER 6.660749 [D2] send_to_one: sending SETINFO driver.flag.novendor "enabled" 6.660772 [D2] send_to_one: sending SETINFO driver.name "nutdrv_qx" 6.660826 [D2] send_to_one: sending SETINFO driver.parameter.pollfreq "30" 6.660849 [D2] send_to_one: sending SETINFO driver.parameter.pollinterval "2" 6.660906 [D2] send_to_one: sending SETINFO driver.parameter.port "auto" 6.660930 [D2] send_to_one: sending SETINFO driver.parameter.productid "0005" 6.660953 [D2] send_to_one: sending SETINFO driver.parameter.protocol "megatec" 6.660976 [D2] send_to_one: sending SETINFO driver.parameter.subdriver "phoenix" 6.660999 [D2] send_to_one: sending SETINFO driver.parameter.synchronous "auto" 6.661022 [D2] send_to_one: sending SETINFO driver.parameter.vendorid "06da" 6.661046 [D2] send_to_one: sending SETINFO driver.state "quiet" 6.661069 [D2] send_to_one: sending SETINFO driver.version "2.8.1.1" 6.661118 [D2] send_to_one: sending SETINFO driver.version.data "Megatec 0.07" 6.661171 [D2] send_to_one: sending SETINFO driver.version.internal "0.36" 6.661226 [D2] send_to_one: sending SETINFO driver.version.usb "libusb-1.0.0 (API: 0x1000102)" 6.661250 [D2] send_to_one: sending SETINFO input.current.nominal "4.0" 6.661273 [D2] send_to_one: sending SETINFO input.frequency "49.9" 6.661297 [D2] send_to_one: sending SETINFO input.frequency.nominal "50" 6.661320 [D2] send_to_one: sending SETINFO input.voltage "226.3" 6.661343 [D2] send_to_one: sending SETINFO input.voltage.fault "226.7" 6.661367 [D2] send_to_one: sending SETINFO input.voltage.nominal "230" 6.661390 [D2] send_to_one: sending SETINFO output.voltage "230.4" 6.661413 [D2] send_to_one: sending SETINFO ups.beeper.status "enabled" 6.661436 [D2] send_to_one: sending SETINFO ups.delay.shutdown "30" 6.661489 [D2] send_to_one: sending ADDRANGE ups.delay.shutdown 12 600 6.661514 [D2] send_to_one: sending SETFLAGS ups.delay.shutdown RW NUMBER 6.661557 [D2] send_to_one: sending SETINFO ups.delay.start "180" 6.661592 [D2] send_to_one: sending ADDRANGE ups.delay.start 0 599940 6.661616 [D2] send_to_one: sending SETFLAGS ups.delay.start RW NUMBER 6.661639 [D2] send_to_one: sending SETINFO ups.load "49" 6.661662 [D2] send_to_one: sending SETINFO ups.productid "0005" 6.661715 [D2] send_to_one: sending SETINFO ups.status "OL" 6.661738 [D2] send_to_one: sending SETINFO ups.temperature "28.0" 6.661761 [D2] send_to_one: sending SETINFO ups.type "online" 6.661800 [D2] send_to_one: sending SETINFO ups.vendorid "06da" 6.661838 [D2] send_to_one: sending ADDCMD beeper.toggle 6.661861 [D2] send_to_one: sending ADDCMD driver.killpower 6.661887 [D2] send_to_one: sending ADDCMD driver.reload 6.661909 [D2] send_to_one: sending ADDCMD driver.reload-or-error 6.661986 [D2] send_to_one: sending ADDCMD driver.reload-or-exit 6.662009 [D2] send_to_one: sending ADDCMD load.off 6.662032 [D2] send_to_one: sending ADDCMD load.on 6.662055 [D2] send_to_one: sending ADDCMD shutdown.return 6.662108 [D2] send_to_one: sending ADDCMD shutdown.stayoff 6.662130 [D2] send_to_one: sending ADDCMD shutdown.stop 6.662178 [D2] send_to_one: sending ADDCMD test.battery.start 6.662218 [D2] send_to_one: sending ADDCMD test.battery.start.deep 6.662253 [D2] send_to_one: sending ADDCMD test.battery.start.quick 6.662275 [D2] send_to_one: sending ADDCMD test.battery.stop 6.662328 [D2] send_to_one: sending DATAOK 6.662351 [D2] send_to_one: sending DUMPDONE 7.343329 [D1] upsdrv_updateinfo... 7.343423 [D1] Quick update... 8.422498 [D3] flush: Timeout (-7) 8.429853 [D3] send: Q1 8.659992 [D3] read: (226.7 226.7 230.1 050 49.9 2.17 28.0 00000001 9.385204 [D1] upsdrv_updateinfo... 9.385307 [D1] Quick update... 10.517338 [D3] flush: Timeout (-7) 10.523895 [D3] send: Q1 10.756075 [D3] read: (226.5 226.5 230.4 050 49.9 2.17 28.0 00000001 11.425271 [D1] upsdrv_updateinfo... 11.425370 [D1] Quick update... 12.496363 [D3] flush: Timeout (-7) 12.502724 [D3] send: Q1 12.740119 [D3] read: (226.5 226.5 230.6 050 49.9 2.17 28.0 00000001 13.468697 [D1] upsdrv_updateinfo... 13.468763 [D1] Quick update... 14.547361 [D3] flush: Timeout (-7) 14.553801 [D3] send: Q1 14.788118 [D3] read: (227.0 227.0 229.9 050 49.9 2.17 28.0 00000001 15.511996 [D1] upsdrv_updateinfo... 15.512095 [D1] Quick update... 16.604414 [D3] flush: Timeout (-7) 16.611082 [D3] send: Q1 16.844228 [D3] read: (227.2 227.2 229.9 050 49.9 2.17 28.0 00000001 17.554458 [D1] upsdrv_updateinfo... 17.554552 [D1] Quick update... 18.624368 [D3] flush: Timeout (-7) 18.630835 [D3] send: Q1 18.867872 [D3] read: (227.0 227.0 229.5 050 49.9 2.17 28.0 00000001 19.555936 [D1] upsdrv_updateinfo... 19.556008 [D1] Quick update... 20.631428 [D3] flush: Timeout (-7) 20.637882 [D3] send: Q1 20.867913 [D3] read: (227.2 227.2 230.4 049 49.9 2.17 28.0 00000001 21.556910 [D1] upsdrv_updateinfo... 21.556953 [D1] Quick update... 22.632441 [D3] flush: Timeout (-7) 22.638910 [D3] send: Q1 22.875962 [D3] read: (227.2 227.2 229.7 050 49.9 2.17 28.0 00000001 23.558053 [D1] upsdrv_updateinfo... 23.558119 [D1] Quick update... 24.632478 [D3] flush: Timeout (-7) 24.638976 [D3] send: Q1 24.876006 [D3] read: (227.2 227.2 230.4 050 49.9 2.17 28.0 00000001 25.558940 [D1] upsdrv_updateinfo... 25.559006 [D1] Quick update... 26.632561 [D3] flush: Timeout (-7) 26.639027 [D3] send: Q1 26.876056 [D3] read: (227.2 227.2 229.7 050 49.9 2.17 28.0 00000001 27.559937 [D1] upsdrv_updateinfo... 27.559998 [D1] Quick update... 28.694049 [D3] flush: Timeout (-7) 28.701451 [D3] send: Q1 28.932601 [D3] read: (226.7 226.7 230.1 052 49.9 2.17 28.0 00000001 29.598236 [D1] upsdrv_updateinfo... 29.598327 [D1] Quick update... 30.684037 [D3] flush: Timeout (-7) 30.691494 [D3] send: Q1 30.924644 [D3] read: (227.0 227.0 229.7 050 49.9 2.17 28.1 00000001 31.641522 [D1] upsdrv_updateinfo... 31.641633 [D1] Quick update... 32.749025 [D3] flush: Timeout (-7) 32.756492 [D3] send: Q1 32.988370 [D3] read: (227.0 227.0 229.7 049 49.9 2.17 28.1 00000001 33.641943 [D1] upsdrv_updateinfo... 33.642014 [D1] Quick update... 34.711718 [D3] flush: Timeout (-7) 34.718232 [D3] send: Q1 34.956258 [D3] read: (227.0 227.0 229.9 050 49.9 2.17 28.0 00000001
-
@LanterIT said in NUT Package (2.8.1 and above):
2.490438 [D3] send: FW?
2.572673 [D3] read: 05732-0300This eliminates hunnox and zinto.
@LanterIT said in NUT Package (2.8.1 and above):
2.489697 [D3] send: Q1
2.723945 [D3] read: (226.7 226.7 230.4 049 49.9 2.17 28.0 00000001
3.798980 [D3] flush: Timeout (-7)
3.805445 [D3] send: F
3.915503 [D3] read: #230.0 004 036.0 50.0
3.915997 No values for battery high/low voltages
3.916095 Using 'guesstimation' (low: 31.200000, high: 39.000000)!
3.916132 Autodetected 18 as number of battery packs [36/2.17]Excellent. This is working correctly. Vendor info is being suppressed, and it's even detecting the correct number of packs. Now, let's add the one pack voltage reporting back in:
vendorid=06da productid=0005 subdriver = "phoenix" protocol = "megatec" novendor battery_voltage_reports_one_pack
Edit: See BATTERY CHARGE GUESSTIMATION for information on setting up battery charge percentage.
-
Already tried, see post 242
-
@LanterIT said in NUT Package (2.8.1 and above):
Already tried, see post 242
I saw the setting of battery_voltage_reports_one_pack, but I didn't see a setting of default.battery.voltage.low and default.battery.voltage.high. I see override.battery.packs being set in the config, but I didn't see the driver saying number of packs in the debug output until the last run where it was auto-detected.
-
OK, next try...
current argument:
vendorid=06da productid=0005 subdriver = "phoenix" protocol = "megatec" novendor battery_voltage_reports_one_pack
output:
/usr/local/libexec/nut/nutdrv_qx -DDD -a ABB Network UPS Tools - Generic Q* USB/Serial driver 0.36 (2.8.1.1) USB communication driver (libusb 1.0) 0.46 0.000001 [D3] do_global_args: var='user' val='root' 0.000089 [D1] testval_reloadable: setting 'user' exists and differs: new value 'root' vs. 'nut' 0.000120 [D1] Overriding previously specified user 'nut' with 'root' specified in global section 0.000177 [D3] main_arg: var='driver' val='nutdrv_qx' 0.000216 [D3] main_arg: var='port' val='auto' 0.000272 [D3] main_arg: var='vendorid' val='06da' 0.000378 [D3] main_arg: var='productid' val='0005' 0.000445 [D3] main_arg: var='subdriver' val='phoenix' 0.000504 [D3] main_arg: var='protocol' val='megatec' 0.000558 [D3] main_arg: var='novendor' val='<null>' 0.000646 [D3] main_arg: var='battery_voltage_reports_one_pack' val='<null>' 0.000763 [D1] Network UPS Tools version 2.8.1.1 (release/snapshot of 2.8.1.1) built with FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152); Target: x86_64-unknown-freebsd14.0; Thread model: posix and configured with flags: --sysconfdir=/usr/local/etc/nut --program-transform-name= --localstatedir=/var/db/nut --datadir=/usr/local/etc/nut --with-devd-dir=/usr/local/etc/devd --with-drvpath=/usr/local/libexec/nut --with-statepath=/var/db/nut --with-altpidpath=/var/db/nut --with-pidpath=/var/db/nut --with-pkgconfig-dir=/usr/local/libdata/pkgconfig --with-user=nut --with-group=nut --with-python=/usr/local/bin/python3.11 --without-python2 --with-python3=/usr/local/bin/python3.11 --without-nut_monitor --with-ltdl --with-nut-scanner --with-avahi --with-cgi --with-cgipath=/usr/local/www/cgi-bin/nut --with-htmlpath=/usr/local/www/nut --with-gd-includes=-I/usr/local/include --with-gd-libs='-L/usr/local/lib -lgd' --without-dev --with-freeipmi --without-ipmi --with-doc=no --with-modbus --with-neon --without-nss --with-openssl --with-powerman --with-serial --with-snmp --with-usb=auto --prefix=/usr/local --mandir=/usr/local/man --disable-silent-rules --infodir=/usr/local/share/info/ --build=amd64-portbld-freebsd14.0 0.000823 [D1] debug level is '3' 0.002574 [D1] Succeeded to become_user(root): now UID=0 GID=0 0.002732 [D1] upsdrv_initups... 0.003977 [D2] Checking device 1 of 6 (0000/0000) 0.004591 [D1] nut_libusb_open: invalid libusb bus number 0 0.004723 [D2] - VendorID: 0000 0.004751 [D2] - ProductID: 0000 0.004775 [D2] - Manufacturer: AMD 0.004799 [D2] - Product: XHCI root HUB 0.004823 [D2] - Serial Number: unknown 0.004846 [D2] - Bus: 000 0.004869 [D2] - Bus Port: unknown 0.004892 [D2] - Device: 001 0.004916 [D2] - Device release number: 0100 0.004940 [D2] Trying to match device 0.004966 [D3] match_function_regex: matching a device... 0.005012 [D2] match_function_regex: failed match of VendorID: 0 0.005039 [D2] Device does not match - skipping 0.005137 [D2] Checking device 2 of 6 (0000/0000) 0.005281 [D1] nut_libusb_open: invalid libusb bus number 0 0.005367 [D2] - VendorID: 0000 0.005393 [D2] - ProductID: 0000 0.005416 [D2] - Manufacturer: AMD 0.005439 [D2] - Product: EHCI root HUB 0.005462 [D2] - Serial Number: unknown 0.005485 [D2] - Bus: 001 0.005510 [D2] - Bus Port: unknown 0.005533 [D2] - Device: 001 0.005556 [D2] - Device release number: 0100 0.005579 [D2] Trying to match device 0.005602 [D3] match_function_regex: matching a device... 0.005635 [D2] match_function_regex: failed match of VendorID: 0 0.005659 [D2] Device does not match - skipping 0.005738 [D2] Checking device 3 of 6 (0000/0000) 0.005879 [D1] nut_libusb_open: invalid libusb bus number 0 0.005961 [D2] - VendorID: 0000 0.005986 [D2] - ProductID: 0000 0.006012 [D2] - Manufacturer: AMD 0.006035 [D2] - Product: EHCI root HUB 0.006058 [D2] - Serial Number: unknown 0.006091 [D2] - Bus: 002 0.006114 [D2] - Bus Port: unknown 0.006137 [D2] - Device: 001 0.006160 [D2] - Device release number: 0100 0.006183 [D2] Trying to match device 0.006209 [D3] match_function_regex: matching a device... 0.006242 [D2] match_function_regex: failed match of VendorID: 0 0.006266 [D2] Device does not match - skipping 0.006343 [D2] Checking device 4 of 6 (0438/7900) 0.006491 [D2] - VendorID: 0438 0.006522 [D2] - ProductID: 7900 0.006545 [D2] - Manufacturer: unknown 0.006571 [D2] - Product: unknown 0.006594 [D2] - Serial Number: unknown 0.006617 [D2] - Bus: 001 0.006641 [D2] - Bus Port: 001 0.006663 [D2] - Device: 002 0.006687 [D2] - Device release number: 0018 0.006710 [D2] Trying to match device 0.006733 [D3] match_function_regex: matching a device... 0.006768 [D2] match_function_regex: failed match of VendorID: 438 0.006792 [D2] Device does not match - skipping 0.006866 [D2] Checking device 5 of 6 (0438/7900) 0.007016 [D2] - VendorID: 0438 0.007049 [D2] - ProductID: 7900 0.007079 [D2] - Manufacturer: unknown 0.007103 [D2] - Product: unknown 0.007126 [D2] - Serial Number: unknown 0.007149 [D2] - Bus: 002 0.007176 [D2] - Bus Port: 001 0.007199 [D2] - Device: 002 0.007224 [D2] - Device release number: 0018 0.007247 [D2] Trying to match device 0.007270 [D3] match_function_regex: matching a device... 0.007302 [D2] match_function_regex: failed match of VendorID: 438 0.007326 [D2] Device does not match - skipping 0.007404 [D2] Checking device 6 of 6 (06DA/0005) 0.094984 [D1] nut_libusb_open get iSerialNumber failed, retrying... 0.124015 [D1] nut_libusb_open get iSerialNumber failed, retrying... 0.152963 [D1] nut_libusb_open get iSerialNumber failed, retrying... 0.153061 [D2] - VendorID: 06da 0.153100 [D2] - ProductID: 0005 0.153123 [D2] - Manufacturer: PPC 0.153147 [D2] - Product: USB UPS 0.153172 [D2] - Serial Number: unknown 0.153195 [D2] - Bus: 000 0.153217 [D2] - Bus Port: 003 0.153239 [D2] - Device: 002 0.153262 [D2] - Device release number: 0001 0.153285 [D2] Trying to match device 0.153309 [D3] match_function_regex: matching a device... 0.153383 [D2] Device matches 0.153408 [D2] Reading configuration descriptor 1 of 1 0.153725 [D3] libusb_kernel_driver_active() returned 0: Success 0.153770 [D2] Claimed interface 0 successfully 0.153807 [D3] nut_usb_set_altinterface: skipped libusb_set_interface_alt_setting(udev, 0, 0) 0.153939 [D2] Skipping protocol Voltronic 0.08 0.153970 [D2] Skipping protocol Voltronic-QS 0.09 0.153997 [D2] Skipping protocol Voltronic-QS-Hex 0.10 0.154024 [D2] Skipping protocol Mustek 0.08 0.154050 [D2] Skipping protocol Megatec/old 0.08 0.154082 [D2] Skipping protocol BestUPS 0.07 0.154109 [D2] Skipping protocol Mecer 0.08 1.280574 [D3] flush: Timeout (-7) 1.287960 [D3] send: Q1 1.523148 [D3] read: (226.7 226.7 229.7 045 50.0 2.17 28.1 00000001 1.523434 Using protocol: Megatec 0.07 1.523506 [D2] blazer_initups: skipping device.mfr 1.523564 [D2] blazer_initups: skipping device.model 1.523596 [D2] blazer_initups: skipping ups.firmware 1.523739 [D1] upsdrv_initinfo... 2.650528 [D3] flush: Timeout (-7) 2.657912 [D3] send: Q1 2.891219 [D3] read: (226.5 226.5 229.7 045 50.0 2.17 28.2 00000001 3.981495 [D3] flush: Timeout (-7) 3.988995 [D3] send: F 4.099234 [D3] read: #230.0 004 036.0 50.0 4.099812 No values for battery high/low voltages 4.099893 Using 'guesstimation' (low: 31.200000, high: 39.000000)! 4.099955 Autodetected 18 as number of battery packs [36/2.17] 4.099985 Battery runtime will not be calculated (runtimecal not set) 4.100099 [D1] upsdrv_updateinfo... 4.100133 [D1] Quick update... 5.247277 [D3] flush: Timeout (-7) 5.253738 [D3] send: Q1 5.490769 [D3] read: (226.1 226.1 230.1 045 50.0 2.17 28.1 00000001 5.491951 [D2] dstate_init: sock /var/db/nut/nutdrv_qx-ABB open on fd 8 5.492211 [D1] Group and/or user account for this driver was customized ('root:nut') compared to built-in defaults. Fixing socket '/var/db/nut/nutdrv_qx-ABB' ownership/access. 5.492298 [D1] WARNING: opening socket file for stat/chown failed (45), which is rather typical for Unix socket handling: Operation not supported 5.492486 [D1] Group access for this driver successfully fixed (using file name based methods) 5.492565 Running as foreground process, not saving a PID file 5.492659 [D1] Driver initialization completed, beginning regular infinite loop 5.492689 upsnotify: failed to notify about state 2: no notification tech defined, will not spam more about it 5.492726 [D1] upsdrv_updateinfo... 5.492760 [D1] Quick update... 6.566275 [D3] flush: Timeout (-7) 6.572766 [D3] send: Q1 6.802791 [D3] read: (226.1 226.1 230.6 046 50.0 2.17 28.1 00000001 6.803012 sock_connect: enabling asynchronous mode (auto) 6.803220 [D3] new connection on fd 9 6.803311 [D2] send_to_one: sending SETINFO battery.charge "0" 6.803370 [D2] send_to_one: sending SETINFO battery.voltage "2.17" 6.803416 [D2] send_to_one: sending SETINFO battery.voltage.high "39.00" 6.803468 [D2] send_to_one: sending SETINFO battery.voltage.low "31.20" 6.803508 [D2] send_to_one: sending SETINFO battery.voltage.nominal "36.0" 6.803551 [D2] send_to_one: sending SETINFO device.type "ups" 6.803591 [D2] send_to_one: sending SETINFO driver.debug "3" 6.803635 [D2] send_to_one: sending SETFLAGS driver.debug RW NUMBER 6.803674 [D2] send_to_one: sending SETINFO driver.flag.allow_killpower "0" 6.803717 [D2] send_to_one: sending SETFLAGS driver.flag.allow_killpower RW NUMBER 6.803758 [D2] send_to_one: sending SETINFO driver.flag.battery_voltage_reports_one_pack "enabled" 6.803799 [D2] send_to_one: sending SETINFO driver.flag.novendor "enabled" 6.803844 [D2] send_to_one: sending SETINFO driver.name "nutdrv_qx" 6.803883 [D2] send_to_one: sending SETINFO driver.parameter.pollfreq "30" 6.803923 [D2] send_to_one: sending SETINFO driver.parameter.pollinterval "2" 6.803967 [D2] send_to_one: sending SETINFO driver.parameter.port "auto" 6.804010 [D2] send_to_one: sending SETINFO driver.parameter.productid "0005" 6.804053 [D2] send_to_one: sending SETINFO driver.parameter.protocol "megatec" 6.804105 [D2] send_to_one: sending SETINFO driver.parameter.subdriver "phoenix" 6.804155 [D2] send_to_one: sending SETINFO driver.parameter.synchronous "auto" 6.804198 [D2] send_to_one: sending SETINFO driver.parameter.vendorid "06da" 6.804238 [D2] send_to_one: sending SETINFO driver.state "quiet" 6.804278 [D2] send_to_one: sending SETINFO driver.version "2.8.1.1" 6.804319 [D2] send_to_one: sending SETINFO driver.version.data "Megatec 0.07" 6.804360 [D2] send_to_one: sending SETINFO driver.version.internal "0.36" 6.804403 [D2] send_to_one: sending SETINFO driver.version.usb "libusb-1.0.0 (API: 0x1000102)" 6.804447 [D2] send_to_one: sending SETINFO input.current.nominal "4.0" 6.804488 [D2] send_to_one: sending SETINFO input.frequency "50.0" 6.804526 [D2] send_to_one: sending SETINFO input.frequency.nominal "50" 6.804569 [D2] send_to_one: sending SETINFO input.voltage "226.7" 6.804609 [D2] send_to_one: sending SETINFO input.voltage.fault "226.5" 6.804648 [D2] send_to_one: sending SETINFO input.voltage.nominal "230" 6.804689 [D2] send_to_one: sending SETINFO output.voltage "229.7" 6.804731 [D2] send_to_one: sending SETINFO ups.beeper.status "enabled" 6.804769 [D2] send_to_one: sending SETINFO ups.delay.shutdown "30" 6.804809 [D2] send_to_one: sending ADDRANGE ups.delay.shutdown 12 600 6.804852 [D2] send_to_one: sending SETFLAGS ups.delay.shutdown RW NUMBER 6.804891 [D2] send_to_one: sending SETINFO ups.delay.start "180" 6.804932 [D2] send_to_one: sending ADDRANGE ups.delay.start 0 599940 6.804973 [D2] send_to_one: sending SETFLAGS ups.delay.start RW NUMBER 6.805010 [D2] send_to_one: sending SETINFO ups.load "45" 6.805053 [D2] send_to_one: sending SETINFO ups.productid "0005" 6.805099 [D2] send_to_one: sending SETINFO ups.status "OL" 6.805139 [D2] send_to_one: sending SETINFO ups.temperature "28.2" 6.805181 [D2] send_to_one: sending SETINFO ups.type "online" 6.805221 [D2] send_to_one: sending SETINFO ups.vendorid "06da" 6.805261 [D2] send_to_one: sending ADDCMD beeper.toggle 6.805302 [D2] send_to_one: sending ADDCMD driver.killpower 6.805339 [D2] send_to_one: sending ADDCMD driver.reload 6.805378 [D2] send_to_one: sending ADDCMD driver.reload-or-error 6.805417 [D2] send_to_one: sending ADDCMD driver.reload-or-exit 6.805455 [D2] send_to_one: sending ADDCMD load.off 6.805494 [D2] send_to_one: sending ADDCMD load.on 6.805532 [D2] send_to_one: sending ADDCMD shutdown.return 6.805573 [D2] send_to_one: sending ADDCMD shutdown.stayoff 6.805614 [D2] send_to_one: sending ADDCMD shutdown.stop 6.805655 [D2] send_to_one: sending ADDCMD test.battery.start 6.805692 [D2] send_to_one: sending ADDCMD test.battery.start.deep 6.805730 [D2] send_to_one: sending ADDCMD test.battery.start.quick 6.805771 [D2] send_to_one: sending ADDCMD test.battery.stop 6.805810 [D2] send_to_one: sending DATAOK 6.805851 [D2] send_to_one: sending DUMPDONE 7.493162 [D1] upsdrv_updateinfo... 7.493228 [D1] Quick update... 8.566325 [D3] flush: Timeout (-7) 8.572805 [D3] send: Q1 8.802829 [D3] read: (226.3 226.3 229.7 045 50.0 2.17 28.2 00000001 9.494163 [D1] upsdrv_updateinfo... 9.494231 [D1] Quick update... 10.575796 [D3] flush: Timeout (-7) 10.583210 [D3] send: Q1 10.819367 [D3] read: (226.5 226.5 230.1 045 50.0 2.17 28.2 00000001 11.537177 [D1] upsdrv_updateinfo... 11.537275 [D1] Quick update... 12.607897 [D3] flush: Timeout (-7) 12.615235 [D3] send: Q1 12.851361 [D3] read: (226.1 226.1 231.0 045 50.0 2.17 28.1 00000001 13.564983 [D1] upsdrv_updateinfo... 13.565080 [D1] Quick update... 14.659887 [D3] flush: Timeout (-7) 14.667294 [D3] send: Q1 14.899460 [D3] read: (226.3 226.3 230.4 046 50.0 2.17 28.1 00000001 15.566213 [D1] upsdrv_updateinfo... 15.566313 [D1] Quick update... 16.638475 [D3] flush: Timeout (-7) 16.644960 [D3] send: Q1 16.874991 [D3] read: (226.3 226.3 229.7 045 50.0 2.17 28.1 00000001 17.567157 [D1] upsdrv_updateinfo... 17.567232 [D1] Quick update... 18.638539 [D3] flush: Timeout (-7) 18.644995 [D3] send: Q1 18.883030 [D3] read: (226.3 226.3 229.9 046 50.0 2.17 28.2 00000001 19.568153 [D1] upsdrv_updateinfo... 19.568218 [D1] Quick update...
-
From my point of view, it is not possible for the UPS to measure just a single battery cell. There are three 12V 9.6Ah batteries in series in it, with two cables, plus/minus and no additional measuring lines.
From this I conclude that this value is somehow already calculated. Could this be the case?
-
@LanterIT said in NUT Package (2.8.1 and above):
From my point of view, it is not possible for the UPS to measure just a single battery cell. There are three 12V 9.6Ah batteries in series in it, with two cables, plus/minus and no additional measuring lines.
Fair point. Nominal voltage should be 36 volts.
The blazer_usb driver run shows this:
1.259834 [D3] send: Q1 1.494125 [D3] read: (225.7 225.7 230.1 047 50.0 2.18 28.0 00000001 1.494469 [D2] Status read in 1 tries 1.494497 Supported UPS detected with megatec protocol 2.631643 [D3] flush: Timeout 2.639009 [D3] send: F 2.749987 [D3] read: #230.0 004 036.0 50.0 2.750183 [D2] Ratings read in 1 tries
And the nutdrv_qx megatec driver run shows this:
2.489697 [D3] send: Q1 2.723945 [D3] read: (226.7 226.7 230.4 049 49.9 2.17 28.0 00000001 3.798980 [D3] flush: Timeout (-7) 3.805445 [D3] send: F 3.915503 [D3] read: #230.0 004 036.0 50.0
Looking at the strings being sent by the UPS, the different runs match well and are within a normal expected variance for the values:
Q1:
input.voltage: 225.7 / 226.7 input.voltage.fault: 225.7 / 226.7 output.voltage: 230.1 / 230.4 ups.load: 47 / 49 input.frequency: 50.0 / 49.9 battery.voltage: 2.18 / 2.17 ups.temperature: 28.0 ups.beeper.status: on
F:
input.voltage.nominal: 230.0 input.current.nominal: 4 battery.voltage.nominal: 36.0 input.frequency.nominal: 50.0
The nominal voltage of 36 matches the physical description of the batteries. The actual reported battery.voltage (2.18/2.17) appears completely fictional. But apparently this is a known/expected behavior with these types of UPSs. See here and here for discussion by one of the NUT team leaders.
FWIW, I am still looking at the code to see what actually ended up in the various releases.
-
@LanterIT Can you confirm which version of nut-devel you used in the later debug tests? If I understand correctly, it was 2024.01.03, but I just want to double check.
The tests I am asking about are:
- blazer_usb (post 249)
- nutdrv_qx (post 251 & 256)
Thanks
-
correct, all posts since 241 are with APU2 and fully updated packages
-
@LanterIT said in NUT Package (2.8.1 and above):
all posts since 241 are with APU2 and fully updated packages
Thank you
-
@LanterIT If you have time, would you mind re-running those two tests with a higher debug level (-DDDDDD) please?
-
Extra Argument:
vendorid=06da
productid=0005
subdriver = "phoenix"
protocol = "megatec"
novendor -
@LanterIT Sorry, can you put the "battery_voltage_reports_one_pack" back in the config please?
-
@dennypage
only nutdrv_qx output, because blazer_usb does not support the parameter:
nutdrv_qx_202402232234.txt -
@LanterIT Attached is a nutdrv_qx executable with additional debug information added. Please run let it run for at least 100 seconds before killing it.
Note that I don't have a compatible UPS, so I am not actually able to test the executable. Please do excuse me if I've messed something up.
Thanks
-
I am happy when someone takes care of the problem and I can do my part.
nutdrv_qx_denny_dbg_202402252046.txt -
@LanterIT LOL. I love it when people are willing to help me solve problems.
One more time please...
-
Here you go:
nutdrv_qx_denny_dbg2_202402252237.txt -
@LanterIT said in NUT Package (2.8.1 and above):
nutdrv_qx_denny_dbg2_202402252237.txt
Did you notice the reported voltage and charge?
-
It was a bit late last night, so I only dumped the output to the log file.
After a little more than 30 seconds, the battery voltage and battery charge display will change to the correct values.
Does this have an influence on the behavior as long as the status is OL?
EDIT: It also runs on the productive device!