[Nut-upsuser] Need help with Tripp Lite SMART1300LCDT NUT v2.7.3
Johnny Wong
e430benz98 at yahoo.com
Tue Aug 18 17:16:03 UTC 2015
>Just for grins, can you try adding "usb_set_altinterface" to the ups.conf section for your UPS, and see if that changes this part of the log? (That is, after "[upstl1300]").
Here is the output with the usb_set_altinterface added to ups.conf
or at least partially output because it keeps going in a loop.
46.820206 Checking device (09AE/3016) (/dev/usb//dev/ugen0.5)
51.943124 - VendorID: 09ae
51.943149 - ProductID: 3016
51.943157 - Manufacturer: unknown
51.943165 - Product: unknown
51.943175 - Serial Number: unknown
51.943183 - Bus: /dev/usb
51.943191 Trying to match device
51.943219 Device matches
51.943232 nut_usb_set_altinterface: calling usb_set_altinterface(udev, 0)
51.943258 nut_usb_set_altinterface: usb_set_altinterface() should not be necessary - please email the nut-upsdev list with information about your UPS.
51.945383 Report[get]: (2 bytes) => 34 64
51.945402 Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x34, Offset: 0, Size: 8, Value: 100
51.947738 Report[get]: (2 bytes) => 3a 0a
51.947754 Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, ReportID: 0x3a, Offset: 0, Size: 8, Value: 10
51.950194 Report[get]: (2 bytes) => 38 1e
51.950208 Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature, ReportID: 0x38, Offset: 0, Size: 8, Value: 30
51.952619 Report[get]: (3 bytes) => 35 c5 02
51.952634 Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 0x35, Offset: 0, Size: 16, Value: 709
51.954503 Report[get]: (3 bytes) => 04 18 00
51.954518 Path: UPS.BatterySystem.Battery.ConfigVoltage, Type: Feature, ReportID: 0x04, Offset: 0, Size: 16, Value: 24
51.956255 Report[get]: (3 bytes) => 20 14 01
51.956271 Path: UPS.BatterySystem.Battery.Voltage, Type: Feature, ReportID: 0x20, Offset: 0, Size: 16, Value: 0.000276
51.957311 Report[get]: (2 bytes) => 2a 07
51.957325 Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x2a, Offset: 0, Size: 8, Value: 7
51.966043 Report[get]: (3 bytes) => 61 ff ff
51.966058 Path: UPS.OutletSystem.Outlet.DelayBeforeStartup, Type: Feature, ReportID: 0x61, Offset: 0, Size: 16, Value: 65535
51.967812 Report[get]: (3 bytes) => 16 ff ff
51.967827 Path: UPS.OutletSystem.Outlet.TLDelayBeforeStartup, Type: Feature, ReportID: 0x16, Offset: 0, Size: 16, Value: -60
51.969498 Report[get]: (3 bytes) => 15 ff ff
51.969512 Path: UPS.OutletSystem.Outlet.DelayBeforeShutdown, Type: Feature, ReportID: 0x15, Offset: 0, Size: 16, Value: 65535
51.969529 Report[buf]: (3 bytes) => 61 ff ff
51.969539 Path: UPS.OutletSystem.Outlet.DelayBeforeStartup, Type: Feature, ReportID: 0x61, Offset: 0, Size: 16, Value: 65535
51.969576 Report[buf]: (3 bytes) => 15 ff ff
51.969586 Path: UPS.OutletSystem.Outlet.DelayBeforeShutdown, Type: Feature, ReportID: 0x15, Offset: 0, Size: 16, Value: 65535
51.971318 Report[get]: (3 bytes) => 17 ff ff
51.971332 Path: UPS.OutletSystem.Outlet.DelayBeforeReboot, Type: Feature, ReportID: 0x17, Offset: 0, Size: 16, Value: 65535
51.972869 Report[get]: (2 bytes) => 11 02
51.972884 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x11, Offset: 0, Size: 8, Value: 2
51.974255 Report[get]: (3 bytes) => 03 14 05
51.974270 Path: UPS.Flow.ConfigApparentPower, Type: Feature, ReportID: 0x03, Offset: 0, Size: 16, Value: 1300
52.009206 Report[get]: (3 bytes) => 47 27 01
52.009223 Path: UPS.PowerConverter.Output.ActivePower, Type: Feature, ReportID: 0x47, Offset: 0, Size: 16, Value: 295
52.077118 libusb_get_report: Unknown error
52.077136 Can't retrieve Report 1e: Input/output error
52.077151 upsdrv_updateinfo...
52.077158 Got to reconnect!
On Tuesday, August 18, 2015 10:05 AM, Johnny Wong <e430benz98 at yahoo.com> wrote:
Here are all the usbconfig outputs you have requested.
I have left a message with the Dev for NAS4Free to give up the ./configure for NUT portion. I am hoping they will...
usbconfig -u 0 -a 5 dump_device_desc
datanas: ~# usbconfig -u 0 -a 5 dump_device_desc
ugen0.5: <TRIPP LITE UPS Tripp Lite> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0110
bDeviceClass = 0x0000 <Probed by interface class>
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0008
idVendor = 0x09ae
idProduct = 0x3016
bcdDevice = 0x0002
iManufacturer = 0x0003 <retrieving string failed>
iProduct = 0x0001 <TRIPP LITE UPS>
iSerialNumber = 0x0005 <retrieving string failed>
bNumConfigurations = 0x0001
usbconfig -u 0 -a 5 dump_curr_config_desc
datanas: ~# usbconfig -u 0 -a 5 dump_curr_config_desc
ugen0.5: <TRIPP LITE UPS Tripp Lite> at usbus0, 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, 0x6e,
0x08 | 0x03 Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0081 <IN>
bmAttributes = 0x0003 <INTERRUPT>
wMaxPacketSize = 0x0008
bInterval = 0x000c
bRefresh = 0x0000
bSynchAddress = 0x0000
usbconfig -u 0 -a 5 do_request 0x81 0x06 0x2200 0 0x100
datanas: ~# usbconfig -u 0 -a 5 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 0x3a 0x09 0x29 0xb1 0xa2 0x85 0x37 0x09 0x67 0xb1 0x03 0x85 0x36 0x09 0x83 0xb1 0x03 0x85><$(yu&)y+y0 at g!U10u'g!UZu%eU2u%bbiiBFDEGKBFDEGK*yu&by3,4ff:)7g6>
On Tuesday, August 18, 2015 5:44 AM, Charles Lepple <clepple at gmail.com> wrote:
On Aug 17, 2015, at 11:56 AM, Johnny Wong <e430benz98 at yahoo.com> wrote:
>
> > What does that revision number correspond to in FreeBSD release numbers? (e.g. 9.3, 10.0)
>
> FreeBSD 10.2-RELEASE #0 r286738M
Okay, thanks. I think this is the first report of FreeBSD 10.2, so hopefully it is not an issue inherent in the OS. I will see if I can upgrade one of my machines to test with another UPS brand.
> the last person probably wasn't able to give the ./configure probably because most people uses the precompiled iso to install NAS4Free. if you need the ./configure I might have to look for their source on GitHub or something.
True, most people won't need to know the ./configure parameters. It looks like you found the driver path and the UPS name, so we're set for now. However, if you run across that part of the source code, it might be useful for later in case we need to rebuild a driver.
>
> /usr/local/libexec/nut/usbhid-ups -a upstl1300 -DDD
> Network UPS Tools - Generic HID driver 0.39 (2.7.3)
> USB communication driver 0.32
> 0.000000 debug level is '3'
> 0.006296 upsdrv_initups...
[...]
> 0.013551 Checking device (09AE/3016) (/dev/usb//dev/ugen0.5)
> 0.278818 - VendorID: 09ae
> 0.278835 - ProductID: 3016
> 0.278843 - Manufacturer: unknown
> 0.278852 - Product: unknown
> 0.278859 - Serial Number: unknown
> 0.278867 - Bus: /dev/usb
> 0.278876 Trying to match device
> 0.278925 Device matches
> 0.278937 nut_usb_set_altinterface: skipped usb_set_altinterface(udev, 0)
Just for grins, can you try adding "usb_set_altinterface" to the ups.conf section for your UPS, and see if that changes this part of the log? (That is, after "[upstl1300]").
> 0.306126 HID descriptor, method 1: (9 bytes) => 09 21 11 01 00 01 22 6e 03
> 0.306148 HID descriptor, method 2: (9 bytes) => 09 21 11 01 00 01 22 6e 03
> 0.306156 HID descriptor length 878
> 5.279939 Unable to get Report descriptor: Input/output error
My other concern is that FreeBSD might not allow the method that we use to retrieve the Report Descriptor.
What do the following commands return (need to run them as root)?
usbconfig -u 0 -a 5 dump_device_desc
usbconfig -u 0 -a 5 dump_curr_config_desc
usbconfig -u 0 -a 5 do_request 0x81 0x06 0x2200 0 0x100
(I'm guessing on "-u 0 -a 5" based on .../dev/ugen0.5 -- that might change if the UPS USB cable is unplugged and re-inserted.)
> cat /var/etc/ups.conf
> [upstl1300]
> driver = usbhid-ups
> port = auto
> pollfreq = 30
> productid = 3016
>
> Let me know what other information is required, I'll try my best to obtain it.
Thanks for sending ups.conf. That's all I can think of for now.
--
Charles Lepple
clepple at gmail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20150818/d270c8e0/attachment-0001.html>
More information about the Nut-upsuser
mailing list