[Nut-upsuser] nut unable to communicate with new APC SMX100 over USB

Brian Daniels bitmage at pobox.com
Fri Feb 4 21:58:09 UTC 2011


I'm trying to set up nut-2.6 with a SMX1000 ups unit from APC on a 
CentOS 4.8 server.  It's connected via USB, and Linux has detected it as 
a HID device.  Nut was built from source code.

T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 21 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=051d ProdID=0003 Rev= 1.06
S:  Manufacturer=American Power Conversion
S:  Product= FW:COM 02.3 /
S:  SerialNumber=
C:* #Ifs= 1 Cfg#= 1 Atr=60 MxPwr=  2mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=32ms
E:  Ad=01(O) Atr=03(Int.) MxPS=  64 Ivl=32ms

I have it configured in ups.conf as:
[apc]
driver = usbhid-ups
         vendorid=051d
         productid=0003
         port=auto

upshid-ups is unable to communicate with the UPS, giving 'Protocol 
error'.  I've also tried the snapshot and 2.7 svn release with the same 
results.  Debug output is below, any ideas appreciated.


#./usbhid-ups -DDD -a apc
Network UPS Tools - Generic HID driver 0.35 (2.6.0)
USB communication driver 0.31
    0.000000     debug level is '3'
    0.000656     upsdrv_initups...
    0.001123     Checking device (058F/9360) (005/002)
    0.001180     - VendorID: 058f
    0.001189     - ProductID: 9360
    0.001197     - Manufacturer: unknown
    0.001204     - Product: unknown
    0.001211     - Serial Number: unknown
    0.001218     - Bus: 005
    0.001225     Trying to match device
    0.001244     Device does not match - skipping
    0.001256     Checking device (0000/0000) (005/001)
    0.001279     - VendorID: 0000
    0.001287     - ProductID: 0000
    0.001294     - Manufacturer: unknown
    0.001301     - Product: unknown
    0.001308     - Serial Number: unknown
    0.001315     - Bus: 005
    0.001321     Trying to match device
    0.001329     Device does not match - skipping
    0.001338     Checking device (0000/0000) (004/001)
    0.001360     - VendorID: 0000
    0.001368     - ProductID: 0000
    0.001375     - Manufacturer: unknown
    0.001382     - Product: unknown
    0.001389     - Serial Number: unknown
    0.001395     - Bus: 004
    0.001402     Trying to match device
    0.001410     Device does not match - skipping
    0.001419     Checking device (051D/0003) (003/020)
    0.014186     - VendorID: 051d
    0.014343     - ProductID: 0003
    0.014459     - Manufacturer: American Power Conversion
    0.014615     - Product:  FW:COM 02.3 /
    0.014737     - Serial Number: AS1018320628
    0.014848     - Bus: 003
    0.014981     Trying to match device
    0.015118     interrupt pipe disabled (add 'pollonly' flag to 
'ups.conf' to get rid of this message)
    0.015375     Device matches
    0.015513     failed to claim USB device: could not claim interface 
0: Device or resource busy
    0.032673     detached kernel driver from USB device...
    0.042217     HID descriptor, method 1: (9 bytes) => 09 21 00 01 21 
01 22 ad 01
    0.042502     HID descriptor, method 2: (9 bytes) => 09 21 00 01 21 
01 22 ad 01
    0.043238     HID descriptor length 429
    0.044218     Report Descriptor size = 429
    0.044342     Report Descriptor: (429 bytes) => 05 84 09 04 a1 01 09 
24 a1 02 85 01 09 fe
    0.044543      79 02 75 08 95 01 15 00 26 ff 00 b1 22 85 02 09 ff 79 
03 b1 22 85 03 09 fd
    0.044808      79 01 b1 22 05 85 85 04 09 8f 79 01 b1 22 85 05 09 89 
79 04 b1 22 85 06 09
    0.045000      8b b1 22 09 2c b1 22 85 0e 09 83 25 64 b1 22 09 67 b1 
22 85 0c 09 66 81 22
    0.045381      09 66 b1 a2 85 10 09 8d b1 22 09 8e b1 22 85 0f 09 8c 
b1 22 85 11 09 29 b1
    0.045500      a2 85 09 09 85 75 10 27 ff ff 00 00 b1 a2 85 0d 09 68 
27 ff ff 00 00 66 01
    0.045629      10 55 00 81 a2 09 68 b1 a2 05 84 85 12 09 57 16 ff ff 
