Skip to content

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

Open
@gandc66

Description

@gandc66

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Incorrect or missing readingsOn some devices driver-reported values are systemically off (e.g. x10, x0.1, const+Value, etc.)Qx protocol driverDriver based on Megatec Q<number> such as new nutdrv_qx, or obsoleted blazer and some othersUSBimpacts-release-2.8.2Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions