<div dir="ltr">Hi all,<div> just landed here so apologize. I've googled a lot but I can't find a way to get my UPS working with NUT.</div><div><br></div><div>here my ( relevant ) details:</div><div>lsusb </div><div>...</div><div>...</div><div>Bus 001 Device 027: ID 0001:0000 Fry's Electronics <br></div><div>...</div><div>... </div><div>lsusb -v -d 0001:0000</div><div>Bus 001 Device 027: ID 0001:0000 Fry's Electronics <br>Device Descriptor:<br>  bLength                18<br>  bDescriptorType         1<br>  bcdUSB               2.00<br>  bDeviceClass            0 <br>  bDeviceSubClass         0 <br>  bDeviceProtocol         0 <br>  bMaxPacketSize0         8<br>  idVendor           0x0001 Fry's Electronics<br>  idProduct          0x0000 <br>  bcdDevice            0.00<br>  iManufacturer           1 ATCL FOR UPS<br>  iProduct                1 ATCL FOR UPS<br>  iSerial                 1 ATCL FOR UPS<br>  bNumConfigurations      1<br>  Configuration Descriptor:<br>    bLength                 9<br>    bDescriptorType         2<br>    wTotalLength       0x0029<br>    bNumInterfaces          1<br>    bConfigurationValue     1<br>    iConfiguration          0 <br>    bmAttributes         0xe0<br>      Self Powered<br>      Remote Wakeup<br>    MaxPower               98mA<br>    Interface Descriptor:<br>      bLength                 9<br>      bDescriptorType         4<br>      bInterfaceNumber        0<br>      bAlternateSetting       0<br>      bNumEndpoints           2<br>      bInterfaceClass         3 Human Interface Device<br>      bInterfaceSubClass      0 <br>      bInterfaceProtocol      0 <br>      iInterface              0 <br>        HID Device Descriptor:<br>          bLength                 9<br>          bDescriptorType        33<br>          bcdHID               1.11<br>          bCountryCode            0 Not supported<br>          bNumDescriptors         1<br>          bDescriptorType        34 Report<br>          wDescriptorLength      32<br>          Report Descriptor: (length is 32)<br>            Item(Global): Usage Page, data= [ 0xa0 0xff ] 65440<br>                            (null)<br>            Item(Local ): Usage, data= [ 0x01 ] 1<br>                            (null)<br>            Item(Main  ): Collection, data= [ 0x01 ] 1<br>                            Application<br>            Item(Local ): Usage, data= [ 0x03 ] 3<br>                            (null)<br>            Item(Global): Logical Minimum, data= [ 0x00 ] 0<br>            Item(Global): Logical Maximum, data= [ 0x01 ] 1<br>            Item(Global): Report Size, data= [ 0x08 ] 8<br>            Item(Global): Report Count, data= [ 0x08 ] 8<br>            Item(Main  ): Input, data= [ 0x02 ] 2<br>                            Data Variable Absolute No_Wrap Linear<br>                            Preferred_State No_Null_Position Non_Volatile Bitfield<br>            Item(Local ): Usage, data= [ 0x04 ] 4<br>                            (null)<br>            Item(Global): Logical Minimum, data= [ 0x00 ] 0<br>            Item(Global): Logical Maximum, data= [ 0x01 ] 1<br>            Item(Global): Report Size, data= [ 0x08 ] 8<br>            Item(Global): Report Count, data= [ 0x08 ] 8<br>            Item(Main  ): Output, data= [ 0x02 ] 2<br>                            Data Variable Absolute No_Wrap Linear<br>                            Preferred_State No_Null_Position Non_Volatile Bitfield<br>            Item(Main  ): End Collection, data=none<br>      Endpoint Descriptor:<br>        bLength                 7<br>        bDescriptorType         5<br>        bEndpointAddress     0x81  EP 1 IN<br>        bmAttributes            3<br>          Transfer Type            Interrupt<br>          Synch Type               None<br>          Usage Type               Data<br>        wMaxPacketSize     0x0008  1x 8 bytes<br>        bInterval              10<br>      Endpoint Descriptor:<br>        bLength                 7<br>        bDescriptorType         5<br>        bEndpointAddress     0x02  EP 2 OUT<br>        bmAttributes            3<br>          Transfer Type            Interrupt<br>          Synch Type               None<br>          Usage Type               Data<br>        wMaxPacketSize     0x0008  1x 8 bytes<br>        bInterval              10<br>can't get device qualifier: Resource temporarily unavailable<br>can't get debug descriptor: Resource temporarily unavailable<br>Device Status:     0x0000<br>  (Bus Powered)<br></div><div><br></div><div>I've tried the nut-scanner:</div><div>topolinux root /usr/local/nut/bin# ./nut-scanner <br>Scanning USB bus.<br>No start IP, skipping NUT bus (old connect method)<br>[nutdev1]<br>        driver = "nutdrv_atcl_usb"<br>        port = "auto"<br>        vendorid = "0001"<br>        productid = "0000"<br>        product = "ATCL FOR UPS"<br>        serial = "ATCL FOR UPS"<br>        vendor = "ATCL FOR UPS"<br>        bus = "001"<br></div><div><br></div><div>So I configure ups.conf:</div><div>more ups.conf </div><div>[myups]<br>driver = "nutdrv_atcl_usb"<br>port = auto<br>vendorid=0001<br></div><div><br></div><div>and try to start:</div><div>root /usr/local/nut/etc# ../bin/nutdrv_atcl_usb -a myups -DDD -x vendor=0001<br>Network UPS Tools - 'ATCL FOR UPS' USB driver 1.1 (2.7.4)<br>Warning: This is an experimental driver.<br>Some features may not function correctly.<br><br></div><div>Fatal error: 'vendorid' is not a valid variable name for this driver.<br><br>Look in the man page or call this driver with -h for a list of<br>valid variable names and flags.<br></div><div><br></div><div>I then remove vendorid. </div><div>more  ups.conf</div><div>[myups]<br>driver = "nutdrv_atcl_usb"<br>port = auto<br>#vendorid=0001<br></div><div><br></div><div>and now it somewhat works:</div><div>root /usr/local/nut/etc# ../bin/nutdrv_atcl_usb -a myups -DDDD <br>Network UPS Tools - 'ATCL FOR UPS' USB driver 1.1 (2.7.4)<br>Warning: This is an experimental driver.<br>Some features may not function correctly.<br><br>   0.000000     debug level is '4'<br>   0.001636     Searching for USB device...<br>   0.007382     Checking USB device [05ac:8242] (002/003)<br>   0.007422     Failed to open USB device, skipping: Permission denied<br>   0.007433     Checking USB device [0424:2513] (002/002)<br>   0.007446     Failed to open USB device, skipping: Permission denied<br>   0.007453     Checking USB device [1d6b:0002] (002/001)<br>   0.007463     Failed to open USB device, skipping: Permission denied<br>   0.007470     Checking USB device [1d6b:0001] (004/001)<br>   0.007481     Failed to open USB device, skipping: Permission denied<br>   0.007495     Checking USB device [05ac:8509] (001/003)<br>   0.007511     Failed to open USB device, skipping: Permission denied<br>   0.007528     Checking USB device [0001:0000] (001/027)<br>   0.011866     - VendorID     : 0001<br>   0.011919     - ProductID    : 0000<br>   0.011941     - Manufacturer : ATCL FOR UPS<br>   0.011967     - Product      : ATCL FOR UPS<br>   0.011996     - Serial Number: ATCL FOR UPS<br>   0.012007     - Bus          : 001<br>   0.012023     Matched expected vendor='ATCL FOR UPS'.<br>   0.012428     USB device [0001:0000] opened<br>   5.014618     status interrupt read: Connection timed out<br>   5.014664     Communications with UPS lost: Query to UPS failed<br>   5.014859     dstate_init: sock /var/state/ups/nutdrv_atcl_usb-myups open on fd 10<br>   5.014959     Checking USB device [05ac:8242] (002/003)<br>   5.014994     Failed to open USB device, skipping: Permission denied<br>   5.015005     Checking USB device [0424:2513] (002/002)<br>   5.015022     Failed to open USB device, skipping: Permission denied<br>   5.015032     Checking USB device [1d6b:0002] (002/001)<br>   5.015047     Failed to open USB device, skipping: Permission denied<br>   5.015069     Checking USB device [1d6b:0001] (004/001)<br>   5.015112     Failed to open USB device, skipping: Permission denied<br>   5.015134     Checking USB device [05ac:8509] (001/003)<br>   5.015149     Failed to open USB device, skipping: Permission denied<br>   5.015158     Checking USB device [0001:0000] (001/027)<br>   5.019736     - VendorID     : 0001<br>   5.019767     - ProductID    : 0000<br>   5.019787     - Manufacturer : ATCL FOR UPS<br>   5.019804     - Product      : ATCL FOR UPS<br>   5.019824     - Serial Number: ATCL FOR UPS<br>   5.019851     - Bus          : 001<br>   5.019859     Matched expected vendor='ATCL FOR UPS'.<br>   5.020208     USB device [0001:0000] opened<br></div><div><br></div><div>I have also tried with blazer_usb and nutdrv_qx.</div><div>With the former I get:</div><div>   0.012149     Trying to match device<br>   0.012194     Device matches<br>   0.012224     nut_usb_set_altinterface: skipped usb_set_altinterface(udev, 0)<br>   0.012242     Trying megatec protocol...<br>   0.012255     send: Q1<br>   0.013044     read: Broken pipe<br>   0.013543     Stall condition cleared<br>   0.013564     blazer_status: short reply<br>   0.013574     Status read 1 failed<br>   0.013581     send: Q1<br>   0.014632     read: Broken pipe<br></div><div><br></div><div>and with the latter:</div><div>   0.007855     Trying to match device<br>   0.007893     Device matches<br>   0.007920     nut_usb_set_altinterface: skipped usb_set_altinterface(udev, 0)<br>   0.007944     command: (8 bytes) => 80 06 04 03 51 47 53 00<br>   5.009814     send: Connection timed out (-110)<br>   5.009856     qx_process_answer: short reply (input.voltage)<br>   5.009884     command: (8 bytes) => 80 06 04 03 51 47 53 00<br>  10.012265     send: Connection timed out (-110)<br>  10.012298     qx_process_answer: short reply (input.voltage)<br>  10.012313     command: (8 bytes) => 80 06 04 03 51 47 53 00<br>  15.013766     send: Connection timed out (-110)<br>  15.013804     qx_process_answer: short reply (input.voltage)<br>  15.013815     command: (8 bytes) => 80 06 02 03 4d 00 00 00<br></div><div><br></div><div>Is there any change I get it working ?</div><div>I only need to know when the power has disconneted, nothing more.</div><div><br></div><div>Thanks in advance.</div><div>Pierluigi</div></div>