[Nut-upsuser] TrippLite SMX1500LCDT FreeBSD 11.2 trouble

Valentin Merkulov schnobel at ickis.net
Sun Aug 19 20:03:22 BST 2018


Here is what I get:

# usbconfig -u 1 -a 3 dump_curr_config_desc
ugen1.3: <Tripp Lite TRIPP LITE UPS> at usbus1, cfg=0 md=HOST spd=LOW
(1.5Mbps) pwr=ON (100mA)


 Configuration index 0

    bLength = 0x0009
    bDescriptorType = 0x0002
    wTotalLength = 0x0022
    bNumInterfaces = 0x0001
    bConfigurationValue = 0x0001
    iConfiguration = 0x0000  <no string>
    bmAttributes = 0x00a0
    bMaxPower = 0x0032

    Interface 0
      bLength = 0x0009
      bDescriptorType = 0x0004
      bInterfaceNumber = 0x0000
      bAlternateSetting = 0x0000
      bNumEndpoints = 0x0001
      bInterfaceClass = 0x0003  <HID device>
      bInterfaceSubClass = 0x0000
      bInterfaceProtocol = 0x0000
      iInterface = 0x0000  <no string>

      Additional Descriptor

      bLength = 0x09
      bDescriptorType = 0x21
      bDescriptorSubType = 0x11
       RAW dump:
       0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x68,
       0x08 | 0x03

     Endpoint 0
        bLength = 0x0007
        bDescriptorType = 0x0005
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0003  <INTERRUPT>
        wMaxPacketSize = 0x0008
        bInterval = 0x000c
        bRefresh = 0x0000
        bSynchAddress = 0x0000

# usbconfig -u 1 -a 3 do_request 0x81 0x06 0x2200 0 0x100
REQUEST = <0x05 0x84 0x09 0x04 0xa1 0x01 0x09 0x24 0xa1 0x00 0x85 0x28
0x09 0xfe 0x79 0x01 0x75 0x08 0x95 0x01 0x15 0x00 0x26 0xff 0x00 0xb1
0x03 0x85 0x29 0x09 0xff 0x79 0x05 0xb1 0x03 0x85 0x2b 0x09 0xfd 0x79
0x03 0xb1 0x03 0x09 0x1a 0xa1 0x02 0x85 0x30 0x09 0x40 0x67 0x21 0xd1
0xf0 0x00 0x55 0x07 0xb1 0x83 0x85 0x31 0x09 0x30 0x75 0x10 0x95 0x01
0x15 0x00 0x27 0xff 0xff 0x00 0x00 0x67 0x21 0xd1 0xf0 0x00 0x55 0x01
0xb1 0x02 0xc0 0x85 0x11 0x09 0x5a 0x75 0x08 0x95 0x01 0x15 0x01 0x25
0x03 0x65 0x00 0x55 0x00 0xb1 0x82 0x09 0x02 0xa1 0x02 0x85 0x32 0x75
0x01 0x95 0x07 0x15 0x00 0x25 0x01 0x81 0x03 0xb1 0x03 0x09 0x62 0x95
0x01 0xb1 0xa2 0x09 0x62 0x81 0xa2 0xb1 0x01 0x81 0x01 0x09 0x69 0xb1
0xa2 0x09 0x69 0x81 0xa2 0x95 0x06 0xb1 0x01 0x81 0x01 0x05 0x85 0x09
0xd0 0x95 0x01 0x81 0xa2 0x09 0xd0 0xb1 0xa2 0x81 0x01 0xb1 0x01 0x95
0x06 0x09 0x42 0x09 0x46 0x09 0x44 0x09 0x45 0x09 0x47 0x09 0x4b 0x81
0xa2 0x09 0x42 0x09 0x46 0x09 0x44 0x09 0x45 0x09 0x47 0x09 0x4b 0xb1
0xa2 0xc0 0x85 0x2a 0x09 0x89 0x79 0x07 0x75 0x08 0x95 0x01 0x15 0x00
0x26 0xff 0x00 0xb1 0x03 0x85 0x62 0x09 0x8f 0x79 0x08 0xb1 0x03 0x85
0x33 0x09 0x2c 0xb1 0x03 0x85 0x34 0x09 0x66 0x81 0xa2 0x09 0x66 0xb1
0xa2 0x85 0x37 0x09 0x67 0xb1 0x03 0x85 0x36 0x09 0x83 0xb1 0x03 0x85
0x38 0x09 0x8c 0xb1 0xa2
0x85><$(yu&)y+y0 at g!U10u'g!UZu%eU2u%bbiiBFDEGKBFDEGK*yu&by3,4ff7g68>

On Sun, Aug 19, 2018 at 9:00 PM, Charles Lepple <clepple at gmail.com> wrote:
> On Aug 19, 2018, at 2:04 AM, Valentin Merkulov <schnobel at ickis.net> wrote:
>>
>> Hi Everyone,
>>
>> I'm having trouble getting TrippLite SMX1500LCDT to work on FreeBSD
>> 11.2, nut 2.7.4 installed from FreeBSD port.
>>
>> The debug output is rather big when I'm starting usbhid-ups initially,
>> Please find that attached (gzipped to comply with message size limit).
>>
>> Subsequently, until I unplug and replug the USB cable, I'm geting a
>> shorter debug output, like this:
>>
>> Network UPS Tools - Generic HID driver 0.41 (2.7.4)
>> USB communication driver 0.33
>>   0.000000     debug level is '4'
>>   0.001278     upsdrv_initups...
>>   0.001596     Checking device (09AE/3016) (/dev/usb//dev/ugen1.3)
>>   0.034084     - VendorID: 09ae
>>   0.034093     - ProductID: 3016
>
> The Tripp-Lite 3016 Protocol devices have been problematic. It seems as though they are particularly sensitive to cable quality, and also tend to exhibit problems with motherboards from the last few years (around the time that USB 3.0 was introduced, though the UPS is only using USB 1.1 at 1.5 Mbit/sec). Several people have proposed workarounds that involve programmatically disconnecting the USB port for the UPS, which is clever, but probably not the sort of thing you would want to rely on. You may have better luck using a different system running the NUT driver, such as a Raspberry Pi or Beaglebone Black, as ARM boards seem less affected (but not 100% reliable) with 3016 devices.
>
> Can you try the following commands as root?
>
> usbconfig -u 1 -a 3 dump_curr_config_desc
>
> usbconfig -u 1 -a 3 do_request 0x81 0x06 0x2200 0 0x100
>
> (The "-u" and "-a" options are based on the /dev/ugen1.3 line above - adjust the numbers as appropriate after unplugging and re-plugging the USB cable.)
>
> Since usbconfig is part of the base FreeBSD distribution, and not part of NUT, this should identify whether the problem is with NUT's USB/HID implementation, or with the kernel/motherboard combination.



More information about the Nut-upsuser mailing list