Skip to content

Problem with NUTDRV_QX, subdriver armac - unable start driver #1978

@bdkacz

Description

@bdkacz

Hello

I have this UPS http://armac.pl/oferta/ups-office-line-interactive-o850elcd/

I compiled the latest nut-2.8.0 from sources from file nut-2.8.0.tar.gz

Here is my lsusb output:

Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 2357:0120 TP-Link Archer T2U PLUS [RTL8821AU]
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 002: ID 0925:1234 Lakeview Research UPS USB MON V1.4
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub



Then I try this settings in ups.conf :

[poddasze]
    driver = nutdrv_qx
    port   = auto
    vendorid = 0925
    productid = 1234
    subdriver ="armac"
    product = "UPS USB MON V1.4"
    bus = "006"

But when I try upsdrvctl start I get:

Network UPS Tools - UPS driver controller 2.8.0
Network UPS Tools - Generic Q* USB/Serial driver 0.32 (2.8.0)
USB communication driver (libusb 1.0) 0.43
 upsdrvctl startUsing protocol: Megatec 0.06
Can't initialise data from the UPS
Driver failed to start (exit status=1)


So I try to discover more and run ./nutdrv_qx -DDD -a poddasze and get :

Network UPS Tools - Generic Q* USB/Serial driver 0.32 (2.8.0)
USB communication driver (libusb 1.0) 0.43
   0.000000     [D3] do_global_args: var='maxretry' val='3'
   0.000953     [D3] main_arg: var='driver' val='nutdrv_qx'
   0.001053     [D3] main_arg: var='port' val='auto'
   0.001157     [D3] main_arg: var='vendorid' val='0925'
   0.001255     [D3] main_arg: var='productid' val='1234'
   0.001351     [D3] main_arg: var='subdriver' val='armac'
   0.001448     [D3] main_arg: var='product' val='UPS USB MON V1.4'
   0.001536     [D3] main_arg: var='bus' val='006'
   0.001699     [D1] debug level is '3'
   0.003620     [D1] upsdrv_initups...
   0.085404     [D2] Checking device 1 of 10 (1D6B/0001)
   0.085827     [D1] Failed to open device (1D6B/0001), skipping: Access denied (insufficient permissions)
   0.085941     [D2] Checking device 2 of 10 (2357/0120)
   0.086079     [D1] Failed to open device (2357/0120), skipping: Access denied (insufficient permissions)
   0.086163     [D2] Checking device 3 of 10 (1D6B/0002)
   0.086289     [D1] Failed to open device (1D6B/0002), skipping: Access denied (insufficient permissions)
   0.086365     [D2] Checking device 4 of 10 (1D6B/0001)
   0.086485     [D1] Failed to open device (1D6B/0001), skipping: Access denied (insufficient permissions)
   0.086560     [D2] Checking device 5 of 10 (1D6B/0002)
   0.086683     [D1] Failed to open device (1D6B/0002), skipping: Access denied (insufficient permissions)
   0.086755     [D2] Checking device 6 of 10 (0925/1234)
   0.095368     [D2] - VendorID: 0925
   0.095425     [D2] - ProductID: 1234
   0.095456     [D2] - Manufacturer: ?
   0.095484     [D2] - Product: UPS USB MON V1.4
   0.095511     [D2] - Serial Number: unknown
   0.095542     [D2] - Bus: 006
   0.095568     [D2] - Device: unknown
   0.095593     [D2] - Device release number: 0001
   0.095618     [D2] Trying to match device
   0.095649     [D3] match_function_regex: matching a device...
   0.096184     [D2] Device matches
   0.096234     [D2] Reading first configuration descriptor
   0.096300     [D3] libusb_kernel_driver_active() returned 0
   0.096413     [D2] Claimed interface 0 successfully
   0.096457     [D3] nut_usb_set_altinterface: skipped libusb_set_interface_alt_setting(udev, 0, 0)
   0.096551     [D2] armac: unsupported cmd: QGS
   0.096596     [D2] qx_process_answer: short reply (input.voltage)
   0.096632     [D2] armac: unsupported cmd: QGS
   0.096664     [D2] qx_process_answer: short reply (input.voltage)
   0.096697     [D2] armac: unsupported cmd: QGS
   0.096774     [D2] qx_process_answer: short reply (input.voltage)
   0.096822     [D2] armac: unsupported cmd: M
   0.096859     [D2] voltronic_qs_protocol: invalid protocol [M]
   0.096891     [D2] armac: unsupported cmd: M
   0.096925     [D2] voltronic_qs_protocol: invalid protocol [M]
   0.096957     [D2] armac: unsupported cmd: M
   0.096990     [D2] voltronic_qs_protocol: invalid protocol [M]
   0.097022     [D2] armac: unsupported cmd: M
   0.097060     [D2] voltronic_qs_hex_protocol: invalid protocol [M]
   0.097092     [D2] armac: unsupported cmd: M
   0.097127     [D2] voltronic_qs_hex_protocol: invalid protocol [M]
   0.097160     [D2] armac: unsupported cmd: M
   0.097193     [D2] voltronic_qs_hex_protocol: invalid protocol [M]
   0.097225     [D2] armac: unsupported cmd: QS
   0.097258     [D2] qx_process_answer: short reply (input.voltage)
   0.097289     [D2] armac: unsupported cmd: QS
   0.097320     [D2] qx_process_answer: short reply (input.voltage)
   0.097350     [D2] armac: unsupported cmd: QS
   0.097381     [D2] qx_process_answer: short reply (input.voltage)
   0.097413     [D2] armac: unsupported cmd: D
   0.097444     [D2] qx_process_answer: short reply (input.voltage)
   0.097476     [D2] armac: unsupported cmd: D
   0.097507     [D2] qx_process_answer: short reply (input.voltage)
   0.097538     [D2] armac: unsupported cmd: D
   0.097568     [D2] qx_process_answer: short reply (input.voltage)
   1.306422     [D3] armac command Q1 response read: '(230.0 000.0 233.0 008 49.0 13.7 30.8 00001'
   2.494469     [D3] armac command ID response read: '#                           V2.63     '
   3.702449     [D3] armac command Q1 response read: '(231.0 000.0 232.0 008 49.0 13.7 30.8 00001'
   4.890439     [D3] armac command ID response read: '#                           V2.63     '
   6.098435     [D3] armac command Q1 response read: '(231.0 000.0 233.0 009 49.0 13.7 30.8 00001'
   7.287404     [D3] armac command ID response read: '#                           V2.63     '
   8.495400     [D3] armac command Q1 response read: '(228.0 000.0 231.0 008 49.0 13.7 30.8 00001'
   8.495640     [D2] armac: unsupported cmd: QPI
   8.495718     [D2] qx_process_answer: short reply (ups.firmware.aux)
   9.713366     [D3] armac command Q1 response read: '(229.0 000.0 231.0 008 49.0 13.7 30.8 00001'
   9.713591     [D2] armac: unsupported cmd: QPI
   9.713670     [D2] qx_process_answer: short reply (ups.firmware.aux)
  10.931370     [D3] armac command Q1 response read: '(229.0 000.0 230.0 009 50.0 13.7 30.8 00001'
  10.931597     [D2] armac: unsupported cmd: QPI
  10.931674     [D2] qx_process_answer: short reply (ups.firmware.aux)
  12.149365     [D3] armac command Q1 response read: '(231.0 000.0 233.0 009 49.0 13.7 30.8 00001'
  13.337335     [D3] armac command I response read: '#                           V2.63     '
  13.337526     Using protocol: Megatec 0.06
  13.337683     [D1] upsdrv_initinfo...
  14.555319     [D3] armac command Q1 response read: '(231.0 000.0 233.0 008 49.0 13.7 30.8 00001'
  14.555554     [D2] qx_process_answer: short reply (output.voltage)
  14.555647     [D2] qx_process_answer: short reply (ups.load)
  14.555724     [D2] qx_process_answer: short reply (input.frequency)
  14.555801     [D2] qx_process_answer: short reply (battery.voltage)
  14.555880     [D2] qx_process_answer: short reply (ups.temperature)
  14.555955     [D2] qx_process_answer: short reply (ups.status)
  14.556023     Can't initialise data from the UPS
  14.556091     [D1] upsdrv_cleanup...

So it get some data about voltages , but not enought to start the driver :(

Please help

Metadata

Metadata

Assignees

No one assigned

    Labels

    Qx protocol driverDriver based on Megatec Q<number> such as new nutdrv_qx, or obsoleted blazer and some othersbugimpacts-release-2.8.0Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks)

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions