Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working: ExeGate Power RM UNL-1500 LCD - Lakeview Research UPS USB Mon V2.0 #2764

Open
gandc66 opened this issue Jan 14, 2025 · 3 comments
Labels
impacts-release-2.8.2 Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks) Incorrect or missing readings On some devices driver-reported values are systemically off (e.g. x10, x0.1, const+Value, etc.) Qx protocol driver Driver based on Megatec Q<number> such as new nutdrv_qx, or obsoleted blazer and some others USB

Comments

@gandc66
Copy link

gandc66 commented Jan 14, 2025

I'm trying to run this ExeGate Power RM UNL-1500 LCD, I compiled the latest version but it doesn't work, it seems the Lakeview Research UPS USB Mon V2.0 is not supported.
With UPS I have received a disk with richcomm powermanager.

build proccess:

apt install libusb-1.0-0-dev libsnmp-dev libgd-dev autoconf automake libtool pkg-config build-essential git wget -y
useradd nut --system
git clone https://github.com/networkupstools/nut.git
./autogen.sh
./configure --with-user=nut --with-group=nut --with-usb --with-cgi --with-snmp
make
make install

lsusb -v -d0925:1234

Bus 002 Device 006: ID 0925:1234 Lakeview Research UPS USB Mon V2.0
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0925 Lakeview Research
  idProduct          0x1234
  bcdDevice            0.00
  iManufacturer           1 RICHCOMM
  iProduct                2 UPS USB Mon V2.0
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0029
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4 RICHCOMM
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower               70mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              5 RICHCOMM
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.00
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      34
          Report Descriptor: (length is 34)
            Item(Global): Usage Page, data= [ 0x00 0xff ] 65280
                            (null)
            Item(Local ): Usage, data= [ 0x01 ] 1
                            (null)
            Item(Main  ): Collection, data= [ 0x01 ] 1
                            Application
            Item(Local ): Usage, data= [ 0x02 ] 2
                            (null)
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x00 0xff ] 65280
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Global): Report Count, data= [ 0x40 ] 64
            Item(Main  ): Input, data= [ 0x06 ] 6
                            Data Variable Relative No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x02 ] 2
                            (null)
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x00 0xff ] 65280
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Global): Report Count, data= [ 0x40 ] 64
            Item(Main  ): Output, data= [ 0x06 ] 6
                            Data Variable Relative No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Main  ): End Collection, data=none
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
Device Status:     0x0000
  (Bus Powered)

/usr/local/ups/bin/nutdrv_qx -s exegate -u root -DDDDDD -x productid=1234 -x vendorid=0925 -x subdriver=armac -x port=auto

   0.000000     [D5] send_to_all: SETINFO driver.state "init.starting"