26 ff 7f b1 a2 85 13
    0.045750      09 55 75 18 17 ff ff ff ff 27 18 c5 13 00 b1 a2 05 85 
85 08 09 2a 27 64 05
    0.045870      00 00 16 78 00 81 22 09 2a b1 a2 05 84 85 0a 09 40 75 
10 15 00 27 ff ff 00
    0.045993      00 67 21 d1 f0 00 55 05 b1 22 85 0b 09 30 b1 a2 85 14 
09 5a 75 08 15 01 25
    0.046117      03 65 00 55 00 81 22 09 5a b1 a2 09 02 a1 02 85 07 05 
85 09 44 75 01 15 00
    0.046224      25 01 81 a2 09 44 b1 a2 09 45 81 a2 09 45 b1 a2 09 d0 
81 a2 09 d0 b1 a2 09
    0.046345      d1 81 a2 09 d1 b1 a2 09 42 81 a2 09 42 b1 a2 05 84 09 
68 81 a2 09 68 b1 a2
    0.046467      09 69 81 a2 09 69 b1 a2 05 85 09 43 81 a2 09 43 b1 a2 
05 84 09 73 81 a2 09
    0.046607      73 b1 a2 05 85 09 4b 81 a2 09 4b b1 a2 05 84 09 65 81 
a2 09 65 b1 a2 05 85
    0.046725      09 db 81 a2 09 db b1 a2 06 86 ff 09 80 81 a2 09 80 b1 
a2 95 03 81 01 b1 01
    0.046848      c0 c0 05 8c 09 01 a1 00 85 89 09 00 15 00 26 ff 00 75 
08 95 3f 81 02 85 90
    0.046950      09 00 15 00 26 ff 00 75 08 95 3f 91 02 c0 c0
    0.047210     Using subdriver: APC HID 0.95
    0.049181     Report[get]: (2 bytes) => 01 02
    0.049296     Path: UPS.PowerSummary.iProduct, Type: Feature, 
ReportID: 0x01, Offset: 0, Size: 8, Value: 2
    0.050313     libusb_get_report: error sending control message: 
Protocol error
    0.050426     Can't retrieve Report 02: Protocol error
    0.050545     Path: UPS.PowerSummary.iSerialNumber, Type: Feature, 
ReportID: 0x02, Offset: 0, Size: 8
    0.051230     libusb_get_report: error sending control message: 
Protocol error
    0.051335     Can't retrieve Report 03: Protocol error
    0.051452     Path: UPS.PowerSummary.iManufacturer, Type: Feature, 
ReportID: 0x03, Offset: 0, Size: 8
    0.052228     libusb_get_report: error sending control message: 
Protocol error
    0.052334     Can't retrieve Report 04: Protocol error
    0.052448     Path: UPS.PowerSummary.iOEMInformation, Type: Feature, 
ReportID: 0x04, Offset: 0, Size: 8
    0.053229     libusb_get_report: error sending control message: 
Protocol error
    0.053335     Can't retrieve Report 05: Protocol error
    0.053449     Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, 
ReportID: 0x05, Offset: 0, Size: 8
    0.054229     libusb_get_report: error sending control message: 
Protocol error
    0.054334     Can't retrieve Report 06: Protocol error
    0.054449     Path: UPS.PowerSummary.Rechargeable, Type: Feature, 
ReportID: 0x06, Offset: 0, Size: 8
    0.055226     libusb_get_report: error sending control message: 
Protocol error
    0.055332     Can't retrieve Report 06: Protocol error
    0.055447     Path: UPS.PowerSummary.CapacityMode, Type: Feature, 
ReportID: 0x06, Offset: 8, Size: 8
    0.056226     libusb_get_report: error sending control message: 
Protocol error
    0.056332     Can't retrieve Report 0e: Protocol error
    0.056446     Path: UPS.PowerSummary.DesignCapacity, Type: Feature, 
ReportID: 0x0e, Offset: 0, Size: 8
    0.057226     libusb_get_report: error sending control message: 
Protocol error
    0.057331     Can't retrieve Report 0e: Protocol error
    0.057433     Path: UPS.PowerSummary.FullChargeCapacity, Type: 
Feature, ReportID: 0x0e, Offset: 8, Size: 8
    0.058226     libusb_get_report: error sending control message: 
Protocol error
    0.058331     Can't retrieve Report 0c: Protocol error
    0.058446     Path: UPS.PowerSummary.RemainingCapacity, Type: Input, 
ReportID: 0x0c, Offset: 0, Size: 8
    0.059226     libusb_get_report: error sending control message: 
Protocol error
    0.059332     Can't retrieve Report 0c: Protocol error
    0.059435     Path: UPS.PowerSummary.RemainingCapacity, Type: 
Feature, ReportID: 0x0c, Offset: 0, Size: 8
    0.060227     libusb_get_report: error sending control message: 
Protocol error
    0.060332     Can't retrieve Report 10: Protocol error
    0.060446     Path: UPS.PowerSummary.CapacityGranularity1, Type: 
Feature, ReportID: 0x10, Offset: 0, Size: 8
    0.061225     libusb_get_report: error sending control message: 
Protocol error
    0.061329     Can't retrieve Report 10: Protocol error
    0.061447     Path: UPS.PowerSummary.CapacityGranularity2, Type: 
Feature, ReportID: 0x10, Offset: 8, Size: 8
    0.062226     libusb_get_report: error sending control message: 
Protocol error
    0.062331     Can't retrieve Report 0f: Protocol error
    0.062445     Path: UPS.PowerSummary.WarningCapacityLimit, Type: 
Feature, ReportID: 0x0f, Offset: 0, Size: 8
    0.063226     libusb_get_report: error sending control message: 
Protocol error
    0.063331     Can't retrieve Report 11: Protocol error
    0.063447     Path: UPS.PowerSummary.RemainingCapacityLimit, Type: 
Feature, ReportID: 0x11, Offset: 0, Size: 8
    0.064225     libusb_get_report: error sending control message: 
Protocol error
    0.064332     Can't retrieve Report 09: Protocol error
    0.064448     Path: UPS.PowerSummary.ManufacturerDate, Type: Feature, 
ReportID: 0x09, Offset: 0, Size: 16
    0.065225     libusb_get_report: error sending control message: 
Protocol error
    0.065331     Can't retrieve Report 0d: Protocol error
    0.065449     Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, 
ReportID: 0x0d, Offset: 0, Size: 16
    0.066227     libusb_get_report: error sending control message: 
Protocol error
    0.066332     Can't retrieve Report 0d: Protocol error
    0.066450     Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, 
ReportID: 0x0d, Offset: 0, Size: 16
    0.073368     libusb_get_report: error sending control message: 
Protocol error
    0.073658     Can't retrieve Report 12: Protocol error
    0.073824     Path: UPS.PowerSummary.DelayBeforeShutdown, Type: 
Feature, ReportID: 0x12, Offset: 0, Size: 16
    0.074229     libusb_get_report: error sending control message: 
Protocol error
    0.074336     Can't retrieve Report 13: Protocol error
    0.074455     Path: UPS.PowerSummary.DelayBeforeReboot, Type: 
Feature, ReportID: 0x13, Offset: 0, Size: 24
    0.075225     libusb_get_report: error sending control message: 
Protocol error
    0.075330     Can't retrieve Report 08: Protocol error
    0.075451     Path: UPS.PowerSummary.RemainingTimeLimit, Type: Input, 
ReportID: 0x08, Offset: 0, Size: 24
    0.076224     libusb_get_report: error sending control message: 
Protocol error
    0.076329     Can't retrieve Report 08: Protocol error
    0.076446     Path: UPS.PowerSummary.RemainingTimeLimit, Type: 
Feature, ReportID: 0x08, Offset: 0, Size: 24
    0.077224     libusb_get_report: error sending control message: 
Protocol error
    0.077330     Can't retrieve Report 0a: Protocol error
    0.077433     Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, 
ReportID: 0x0a, Offset: 0, Size: 16
    0.078223     libusb_get_report: error sending control message: 
Protocol error
    0.078327     Can't retrieve Report 0b: Protocol error
    0.078441     Path: UPS.PowerSummary.Voltage, Type: Feature, 
ReportID: 0x0b, Offset: 0, Size: 16
    0.079223     libusb_get_report: error sending control message: 
Protocol error
    0.079329     Can't retrieve Report 14: Protocol error
    0.079445     Path: UPS.PowerSummary.AudibleAlarmControl, Type: 
Input, ReportID: 0x14, Offset: 0, Size: 8
    0.080221     libusb_get_report: error sending control message: 
Protocol error
    0.080326     Can't retrieve Report 14: Protocol error
    0.080439     Path: UPS.PowerSummary.AudibleAlarmControl, Type: 
Feature, ReportID: 0x14, Offset: 0, Size: 8
    0.081222     libusb_get_report: error sending control message: 
Protocol error
    0.081327     Can't retrieve Report 07: Protocol error
    0.081430     Path: UPS.PowerSummary.PresentStatus.Charging, Type: 
Input, ReportID: 0x07, Offset: 0, Size: 1
    0.082223     libusb_get_report: error sending control message: 
Protocol error
    0.082328     Can't retrieve Report 07: Protocol error
    0.082444     Path: UPS.PowerSummary.PresentStatus.Charging, Type: 
Feature, ReportID: 0x07, Offset: 0, Size: 1
    0.083223     libusb_get_report: error sending control message: 
Protocol error
    0.083327     Can't retrieve Report 07: Protocol error
    0.083430     Path: UPS.PowerSummary.PresentStatus.Discharging, Type: 
Input, ReportID: 0x07, Offset: 1, Size: 1
    0.084221     libusb_get_report: error sending control message: 
Protocol error
    0.084328     Can't retrieve Report 07: Protocol error
    0.084443     Path: UPS.PowerSummary.PresentStatus.Discharging, Type: 
Feature, ReportID: 0x07, Offset: 1, Size: 1
    0.085223     libusb_get_report: error sending control message: 
Protocol error
    0.085328     Can't retrieve Report 07: Protocol error
    0.085431     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: 
Input, ReportID: 0x07, Offset: 2, Size: 1
    0.086221     libusb_get_report: error sending control message: 
Protocol error
    0.086326     Can't retrieve Report 07: Protocol error
    0.086442     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: 
Feature, ReportID: 0x07, Offset: 2, Size: 1
    0.087220     libusb_get_report: error sending control message: 
Protocol error
    0.087326     Can't retrieve Report 07: Protocol error
    0.087441     Path: UPS.PowerSummary.PresentStatus.BatteryPresent, 
Type: Input, ReportID: 0x07, Offset: 3, Size: 1
    0.088222     libusb_get_report: error sending control message: 
Protocol error
    0.088326     Can't retrieve Report 07: Protocol error
    0.088428     Path: UPS.PowerSummary.PresentStatus.BatteryPresent, 
Type: Feature, ReportID: 0x07, Offset: 3, Size: 1
    0.089221     libusb_get_report: error sending control message: 
Protocol error
    0.089327     Can't retrieve Report 07: Protocol error
    0.089442     Path: 
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input, 
ReportID: 0x07, Offset: 4, Size: 1
    0.090222     libusb_get_report: error sending control message: 
Protocol error
    0.090327     Can't retrieve Report 07: Protocol error
    0.090444     Path: 
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: 
Feature, ReportID: 0x07, Offset: 4, Size: 1
    0.091221     libusb_get_report: error sending control message: 
Protocol error
    0.091325     Can't retrieve Report 07: Protocol error
    0.091427     Path: UPS.PowerSummary.PresentStatus.ShutdownRequested, 
Type: Input, ReportID: 0x07, Offset: 5, Size: 1
    0.092220     libusb_get_report: error sending control message: 
Protocol error
    0.092326     Can't retrieve Report 07: Protocol error
    0.092441     Path: UPS.PowerSummary.PresentStatus.ShutdownRequested, 
Type: Feature, ReportID: 0x07, Offset: 5, Size: 1
    0.093220     libusb_get_report: error sending control message: 
Protocol error
    0.093326     Can't retrieve Report 07: Protocol error
    0.093437     Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, 
Type: Input, ReportID: 0x07, Offset: 6, Size: 1
    0.094219     libusb_get_report: error sending control message: 
Protocol error
    0.094324     Can't retrieve Report 07: Protocol error
    0.094437     Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, 
Type: Feature, ReportID: 0x07, Offset: 6, Size: 1
    0.095219     libusb_get_report: error sending control message: 
Protocol error
    0.095324     Can't retrieve Report 07: Protocol error
    0.095438     Path: 
UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Input, 
ReportID: 0x07, Offset: 7, Size: 1
    0.096220     libusb_get_report: error sending control message: 
Protocol error
    0.096325     Can't retrieve Report 07: Protocol error
    0.096440     Path: 
UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature, 
ReportID: 0x07, Offset: 7, Size: 1
    0.097219     libusb_get_report: error sending control message: 
Protocol error
    0.097324     Can't retrieve Report 07: Protocol error
    0.097437     Path: UPS.PowerSummary.PresentStatus.CommunicationLost, 
Type: Input, ReportID: 0x07, Offset: 8, Size: 1
    0.098220     libusb_get_report: error sending control message: 
Protocol error
    0.098324     Can't retrieve Report 07: Protocol error
    0.098439     Path: UPS.PowerSummary.PresentStatus.CommunicationLost, 
Type: Feature, ReportID: 0x07, Offset: 8, Size: 1
    0.099218     libusb_get_report: error sending control message: 
Protocol error
    0.099323     Can't retrieve Report 07: Protocol error
    0.099436     Path: UPS.PowerSummary.PresentStatus.NeedReplacement, 
Type: Input, ReportID: 0x07, Offset: 9, Size: 1
    0.100217     libusb_get_report: error sending control message: 
Protocol error
    0.100323     Can't retrieve Report 07: Protocol error
    0.100437     Path: UPS.PowerSummary.PresentStatus.NeedReplacement, 
Type: Feature, ReportID: 0x07, Offset: 9, Size: 1
    0.101219     libusb_get_report: error sending control message: 
Protocol error
    0.101325     Can't retrieve Report 07: Protocol error
    0.101441     Path: UPS.PowerSummary.PresentStatus.Overload, Type: 
Input, ReportID: 0x07, Offset: 10, Size: 1
    0.102218     libusb_get_report: error sending control message: 
Protocol error
    0.102323     Can't retrieve Report 07: Protocol error
    0.102437     Path: UPS.PowerSummary.PresentStatus.Overload, Type: 
Feature, ReportID: 0x07, Offset: 10, Size: 1
    0.103219     libusb_get_report: error sending control message: 
Protocol error
    0.103324     Can't retrieve Report 07: Protocol error
    0.103442     Path: 
UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: Input, 
ReportID: 0x07, Offset: 11, Size: 1
    0.104218     libusb_get_report: error sending control message: 
Protocol error
    0.104323     Can't retrieve Report 07: Protocol error
    0.104437     Path: 
UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: Feature, 
ReportID: 0x07, Offset: 11, Size: 1
    0.105218     libusb_get_report: error sending control message: 
Protocol error
    0.105323     Can't retrieve Report 07: Protocol error
    0.105425     Path: UPS.PowerSummary.PresentStatus.ff860080, Type: 
Input, ReportID: 0x07, Offset: 12, Size: 1
    0.106218     libusb_get_report: error sending control message: 
Protocol error
    0.106324     Can't retrieve Report 07: Protocol error
    0.106438     Path: UPS.PowerSummary.PresentStatus.ff860080, Type: 
Feature, ReportID: 0x07, Offset: 12, Size: 1
    0.107218     libusb_get_report: error sending control message: 
Protocol error
    0.107324     Can't retrieve Report 89: Protocol error
    0.107438     Path: UPS.008c0001.008c0000, Type: Input, ReportID: 
0x89, Offset: 0, Size: 8
    0.108226     libusb_get_report: error sending control message: 
Protocol error
    0.108331     Can't retrieve Report 90: Protocol error
    0.108433     Path: UPS.008c0001.008c0000, Type: Output, ReportID: 
0x90, Offset: 0, Size: 8
    0.108620     Report descriptor retrieved (Reportlen = 429)
    0.108728     Found HID device
    0.108839     Detected a UPS: American Power Conversion/ FW:COM 02.3 /
    0.110220     libusb_get_report: error sending control message: 
Protocol error
    0.110331     Can't retrieve Report 0c: Protocol error
    0.111216     libusb_get_report: error sending control message: 
Protocol error
    0.111323     Can't retrieve Report 11: Protocol error
    0.112216     libusb_get_report: error sending control message: 
Protocol error
    0.112323     Can't retrieve Report 0f: Protocol error
    0.113216     libusb_get_report: error sending control message: 
Protocol error
    0.113322     Can't retrieve Report 0d: Protocol error
    0.114216     libusb_get_report: error sending control message: 
Protocol error
    0.114322     Can't retrieve Report 08: Protocol error
    0.115217     libusb_get_report: error sending control message: 
Protocol error
    0.115324     Can't retrieve Report 0b: Protocol error




-- 

Brian Daniels                  bitmage at pobox.com



More information about the Nut-upsuser mailing list