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

    Ts Shara UPS Xpro Senoidal 2000 Universal 2BS 9AH

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

      Hi, got a new UPS: Ts Shara UPS Xpro Senoidal 2000 Universal 2BS 9AH
      According to NUT compatibility list, the driver to be used is: nutdrv_qx

      Error I'm getting is: Can't connect to UPS [ups] (nutdrv_qx-ups): No such file or directory

      Tried to set the vendor id, protocol, subdriver.. can't get it to work. Tried user=root and RUN_AS_USER root too..
      If someone can help, I would be much appreciated, thanks.

      usbconfig -v
      ugen0.1: <Intel XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
      ugen0.1.0: uhub0: <Intel XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1>
      
        bLength = 0x0012
        bDescriptorType = 0x0001
        bcdUSB = 0x0300
        bDeviceClass = 0x0009  <HUB>
        bDeviceSubClass = 0x0000
        bDeviceProtocol = 0x0003
        bMaxPacketSize0 = 0x0009
        idVendor = 0x0000
        idProduct = 0x0000
        bcdDevice = 0x0100
        iManufacturer = 0x0001  <Intel>
        iProduct = 0x0002  <XHCI root HUB>
        iSerialNumber = 0x0000  <no string>
        bNumConfigurations = 0x0001
      
      
       Configuration index 0
      
          bLength = 0x0009
          bDescriptorType = 0x0002
          wTotalLength = 0x001f
          bNumInterfaces = 0x0001
          bConfigurationValue = 0x0001
          iConfiguration = 0x0000  <no string>
          bmAttributes = 0x0040
          bMaxPower = 0x0000
      
          Interface 0
            bLength = 0x0009
            bDescriptorType = 0x0004
            bInterfaceNumber = 0x0000
            bAlternateSetting = 0x0000
            bNumEndpoints = 0x0001
            bInterfaceClass = 0x0009  <HUB>
            bInterfaceSubClass = 0x0000
            bInterfaceProtocol = 0x0000
            iInterface = 0x0000  <no string>
      
           Endpoint 0
              bLength = 0x0007
              bDescriptorType = 0x0005
              bEndpointAddress = 0x0081  <IN>
              bmAttributes = 0x0003  <INTERRUPT>
              wMaxPacketSize = 0x0002
              bInterval = 0x00ff
              bRefresh = 0x0000
              bSynchAddress = 0x0000
      
            Additional Descriptor
      
            bLength = 0x06
            bDescriptorType = 0x30
            bDescriptorSubType = 0x00
             RAW dump:
             0x00 | 0x06, 0x30, 0x00, 0x00, 0x00, 0x00
      
      
      
      
      ugen0.2: <STMicroelectronics STM32 Virtual ComPort> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
      ugen0.2.0: umodem0: <STMicroelectronics STM32 Virtual ComPort, class 2/2, rev 2.00/2.00, addr 1>
      
        bLength = 0x0012
        bDescriptorType = 0x0001
        bcdUSB = 0x0200
        bDeviceClass = 0x0002  <Communication device>
        bDeviceSubClass = 0x0002
        bDeviceProtocol = 0x0000
        bMaxPacketSize0 = 0x0040
        idVendor = 0x0483
        idProduct = 0x5740
        bcdDevice = 0x0200
        iManufacturer = 0x0001  <STMicroelectronics>
        iProduct = 0x0002  <STM32 Virtual ComPort>
        iSerialNumber = 0x0003  <00000000001A>
        bNumConfigurations = 0x0001
      
      
       Configuration index 0
      
          bLength = 0x0009
          bDescriptorType = 0x0002
          wTotalLength = 0x0043
          bNumInterfaces = 0x0002
          bConfigurationValue = 0x0001
          iConfiguration = 0x0000  <no string>
          bmAttributes = 0x00c0
          bMaxPower = 0x0032
      
          Interface 0
            bLength = 0x0009
            bDescriptorType = 0x0004
            bInterfaceNumber = 0x0000
            bAlternateSetting = 0x0000
            bNumEndpoints = 0x0001
            bInterfaceClass = 0x0002  <Communication device>
            bInterfaceSubClass = 0x0002
            bInterfaceProtocol = 0x0001
            iInterface = 0x0000  <no string>
      
            Additional Descriptor
      
            bLength = 0x05
            bDescriptorType = 0x24
            bDescriptorSubType = 0x00
             RAW dump:
             0x00 | 0x05, 0x24, 0x00, 0x10, 0x01
      
      
            Additional Descriptor
      
            bLength = 0x05
            bDescriptorType = 0x24
            bDescriptorSubType = 0x01
             RAW dump:
             0x00 | 0x05, 0x24, 0x01, 0x00, 0x01
      
      
            Additional Descriptor
      
            bLength = 0x04
            bDescriptorType = 0x24
            bDescriptorSubType = 0x02
             RAW dump:
             0x00 | 0x04, 0x24, 0x02, 0x02
      
      
            Additional Descriptor
      
            bLength = 0x05
            bDescriptorType = 0x24
            bDescriptorSubType = 0x06
             RAW dump:
             0x00 | 0x05, 0x24, 0x06, 0x00, 0x01
      
      
           Endpoint 0
              bLength = 0x0007
              bDescriptorType = 0x0005
              bEndpointAddress = 0x0082  <IN>
              bmAttributes = 0x0003  <INTERRUPT>
              wMaxPacketSize = 0x0008
              bInterval = 0x0010
              bRefresh = 0x0000
              bSynchAddress = 0x0000
      
      
          Interface 1
            bLength = 0x0009
            bDescriptorType = 0x0004
            bInterfaceNumber = 0x0001
            bAlternateSetting = 0x0000
            bNumEndpoints = 0x0002
            bInterfaceClass = 0x000a  <CDC-data>
            bInterfaceSubClass = 0x0000
            bInterfaceProtocol = 0x0000
            iInterface = 0x0000  <no string>
      
           Endpoint 0
              bLength = 0x0007
              bDescriptorType = 0x0005
              bEndpointAddress = 0x0001  <OUT>
              bmAttributes = 0x0002  <BULK>
              wMaxPacketSize = 0x0040
              bInterval = 0x0000
              bRefresh = 0x0000
              bSynchAddress = 0x0000
      
           Endpoint 1
              bLength = 0x0007
              bDescriptorType = 0x0005
              bEndpointAddress = 0x0081  <IN>
              bmAttributes = 0x0002  <BULK>
              wMaxPacketSize = 0x0040
              bInterval = 0x0000
              bRefresh = 0x0000
              bSynchAddress = 0x0000
      
       /usr/local/libexec/nut/nutdrv_qx -DDD -a ups
      Network UPS Tools - Generic Q* USB/Serial driver 0.36 (2.8.1.1)
      USB communication driver (libusb 1.0) 0.46
         0.000000     [D3] main_arg: var='driver' val='nutdrv_qx'
         0.000035     [D3] main_arg: var='port' val='auto'
         0.000052     [D3] main_arg: var='port' val='auto'
         0.000067     [D3] main_arg: var='desc' val='No Break TS-Shara'
         0.000092     [D1] Network UPS Tools version 2.8.1.1 (release/snapshot of 2.8.1.1) built with FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152); Target: x86_64-unknown-freebsd14.0; Thread model: posix and configured with flags: --sysconfdir=/usr/local/etc/nut --program-transform-name= --localstatedir=/var/db/nut --datadir=/usr/local/etc/nut --with-devd-dir=/usr/local/etc/devd --with-drvpath=/usr/local/libexec/nut --with-statepath=/var/db/nut --with-altpidpath=/var/db/nut --with-pidpath=/var/db/nut --with-pkgconfig-dir=/usr/local/libdata/pkgconfig --with-user=nut --with-group=nut --with-python=/usr/local/bin/python3.11 --without-python2 --with-python3=/usr/local/bin/python3.11 --without-nut_monitor --with-ltdl --with-nut-scanner --with-avahi --with-cgi --with-cgipath=/usr/local/www/cgi-bin/nut --with-htmlpath=/usr/local/www/nut --with-gd-includes=-I/usr/local/include --with-gd-libs='-L/usr/local/lib -lgd' --without-dev --with-freeipmi --without-ipmi --with-doc=no --with-modbus --with-neon --without-nss --with-openssl --with-powerman --with-serial --with-snmp --with-usb=auto --prefix=/usr/local --mandir=/usr/local/man --disable-silent-rules --infodir=/usr/local/share/info/ --build=amd64-portbld-freebsd14.0
         0.000112     [D1] debug level is '3'
         0.000658     [D1] Succeeded to become_user(nut): now UID=316 GID=316
         0.000755     [D1] upsdrv_initups...
         0.001011     [D2] libusb1: No appropriate HID device found
         0.001026     libusb1: Could not open any HID devices: no USB buses found
         0.001033     No supported devices found. Please check your device availability with 'lsusb'
      and make sure you have an up-to-date version of NUT. If this does not help,
      try running the driver with at least 'subdriver', 'vendorid' and 'productid'
      options specified. Please refer to the man page for details about these options
      (man 8 nutdrv_qx).
      
         0.001066     upsnotify: failed to notify about state 4: no notification tech defined, will not spam more about it
      
       /usr/local/libexec/nut/nutdrv_qx -u root -DDD -a ups
      Network UPS Tools - Generic Q* USB/Serial driver 0.36 (2.8.1.1)
      USB communication driver (libusb 1.0) 0.46
         0.000001     [D3] main_arg: var='driver' val='nutdrv_qx'
         0.000034     [D3] main_arg: var='port' val='auto'
         0.000051     [D3] main_arg: var='port' val='auto'
         0.000064     [D3] main_arg: var='vendorid' val='483'
         0.000088     [D3] main_arg: var='productid' val='5740'
         0.000108     [D3] main_arg: var='subdriver' val='phoenix'
         0.000125     [D3] main_arg: var='protocol' val='megatec'
         0.000144     [D3] main_arg: var='desc' val='No Break TS-Shara'
         0.000168     [D1] Network UPS Tools version 2.8.1.1 (release/snapshot of 2.8.1.1) built with FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152); Target: x86_64-unknown-freebsd14.0; Thread model: posix and configured with flags: --sysconfdir=/usr/local/etc/nut --program-transform-name= --localstatedir=/var/db/nut --datadir=/usr/local/etc/nut --with-devd-dir=/usr/local/etc/devd --with-drvpath=/usr/local/libexec/nut --with-statepath=/var/db/nut --with-altpidpath=/var/db/nut --with-pidpath=/var/db/nut --with-pkgconfig-dir=/usr/local/libdata/pkgconfig --with-user=nut --with-group=nut --with-python=/usr/local/bin/python3.11 --without-python2 --with-python3=/usr/local/bin/python3.11 --without-nut_monitor --with-ltdl --with-nut-scanner --with-avahi --with-cgi --with-cgipath=/usr/local/www/cgi-bin/nut --with-htmlpath=/usr/local/www/nut --with-gd-includes=-I/usr/local/include --with-gd-libs='-L/usr/local/lib -lgd' --without-dev --with-freeipmi --without-ipmi --with-doc=no --with-modbus --with-neon --without-nss --with-openssl --with-powerman --with-serial --with-snmp --with-usb=auto --prefix=/usr/local --mandir=/usr/local/man --disable-silent-rules --infodir=/usr/local/share/info/ --build=amd64-portbld-freebsd14.0
         0.000186     [D1] debug level is '3'
         0.000729     [D1] Succeeded to become_user(root): now UID=0 GID=0
         0.000789     [D1] upsdrv_initups...
         0.001073     [D2] Checking device 1 of 2 (0000/0000)
         0.001254     [D1] nut_libusb_open: invalid libusb bus number 0
         0.001299     [D2] - VendorID: 0000
         0.001305     [D2] - ProductID: 0000
         0.001311     [D2] - Manufacturer: Intel
         0.001317     [D2] - Product: XHCI root HUB
         0.001322     [D2] - Serial Number: unknown
         0.001327     [D2] - Bus: 000
         0.001333     [D2] - Bus Port: unknown
         0.001338     [D2] - Device: 001
         0.001344     [D2] - Device release number: 0100
         0.001349     [D2] Trying to match device
         0.001354     [D3] match_function_regex: matching a device...
         0.001368     [D2] match_function_regex: failed match of VendorID:    0
         0.001374     [D2] Device does not match - skipping
         0.001400     [D2] Checking device 2 of 2 (0483/5740)
         0.004403     [D2] - VendorID: 0483
         0.004413     [D2] - ProductID: 5740
         0.004419     [D2] - Manufacturer: STMicroelectronics
         0.004424     [D2] - Product: STM32 Virtual ComPort
         0.004429     [D2] - Serial Number: 00000000001A
         0.004434     [D2] - Bus: 000
         0.004439     [D2] - Bus Port: 007
         0.004444     [D2] - Device: 002
         0.004450     [D2] - Device release number: 0200
         0.004455     [D2] Trying to match device
         0.004460     [D3] match_function_regex: matching a device...
         0.004475     [D2] match_function_regex: failed match of VendorID:  483
         0.004480     [D2] Device does not match - skipping
         0.004507     [D2] libusb1: No appropriate HID device found
         0.004516     libusb1: Could not open any HID devices: insufficient permissions on everything
         0.004522     No supported devices found. Please check your device availability with 'lsusb'
      and make sure you have an up-to-date version of NUT. If this does not help,
      try running the driver with at least 'subdriver', 'vendorid' and 'productid'
      options specified. Please refer to the man page for details about these options
      (man 8 nutdrv_qx).
      
         0.004555     upsnotify: failed to notify about state 4: no notification tech defined, will not spam more about it
      
      starting NUT
      Network UPS Tools - UPS driver controller 2.8.1.1
      Network UPS Tools upsd 2.8.1.1
      kill: No such process
      listening on 127.0.0.1 port 3493
      Network UPS Tools - Generic Q* USB/Serial driver 0.36 (2.8.1.1)
      listening on ::1 port 3493
      USB communication driver (libusb 1.0) 0.46
      Can't connect to UPS [ups] (nutdrv_qx-ups): No such file or directory
      libusb1: Could not open any HID devices: no USB buses found
      No supported devices found. Please check your device availability with 'lsusb'
      and make sure you have an up-to-date version of NUT. If this does not help,
      try running the driver with at least 'subdriver', 'vendorid' and 'productid'
      options specified. Please refer to the man page for details about these options
      (man 8 nutdrv_qx).
      
      upsnotify: failed to notify about state 4: no notification tech defined, will not spam more about it
      Driver failed to start (exit status=1)
      Found 1 UPS defined in ups.conf
      Network UPS Tools upsmon 2.8.1.1
      kill: No such process
      UPS: ups (primary) (power value 1)
      Using power down flag file /etc/killpower
      

      dead on arrival, nowhere to be found.

      GertjanG dennypageD 2 Replies Last reply Reply Quote 0
      • GertjanG
        Gertjan @mcury
        last edited by

        @mcury

        You saw the same "nutdrv_qx" issues from last February, in this thread ? I thought a solution was found back then.

        Here is the link that the forum locator gave me https://forum.netgate.com/topic/183961/nut-package-2-8-1-and-above/205?_=1713359983178

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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

          @mcury Your usbconfig output shows a serial emulator rather than a USB UPS.

          If the UPS came with two cables, try the other one. If the UPS only came with that cable, but has a standard USB connector, try a standard USB cable.

          Failing either of those, you will need to grab the serial port device name use that with UPS Type Local serial.

          M 1 Reply Last reply Reply Quote 1
          • M
            mcury @dennypage
            last edited by mcury

            Thanks for the insight Gertjan and dennypage.
            Tried local USB and local serial, both are able to connect to the UPS..
            Q1 is not answered, or gets shorts reply.
            Same goes for QGS, QS, HW, WH, M, and all other questions NUT does to the UPS.

            Tried all subdrivers/protocols combinations.

            dead on arrival, nowhere to be found.

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

              @mcury said in Ts Shara UPS Xpro Senoidal 2000 Universal 2BS 9AH:

              Tried local USB and local serial, both are able to connect to the UPS..
              Q1 is not answered, or gets shorts reply.
              Same goes for QGS, QS, HW, WH, and all other questions NUT does to the UPS.

              Did you try usbhid-ups? This should always be the first driver to try with a USB based UPS. If you haven't already:

              • In Services / UPS / Settings, change the UPS Type to "Disabled" and save.
              • Disconnect the USB cable.
              • Wait a few seconds
              • Reconnect the USB cable.
              • In Services / UPS / Settings, change the UPS Type to "Local USB", and the Driver to "usbhid" and save.

              Going back to qx, if Q1 is not answered then qx isn't the right driver. However... the qx UPSs can have protocol state problems. You have to disconnect/reconnect the USB cable when you change the driver, subdriver or protocol.

              If it actually is a qx UPS, I would recommend starting with this:

              subdriver = "phoenix"
              

              See this topic for an extensive exploration of qx.

              If you post debug output, I might be able to help more.

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