Network UPS Tools 2.8.2.1877-1877-ge7788b97d (development iteration after 2.8.2) - Generic Q* USB/Serial driver 0.39
USB communication driver (libusb 1.0) 0.50
   0.000081     [D1] upsdrv_makevartable...
   0.000099     [D5] send_to_all: SETINFO driver.version.usb "libusb-1.0.26 (API: 0x01000109)"
   0.000104     [D1] Using USB implementation: libusb-1.0.26 (API: 0x01000109)
   0.000125     [D1] Built-in default or configured user for drivers 'nut' was ignored due to 'root' specified on command line
   0.000132     [D3] main_arg: var='productid' val='1234'
   0.000138     [D5] send_to_all: SETINFO driver.parameter.productid "1234"
   0.000144     [D3] main_arg: var='vendorid' val='0925'
   0.000149     [D5] send_to_all: SETINFO driver.parameter.vendorid "0925"
   0.000152     [D3] main_arg: var='subdriver' val='armac'
   0.000159     [D5] send_to_all: SETINFO driver.parameter.subdriver "armac"
   0.000165     [D3] main_arg: var='port' val='auto'
   0.000169     [D6] testinfo_reloadable: var=port, infoname=driver.parameter.port, newval=auto, reloadable=0, reload_flag=0
   0.000172     [D6] testinfo_reloadable: verdict for (re)loading var=port value: 1
   0.000176     [D5] send_to_all: SETINFO driver.parameter.port "auto"
   0.000179     [D1] Network UPS Tools version 2.8.2.1877-1877-ge7788b97d (development iteration after 2.8.2) built with gcc (Debian 12.2.0-14) 12.2.0 and configured with flags: --with-user=nut --with-group=nut --with-usb --with-cgi --with-snmp
   0.000183     [D1] debug level is '6'
   0.000189     [D5] send_to_all: SETINFO driver.debug "6"
   0.000193     [D5] send_to_all: SETFLAGS driver.debug RW NUMBER
   0.000839     [D1] Succeeded to become_user(root): now UID=0 GID=0
   0.000877     [D1] Signalling UPS [exegate]: driver.exit (quietly, no fuss if no driver is running or responding)
   0.000888     Can't open /var/state/ups/nutdrv_qx-exegate: No such file or directory
   0.000892     [D1] Request for other driver to exit returned code -1
   0.000896     [D1] Socket dialog with the other driver instance (may be absent) failed: No such file or directory
   0.000900     [D5] send_to_all: SETINFO device.type "ups"
   0.000904     [D5] send_to_all: SETINFO driver.state "init.device"
   0.000907     [D1] upsdrv_initups...
   0.004571     [D2] Checking device 1 of 5 (1D6B/0002)
   0.005465     [D1] nut_libusb_open: invalid libusb bus number 0
   0.005598     [D2] - VendorID: 1d6b
   0.005616     [D2] - ProductID: 0002
   0.005620     [D2] - Manufacturer: Linux 6.1.0-29-amd64 ehci_hcd
   0.005624     [D2] - Product: EHCI Host Controller
   0.005627     [D2] - Serial Number: 0000:02:03.0
   0.005630     [D2] - Bus: 001
   0.005632     [D2] - Bus Port: unknown
   0.005635     [D2] - Device: 001
   0.005638     [D2] - Device release number: 0601
   0.005738     [D2] Trying to match device
   0.005746     [D3] match_function_regex: matching a device...
   0.005771     [D2] match_function_regex: failed match of VendorID: 1d6b
   0.005777     [D2] Device does not match - skipping
   0.020990     [D2] Checking device 2 of 5 (0925/1234)
   0.027389     [D2] - VendorID: 0925
   0.027407     [D2] - ProductID: 1234
   0.027409     [D2] - Manufacturer: RICHCOMM
   0.027411     [D2] - Product: UPS USB Mon V2.0
   0.027413     [D2] - Serial Number: unknown
   0.027415     [D2] - Bus: 002
   0.027416     [D2] - Bus Port: 001
   0.027418     [D2] - Device: 006
   0.027420     [D2] - Device release number: 0000
   0.027422     [D2] Trying to match device
   0.027424     [D3] match_function_regex: matching a device...
   0.027446     [D2] Device matches
   0.027448     [D2] Reading configuration descriptor 1 of 1
   0.027458     [D3] libusb_kernel_driver_active() returned 0: Success
   0.027471     [D2] Claimed interface 0 successfully
   0.027474     [D3] nut_libusb_set_altinterface: skipped libusb_set_interface_alt_setting(udev, 0, 0)
   0.027480     [D5] send_to_all: SETINFO ups.vendorid "0925"
   0.027482     [D5] send_to_all: SETINFO ups.productid "1234"
   0.027526     [D4] load_armac_endpoint_cache: in_endpoint_address=82, in_bmAttributes=03, out_endpoint_address=02, out_bmAttributes=03
   0.027534     [D2] armac: unsupported cmd: QGS
   0.027537     [D2] qx_process_answer: short reply (input.voltage)
   0.027539     [D2] armac: unsupported cmd: QGS
   0.027541     [D2] qx_process_answer: short reply (input.voltage)
   0.027543     [D2] armac: unsupported cmd: QGS
   0.027545     [D2] qx_process_answer: short reply (input.voltage)
   0.027547     [D2] armac: unsupported cmd: M
   0.027549     [D2] voltronic_qs_protocol: invalid protocol [M]
   0.027551     [D4] ups_infoval_set: failed to preprocess value [ups.firmware.aux: M]
   0.027553     [D2] armac: unsupported cmd: M
   0.027555     [D2] voltronic_qs_protocol: invalid protocol [M]
   0.027557     [D4] ups_infoval_set: failed to preprocess value [ups.firmware.aux: M]
   0.027559     [D2] armac: unsupported cmd: M
   0.027561     [D2] voltronic_qs_protocol: invalid protocol [M]
   0.027563     [D4] ups_infoval_set: failed to preprocess value [ups.firmware.aux: M]
   0.027565     [D2] armac: unsupported cmd: M
   0.027568     [D2] voltronic_qs_hex_protocol: invalid protocol [M]
   0.027569     [D4] ups_infoval_set: failed to preprocess value [ups.firmware.aux: M]
   0.027571     [D2] armac: unsupported cmd: M
   0.027573     [D2] voltronic_qs_hex_protocol: invalid protocol [M]
   0.027575     [D4] ups_infoval_set: failed to preprocess value [ups.firmware.aux: M]
   0.027577     [D2] armac: unsupported cmd: M
   0.027579     [D2] voltronic_qs_hex_protocol: invalid protocol [M]
   0.027581     [D4] ups_infoval_set: failed to preprocess value [ups.firmware.aux: M]
   0.027583     [D2] armac: unsupported cmd: QS
   0.027585     [D2] qx_process_answer: short reply (input.voltage)
   0.027587     [D2] armac: unsupported cmd: QS
   0.027589     [D2] qx_process_answer: short reply (input.voltage)
   0.027591     [D2] armac: unsupported cmd: QS
   0.027593     [D2] qx_process_answer: short reply (input.voltage)
   0.027595     [D2] armac: unsupported cmd: D
   0.027597     [D2] qx_process_answer: short reply (input.voltage)
   0.027599     [D2] armac: unsupported cmd: D
   0.027601     [D2] qx_process_answer: short reply (input.voltage)
   0.027603     [D2] armac: unsupported cmd: D
   0.027607     [D2] qx_process_answer: short reply (input.voltage)
   0.027610     [D4] armac command Q1
   0.286973     [D4] read: ret 64 buf af: 28 32 33 31 2e  >(231.<
   0.286998     [D3] armac command Q1 response read: '(231.0 000.0 232.0 002 49.0 13.5 30.8 00001001'
   0.287078     [D5] send_to_all: SETINFO input.voltage "231.0"
   0.287089     [D4] armac command ID
   0.517985     [D4] read: ret 64 buf e7: 23 20 20 20 20  >#    <
   0.518006     [D3] armac command ID response read: '#                           V6.00     '
   0.518009     [D4] bestups_preprocess_id_answer: wrong length [device.model: 39]
   0.518012     [D4] qx_process: failed to preprocess answer [device.model]
   0.518016     [D5] send_to_all: DELINFO input.voltage
   0.518021     [D4] armac command Q1
   0.777994     [D4] read: ret 64 buf af: 28 32 33 31 2e  >(231.<
   0.778014     [D3] armac command Q1 response read: '(231.0 000.0 232.0 002 49.0 13.5 30.8 00001001'
   0.778023     [D5] send_to_all: SETINFO input.voltage "231.0"
   0.778028     [D4] armac command ID
   0.998023     [D4] read: ret 64 buf e7: 23 20 20 20 20  >#    <
   0.998047     [D3] armac command ID response read: '#                           V6.00     '
   0.998050     [D4] bestups_preprocess_id_answer: wrong length [device.model: 39]
   0.998053     [D4] qx_process: failed to preprocess answer [device.model]
   0.998057     [D5] send_to_all: DELINFO input.voltage
   0.998060     [D4] armac command Q1
   1.259005     [D4] read: ret 64 buf af: 28 32 33 31 2e  >(231.<
   1.259027     [D3] armac command Q1 response read: '(231.0 000.0 232.0 002 50.0 13.5 30.8 00001001'
   1.259035     [D5] send_to_all: SETINFO input.voltage "231.0"
   1.259039     [D4] armac command ID
   1.479117     [D4] read: ret 64 buf e7: 23 20 20 20 20  >#    <
   1.479142     [D3] armac command ID response read: '#                           V6.00     '
   1.479145     [D4] bestups_preprocess_id_answer: wrong length [device.model: 39]
   1.479148     [D4] qx_process: failed to preprocess answer [device.model]
   1.479151     [D5] send_to_all: DELINFO input.voltage
   1.479155     [D4] armac command Q1
   1.740029     [D4] read: ret 64 buf af: 28 32 33 31 2e  >(231.<
   1.740049     [D3] armac command Q1 response read: '(231.0 000.0 232.0 002 49.0 13.5 30.8 00001001'
   1.740059     [D5] send_to_all: SETINFO input.voltage "231.0"
   1.740063     [D2] armac: unsupported cmd: QPI
   1.740065     [D2] qx_process_answer: short reply (ups.firmware.aux)
   1.740069     [D5] send_to_all: DELINFO input.voltage
   1.740072     [D4] armac command Q1
   2.000043     [D4] read: ret 64 buf ef: 28 32 33 31 2e  >(231.<
   2.000065     [D3] armac command Q1 response read: '(231.0 000.0 232.0 002 50.0 13.5 30.8 00001001'
   2.000074     [D5] send_to_all: SETINFO input.voltage "231.0"
   2.000078     [D2] armac: unsupported cmd: QPI
   2.000082     [D2] qx_process_answer: short reply (ups.firmware.aux)
   2.000084     [D5] send_to_all: DELINFO input.voltage
   2.000087     [D4] armac command Q1
   2.261073     [D4] read: ret 64 buf af: 28 32 33 31 2e  >(231.<
   2.261095     [D3] armac command Q1 response read: '(231.0 000.0 232.0 002 49.0 13.5 30.8 00001001'
   2.261104     [D5] send_to_all: SETINFO input.voltage "231.0"
   2.261107     [D2] armac: unsupported cmd: QPI
   2.261111     [D2] qx_process_answer: short reply (ups.firmware.aux)
   2.261115     [D5] send_to_all: DELINFO input.voltage
   2.261118     [D4] armac command Q1
   2.521074     [D4] read: ret 64 buf ef: 28 32 33 31 2e  >(231.<
   2.521095     [D3] armac command Q1 response read: '(231.0 000.0 232.0 002 49.0 13.5 30.8 00001001'
   2.521104     [D5] send_to_all: SETINFO input.voltage "231.0"
   2.521111     [D4] armac command I
   2.741055     [D4] read: ret 64 buf a7: 23 20 20 20 20  >#    <
   2.741075     [D3] armac command I response read: '#                           V6.00     '
   2.741083     [D5] send_to_all: SETINFO ups.firmware "V6.00"
   2.741088     Using protocol: Megatec 0.07
   2.741093     [D5] send_to_all: SETINFO driver.state "init.quiet"
   2.741097     [D5] send_to_all: SETINFO driver.version "2.8.2.1877-1877-ge7788b97d"
   2.741101     [D5] send_to_all: SETINFO driver.version.internal "0.39"
   2.741104     [D5] send_to_all: SETINFO driver.name "nutdrv_qx"
   2.741107     [D5] send_to_all: SETINFO driver.state "init.info"
   2.741110     [D1] upsdrv_initinfo...
   2.741114     [D5] send_to_all: SETINFO driver.version.data "Megatec 0.07"
   2.741121     [D4] armac command Q1
   3.002130     [D4] read: ret 64 buf ef: 28 32 33 31 2e  >(231.<
   3.002174     [D3] armac command Q1 response read: '(231.0 000.0 232.0 002 50.0 13.5 30.8 00001001'
   3.002183     [D5] send_to_all: SETINFO input.voltage.fault "0.0"
   3.002190     [D5] send_to_all: SETINFO output.voltage "232.0"
   3.002195     [D5] send_to_all: SETINFO ups.load "2"
   3.002199     [D5] send_to_all: SETINFO input.frequency "50.0"
   3.002203     [D5] send_to_all: SETINFO battery.voltage "13.5"
   3.002207     [D5] send_to_all: SETINFO ups.temperature "30.8"
   3.002211     [D5] update_status: OL
   3.002215     [D5] update_status: !LB
   3.002219     [D5] send_to_all: SETINFO ups.type "offline / line interactive"
   3.002222     [D5] update_status: !CAL
   3.002225     [D5] update_status: !FSD
   3.002229     [D5] send_to_all: SETINFO ups.beeper.status "enabled"
   3.002233     [D4] armac command F
   3.152240     [D4] read: ret 64 buf 96: 23 32 32 30 2e  >#220.<
   3.152264     [D3] armac command F response read: '#220.0 003 12.00 50.0'
   3.152274     [D5] send_to_all: SETINFO input.voltage.nominal "220"
   3.152278     [D5] send_to_all: SETINFO input.current.nominal "3.0"
   3.152284     [D5] send_to_all: SETINFO battery.voltage.nominal "12.0"
   3.152288     [D5] send_to_all: SETINFO input.frequency.nominal "50"
   3.152292     [D4] armac command I
   3.373148     [D4] read: ret 64 buf e7: 23 20 20 20 20  >#    <
   3.373173     [D3] armac command I response read: '#                           V6.00     '
   3.373181     [D1] ups_infoval_set: non significant value [device.mfr]
   3.373185     [D1] ups_infoval_set: non significant value [device.model]
   3.373189     [D5] send_to_all: ADDCMD beeper.toggle
   3.373193     [D5] send_to_all: ADDCMD load.off
   3.373196     [D5] send_to_all: ADDCMD load.on
   3.373200     [D5] send_to_all: ADDCMD shutdown.return
   3.373203     [D5] send_to_all: ADDCMD shutdown.stayoff
   3.373205     [D5] send_to_all: ADDCMD shutdown.stop
   3.373208     [D5] send_to_all: ADDCMD test.battery.start
   3.373211     [D5] send_to_all: ADDCMD test.battery.start.deep
   3.373214     [D5] send_to_all: ADDCMD test.battery.start.quick
   3.373218     [D5] send_to_all: ADDCMD test.battery.stop
   3.373222     [D5] send_to_all: SETINFO ups.delay.start "180"
   3.373226     [D5] send_to_all: SETFLAGS ups.delay.start RW
   3.373231     [D5] send_to_all: ADDRANGE ups.delay.start 0 599940
   3.373234     [D5] send_to_all: SETFLAGS ups.delay.start RW NUMBER
   3.373238     [D5] send_to_all: SETINFO ups.delay.shutdown "30"
   3.373241     [D5] send_to_all: SETFLAGS ups.delay.shutdown RW
   3.373244     [D5] send_to_all: ADDRANGE ups.delay.shutdown 12 600
   3.373247     [D5] send_to_all: SETFLAGS ups.delay.shutdown RW NUMBER
   3.373251     No values for battery high/low voltages
   3.373256     [D5] send_to_all: SETINFO battery.voltage.low "10.40"
   3.373260     [D5] send_to_all: SETINFO battery.voltage.high "13.00"
   3.373263     Using 'guesstimation' (low: 10.400000, high: 13.000000)!
   3.373268     [D5] send_to_all: SETINFO battery.charge "100"
   3.373271     Autodetected 1 as number of battery packs [12/13.50]
   3.373274     Battery runtime will not be calculated (runtimecal not set)
   3.373278     [D5] send_to_all: SETINFO driver.parameter.pollfreq "30"
   3.373283     [D5] send_to_all: ADDCMD shutdown.default
   3.373287     [D5] send_to_all: SETINFO driver.state "init.updateinfo"
   3.373290     [D1] upsdrv_updateinfo...
   3.373293     [D1] Quick update...
   3.373297     [D4] armac command Q1
   3.522769     [D1] set_exit_flag: raising exit flag due to signal 2
   3.633128     [D4] read: ret 64 buf af: 28 32 33 31 2e  >(231.<
   3.633152     [D3] armac command Q1 response read: '(231.0 000.0 232.0 002 49.0 13.5 30.8 00001001'
   3.633157     [D5] update_status: OL
   3.633159     [D5] update_status: !LB
   3.633162     [D5] update_status: !CAL
   3.633166     [D5] update_status: !FSD
   3.633172     [D5] send_to_all: SETINFO ups.status "OL"
   3.633175     [D5] send_to_all: DATAOK
   3.633178     [D5] send_to_all: SETINFO driver.state "init.quiet"
   3.633253     [D2] dstate_init: sock /var/state/ups/nutdrv_qx-exegate open on fd 9
   3.633460     [D1] Group and/or user account for this driver was customized ('root:nut') compared to built-in defaults. Fixing socket '/var/state/ups/nutdrv_qx-exegate' ownership/access.
   3.633471     [D1] WARNING: opening socket file for stat/chown failed, which is rather typical for Unix socket handling: No such device or address
   3.633487     [D1] Group access for this driver successfully fixed (using file name based methods)
   3.633492     [D5] send_to_all: SETINFO driver.parameter.pollinterval "2"
   3.633496     [D5] send_to_all: SETINFO driver.parameter.synchronous "auto"
   3.633499     Running as foreground process, not saving a PID file
   3.633503     [D5] send_to_all: SETINFO driver.flag.allow_killpower "0"
   3.633506     [D5] send_to_all: SETFLAGS driver.flag.allow_killpower RW NUMBER
   3.633510     [D5] send_to_all: ADDCMD driver.killpower
   3.633513     [D5] send_to_all: ADDCMD driver.reload
   3.633516     [D5] send_to_all: ADDCMD driver.reload-or-exit
   3.633518     [D5] send_to_all: ADDCMD driver.reload-or-error
   3.633522     [D5] send_to_all: SETINFO driver.state "quiet"
   3.633525     [D1] Driver initialization completed, beginning regular infinite loop

/bin/richcomm_usb -a exegate -DDDDD -u root

0.000003     [D5] send_to_all: SETINFO driver.state "init.starting"
Network UPS Tools 2.8.2.1877-1877-ge7788b97d (development iteration after 2.8.2) - Richcomm dry-contact to USB driver 0.14
Warning: This is an experimental driver.
Some features may not function correctly.

   0.000097     [D5] do_upsconf_args: confupsname=(null), var=maxretry, val=3
   0.000104     [D5] do_upsconf_args: call do_global_args()
   0.000107     [D3] do_global_args: var='maxretry' val='3'
   0.000147     [D5] do_upsconf_args: confupsname=exegate, var=driver, val=richcomm_usb
   0.000151     [D5] do_upsconf_args: call main_arg()
   0.000156     [D3] main_arg: var='driver' val='richcomm_usb'
   0.000160     [D5] do_upsconf_args: not a main_arg()
   0.000163     [D5] do_upsconf_args: this is a 'driver' setting, may we proceed?
   0.000166     [D5] do_upsconf_args: 'driver' setting already applied with this value
   0.000170     [D5] do_upsconf_args: confupsname=exegate, var=port, val=auto
   0.000173     [D5] do_upsconf_args: call main_arg()
   0.000176     [D3] main_arg: var='port' val='auto'
   0.000180     [D5] send_to_all: SETINFO driver.parameter.port "auto"
   0.000189     [D1] Built-in default or configured user for drivers 'nut' was ignored due to 'root' specified on command line
   0.000193     [D1] Network UPS Tools version 2.8.2.1877-1877-ge7788b97d (development iteration after 2.8.2) built with gcc (Debian 12.2.0-14) 12.2.0 and configured with flags: --with-user=nut --with-group=nut --with-usb --with-cgi --with-snmp
   0.000197     [D1] debug level is '5'
   0.000201     [D5] send_to_all: SETINFO driver.debug "5"
   0.000204     [D5] send_to_all: SETFLAGS driver.debug RW NUMBER
   0.000691     [D1] Succeeded to become_user(root): now UID=0 GID=0
   0.000721     [D1] Signalling UPS [exegate]: driver.exit (quietly, no fuss if no driver is running or responding)
   0.000732     Can't open /var/state/ups/richcomm_usb-exegate: No such file or directory
   0.000736     [D1] Request for other driver to exit returned code -1
   0.000739     [D1] Socket dialog with the other driver instance (may be absent) failed: No such file or directory
   0.000744     [D5] send_to_all: SETINFO device.type "ups"
   0.000748     [D5] send_to_all: SETINFO driver.state "init.device"
   0.004868     [D4] - VendorID     : 1d6b
   0.004894     [D4] - ProductID    : 0002
   0.004899     [D4] - Manufacturer : Linux 6.1.0-29-amd64 ehci_hcd
   0.004902     [D4] - Product      : EHCI Host Controller
   0.004906     [D4] - Serial Number: 0000:02:03.0
   0.004909     [D4] - Bus          : 001
   0.004912     [D4] Device does not match - skipping
   0.026149     [D4] - VendorID     : 0925
   0.026167     [D4] - ProductID    : 1234
   0.026169     [D4] - Manufacturer : RICHCOMM
   0.026171     [D4] - Product      : UPS USB Mon V2.0
   0.026173     [D4] - Serial Number: unknown
   0.026175     [D4] - Bus          : 002
   0.026187     [D2] auto detached kernel driver from USB device
   0.026201     [D5] Can't set USB configuration
   0.026295     [D4] detached kernel driver from USB device...
   0.033466     [D5] Can't reset USB endpoint
   0.033482     [D4] failed to detach kernel driver from USB device: Entity not found
   0.033493     [D5] Can't set USB configuration
   0.033497     [D4] failed to detach kernel driver from USB device: Entity not found
   0.033501     USB device [0925:1234] matches, but driver callback failed: Entity not found
   0.033507     [D5] send_to_all: SETINFO driver.state "cleanup.exit"

../bin/nutdrv_qx -a exegate -DDDDD -x protocol=megatec -x subdriver=armac

   0.000000     [D5] send_to_all: SETINFO driver.state "init.starting"
Network UPS Tools 2.8.2.1877-1877-ge7788b97d (development iteration after 2.8.2) - Generic Q* USB/Serial driver 0.39
USB communication driver (libusb 1.0) 0.50
   0.000082     [D1] upsdrv_makevartable...
   0.000101     [D5] send_to_all: SETINFO driver.version.usb "libusb-1.0.26 (API: 0x01000109)"
   0.000108     [D1] Using USB implementation: libusb-1.0.26 (API: 0x01000109)
   0.000179     [D5] do_upsconf_args: confupsname=(null), var=maxretry, val=3
   0.000187     [D5] do_upsconf_args: call do_global_args()
   0.000192     [D3] do_global_args: var='maxretry' val='3'
   0.000238     [D5] do_upsconf_args: confupsname=exegate, var=driver, val=nutdrv_qx
   0.000244     [D5] do_upsconf_args: call main_arg()
   0.000249     [D3] main_arg: var='driver' val='nutdrv_qx'
   0.000254     [D5] do_upsconf_args: not a main_arg()
   0.000259     [D5] do_upsconf_args: this is a 'driver' setting, may we proceed?
   0.000265     [D5] do_upsconf_args: 'driver' setting already applied with this value
   0.000270     [D5] do_upsconf_args: confupsname=exegate, var=port, val=auto
   0.000275     [D5] do_upsconf_args: call main_arg()
   0.000280     [D3] main_arg: var='port' val='auto'
   0.000289     [D5] send_to_all: SETINFO driver.parameter.port "auto"
   0.000295     [D5] do_upsconf_args: confupsname=exegate, var=vendorid, val=0925
   0.000299     [D5] do_upsconf_args: call main_arg()
   0.000304     [D3] main_arg: var='vendorid' val='0925'
   0.000309     [D5] do_upsconf_args: not a main_arg()
   0.000314     [D5] do_upsconf_args: process as value
   0.000321     [D5] send_to_all: SETINFO driver.parameter.vendorid "0925"
   0.000327     [D5] do_upsconf_args: confupsname=exegate, var=productid, val=1234
   0.000332     [D5] do_upsconf_args: call main_arg()
   0.000337     [D3] main_arg: var='productid' val='1234'
   0.000342     [D5] do_upsconf_args: not a main_arg()
   0.000347     [D5] do_upsconf_args: process as value
   0.000353     [D5] send_to_all: SETINFO driver.parameter.productid "1234"
   0.000364     [D3] main_arg: var='protocol' val='megatec'
   0.000371     [D5] send_to_all: SETINFO driver.parameter.protocol "megatec"
   0.000376     [D3] main_arg: var='subdriver' val='armac'
   0.000382     [D5] send_to_all: SETINFO driver.parameter.subdriver "armac"
   0.000387     [D1] Network UPS Tools version 2.8.2.1877-1877-ge7788b97d (development iteration after 2.8.2) built with gcc (Debian 12.2.0-14) 12.2.0 and configured with flags: --with-user=nut --with-group=nut --with-usb --with-cgi --with-snmp
   0.000393     [D1] debug level is '5'
   0.000399     [D5] send_to_all: SETINFO driver.debug "5"
   0.000405     [D5] send_to_all: SETFLAGS driver.debug RW NUMBER
   0.001774     [D1] Succeeded to become_user(nut): now UID=999 GID=996
   0.001808     [D1] Signalling UPS [exegate]: driver.exit (quietly, no fuss if no driver is running or responding)
   0.001828     Can't open /var/state/ups/nutdrv_qx-exegate: No such file or directory
   0.001834     [D1] Request for other driver to exit returned code -1
   0.001840     [D1] Socket dialog with the other driver instance (may be absent) failed: No such file or directory
   0.001847     [D5] send_to_all: SETINFO device.type "ups"
   0.001853     [D5] send_to_all: SETINFO driver.state "init.device"
   0.001859     [D1] upsdrv_initups...
   0.005470     [D2] Checking device 1 of 5 (1D6B/0002)
   0.005491     [D1] Failed to open device (1D6B/0002), skipping: Access denied (insufficient permissions)
   0.005495     [D2] Checking device 2 of 5 (0925/1234)
   0.305044     [D2] - VendorID: 0925
   0.305064     [D2] - ProductID: 1234
   0.305066     [D2] - Manufacturer: RICHCOMM
   0.305068     [D2] - Product: UPS USB Mon V2.0
   0.305070     [D2] - Serial Number: unknown
   0.305071     [D2] - Bus: 002
   0.305073     [D2] - Bus Port: 001
   0.305075     [D2] - Device: 006
   0.305077     [D2] - Device release number: 0000
   0.305079     [D2] Trying to match device
   0.305081     [D3] match_function_regex: matching a device...
   0.305104     [D2] Device matches
   0.305106     [D2] Reading configuration descriptor 1 of 1
   0.305112     [D3] libusb_kernel_driver_active() returned 0: Success
   0.305126     [D2] Claimed interface 0 successfully
   0.305129     [D3] nut_libusb_set_altinterface: skipped libusb_set_interface_alt_setting(udev, 0, 0)
   0.305134     [D5] send_to_all: SETINFO ups.vendorid "0925"
   0.305137     [D5] send_to_all: SETINFO ups.productid "1234"
   0.305141     [D2] Skipping protocol Voltronic 0.08
   0.305143     [D2] Skipping protocol Voltronic-QS 0.09
   0.305145     [D2] Skipping protocol Voltronic-QS-Hex 0.10
   0.305147     [D2] Skipping protocol Mustek 0.08
   0.305149     [D2] Skipping protocol Megatec/old 0.08
   0.305150     [D2] Skipping protocol BestUPS 0.07
   0.305152     [D2] Skipping protocol Mecer 0.08
   0.305201     [D4] load_armac_endpoint_cache: in_endpoint_address=82, in_bmAttributes=03, out_endpoint_address=02, out_bmAttributes=03
   0.305204     [D4] armac command Q1
   0.563016     [D4] read: ret 64 buf af: 28 32 33 31 2e  >(231.<
   0.563036     [D3] armac command Q1 response read: '(231.0 000.0 232.0 002 50.0 13.5 30.8 00001001'
   0.563118     [D5] send_to_all: SETINFO input.voltage "231.0"
   0.563125     [D4] armac command I
   0.784031     [D4] read: ret 64 buf e7: 23 20 20 20 20  >#    <
   0.784054     [D3] armac command I response read: '#                           V6.00     '
   0.784062     [D5] send_to_all: SETINFO ups.firmware "V6.00"
   0.784064     Using protocol: Megatec 0.07
   0.784071     [D5] send_to_all: SETINFO driver.state "init.quiet"
   0.784076     [D5] send_to_all: SETINFO driver.version "2.8.2.1877-1877-ge7788b97d"
   0.784079     [D5] send_to_all: SETINFO driver.version.internal "0.39"
   0.784083     [D5] send_to_all: SETINFO driver.name "nutdrv_qx"
   0.784086     [D5] send_to_all: SETINFO driver.state "init.info"
   0.784089     [D1] upsdrv_initinfo...
   0.784093     [D5] send_to_all: SETINFO driver.version.data "Megatec 0.07"
   0.784100     [D4] armac command Q1
   1.044033     [D4] read: ret 64 buf af: 28 32 33 31 2e  >(231.<
   1.044054     [D3] armac command Q1 response read: '(231.0 000.0 232.0 002 49.0 13.5 30.8 00001001'
   1.044062     [D5] send_to_all: SETINFO input.voltage.fault "0.0"
   1.044067     [D5] send_to_all: SETINFO output.voltage "232.0"
   1.044072     [D5] send_to_all: SETINFO ups.load "2"
   1.044077     [D5] send_to_all: SETINFO input.frequency "49.0"
   1.044081     [D5] send_to_all: SETINFO battery.voltage "13.5"
   1.044085     [D5] send_to_all: SETINFO ups.temperature "30.8"
   1.044159     [D5] update_status: OL
   1.044162     [D5] update_status: !LB
   1.044168     [D5] send_to_all: SETINFO ups.type "offline / line interactive"
   1.044171     [D5] update_status: !CAL
   1.044174     [D5] update_status: !FSD
   1.044178     [D5] send_to_all: SETINFO ups.beeper.status "enabled"
   1.044182     [D4] armac command F
   1.194065     [D4] read: ret 64 buf d6: 23 32 32 30 2e  >#220.<
   1.194089     [D3] armac command F response read: '#220.0 003 12.00 50.0'
   1.194100     [D5] send_to_all: SETINFO input.voltage.nominal "220"
   1.194106     [D5] send_to_all: SETINFO input.current.nominal "3.0"
   1.194111     [D5] send_to_all: SETINFO battery.voltage.nominal "12.0"
   1.194115     [D5] send_to_all: SETINFO input.frequency.nominal "50"
   1.194119     [D4] armac command I
   1.415084     [D4] read: ret 64 buf a7: 23 20 20 20 20  >#    <
   1.415107     [D3] armac command I response read: '#                           V6.00     '
   1.415115     [D1] ups_infoval_set: non significant value [device.mfr]
   1.415119     [D1] ups_infoval_set: non significant value [device.model]
   1.415125     [D5] send_to_all: ADDCMD beeper.toggle
   1.415129     [D5] send_to_all: ADDCMD load.off
   1.415132     [D5] send_to_all: ADDCMD load.on
   1.415134     [D5] send_to_all: ADDCMD shutdown.return
   1.415137     [D5] send_to_all: ADDCMD shutdown.stayoff
   1.415140     [D5] send_to_all: ADDCMD shutdown.stop
   1.415144     [D5] send_to_all: ADDCMD test.battery.start
   1.415147     [D5] send_to_all: ADDCMD test.battery.start.deep
   1.415150     [D5] send_to_all: ADDCMD test.battery.start.quick
   1.415153     [D5] send_to_all: ADDCMD test.battery.stop
   1.415157     [D5] send_to_all: SETINFO ups.delay.start "180"
   1.415161     [D5] send_to_all: SETFLAGS ups.delay.start RW
   1.415166     [D5] send_to_all: ADDRANGE ups.delay.start 0 599940
   1.415169     [D5] send_to_all: SETFLAGS ups.delay.start RW NUMBER
   1.415173     [D5] send_to_all: SETINFO ups.delay.shutdown "30"
   1.415176     [D5] send_to_all: SETFLAGS ups.delay.shutdown RW
   1.415180     [D5] send_to_all: ADDRANGE ups.delay.shutdown 12 600
   1.415183     [D5] send_to_all: SETFLAGS ups.delay.shutdown RW NUMBER
   1.415187     No values for battery high/low voltages
   1.415192     [D5] send_to_all: SETINFO battery.voltage.low "10.40"
   1.415195     [D5] send_to_all: SETINFO battery.voltage.high "13.00"
   1.415199     Using 'guesstimation' (low: 10.400000, high: 13.000000)!
   1.415203     [D5] send_to_all: SETINFO battery.charge "100"
   1.415206     Autodetected 1 as number of battery packs [12/13.50]
   1.415209     Battery runtime will not be calculated (runtimecal not set)
   1.415213     [D5] send_to_all: SETINFO driver.parameter.pollfreq "30"
   1.415218     [D5] send_to_all: ADDCMD shutdown.default
   1.415221     [D5] send_to_all: SETINFO driver.state "init.updateinfo"
   1.415224     [D1] upsdrv_updateinfo...
   1.415227     [D1] Quick update...
   1.415230     [D4] armac command Q1
   1.675168     [D4] read: ret 64 buf ef: 28 32 33 31 2e  >(231.<
   1.675190     [D3] armac command Q1 response read: '(231.0 000.0 232.0 002 50.0 13.5 30.8 00001001'
   1.675195     [D5] update_status: OL
   1.675198     [D5] update_status: !LB
   1.675202     [D5] update_status: !CAL
   1.675204     [D5] update_status: !FSD
   1.675211     [D5] send_to_all: SETINFO ups.status "OL"
   1.675215     [D5] send_to_all: DATAOK
   1.675219     [D5] send_to_all: SETINFO driver.state "init.quiet"
   1.675293     [D2] dstate_init: sock /var/state/ups/nutdrv_qx-exegate open on fd 9
   1.675298     [D5] send_to_all: SETINFO driver.parameter.pollinterval "2"
   1.675301     [D5] send_to_all: SETINFO driver.parameter.synchronous "auto"
   1.675305     Running as foreground process, not saving a PID file
   1.675309     [D5] send_to_all: SETINFO driver.flag.allow_killpower "0"
   1.675312     [D5] send_to_all: SETFLAGS driver.flag.allow_killpower RW NUMBER
   1.675315     [D5] send_to_all: ADDCMD driver.killpower
   1.675319     [D5] send_to_all: ADDCMD driver.reload
   1.675322     [D5] send_to_all: ADDCMD driver.reload-or-exit
   1.675324     [D5] send_to_all: ADDCMD driver.reload-or-error
   1.675328     [D5] send_to_all: SETINFO driver.state "quiet"
   1.675330     [D1] Driver initialization completed, beginning regular infinite loop
@jimklimov jimklimov added USB Qx protocol driver Driver based on Megatec Q<number> such as new nutdrv_qx, or obsoleted blazer and some others Incorrect or missing readings On some devices driver-reported values are systemically off (e.g. x10, x0.1, const+Value, etc.) impacts-release-2.8.2 Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks) labels Jan 14, 2025
@jimklimov
Copy link
Member

I suppose you are following up from tests reported in issue #2125?

One idea to try: do not constrain nutdrv_qx with subdriver and/or protocol (armac), so it would try to pick the ones it knows, it seems the Qx replies here are generally valid, just not for this dialect that expects strings of certain length.

In that other issue, a Q1 protocol worked for one of the reports, for example.

@gandc66
Copy link
Author

gandc66 commented Jan 14, 2025

I suppose you are following up from tests reported in issue #2125?

One idea to try: do not constrain nutdrv_qx with subdriver and/or protocol (armac), so it would try to pick the ones it knows, it seems the Qx replies here are generally valid, just not for this dialect that expects strings of certain length.

In that other issue, a Q1 protocol worked for one of the reports, for example.

Yep, I followed tests from that issue.
Tried your suggestions to solve the problem. I see that some values seem to be read, but when I try to execute the bin/upsc exegate@localhost command, I get an error Driver not connected. May be I`m doing something wrong?

Q1 protocol
bin/nutdrv_qx -a exegate -DDDDD

   0.000000     [D5] send_to_all: SETINFO driver.state "init.starting"
Network UPS Tools 2.8.2.1877-1877-ge7788b97d (development iteration after 2.8.2) - Generic Q* USB/Serial driver 0.39
USB communication driver (libusb 1.0) 0.50
   0.000077     [D1] upsdrv_makevartable...
   0.000102     [D5] send_to_all: SETINFO driver.version.usb "libusb-1.0.26 (API: 0x01000109)"
   0.000121     [D1] Using USB implementation: libusb-1.0.26 (API: 0x01000109)
   0.000210     [D5] do_upsconf_args: confupsname=(null), var=maxretry, val=3
   0.000225     [D5] do_upsconf_args: call do_global_args()
   0.000236     [D3] do_global_args: var='maxretry' val='3'
   0.000291     [D5] do_upsconf_args: confupsname=exegate, var=driver, val=nutdrv_qx
   0.000297     [D5] do_upsconf_args: call main_arg()
   0.000302     [D3] main_arg: var='driver' val='nutdrv_qx'
   0.000308     [D5] do_upsconf_args: not a main_arg()
   0.000313     [D5] do_upsconf_args: this is a 'driver' setting, may we proceed?
   0.000318     [D5] do_upsconf_args: 'driver' setting already applied with this value
   0.000324     [D5] do_upsconf_args: confupsname=exegate, var=port, val=auto
   0.000329     [D5] do_upsconf_args: call main_arg()
   0.000334     [D3] main_arg: var='port' val='auto'
   0.000340     [D5] send_to_all: SETINFO driver.parameter.port "auto"
   0.000348     [D5] do_upsconf_args: confupsname=exegate, var=vendorid, val=0925
   0.000359     [D5] do_upsconf_args: call main_arg()
   0.000369     [D3] main_arg: var='vendorid' val='0925'
   0.000382     [D5] do_upsconf_args: not a main_arg()
   0.000388     [D5] do_upsconf_args: process as value
   0.000395     [D5] send_to_all: SETINFO driver.parameter.vendorid "0925"
   0.000401     [D5] do_upsconf_args: confupsname=exegate, var=productid, val=1234
   0.000406     [D5] do_upsconf_args: call main_arg()
   0.000411     [D3] main_arg: var='productid' val='1234'
   0.000416     [D5] do_upsconf_args: not a main_arg()
   0.000421     [D5] do_upsconf_args: process as value
   0.000426     [D5] send_to_all: SETINFO driver.parameter.productid "1234"
   0.000432     [D5] do_upsconf_args: confupsname=exegate, var=protocol, val=Q1
   0.000437     [D5] do_upsconf_args: call main_arg()
   0.000460     [D3] main_arg: var='protocol' val='Q1'
   0.000471     [D5] do_upsconf_args: not a main_arg()
   0.000485     [D5] do_upsconf_args: process as value
   0.000491     [D5] send_to_all: SETINFO driver.parameter.protocol "Q1"
   0.000502     [D1] Network UPS Tools version 2.8.2.1877-1877-ge7788b97d (development iteration after 2.8.2) built with gcc (Debian 12.2.0-14) 12.2.0 and configured with flags: --with-user=nut --with-group=nut --with-usb --with-cgi --with-snmp
   0.000509     [D1] debug level is '5'
   0.000515     [D5] send_to_all: SETINFO driver.debug "5"
   0.000520     [D5] send_to_all: SETFLAGS driver.debug RW NUMBER
   0.001820     [D1] Succeeded to become_user(nut): now UID=999 GID=996
   0.001860     [D1] Signalling UPS [exegate]: driver.exit (quietly, no fuss if no driver is running or responding)
   0.001879     Can't open /var/state/ups/nutdrv_qx-exegate: No such file or directory
   0.001899     [D1] Request for other driver to exit returned code -1
   0.001910     [D1] Socket dialog with the other driver instance (may be absent) failed: No such file or directory
   0.001930     [D5] send_to_all: SETINFO device.type "ups"
   0.001937     [D5] send_to_all: SETINFO driver.state "init.device"
   0.001942     [D1] upsdrv_initups...
   0.005526     [D2] Checking device 1 of 5 (1D6B/0002)
   0.005567     [D1] Failed to open device (1D6B/0002), skipping: Access denied (insufficient permissions)
   0.005573     [D2] Checking device 2 of 5 (0925/1234)
   0.289542     [D2] - VendorID: 0925
   0.289563     [D2] - ProductID: 1234
   0.289565     [D2] - Manufacturer: RICHCOMM
   0.289567     [D2] - Product: UPS USB Mon V2.0
   0.289569     [D2] - Serial Number: unknown
   0.289571     [D2] - Bus: 001
   0.289579     [D2] - Bus Port: 001
   0.289587     [D2] - Device: 004
   0.289592     [D2] - Device release number: 0000
   0.289598     [D2] Trying to match device
   0.289603     [D3] match_function_regex: matching a device...
   0.289637     [D2] Device matches
   0.289645     [D2] Reading configuration descriptor 1 of 1
   0.289655     [D3] libusb_kernel_driver_active() returned 0: Success
   0.289672     [D2] Claimed interface 0 successfully
   0.289679     [D3] nut_libusb_set_altinterface: skipped libusb_set_interface_alt_setting(udev, 0, 0)
   0.289688     [D5] send_to_all: SETINFO ups.vendorid "0925"
   0.289694     [D5] send_to_all: SETINFO ups.productid "1234"
   0.289701     [D2] Skipping protocol Voltronic 0.08
   0.289707     [D2] Skipping protocol Voltronic-QS 0.09
   0.290010     [D2] Skipping protocol Voltronic-QS-Hex 0.10
   0.290020     [D2] Skipping protocol Mustek 0.08
   0.290026     [D2] Skipping protocol Megatec/old 0.08
   0.290031     [D2] Skipping protocol BestUPS 0.07
   0.290037     [D2] Skipping protocol Mecer 0.08
   0.290042     [D2] Skipping protocol Megatec 0.07
   0.290048     [D2] Skipping protocol Zinto 0.07
   0.290053     [D2] Skipping protocol Masterguard 0.02
   0.290059     [D2] Skipping protocol Hunnox 0.02
   0.290065     [D2] Skipping protocol Ablerex 0.01
   0.290070     [D2] Skipping protocol INNOVART31 0.01
   0.290124     [D4] load_armac_endpoint_cache: in_endpoint_address=82, in_bmAttributes=03, out_endpoint_address=02, out_bmAttributes=03
   0.290132     [D4] armac command Q1
   0.547431     [D4] read: ret 64 buf af: 28 32 32 33 2e  >(223.<
   0.547462     [D3] armac command Q1 response read: '(223.0 000.0 224.0 002 49.0 13.5 30.8 00001001'
   0.547479     [D5] send_to_all: SETINFO input.voltage "223.0"
   0.547485     Using protocol: Q1 0.08
   0.547493     [D5] send_to_all: SETINFO driver.state "init.quiet"
   0.547500     [D5] send_to_all: SETINFO driver.version "2.8.2.1877-1877-ge7788b97d"
   0.547507     [D5] send_to_all: SETINFO driver.version.internal "0.39"
   0.547513     [D5] send_to_all: SETINFO driver.name "nutdrv_qx"
   0.547519     [D5] send_to_all: SETINFO driver.state "init.info"
   0.547524     [D1] upsdrv_initinfo...
   0.547531     [D5] send_to_all: SETINFO driver.version.data "Q1 0.08"
   0.547538     [D4] armac command Q1
   0.807467     [D4] read: ret 64 buf ef: 28 32 32 34 2e  >(224.<
   0.807499     [D3] armac command Q1 response read: '(224.0 000.0 225.0 002 50.0 13.5 30.8 00001001'
   0.807511     [D5] send_to_all: SETINFO input.voltage.fault "0.0"
   0.807520     [D5] send_to_all: SETINFO output.voltage "225.0"
   0.807527     [D5] send_to_all: SETINFO ups.load "2"
   0.807534     [D5] send_to_all: SETINFO input.frequency "50.0"
   0.807752     [D5] send_to_all: SETINFO battery.voltage "13.5"
   0.807763     [D5] send_to_all: SETINFO ups.temperature "30.8"
   0.807770     [D5] update_status: OL
   0.807777     [D5] update_status: !LB
   0.807972     [D5] send_to_all: SETINFO ups.type "offline / line interactive"
   0.807976     [D5] update_status: !CAL
   0.807978     [D5] update_status: !FSD
   0.807981     [D5] send_to_all: SETINFO ups.beeper.status "enabled"
   0.807985     [D5] send_to_all: ADDCMD beeper.toggle
   0.807988     [D5] send_to_all: ADDCMD load.off
   0.807991     [D5] send_to_all: ADDCMD load.on
   0.807994     [D5] send_to_all: ADDCMD shutdown.return
   0.807997     [D5] send_to_all: ADDCMD shutdown.stayoff
   0.808000     [D5] send_to_all: ADDCMD shutdown.stop
   0.808003     [D5] send_to_all: ADDCMD test.battery.start
   0.808007     [D5] send_to_all: ADDCMD test.battery.start.deep
   0.808010     [D5] send_to_all: ADDCMD test.battery.start.quick
   0.808013     [D5] send_to_all: ADDCMD test.battery.stop
   0.808016     [D5] send_to_all: SETINFO ups.delay.start "180"
   0.808023     [D5] send_to_all: SETFLAGS ups.delay.start RW
   0.808041     [D5] send_to_all: ADDRANGE ups.delay.start 0 599940
   0.808049     [D5] send_to_all: SETFLAGS ups.delay.start RW NUMBER
   0.808053     [D5] send_to_all: SETINFO ups.delay.shutdown "30"
   0.808056     [D5] send_to_all: SETFLAGS ups.delay.shutdown RW
   0.808060     [D5] send_to_all: ADDRANGE ups.delay.shutdown 12 600
   0.808063     [D5] send_to_all: SETFLAGS ups.delay.shutdown RW NUMBER
   0.808068     Can't autodetect number of battery packs [-1/13.50]
   0.808071     Battery runtime will not be calculated (runtimecal not set)
   0.808074     [D5] send_to_all: SETINFO driver.parameter.pollfreq "30"
   0.808082     [D5] send_to_all: ADDCMD shutdown.default
   0.808086     [D5] send_to_all: SETINFO driver.state "init.updateinfo"
   0.808088     [D1] upsdrv_updateinfo...
   0.808091     [D1] Quick update...
   0.808095     [D4] armac command Q1
   1.068445     [D4] read: ret 64 buf af: 28 32 32 34 2e  >(224.<
   1.068466     [D3] armac command Q1 response read: '(224.0 000.0 225.0 002 50.0 13.5 30.8 00001001'
   1.068471     [D5] update_status: OL
   1.068473     [D5] update_status: !LB
   1.068483     [D5] update_status: !CAL
   1.068486     [D5] update_status: !FSD
   1.068492     [D5] send_to_all: SETINFO ups.status "OL"
   1.068495     [D5] send_to_all: DATAOK
   1.068499     [D5] send_to_all: SETINFO driver.state "init.quiet"
   1.068604     [D2] dstate_init: sock /var/state/ups/nutdrv_qx-exegate open on fd 9
   1.068609     [D5] send_to_all: SETINFO driver.parameter.pollinterval "2"
   1.068612     [D5] send_to_all: SETINFO driver.parameter.synchronous "auto"
   1.068614     Running as foreground process, not saving a PID file
   1.068617     [D5] send_to_all: SETINFO driver.flag.allow_killpower "0"
   1.068619     [D5] send_to_all: SETFLAGS driver.flag.allow_killpower RW NUMBER
   1.068621     [D5] send_to_all: ADDCMD driver.killpower
   1.068623     [D5] send_to_all: ADDCMD driver.reload
   1.068625     [D5] send_to_all: ADDCMD driver.reload-or-exit
   1.068627     [D5] send_to_all: ADDCMD driver.reload-or-error
   1.068630     [D5] send_to_all: SETINFO driver.state "quiet"
   1.068631     [D1] Driver initialization completed, beginning regular infinite loop
   1.068634     upsnotify: failed to notify about state NOTIFY_STATE_READY_WITH_PID: no notification tech defined, will not spam more about it
   1.068636     [D1] On systems without service units, consider `export NUT_QUIET_INIT_UPSNOTIFY=true`
   1.068638     [D5] send_to_all: SETINFO driver.state "updateinfo"
   1.068640     [D1] upsdrv_updateinfo...
   1.068642     [D1] Quick update...
   1.068768     [D4] armac command Q1
   1.329448     [D4] read: ret 64 buf ef: 28 32 32 34 2e  >(224.<
   1.329473     [D3] armac command Q1 response read: '(224.0 000.0 225.0 002 50.0 13.5 30.8 00001001'
   1.329478     [D5] update_status: OL
   1.329481     [D5] update_status: !LB
   1.329484     [D5] update_status: !CAL
   1.329494     [D5] update_status: !FSD
   1.329502     [D5] send_to_all: SETINFO driver.state "quiet"
   3.070429     [D5] send_to_all: SETINFO driver.state "updateinfo"
   3.070453     [D1] upsdrv_updateinfo...
   3.070457     [D1] Quick update...
   3.070460     [D4] armac command Q1
   3.324624     [D4] read: ret 64 buf af: 28 32 32 34 2e  >(224.<
   3.324648     [D3] armac command Q1 response read: '(224.0 000.0 225.0 002 49.0 13.5 30.8 00001001'
   3.324652     [D5] update_status: OL
   3.324655     [D5] update_status: !LB
   3.324658     [D5] update_status: !CAL
   3.324665     [D5] update_status: !FSD
   3.324675     [D5] send_to_all: SETINFO driver.state "quiet"
   5.072229     [D5] send_to_all: SETINFO driver.state "updateinfo"
   5.072275     [D1] upsdrv_updateinfo...
   5.072281     [D1] Quick update...
   5.072287     [D4] armac command Q1
   5.329645     [D4] read: ret 64 buf ef: 28 32 32 32 2e  >(222.<
   5.329666     [D3] armac command Q1 response read: '(222.0 000.0 223.0 002 49.0 13.5 30.8 00001001'
   5.329670     [D5] update_status: OL
   5.329673     [D5] update_status: !LB
   5.329676     [D5] update_status: !CAL
   5.329678     [D5] update_status: !FSD
   5.329684     [D5] send_to_all: SETINFO driver.state "quiet"
   6.500289     [D1] set_exit_flag: raising exit flag due to signal 2
   6.500305     Signal 2: exiting
   6.500316     [D5] send_to_all: SETINFO driver.state "cleanup.upsdrv"
   6.500320     [D1] upsdrv_cleanup...
   6.500605     [D5] send_to_all: SETINFO driver.state "cleanup.exit"

sbin/upsdrvctl start

Network UPS Tools upsdrvctl - UPS driver controller 2.8.2.1877-1877-ge7788b97d (development iteration after 2.8.2)
Network UPS Tools 2.8.2.1877-1877-ge7788b97d (development iteration after 2.8.2) - Generic Q* USB/Serial driver 0.39
USB communication driver (libusb 1.0) 0.50
Using protocol: Q1 0.08
Can't autodetect number of battery packs [-1/13.50]
Battery runtime will not be calculated (runtimecal not set)

bin/upsc exegate@localhost
Error: Driver not connected

[exegate]
    driver = nutdrv_qx
    port = auto
    vendorid = 0925
    productid = 1234
    protocol=Q1

With no protocol selected
bin/nutdrv_qx -a exegate -DDDDD

0.000000     [D5] send_to_all: SETINFO driver.state "init.starting"
Network UPS Tools 2.8.2.1877-1877-ge7788b97d (development iteration after 2.8.2) - Generic Q* USB/Serial driver 0.39
USB communication driver (libusb 1.0) 0.50
0.000076     [D1] upsdrv_makevartable...
0.000098     [D5] send_to_all: SETINFO driver.version.usb "libusb-1.0.26 (API: 0x01000109)"
0.000102     [D1] Using USB implementation: libusb-1.0.26 (API: 0x01000109)
0.000162     [D5] do_upsconf_args: confupsname=(null), var=maxretry, val=3
0.000169     [D5] do_upsconf_args: call do_global_args()
0.000172     [D3] do_global_args: var='maxretry' val='3'
0.000226     [D5] do_upsconf_args: confupsname=exegate, var=driver, val=nutdrv_qx
0.000229     [D5] do_upsconf_args: call main_arg()
0.000233     [D3] main_arg: var='driver' val='nutdrv_qx'
0.000236     [D5] do_upsconf_args: not a main_arg()
0.000239     [D5] do_upsconf_args: this is a 'driver' setting, may we proceed?
0.000242     [D5] do_upsconf_args: 'driver' setting already applied with this value
0.000245     [D5] do_upsconf_args: confupsname=exegate, var=port, val=auto
0.000248     [D5] do_upsconf_args: call main_arg()
0.000251     [D3] main_arg: var='port' val='auto'
0.000255     [D5] send_to_all: SETINFO driver.parameter.port "auto"
0.000261     [D5] do_upsconf_args: confupsname=exegate, var=vendorid, val=0925
0.000264     [D5] do_upsconf_args: call main_arg()
0.000267     [D3] main_arg: var='vendorid' val='0925'
0.000270     [D5] do_upsconf_args: not a main_arg()
0.000273     [D5] do_upsconf_args: process as value
0.000278     [D5] send_to_all: SETINFO driver.parameter.vendorid "0925"
0.000282     [D5] do_upsconf_args: confupsname=exegate, var=productid, val=1234
0.000285     [D5] do_upsconf_args: call main_arg()
0.000287     [D3] main_arg: var='productid' val='1234'
0.000290     [D5] do_upsconf_args: not a main_arg()
0.000293     [D5] do_upsconf_args: process as value
0.000297     [D5] send_to_all: SETINFO driver.parameter.productid "1234"
0.000307     [D1] Network UPS Tools version 2.8.2.1877-1877-ge7788b97d (development iteration after 2.8.2) built with gcc (Debian 12.2.0-14) 12.2.0 and configured with flags: --with-user=nut --with-group=nut --with-usb --with-cgi --with-snmp
0.000311     [D1] debug level is '5'
0.000315     [D5] send_to_all: SETINFO driver.debug "5"
0.000318     [D5] send_to_all: SETFLAGS driver.debug RW NUMBER
0.001474     [D1] Succeeded to become_user(nut): now UID=999 GID=996
0.001504     [D1] Signalling UPS [exegate]: driver.exit (quietly, no fuss if no driver is running or responding)
0.001515     Can't open /var/state/ups/nutdrv_qx-exegate: No such file or directory
0.001519     [D1] Request for other driver to exit returned code -1
0.001522     [D1] Socket dialog with the other driver instance (may be absent) failed: No such file or directory
0.001527     [D5] send_to_all: SETINFO device.type "ups"
0.001531     [D5] send_to_all: SETINFO driver.state "init.device"
0.001535     [D1] upsdrv_initups...
0.005001     [D2] Checking device 1 of 5 (1D6B/0002)
0.005042     [D1] Failed to open device (1D6B/0002), skipping: Access denied (insufficient permissions)
0.005047     [D2] Checking device 2 of 5 (0925/1234)
1.390121     [D1] nut_usb_get_string_descriptor: string descriptor 0 request failed, retrying...
3.391017     [D1] nut_usb_get_string_descriptor: string descriptor 0 request failed, retrying...
5.393258     [D1] nut_libusb_open: get Manufacturer string failed
6.393611     [D1] nut_usb_get_string_descriptor: string descriptor 0 request failed, retrying...
8.395780     [D1] nut_usb_get_string_descriptor: string descriptor 0 request failed, retrying...
10.396707     [D1] nut_libusb_open: get Product string failed
10.396727     [D2] - VendorID: 0925
10.396729     [D2] - ProductID: 1234
10.396731     [D2] - Manufacturer: unknown
10.396733     [D2] - Product: unknown
10.396735     [D2] - Serial Number: unknown
10.396737     [D2] - Bus: 001
10.396739     [D2] - Bus Port: 001
10.396740     [D2] - Device: 004
10.396742     [D2] - Device release number: 0000
10.396744     [D2] Trying to match device
10.396746     [D3] match_function_regex: matching a device...
10.396770     [D2] Device matches
10.396773     [D2] Reading configuration descriptor 1 of 1
10.396780     [D3] libusb_kernel_driver_active() returned 0: Success
10.396794     [D2] Claimed interface 0 successfully
10.396797     [D3] nut_libusb_set_altinterface: skipped libusb_set_interface_alt_setting(udev, 0, 0)
10.396803     [D5] send_to_all: SETINFO ups.vendorid "0925"
10.396805     [D5] send_to_all: SETINFO ups.productid "1234"
10.396855     [D4] load_armac_endpoint_cache: in_endpoint_address=82, in_bmAttributes=03, out_endpoint_address=02, out_bmAttributes=03
10.396858     [D2] armac: unsupported cmd: QGS
10.396861     [D2] qx_process_answer: short reply (input.voltage)
10.396863     [D2] armac: unsupported cmd: QGS
10.396865     [D2] qx_process_answer: short reply (input.voltage)
10.396867     [D2] armac: unsupported cmd: QGS
10.396869     [D2] qx_process_answer: short reply (input.voltage)
10.396871     [D2] armac: unsupported cmd: M
10.396874     [D2] voltronic_qs_protocol: invalid protocol [M]
10.396876     [D4] ups_infoval_set: failed to preprocess value [ups.firmware.aux: M]
10.396878     [D2] armac: unsupported cmd: M
10.396880     [D2] voltronic_qs_protocol: invalid protocol [M]
10.396881     [D4] ups_infoval_set: failed to preprocess value [ups.firmware.aux: M]
10.396883     [D2] armac: unsupported cmd: M
10.396885     [D2] voltronic_qs_protocol: invalid protocol [M]
10.396887     [D4] ups_infoval_set: failed to preprocess value [ups.firmware.aux: M]
10.396889     [D2] armac: unsupported cmd: M
10.396892     [D2] voltronic_qs_hex_protocol: invalid protocol [M]
10.396893     [D4] ups_infoval_set: failed to preprocess value [ups.firmware.aux: M]
10.396895     [D2] armac: unsupported cmd: M
10.396897     [D2] voltronic_qs_hex_protocol: invalid protocol [M]
10.396899     [D4] ups_infoval_set: failed to preprocess value [ups.firmware.aux: M]
10.396901     [D2] armac: unsupported cmd: M
10.396903     [D2] voltronic_qs_hex_protocol: invalid protocol [M]
10.396905     [D4] ups_infoval_set: failed to preprocess value [ups.firmware.aux: M]
10.396907     [D2] armac: unsupported cmd: QS
10.396909     [D2] qx_process_answer: short reply (input.voltage)
10.396911     [D2] armac: unsupported cmd: QS
10.396913     [D2] qx_process_answer: short reply (input.voltage)
10.396915     [D2] armac: unsupported cmd: QS
10.396917     [D2] qx_process_answer: short reply (input.voltage)
10.396919     [D2] armac: unsupported cmd: D
10.396921     [D2] qx_process_answer: short reply (input.voltage)
10.396923     [D2] armac: unsupported cmd: D
10.396925     [D2] qx_process_answer: short reply (input.voltage)
10.396927     [D2] armac: unsupported cmd: D
10.396928     [D2] qx_process_answer: short reply (input.voltage)
10.396931     [D4] armac command Q1
11.655404     [D4] read: ret 64 buf af: 28 32 32 34 2e  >(224.<
11.655435     [D3] armac command Q1 response read: '(224.0 000.0 225.0 002 49.0 13.5 30.8 00001001'
11.655452     [D5] send_to_all: SETINFO input.voltage "224.0"
11.655460     [D4] armac command ID
11.876423     [D4] read: ret 64 buf e7: 23 20 20 20 20  >#    <
11.876452     [D3] armac command ID response read: '#                           V6.00     '
11.876459     [D4] bestups_preprocess_id_answer: wrong length [device.model: 39]
11.876465     [D4] qx_process: failed to preprocess answer [device.model]
11.876472     [D5] send_to_all: DELINFO input.voltage
11.876479     [D4] armac command Q1
12.136410     [D4] read: ret 64 buf af: 28 32 32 35 2e  >(225.<
12.136438     [D3] armac command Q1 response read: '(225.0 000.0 225.0 002 49.0 13.5 30.8 00001001'
12.136449     [D5] send_to_all: SETINFO input.voltage "225.0"
12.136456     [D4] armac command ID
12.357517     [D4] read: ret 64 buf e7: 23 20 20 20 20  >#    <
12.357549     [D3] armac command ID response read: '#                           V6.00     '
12.357557     [D4] bestups_preprocess_id_answer: wrong length [device.model: 39]
12.357562     [D4] qx_process: failed to preprocess answer [device.model]
12.357571     [D5] send_to_all: DELINFO input.voltage
12.357578     [D4] armac command Q1
12.617431     [D4] read: ret 64 buf af: 28 32 32 35 2e  >(225.<
12.617458     [D3] armac command Q1 response read: '(225.0 000.0 225.0 002 49.0 13.5 30.8 00001001'
12.617470     [D5] send_to_all: SETINFO input.voltage "225.0"
12.617477     [D4] armac command ID
12.838441     [D4] read: ret 64 buf e7: 23 20 20 20 20  >#    <
12.838470     [D3] armac command ID response read: '#                           V6.00     '
12.838477     [D4] bestups_preprocess_id_answer: wrong length [device.model: 39]
12.838531     [D4] qx_process: failed to preprocess answer [device.model]
12.838539     [D5] send_to_all: DELINFO input.voltage
12.838546     [D4] armac command Q1
13.099445     [D4] read: ret 64 buf af: 28 32 32 35 2e  >(225.<
13.099474     [D3] armac command Q1 response read: '(225.0 000.0 225.0 002 49.0 13.5 30.8 00001001'
13.099486     [D5] send_to_all: SETINFO input.voltage "225.0"
13.099493     [D2] armac: unsupported cmd: QPI
13.099499     [D2] qx_process_answer: short reply (ups.firmware.aux)
13.099505     [D5] send_to_all: DELINFO input.voltage
13.099511     [D4] armac command Q1
13.360265     [D4] read: ret 64 buf ef: 28 32 32 35 2e  >(225.<
13.360304     [D3] armac command Q1 response read: '(225.0 000.0 225.0 002 50.0 13.5 30.8 00001001'
13.360317     [D5] send_to_all: SETINFO input.voltage "225.0"
13.360324     [D2] armac: unsupported cmd: QPI
13.360330     [D2] qx_process_answer: short reply (ups.firmware.aux)
13.360336     [D5] send_to_all: DELINFO input.voltage
13.360342     [D4] armac command Q1
13.620472     [D4] read: ret 64 buf af: 28 32 32 35 2e  >(225.<
13.620499     [D3] armac command Q1 response read: '(225.0 000.0 225.0 002 50.0 13.5 30.8 00001001'
13.620511     [D5] send_to_all: SETINFO input.voltage "225.0"
13.620518     [D2] armac: unsupported cmd: QPI
13.620534     [D2] qx_process_answer: short reply (ups.firmware.aux)
13.620597     [D5] send_to_all: DELINFO input.voltage
13.620604     [D4] armac command Q1
13.881506     [D4] read: ret 64 buf ef: 28 32 32 35 2e  >(225.<
13.881535     [D3] armac command Q1 response read: '(225.0 000.0 225.0 002 50.0 13.5 30.8 00001001'
13.881557     [D5] send_to_all: SETINFO input.voltage "225.0"
13.881892     [D4] armac command I
14.101468     [D4] read: ret 64 buf a7: 23 20 20 20 20  >#    <
14.101500     [D3] armac command I response read: '#                           V6.00     '
14.101512     [D5] send_to_all: SETINFO ups.firmware "V6.00"
14.101518     Using protocol: Megatec 0.07
14.101528     [D5] send_to_all: SETINFO driver.state "init.quiet"
14.101536     [D5] send_to_all: SETINFO driver.version "2.8.2.1877-1877-ge7788b97d"
14.101542     [D5] send_to_all: SETINFO driver.version.internal "0.39"
14.101548     [D5] send_to_all: SETINFO driver.name "nutdrv_qx"
14.101554     [D5] send_to_all: SETINFO driver.state "init.info"
14.101560     [D1] upsdrv_initinfo...
14.101566     [D5] send_to_all: SETINFO driver.version.data "Megatec 0.07"
14.101576     [D4] armac command Q1
14.352480     [D4] read: ret 64 buf ef: 28 32 32 35 2e  >(225.<
14.352514     [D3] armac command Q1 response read: '(225.0 000.0 225.0 002 49.0 13.5 30.8 00001001'
14.352528     [D5] send_to_all: SETINFO input.voltage.fault "0.0"
14.352537     [D5] send_to_all: SETINFO output.voltage "225.0"
14.352706     [D5] send_to_all: SETINFO ups.load "2"
14.352720     [D5] send_to_all: SETINFO input.frequency "49.0"
14.352727     [D5] send_to_all: SETINFO battery.voltage "13.5"
14.352734     [D5] send_to_all: SETINFO ups.temperature "30.8"
14.352741     [D5] update_status: OL
14.352747     [D5] update_status: !LB
14.352755     [D5] send_to_all: SETINFO ups.type "offline / line interactive"
14.352761     [D5] update_status: !CAL
14.352767     [D5] update_status: !FSD
14.352774     [D5] send_to_all: SETINFO ups.beeper.status "enabled"
14.352781     [D4] armac command F
14.502483     [D4] read: ret 64 buf 96: 23 32 32 30 2e  >#220.<
14.502514     [D3] armac command F response read: '#220.0 003 12.00 50.0'
14.502527     [D5] send_to_all: SETINFO input.voltage.nominal "220"
14.502536     [D5] send_to_all: SETINFO input.current.nominal "3.0"
14.502549     [D5] send_to_all: SETINFO battery.voltage.nominal "12.0"
14.502558     [D5] send_to_all: SETINFO input.frequency.nominal "50"
14.502567     [D4] armac command I
14.723569     [D4] read: ret 64 buf e7: 23 20 20 20 20  >#    <
14.723588     [D3] armac command I response read: '#                           V6.00     '
14.723597     [D1] ups_infoval_set: non significant value [device.mfr]
14.723601     [D1] ups_infoval_set: non significant value [device.model]
14.723605     [D5] send_to_all: ADDCMD beeper.toggle
14.723608     [D5] send_to_all: ADDCMD load.off
14.723610     [D5] send_to_all: ADDCMD load.on
14.723612     [D5] send_to_all: ADDCMD shutdown.return
14.723614     [D5] send_to_all: ADDCMD shutdown.stayoff
14.723617     [D5] send_to_all: ADDCMD shutdown.stop
14.723619     [D5] send_to_all: ADDCMD test.battery.start
14.723621     [D5] send_to_all: ADDCMD test.battery.start.deep
14.723623     [D5] send_to_all: ADDCMD test.battery.start.quick
14.723625     [D5] send_to_all: ADDCMD test.battery.stop
14.723629     [D5] send_to_all: SETINFO ups.delay.start "180"
14.723631     [D5] send_to_all: SETFLAGS ups.delay.start RW
14.723636     [D5] send_to_all: ADDRANGE ups.delay.start 0 599940
14.723638     [D5] send_to_all: SETFLAGS ups.delay.start RW NUMBER
14.723640     [D5] send_to_all: SETINFO ups.delay.shutdown "30"
14.723643     [D5] send_to_all: SETFLAGS ups.delay.shutdown RW
14.723645     [D5] send_to_all: ADDRANGE ups.delay.shutdown 12 600
14.723647     [D5] send_to_all: SETFLAGS ups.delay.shutdown RW NUMBER
14.723650     No values for battery high/low voltages
14.723653     [D5] send_to_all: SETINFO battery.voltage.low "10.40"
14.723656     [D5] send_to_all: SETINFO battery.voltage.high "13.00"
14.723658     Using 'guesstimation' (low: 10.400000, high: 13.000000)!
14.723662     [D5] send_to_all: SETINFO battery.charge "100"
14.723664     Autodetected 1 as number of battery packs [12/13.50]
14.723666     Battery runtime will not be calculated (runtimecal not set)
14.723670     [D5] send_to_all: SETINFO driver.parameter.pollfreq "30"
14.723674     [D5] send_to_all: ADDCMD shutdown.default
14.723677     [D5] send_to_all: SETINFO driver.state "init.updateinfo"
14.723679     [D1] upsdrv_updateinfo...
14.723681     [D1] Quick update...
14.723683     [D4] armac command Q1
14.984500     [D4] read: ret 64 buf af: 28 32 32 35 2e  >(225.<
14.984517     [D3] armac command Q1 response read: '(225.0 000.0 225.0 002 50.0 13.5 30.8 00001001'
14.984521     [D5] update_status: OL
14.984524     [D5] update_status: !LB
14.984527     [D5] update_status: !CAL
14.984529     [D5] update_status: !FSD
14.984535     [D5] send_to_all: SETINFO ups.status "OL"
14.984538     [D5] send_to_all: DATAOK
14.984540     [D5] send_to_all: SETINFO driver.state "init.quiet"
14.984609     [D2] dstate_init: sock /var/state/ups/nutdrv_qx-exegate open on fd 9
14.984613     [D5] send_to_all: SETINFO driver.parameter.pollinterval "2"
14.984615     [D5] send_to_all: SETINFO driver.parameter.synchronous "auto"
14.984617     Running as foreground process, not saving a PID file
14.984620     [D5] send_to_all: SETINFO driver.flag.allow_killpower "0"
14.984622     [D5] send_to_all: SETFLAGS driver.flag.allow_killpower RW NUMBER
14.984625     [D5] send_to_all: ADDCMD driver.killpower
14.984627     [D5] send_to_all: ADDCMD driver.reload
14.984629     [D5] send_to_all: ADDCMD driver.reload-or-exit
14.984631     [D5] send_to_all: ADDCMD driver.reload-or-error
14.984633     [D5] send_to_all: SETINFO driver.state "quiet"
14.984635     [D1] Driver initialization completed, beginning regular infinite loop

sbin/upsdrvctl start

Network UPS Tools upsdrvctl - UPS driver controller 2.8.2.1877-1877-ge7788b97d (development iteration after 2.8.2)
Network UPS Tools 2.8.2.1877-1877-ge7788b97d (development iteration after 2.8.2) - Generic Q* USB/Serial driver 0.39
USB communication driver (libusb 1.0) 0.50
Using protocol: Megatec 0.07
No values for battery high/low voltages
Using 'guesstimation' (low: 10.400000, high: 13.000000)!
Autodetected 1 as number of battery packs [12/13.50]
Battery runtime will not be calculated (runtimecal not set)

sbin/upsdrvctl stop
systemctl start nut-server.service
bin/upsc exegate@localhost
Error: Driver not connected

nut-server logs:

Jan 14 22:01:09 debian upsd[935]: listening on 127.0.0.1 port 3493
Jan 14 22:01:09 debian upsd[935]: listening on 192.168.230.143 port 3493
Jan 14 22:01:09 debian nut-server[935]: Can't connect to UPS [exegate] (nutdrv_qx-exegate): No such file or directory
Jan 14 22:01:09 debian upsd[935]: Can't connect to UPS [exegate] (nutdrv_qx-exegate): No such file or directory
Jan 14 22:01:09 debian nut-server[935]: Found 1 UPS defined in ups.conf
Jan 14 22:01:09 debian upsd[935]: Found 1 UPS defined in ups.conf
Jan 14 22:01:09 debian nut-server[935]: WARNING: /usr/local/ups/etc/upsd.users is world readable (hope you don't have passwords there)
Jan 14 22:01:09 debian upsd[935]: WARNING: /usr/local/ups/etc/upsd.users is world readable (hope you don't have passwords there)
Jan 14 22:01:09 debian nut-server[935]: Running as foreground process, not saving a PID file

@jimklimov
Copy link
Member

Curious about that exit due to Signal 2. Do you have a [email protected] instance? If yes - stop it while experimenting; check wiki about NDE and how it helps in stable life and potentially complicates experiments :}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impacts-release-2.8.2 Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks) Incorrect or missing readings On some devices driver-reported values are systemically off (e.g. x10, x0.1, const+Value, etc.) Qx protocol driver Driver based on Megatec Q<number> such as new nutdrv_qx, or obsoleted blazer and some others USB
Projects
None yet
Development

No branches or pull requests

2 participants