Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    2.8.2_1 blazer_usb, nutdrv_qx

    Scheduled Pinned Locked Moved UPS Tools
    63 Posts 2 Posters 11.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic was forked from NUT Package (2.8.1 and above) dennypage
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      LanterIT @dennypage
      last edited by

      @dennypage

      I briefly tested your suggestions without success.
      With all combinations I get the following message and at the end device not supported.
      Output for "q1" with "cypress":

      /usr/local/libexec/nut/nutdrv_qx -DDD -a ABB
      Network UPS Tools - Generic Q* USB/Serial driver 0.36 (2.8.0.1)
      USB communication driver (libusb 1.0) 0.46
         0.000000     [D3] main_arg: var='driver' val='nutdrv_qx'
         0.000036     [D3] main_arg: var='port' val='auto'
         0.000058     [D3] main_arg: var='protocol' val='q1'
         0.000089     [D3] main_arg: var='subdriver' val='cypress'
         0.000108     [D3] main_arg: var='productid' val='0005'
         0.000126     [D3] main_arg: var='vendorid' val='06da'
         0.000163     [D1] Network UPS Tools version 2.8.0.1 (release/snapshot of 2.8.0.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 --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.000185     [D1] debug level is '3'
         0.000792     [D1] Succeeded to become_user(nut): now UID=316 GID=316
         0.000897     [D1] upsdrv_initups...
         0.001223     [D2] Checking device 1 of 1 (06DA/0005)
         0.001400     [D1] nut_libusb_open: invalid libusb bus number 0
         0.003378     [D1] nut_libusb_open get iSerialNumber failed, retrying...
         0.004013     [D1] nut_libusb_open get iSerialNumber failed, retrying...
         0.004763     [D1] nut_libusb_open get iSerialNumber failed, retrying...
         0.004776     [D2] - VendorID: 06da
         0.004783     [D2] - ProductID: 0005
         0.004790     [D2] - Manufacturer: PPC
         0.004797     [D2] - Product: USB UPS
         0.004803     [D2] - Serial Number: unknown
         0.004809     [D2] - Bus: ▒▒▒▒▒▒▒▒002
         0.004815     [D2] - Bus Port: 007
         0.004821     [D2] - Device: 002
         0.004827     [D2] - Device release number: 0001
         0.004833     [D2] Trying to match device
         0.004839     [D3] match_function_regex: matching a device...
         0.004875     [D2] Device matches
         0.004882     [D2] Reading first configuration descriptor
         0.004956     [D3] libusb_kernel_driver_active() returned 0: Success
         0.004970     [D2] Claimed interface 0 successfully
         0.004980     [D3] nut_usb_set_altinterface: skipped libusb_set_interface_alt_setting(udev, 0, 0)
         0.005014     [D2] Skipping protocol Voltronic 0.08
         0.005021     [D2] Skipping protocol Voltronic-QS 0.09
         0.005028     [D2] Skipping protocol Voltronic-QS-Hex 0.10
         0.005035     [D2] Skipping protocol Mustek 0.08
         0.005041     [D2] Skipping protocol Megatec/old 0.08
         0.005047     [D2] Skipping protocol BestUPS 0.07
         0.005054     [D2] Skipping protocol Mecer 0.08
         0.005065     [D2] Skipping protocol Megatec 0.07
         0.005073     [D2] Skipping protocol Zinto 0.07
         0.005079     [D2] Skipping protocol Masterguard 0.02
         0.005085     [D2] Skipping protocol Hunnox 0.02
         0.005091     [D2] Skipping protocol Ablerex 0.01
         0.005455     [D3] send: Q1
         0.238258     [D3] read:
         0.238297     [D2] qx_process_answer: input.voltage - invalid start character [00], expected [28]
         0.238509     [D3] send: Q1
         0.478248     [D3] read:
         0.478272     [D2] qx_process_answer: input.voltage - invalid start character [00], expected [28]
         0.478492     [D3] send: Q1
         0.718258     [D3] read:
         0.718282     [D2] qx_process_answer: input.voltage - invalid start character [00], expected [28]
         0.718291     Device not supported!
         0.718297     Device not supported!
         0.718338     upsnotify: failed to notify about state 4: no notification tech defined, will not spam more about it
      
      dennypageD 1 Reply Last reply Reply Quote 0
      • dennypageD
        dennypage @LanterIT
        last edited by dennypage

        @LanterIT said in NUT Package (2.8.1 and above):

        I briefly tested your suggestions without success.

        I'm wondering if there is a state issue as this debug output doesn't match the prior debug output for the first Q1 interaction.

        Previously, the initial interaction looked list this:

           0.066547     [D3] send: Q1
           0.306233     [D3] read: (225.0 225.0 229.7 048 49.9 2.18 28.3 00000001
           1.317829     [D3] flush: Timeout (-7)
           1.318054     [D3] send: I
           1.378224     [D3] read:
           1.378268     [D2] qx_process_answer: short reply (ups.firmware)
           1.442558     [D3] send: Q1
           1.682233     [D3] read: (224.8 224.8 229.7 048 49.9 2.18 28.3 00000001
           2.702010     [D3] flush: Timeout (-7)
           2.702232     [D3] send: I
           2.762328     [D3] read:
           2.762343     [D2] qx_process_answer: short reply (ups.firmware)
           2.826570     [D3] send: Q1
           3.066243     [D3] read: (225.0 225.0 229.1 047 49.9 2.18 28.3 00000001
           4.081737     [D3] flush: Timeout (-7)
        

        Each time it responded to Q1. However the initial interaction in your last run looks like this:

           0.005455     [D3] send: Q1
           0.238258     [D3] read:
           0.238297     [D2] qx_process_answer: input.voltage - invalid start character [00], expected [28]
           0.238509     [D3] send: Q1
           0.478248     [D3] read:
           0.478272     [D2] qx_process_answer: input.voltage - invalid start character [00], expected [28]
           0.478492     [D3] send: Q1
           0.718258     [D3] read:
           0.718282     [D2] qx_process_answer: input.voltage - invalid start character [00], expected [28]
        

        The UPS is sending breaks rather than the expected open paren. I note that the same thing happened when testing with automatic detection, when the driver sends a bunch of commands to the UPS..

        The reason that I suggested those protocols is because they are the ones that do not require a response to I.

        There are apparently some of these UPSs that have strict ordering of commands. I'll have to research a bit more.

        While I do that, please repeat the q1 test a few times to see if the UPS state clears. I.E. a correct response to Q1. If you have physical proximity to the UPS, it may be worthwhile to unplug/replug the USB connection prior to the attempt.

        EDIT: Please use "protocol=q1" and "subdriver=phoenix" in the test.

        L 1 Reply Last reply Reply Quote 0
        • L
          LanterIT @dennypage
          last edited by

          @dennypage

          During the last test, almost all devices were shut down after a driver incorrectly returned OnBattery.

          OK, this part seems to work.

          For further tests, I first have to set up an unproductive pfSense.

          dennypageD 1 Reply Last reply Reply Quote 0
          • dennypageD
            dennypage @LanterIT
            last edited by dennypage

            @LanterIT said in NUT Package (2.8.1 and above):

            During the last test, almost all devices were shut down after a driver incorrectly returned OnBattery.

            Okay. Sorry about that. Please let me know.


            Edit: It might be easier to disable the NUT's shutdown behavior than to set up a separate test system.

            You can temporarily suppress the local pfSense shutdown by placing

            SHUTDOWNCMD "/bin/echo"
            

            in the "Additional configuration lines for upsmon.conf" section.

            If you are using the pfSense NUT instance as a server for other remote NUT clients, you would also need to temporarily disable their access.

            L 1 Reply Last reply Reply Quote 0
            • L
              LanterIT @dennypage
              last edited by

              @dennypage

              That wasn't your fault. I have tried the usbhid driver again.

              I have now connected the UPS to an APU2 with pfSense.
              pfSense and packages are up to date and the blazer_usb works here.

              In a further step, I tried it again with nutdrv_qx. Now I get values with the following parameters:

              protocol="q1"
              subdriver="phoenix"
              productid=0005
              vendorid=06da
              override.battery.packs = 18
              override.battery.voltage.nominal = 36
              battery_voltage_reports_one_pack
              

              They are partially correct, but the battery voltage always remains at approx. 2.18 V and battery charge is at 0%.

              Any suggestions to solve this?

              dennypageD 2 Replies Last reply Reply Quote 0
              • dennypageD
                dennypage @LanterIT
                last edited by

                @LanterIT Do you have DDD output available?

                L 1 Reply Last reply Reply Quote 0
                • L
                  LanterIT @dennypage
                  last edited by

                  @dennypage

                  here you go:

                  /usr/local/libexec/nut/nutdrv_qx -a ABB -DDD
                  Network UPS Tools - Generic Q* USB/Serial driver 0.36 (2.8.1.1)
                  USB communication driver (libusb 1.0) 0.46
                     0.000000     [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.000239     [D1] debug level is '3'
                     0.001790     [D1] Succeeded to become_user(nut): now UID=316 GID=316
                     0.001959     [D1] upsdrv_initups...
                     0.003102     [D2] Checking device 1 of 1 (06DA/0005)
                     0.090800     [D1] nut_libusb_open get iSerialNumber failed, retrying...
                     0.119843     [D1] nut_libusb_open get iSerialNumber failed, retrying...
                     0.148917     [D1] nut_libusb_open get iSerialNumber failed, retrying...
                     0.149057     [D2] - VendorID: 06da
                     0.149093     [D2] - ProductID: 0005
                     0.149120     [D2] - Manufacturer: PPC
                     0.149136     [D2] - Product: USB UPS
                     0.149170     [D2] - Serial Number: unknown
                     0.149200     [D2] - Bus: 000
                     0.149214     [D2] - Bus Port: 003
                     0.149227     [D2] - Device: 002
                     0.149255     [D2] - Device release number: 0001
                     0.149279     [D2] Trying to match device
                     0.149312     [D3] match_function_regex: matching a device...
                     0.149448     [D2] Device matches
                     0.149486     [D2] Reading configuration descriptor 1 of 1
                     0.149748     [D3] libusb_kernel_driver_active() returned 0: Success
                     0.149806     [D2] Claimed interface 0 successfully
                     0.149831     [D3] nut_usb_set_altinterface: skipped libusb_set_interface_alt_setting(udev, 0, 0)
                     0.149962     [D2] Skipping protocol Voltronic 0.08
                     0.149980     [D2] Skipping protocol Voltronic-QS 0.09
                     0.149997     [D2] Skipping protocol Voltronic-QS-Hex 0.10
                     0.150014     [D2] Skipping protocol Mustek 0.08
                     0.150035     [D2] Skipping protocol Megatec/old 0.08
                     0.150051     [D2] Skipping protocol BestUPS 0.07
                     0.150082     [D2] Skipping protocol Mecer 0.08
                     0.150114     [D2] Skipping protocol Megatec 0.07
                     0.150130     [D2] Skipping protocol Zinto 0.07
                     0.150147     [D2] Skipping protocol Masterguard 0.02
                     0.150187     [D2] Skipping protocol Hunnox 0.02
                     0.150220     [D2] Skipping protocol Ablerex 0.01
                     1.185604     [D3] flush: Timeout (-7)
                     1.192724     [D3] send: Q1
                     1.427098     [D3] read: (227.2 227.2 229.9 046 49.9 2.18 28.0 00000001
                     1.427321     Using protocol: Q1 0.08
                     1.427385     [D1] upsdrv_initinfo...
                     2.515288     [D3] flush: Timeout (-7)
                     2.521959     [D3] send: Q1
                     2.755117     [D3] read: (227.2 227.2 229.9 046 49.9 2.18 28.0 00000001
                     2.755842     No values for battery high/low voltages
                     2.755891     Using 'guesstimation' (low: 31.200000, high: 39.000000)!
                     2.755951     Battery runtime will not be calculated (runtimecal not set)
                     2.756047     [D1] upsdrv_updateinfo...
                     2.756070     [D1] Quick update...
                     3.831254     [D3] flush: Timeout (-7)
                     3.837639     [D3] send: Q1
                     4.074734     [D3] read: (227.0 227.0 230.4 046 49.9 2.18 28.0 00000001
                     4.075893     [D2] dstate_init: sock /var/db/nut/nutdrv_qx-ABB open on fd 8
                     4.076108     Running as foreground process, not saving a PID file
                     4.076162     [D1] Driver initialization completed, beginning regular infinite loop
                     4.076181     upsnotify: failed to notify about state 2: no notification tech defined, will not spam more about it
                     4.076203     [D1] upsdrv_updateinfo...
                     4.076223     [D1] Quick update...
                     5.150175     [D3] flush: Timeout (-7)
                     5.156660     [D3] send: Q1
                     5.394689     [D3] read: (227.2 227.2 230.4 046 49.9 2.18 28.0 00000001
                     5.394879     sock_connect: enabling asynchronous mode (auto)
                     5.395089     [D3] new connection on fd 9
                     5.395169     [D2] send_to_one: sending SETINFO battery.charge "0"
                     5.395201     [D2] send_to_one: sending SETINFO battery.packs "18"
                     5.395259     [D2] send_to_one: sending SETFLAGS battery.packs
                     5.395284     [D2] send_to_one: sending SETINFO battery.voltage "2.18"
                     5.395340     [D2] send_to_one: sending SETINFO battery.voltage.high "39.00"
                     5.395364     [D2] send_to_one: sending SETINFO battery.voltage.low "31.20"
                     5.395389     [D2] send_to_one: sending SETINFO battery.voltage.nominal "36"
                     5.395444     [D2] send_to_one: sending SETFLAGS battery.voltage.nominal
                     5.395499     [D2] send_to_one: sending SETINFO device.type "ups"
                     5.395523     [D2] send_to_one: sending SETINFO driver.debug "3"
                     5.395580     [D2] send_to_one: sending SETFLAGS driver.debug RW NUMBER
                     5.395604     [D2] send_to_one: sending SETINFO driver.flag.allow_killpower "0"
                     5.395630     [D2] send_to_one: sending SETFLAGS driver.flag.allow_killpower RW NUMBER
                     5.395679     [D2] send_to_one: sending SETINFO driver.flag.battery_voltage_reports_one_pack "enabled"
                     5.395729     [D2] send_to_one: sending SETINFO driver.name "nutdrv_qx"
                     5.395753     [D2] send_to_one: sending SETINFO driver.parameter.override.battery.packs "18"
                     5.395778     [D2] send_to_one: sending SETINFO driver.parameter.override.battery.voltage.nominal "36"
                     5.395833     [D2] send_to_one: sending SETINFO driver.parameter.pollfreq "30"
                     5.395857     [D2] send_to_one: sending SETINFO driver.parameter.pollinterval "2"
                     5.395906     [D2] send_to_one: sending SETINFO driver.parameter.port "auto"
                     5.395930     [D2] send_to_one: sending SETINFO driver.parameter.productid "0005"
                     5.395954     [D2] send_to_one: sending SETINFO driver.parameter.protocol "q1"
                     5.395978     [D2] send_to_one: sending SETINFO driver.parameter.subdriver "phoenix"
                     5.396001     [D2] send_to_one: sending SETINFO driver.parameter.synchronous "auto"
                     5.396025     [D2] send_to_one: sending SETINFO driver.parameter.vendorid "06da"
                     5.396056     [D2] send_to_one: sending SETINFO driver.state "quiet"
                     5.396080     [D2] send_to_one: sending SETINFO driver.version "2.8.1.1"
                     5.396103     [D2] send_to_one: sending SETINFO driver.version.data "Q1 0.08"
                     5.396157     [D2] send_to_one: sending SETINFO driver.version.internal "0.36"
                     5.396182     [D2] send_to_one: sending SETINFO driver.version.usb "libusb-1.0.0 (API: 0x1000102)"
                     5.396206     [D2] send_to_one: sending SETINFO input.frequency "49.9"
                     5.396230     [D2] send_to_one: sending SETINFO input.voltage "227.2"
                     5.396254     [D2] send_to_one: sending SETINFO input.voltage.fault "227.2"
                     5.396277     [D2] send_to_one: sending SETINFO output.voltage "229.9"
                     5.396325     [D2] send_to_one: sending SETINFO ups.beeper.status "enabled"
                     5.396349     [D2] send_to_one: sending SETINFO ups.delay.shutdown "30"
                     5.396374     [D2] send_to_one: sending ADDRANGE ups.delay.shutdown 12 600
                     5.396400     [D2] send_to_one: sending SETFLAGS ups.delay.shutdown RW NUMBER
                     5.396423     [D2] send_to_one: sending SETINFO ups.delay.start "180"
                     5.396446     [D2] send_to_one: sending ADDRANGE ups.delay.start 0 599940
                     5.396496     [D2] send_to_one: sending SETFLAGS ups.delay.start RW NUMBER
                     5.396520     [D2] send_to_one: sending SETINFO ups.load "46"
                     5.396544     [D2] send_to_one: sending SETINFO ups.productid "0005"
                     5.396568     [D2] send_to_one: sending SETINFO ups.status "OL"
                     5.396591     [D2] send_to_one: sending SETINFO ups.temperature "28.0"
                     5.396640     [D2] send_to_one: sending SETINFO ups.type "online"
                     5.396688     [D2] send_to_one: sending SETINFO ups.vendorid "06da"
                     5.396732     [D2] send_to_one: sending ADDCMD beeper.toggle
                     5.396767     [D2] send_to_one: sending ADDCMD driver.killpower
                     5.396790     [D2] send_to_one: sending ADDCMD driver.reload
                     5.396829     [D2] send_to_one: sending ADDCMD driver.reload-or-error
                     5.396868     [D2] send_to_one: sending ADDCMD driver.reload-or-exit
                     5.396892     [D2] send_to_one: sending ADDCMD load.off
                     5.396940     [D2] send_to_one: sending ADDCMD load.on
                     5.396963     [D2] send_to_one: sending ADDCMD shutdown.return
                     5.396985     [D2] send_to_one: sending ADDCMD shutdown.stayoff
                     5.397008     [D2] send_to_one: sending ADDCMD shutdown.stop
                     5.397036     [D2] send_to_one: sending ADDCMD test.battery.start
                     5.397060     [D2] send_to_one: sending ADDCMD test.battery.start.deep
                     5.397099     [D2] send_to_one: sending ADDCMD test.battery.start.quick
                     5.397139     [D2] send_to_one: sending ADDCMD test.battery.stop
                     5.397192     [D2] send_to_one: sending DATAOK
                     5.397215     [D2] send_to_one: sending DUMPDONE
                     6.077221     [D1] upsdrv_updateinfo...
                     6.077350     [D1] Quick update...
                     7.150342     [D3] flush: Timeout (-7)
                     7.156732     [D3] send: Q1
                     7.395152     [D3] read: (227.0 227.0 230.4 048 49.9 2.18 27.9 00000001
                     8.092753     [D1] upsdrv_updateinfo...
                     8.092830     [D1] Quick update...
                     9.166248     [D3] flush: Timeout (-7)
                     9.172723     [D3] send: Q1
                     9.410777     [D3] read: (226.7 226.7 230.6 047 49.9 2.18 27.9 00000001
                    10.093141     [D1] upsdrv_updateinfo...
                    10.093246     [D1] Quick update...
                    11.166278     [D3] flush: Timeout (-7)
                    11.172787     [D3] send: Q1
                    11.410780     [D3] read: (227.2 227.2 229.7 046 49.9 2.18 28.0 00000001
                    12.094144     [D1] upsdrv_updateinfo...
                    12.094240     [D1] Quick update...
                    13.166398     [D3] flush: Timeout (-7)
                    13.172831     [D3] send: Q1
                    13.410816     [D3] read: (227.0 227.0 229.9 046 49.9 2.18 27.9 00000001
                    14.095131     [D1] upsdrv_updateinfo...
                    14.095203     [D1] Quick update...
                    15.166410     [D3] flush: Timeout (-7)
                    15.172846     [D3] send: Q1
                    15.410921     [D3] read: (227.2 227.2 230.1 046 49.9 2.18 28.0 00000001
                    16.109145     [D1] upsdrv_updateinfo...
                    16.109229     [D1] Quick update...
                    16.828198     [D1] set_exit_flag: raising exit flag due to signal 2
                    16.830334     [D3] flush: Other error (-99)
                    16.836886     [D3] send: Q1
                    17.074899     [D3] read: (226.5 226.5 230.4 045 49.9 2.18 28.0 00000001
                    18.110242     Signal 2: exiting
                  

                  Thanks in advance

                  dennypageD 1 Reply Last reply Reply Quote 0
                  • dennypageD
                    dennypage @LanterIT
                    last edited by

                    @LanterIT said in NUT Package (2.8.1 and above):

                    (227.2 227.2 229.7 046 49.9 2.18 28.0 00000001

                    These look about right, yes?

                    Input voltage: 227.2
                    Output voltage: 229.7
                    UPS load: 046
                    Input frequency: 49.9
                    Battery voltage: 2.18 (single pack presumably)
                    UPS temperature: 28.0
                    Status: 00000001 (beeper enabled)

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      LanterIT @dennypage
                      last edited by LanterIT

                      @dennypage

                      yes, except battery voltage

                      1 Reply Last reply Reply Quote 0
                      • dennypageD
                        dennypage @LanterIT
                        last edited by

                        @LanterIT said in NUT Package (2.8.1 and above):

                        I have now connected the UPS to an APU2 with pfSense.
                        pfSense and packages are up to date and the blazer_usb works here.

                        I missed this... you are saying that the blazer_usb driver worked?

                        If so, did you capture a DDD output from it as well?

                        L 1 Reply Last reply Reply Quote 0
                        • L
                          LanterIT @dennypage
                          last edited by

                          @dennypage

                          now the output from blazer_usb:

                          /usr/local/libexec/nut/blazer_usb -DDD -a ABB
                          Network UPS Tools - Megatec/Q1 protocol USB driver 0.17 (2.8.1.1)
                             0.000001     [D3] do_global_args: var='user' val='root'
                             0.000076     [D1] testval_reloadable: setting 'user' exists and differs: new value 'root' vs. 'nut'
                             0.000108     [D1] Overriding previously specified user 'nut' with 'root' specified in global section
                             0.000163     [D3] main_arg: var='driver' val='blazer_usb'
                             0.000202     [D3] main_arg: var='port' val='auto'
                             0.000259     [D3] main_arg: var='protocol' val='megatec'
                             0.000343     [D3] main_arg: var='subdriver' val='phoenix'
                             0.000417     [D3] main_arg: var='productid' val='0005'
                             0.000473     [D3] main_arg: var='vendorid' val='06da'
                             0.000534     [D3] main_arg: var='synchronous' val='yes'
                             0.000565     [D1] testval_reloadable: setting 'synchronous' exists and differs: new value 'yes' vs. 'auto'
                             0.000639     [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.000694     [D1] debug level is '3'
                             0.002450     [D1] Succeeded to become_user(root): now UID=0 GID=0
                             0.003833     [D2] Checking device 1 of 6 (0000/0000)
                             0.004455     [D1] nut_libusb_open: invalid libusb bus number 0
                             0.004590     [D2] - VendorID: 0000
                             0.004618     [D2] - ProductID: 0000
                             0.004642     [D2] - Manufacturer: AMD
                             0.004666     [D2] - Product: EHCI root HUB
                             0.004690     [D2] - Serial Number: unknown
                             0.004714     [D2] - Bus: 002
                             0.004738     [D2] - Bus Port: unknown
                             0.004760     [D2] - Device: 001
                             0.004784     [D2] - Device release number: 0100
                             0.004808     [D2] Trying to match device
                             0.004831     [D3] match_function_regex: matching a device...
                             0.004878     [D2] match_function_regex: failed match of VendorID:    0
                             0.004905     [D2] Device does not match - skipping
                             0.005006     [D2] Checking device 2 of 6 (0000/0000)
                             0.005151     [D1] nut_libusb_open: invalid libusb bus number 0
                             0.005239     [D2] - VendorID: 0000
                             0.005267     [D2] - ProductID: 0000
                             0.005290     [D2] - Manufacturer: AMD
                             0.005313     [D2] - Product: XHCI root HUB
                             0.005335     [D2] - Serial Number: unknown
                             0.005360     [D2] - Bus: 000
                             0.005382     [D2] - Bus Port: unknown
                             0.005405     [D2] - Device: 001
                             0.005428     [D2] - Device release number: 0100
                             0.005450     [D2] Trying to match device
                             0.005474     [D3] match_function_regex: matching a device...
                             0.005506     [D2] match_function_regex: failed match of VendorID:    0
                             0.005530     [D2] Device does not match - skipping
                             0.005605     [D2] Checking device 3 of 6 (0000/0000)
                             0.005745     [D1] nut_libusb_open: invalid libusb bus number 0
                             0.005827     [D2] - VendorID: 0000
                             0.005852     [D2] - ProductID: 0000
                             0.005876     [D2] - Manufacturer: AMD
                             0.005898     [D2] - Product: EHCI root HUB
                             0.005921     [D2] - Serial Number: unknown
                             0.005944     [D2] - Bus: 001
                             0.005976     [D2] - Bus Port: unknown
                             0.006000     [D2] - Device: 001
                             0.006023     [D2] - Device release number: 0100
                             0.006047     [D2] Trying to match device
                             0.006075     [D3] match_function_regex: matching a device...
                             0.006107     [D2] match_function_regex: failed match of VendorID:    0
                             0.006134     [D2] Device does not match - skipping
                             0.006213     [D2] Checking device 4 of 6 (06DA/0005)
                             0.092906     [D1] nut_libusb_open get iSerialNumber failed, retrying...
                             0.121657     [D1] nut_libusb_open get iSerialNumber failed, retrying...
                             0.151015     [D1] nut_libusb_open get iSerialNumber failed, retrying...
                             0.151112     [D2] - VendorID: 06da
                             0.151139     [D2] - ProductID: 0005
                             0.151163     [D2] - Manufacturer: PPC
                             0.151188     [D2] - Product: USB UPS
                             0.151212     [D2] - Serial Number: unknown
                             0.151235     [D2] - Bus: 000
                             0.151258     [D2] - Bus Port: 003
                             0.151280     [D2] - Device: 002
                             0.151304     [D2] - Device release number: 0001
                             0.151328     [D2] Trying to match device
                             0.151352     [D3] match_function_regex: matching a device...
                             0.151427     [D2] Device matches
                             0.151453     [D2] Reading configuration descriptor 1 of 1
                             0.151783     [D3] libusb_kernel_driver_active() returned 0: Success
                             0.151828     [D2] Claimed interface 0 successfully
                             0.151863     [D3] nut_usb_set_altinterface: skipped libusb_set_interface_alt_setting(udev, 0, 0)
                             0.152037     Please note that this driver is deprecated and will not receive
                          new development. If it works for managing your devices - fine,
                          but if you are running it to try setting up a new device, please
                          consider the newer nutdrv_qx instead, which should handle all 'Qx'
                          protocol variants for NUT. (Please also report if your device works
                          with this driver, but nutdrv_qx would not actually support it with
                          any subdriver!)
                          
                             0.152075     [D2] Trying megatec protocol...
                             1.252539     [D3] flush: Timeout
                             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
                             3.959609     [D3] flush: Timeout
                             3.966907     [D3] send: I
                             4.038094     [D3] read:
                             4.038159     [D2] blazer_vendor: short reply
                             4.038176     [D1] Vendor information read 1 failed
                             4.236860     [D3] send: I
                             4.310070     [D3] read:
                             4.310234     [D2] blazer_vendor: short reply
                             4.310250     [D1] Vendor information read 2 failed
                             4.509135     [D3] send: I
                             4.582089     [D3] read:
                             4.582168     [D2] blazer_vendor: short reply
                             4.582189     [D1] Vendor information read 3 failed
                             4.582204     Vendor information unavailable
                             4.582219     No values provided for battery high/low voltages in ups.conf
                             4.582309     Using 'guesstimation' (low: 31.200000, high: 39.000000)!
                             4.582330     Battery runtime will not be calculated (runtimecal not set)
                             4.780875     [D3] send: Q1
                             5.014126     [D3] read: (225.7 225.7 230.4 047 50.0 2.18 28.0 00000001
                             5.015069     [D2] dstate_init: sock /var/db/nut/blazer_usb-ABB open on fd 8
                             5.015203     [D1] Group and/or user account for this driver was customized ('root:nut') compared to built-in defaults. Fixing socket '/var/db/nut/blazer_usb-ABB' ownership/access.
                             5.015254     [D1] WARNING: opening socket file for stat/chown failed (45), which is rather typical for Unix socket handling: Operation not supported
                             5.015497     [D1] Group access for this driver successfully fixed (using file name based methods)
                             5.015555     Running as foreground process, not saving a PID file
                             5.015634     [D1] Driver initialization completed, beginning regular infinite loop
                             5.015682     upsnotify: failed to notify about state 2: no notification tech defined, will not spam more about it
                             6.151653     [D3] flush: Timeout
                             6.158991     [D3] send: Q1
                             6.390178     [D3] read: (226.1 226.1 229.5 045 50.0 2.18 28.0 00000001
                             6.390467     sock_connect: keeping default synchronous mode
                             6.390641     [D3] new connection on fd 9
                             6.390730     [D2] send_to_one: sending SETINFO battery.charge "100"
                             6.390777     [D2] send_to_one: sending SETINFO battery.voltage "39.24"
                             6.390829     [D2] send_to_one: sending SETINFO battery.voltage.high "39.00"
                             6.390856     [D2] send_to_one: sending SETINFO battery.voltage.low "31.20"
                             6.390880     [D2] send_to_one: sending SETINFO battery.voltage.nominal "36.0"
                             6.390936     [D2] send_to_one: sending SETINFO device.type "ups"
                             6.390960     [D2] send_to_one: sending SETINFO driver.debug "3"
                             6.390991     [D2] send_to_one: sending SETFLAGS driver.debug RW NUMBER
                             6.391015     [D2] send_to_one: sending SETINFO driver.flag.allow_killpower "0"
                             6.391041     [D2] send_to_one: sending SETFLAGS driver.flag.allow_killpower RW NUMBER
                             6.391064     [D2] send_to_one: sending SETINFO driver.name "blazer_usb"
                             6.391114     [D2] send_to_one: sending SETINFO driver.parameter.pollinterval "2"
                             6.391138     [D2] send_to_one: sending SETINFO driver.parameter.port "auto"
                             6.391162     [D2] send_to_one: sending SETINFO driver.parameter.productid "0005"
                             6.391186     [D2] send_to_one: sending SETINFO driver.parameter.protocol "megatec"
                             6.391210     [D2] send_to_one: sending SETINFO driver.parameter.subdriver "phoenix"
                             6.391234     [D2] send_to_one: sending SETINFO driver.parameter.synchronous "yes"
                             6.391257     [D2] send_to_one: sending SETINFO driver.parameter.vendorid "06da"
                             6.391282     [D2] send_to_one: sending SETINFO driver.state "quiet"
                             6.391305     [D2] send_to_one: sending SETINFO driver.version "2.8.1.1"
                             6.391328     [D2] send_to_one: sending SETINFO driver.version.internal "0.17"
                             6.391351     [D2] send_to_one: sending SETINFO driver.version.usb "libusb-1.0.0 (API: 0x1000102)"
                             6.391375     [D2] send_to_one: sending SETINFO input.current.nominal "4.0"
                             6.391419     [D2] send_to_one: sending SETINFO input.frequency "50.0"
                             6.391479     [D2] send_to_one: sending SETINFO input.frequency.nominal "50"
                             6.391503     [D2] send_to_one: sending SETINFO input.voltage "226.1"
                             6.391527     [D2] send_to_one: sending SETINFO input.voltage.fault "226.1"
                             6.391583     [D2] send_to_one: sending SETINFO input.voltage.nominal "230"
                             6.391636     [D2] send_to_one: sending SETINFO output.voltage "229.5"
                             6.391660     [D2] send_to_one: sending SETINFO ups.beeper.status "enabled"
                             6.391683     [D2] send_to_one: sending SETINFO ups.delay.shutdown "30"
                             6.391706     [D2] send_to_one: sending SETINFO ups.delay.start "180"
                             6.391728     [D2] send_to_one: sending SETINFO ups.load "45"
                             6.391752     [D2] send_to_one: sending SETINFO ups.productid "0005"
                             6.391793     [D2] send_to_one: sending SETINFO ups.status "OL"
                             6.391829     [D2] send_to_one: sending SETINFO ups.temperature "28.0"
                             6.391852     [D2] send_to_one: sending SETINFO ups.type "online"
                             6.391875     [D2] send_to_one: sending SETINFO ups.vendorid "06da"
                             6.391898     [D2] send_to_one: sending ADDCMD beeper.toggle
                             6.391926     [D2] send_to_one: sending ADDCMD driver.killpower
                             6.391949     [D2] send_to_one: sending ADDCMD driver.reload
                             6.392006     [D2] send_to_one: sending ADDCMD driver.reload-or-error
                             6.392030     [D2] send_to_one: sending ADDCMD driver.reload-or-exit
                             6.392053     [D2] send_to_one: sending ADDCMD load.off
                             6.392080     [D2] send_to_one: sending ADDCMD load.on
                             6.392102     [D2] send_to_one: sending ADDCMD shutdown.return
                             6.392130     [D2] send_to_one: sending ADDCMD shutdown.stayoff
                             6.392170     [D2] send_to_one: sending ADDCMD shutdown.stop
                             6.392208     [D2] send_to_one: sending ADDCMD test.battery.start
                             6.392236     [D2] send_to_one: sending ADDCMD test.battery.start.deep
                             6.392258     [D2] send_to_one: sending ADDCMD test.battery.start.quick
                             6.392282     [D2] send_to_one: sending ADDCMD test.battery.stop
                             6.392304     [D2] send_to_one: sending DATAOK
                             6.392362     [D2] send_to_one: sending DUMPDONE
                             8.114274     [D3] flush: Timeout
                             8.120763     [D3] send: Q1
                             8.357810     [D3] read: (225.9 225.9 229.7 046 50.0 2.18 28.0 00000001
                            10.113421     [D3] flush: Timeout
                            10.119933     [D3] send: Q1
                            10.350004     [D3] read: (225.9 225.9 229.9 046 49.9 2.18 28.0 00000001
                            12.148701     [D3] flush: Timeout
                            12.156105     [D3] send: Q1
                            12.390347     [D3] read: (226.1 225.9 229.5 046 49.9 2.18 28.0 00000001
                            14.161443     [D3] flush: Timeout
                            14.167937     [D3] send: Q1
                            14.406015     [D3] read: (225.9 225.9 229.5 045 50.0 2.18 28.0 00000001
                            16.162491     [D3] flush: Timeout
                            16.169017     [D3] send: Q1
                            16.406011     [D3] read: (226.1 226.1 229.7 046 49.9 2.18 28.0 00000001
                          
                          
                          dennypageD 1 Reply Last reply Reply Quote 0
                          • dennypageD
                            dennypage @LanterIT
                            last edited by

                            @LanterIT I believe we are making progress.

                            The QX "q1" protocol is the same as the "megatec" protocol except that it removes vendor information 'I' (manufacturer, model, firmware) and ratings 'F' (nominal input voltage & current, battery voltage and frequency). The UPS responded to ratings in the blazer_usb driver, but did not respond to vendor information.

                            The other two QX protocol drivers that do not require 'I' are "hunnox" and "zinto". They both do 'F'. They also both do 'FW', which replaces 'I' in these drivers. I'm going to set the "hunnox" driver aside as it has some other differences from "megatec" and "zinto" that I do not understand.

                            I have two configurations that I recommend testing. The first is the "zinto" protocol, and what we want to know is if the UPS responds to 'FW'. This is the zinto configuration:

                            vendorid=06da
                            productid=0005
                            subdriver = "phoenix"
                            protocol = "zinto"
                            

                            The second is a "megatec" protocol, with the 'I' (vendor information) disabled. This is the "megatec" configuration:

                            vendorid=06da
                            productid=0005
                            subdriver = "phoenix"
                            protocol = "megatec"
                            novendor
                            
                            L 2 Replies Last reply Reply Quote 0
                            • L
                              LanterIT @dennypage
                              last edited by

                              @dennypage

                              zinto does not work. here the 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.000000     [D3] do_global_args: var='user' val='root'
                                 0.000053     [D1] testval_reloadable: setting 'user' exists and differs: new value 'root' vs. 'nut'
                                 0.000100     [D1] Overriding previously specified user 'nut' with 'root' specified in global section
                                 0.000161     [D3] main_arg: var='driver' val='nutdrv_qx'
                                 0.000184     [D3] main_arg: var='port' val='auto'
                                 0.000218     [D3] main_arg: var='vendorid' val='06da'
                                 0.000295     [D3] main_arg: var='productid' val='0005'
                                 0.000333     [D3] main_arg: var='subdriver' val='phoenix'
                                 0.000368     [D3] main_arg: var='protocol' val='zinto'
                                 0.000435     [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.000468     [D1] debug level is '3'
                                 0.001964     [D1] Succeeded to become_user(root): now UID=0 GID=0
                                 0.002063     [D1] upsdrv_initups...
                                 0.003081     [D2] Checking device 1 of 6 (0000/0000)
                                 0.003637     [D1] nut_libusb_open: invalid libusb bus number 0
                                 0.003723     [D2] - VendorID: 0000
                                 0.003767     [D2] - ProductID: 0000
                                 0.003781     [D2] - Manufacturer: AMD
                                 0.003823     [D2] - Product: XHCI root HUB
                                 0.003837     [D2] - Serial Number: unknown
                                 0.003851     [D2] - Bus: 000
                                 0.003864     [D2] - Bus Port: unknown
                                 0.003879     [D2] - Device: 001
                                 0.003893     [D2] - Device release number: 0100
                                 0.003907     [D2] Trying to match device
                                 0.003922     [D3] match_function_regex: matching a device...
                                 0.003978     [D2] match_function_regex: failed match of VendorID:    0
                                 0.004021     [D2] Device does not match - skipping
                                 0.004107     [D2] Checking device 2 of 6 (0000/0000)
                                 0.004193     [D1] nut_libusb_open: invalid libusb bus number 0
                                 0.004270     [D2] - VendorID: 0000
                                 0.004286     [D2] - ProductID: 0000
                                 0.004300     [D2] - Manufacturer: AMD
                                 0.004330     [D2] - Product: EHCI root HUB
                                 0.004358     [D2] - Serial Number: unknown
                                 0.004372     [D2] - Bus: 001
                                 0.004386     [D2] - Bus Port: unknown
                                 0.004400     [D2] - Device: 001
                                 0.004414     [D2] - Device release number: 0100
                                 0.004428     [D2] Trying to match device
                                 0.004467     [D3] match_function_regex: matching a device...
                                 0.004486     [D2] match_function_regex: failed match of VendorID:    0
                                 0.004501     [D2] Device does not match - skipping
                                 0.004546     [D2] Checking device 3 of 6 (0000/0000)
                                 0.004704     [D1] nut_libusb_open: invalid libusb bus number 0
                                 0.004752     [D2] - VendorID: 0000
                                 0.004768     [D2] - ProductID: 0000
                                 0.004812     [D2] - Manufacturer: AMD
                                 0.004826     [D2] - Product: EHCI root HUB
                                 0.004840     [D2] - Serial Number: unknown
                                 0.004854     [D2] - Bus: 002
                                 0.004898     [D2] - Bus Port: unknown
                                 0.004912     [D2] - Device: 001
                                 0.004926     [D2] - Device release number: 0100
                                 0.004940     [D2] Trying to match device
                                 0.004954     [D3] match_function_regex: matching a device...
                                 0.004991     [D2] match_function_regex: failed match of VendorID:    0
                                 0.005018     [D2] Device does not match - skipping
                                 0.005093     [D2] Checking device 4 of 6 (06DA/0005)
                                 0.092424     [D1] nut_libusb_open get iSerialNumber failed, retrying...
                                 0.121448     [D1] nut_libusb_open get iSerialNumber failed, retrying...
                                 0.150362     [D1] nut_libusb_open get iSerialNumber failed, retrying...
                                 0.150445     [D2] - VendorID: 06da
                                 0.150461     [D2] - ProductID: 0005
                                 0.150507     [D2] - Manufacturer: PPC
                                 0.150522     [D2] - Product: USB UPS
                                 0.150536     [D2] - Serial Number: unknown
                                 0.150550     [D2] - Bus: 000
                                 0.150564     [D2] - Bus Port: 003
                                 0.150578     [D2] - Device: 002
                                 0.150592     [D2] - Device release number: 0001
                                 0.150628     [D2] Trying to match device
                                 0.150657     [D3] match_function_regex: matching a device...
                                 0.150749     [D2] Device matches
                                 0.150779     [D2] Reading configuration descriptor 1 of 1
                                 0.150994     [D3] libusb_kernel_driver_active() returned 0: Success
                                 0.151021     [D2] Claimed interface 0 successfully
                                 0.151045     [D3] nut_usb_set_altinterface: skipped libusb_set_interface_alt_setting(udev, 0, 0)
                                 0.151156     [D2] Skipping protocol Voltronic 0.08
                                 0.151175     [D2] Skipping protocol Voltronic-QS 0.09
                                 0.151216     [D2] Skipping protocol Voltronic-QS-Hex 0.10
                                 0.151233     [D2] Skipping protocol Mustek 0.08
                                 0.151249     [D2] Skipping protocol Megatec/old 0.08
                                 0.151264     [D2] Skipping protocol BestUPS 0.07
                                 0.151311     [D2] Skipping protocol Mecer 0.08
                                 0.151327     [D2] Skipping protocol Megatec 0.07
                                 1.167042     [D3] flush: Timeout (-7)
                                 1.173459     [D3] send: Q1
                                 1.404486     [D3] read: (227.2 227.2 230.8 047 49.9 2.17 28.0 00000001
                                 2.484000     [D3] flush: Timeout (-7)
                                 2.490438     [D3] send: FW?
                                 2.572673     [D3] read: 05732-0300
                                 2.572822     [D2] qx_process_answer: short reply (ups.firmware)
                                 2.771489     [D3] send: Q1
                                 3.004697     [D3] read: (227.4 227.4 229.7 047 49.9 2.17 28.1 00000001
                                 4.125952     [D3] flush: Timeout (-7)
                                 4.132437     [D3] send: FW?
                                 4.212518     [D3] read: 05732-0300
                                 4.212555     [D2] qx_process_answer: short reply (ups.firmware)
                                 4.411508     [D3] send: Q1
                                 4.644529     [D3] read: (227.6 227.6 229.7 047 49.9 2.17 28.1 00000001
                                 5.756031     [D3] flush: Timeout (-7)
                                 5.762515     [D3] send: FW?
                                 5.844578     [D3] read: 05732-0300
                                 5.844628     [D2] qx_process_answer: short reply (ups.firmware)
                                 5.844696     [D2] Skipping protocol Masterguard 0.02
                                 5.844734     [D2] Skipping protocol Hunnox 0.02
                                 5.844764     [D2] Skipping protocol Ablerex 0.01
                                 5.844781     [D2] Skipping protocol Q1 0.08
                                 5.844796     Device not supported!
                                 5.844810     Device not supported!
                                 5.844933     upsnotify: failed to notify about state 4: no notification tech defined, will not spam more about it
                              
                              dennypageD 1 Reply Last reply Reply Quote 0
                              • L
                                LanterIT @dennypage
                                last edited by

                                @dennypage

                                "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
                                
                                1 Reply Last reply Reply Quote 0
                                • dennypageD
                                  dennypage @LanterIT
                                  last edited by dennypage

                                  @LanterIT said in NUT Package (2.8.1 and above):

                                  2.490438 [D3] send: FW?
                                  2.572673 [D3] read: 05732-0300

                                  This 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.

                                  L 1 Reply Last reply Reply Quote 0
                                  • L
                                    LanterIT @dennypage
                                    last edited by

                                    @dennypage

                                    Already tried, see post 242

                                    dennypageD 1 Reply Last reply Reply Quote 0
                                    • dennypageD
                                      dennypage @LanterIT
                                      last edited by

                                      @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.

                                      L 2 Replies Last reply Reply Quote 0
                                      • L
                                        LanterIT @dennypage
                                        last edited by

                                        @dennypage

                                        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...
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • L
                                          LanterIT @dennypage
                                          last edited by

                                          @dennypage

                                          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?

                                          dennypageD 2 Replies Last reply Reply Quote 0
                                          • dennypageD
                                            dennypage @LanterIT
                                            last edited by

                                            @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.

                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.