[Nut-upsuser] Can't get iDowell to work

Mick michaelkintzios at gmail.com
Tue Jan 4 20:25:52 UTC 2011


On 4 January 2011 08:27, Arjen de Korte <nut+users at de-korte.org> wrote:
> Citeren Charles Lepple <clepple at gmail.com>:
>
>> Technically, HID only needs to be specified on the interface class
>> (device class can be 0), so this descriptor is correct in that regard.
>
> If the device is auto detected by Windows and Apple, it is quite possible
> that this is indeed a HID PDC device.
>
>> Not sure why it didn't match, though...
>
> That's pretty obvious. No subdriver supports this VID:PID combination, so
> you'll get no match for any of them. What Kjell forgot to mention is that
> Mick will need to add the 'explore' flag to 'ups.conf' (see 'man 8
> usbhid-ups'), so that at least we'll get some debugging output.


Thanks Arjen,

This is what I managed to capture with explore:
====================================
# /lib/nut/usbhid-ups -DD -a iDowell -u root
Network UPS Tools - Generic HID driver 0.34 (2.4.3)
USB communication driver 0.31
   0.000000     debug level is '2'
   0.000724     upsdrv_initups...
[snip ...]

   0.024862     Checking device (075D/0300) (003/093)
   0.059362     - VendorID: 075d
   0.059386     - ProductID: 0300
   0.059394     - Manufacturer: iDowell
   0.059401     - Product: iBox
   0.059408     - Serial Number: 00000001
   0.059415     - Bus: 003
   0.059421     Trying to match device
   0.059462     Device matches
   0.059512     failed to claim USB device: could not claim interface
0: Device or resource busy
   0.060618     detached kernel driver from USB device...
   0.068376     HID descriptor length 412
   0.123376     Report Descriptor size = 412
   0.123676     Using subdriver: EXPLORE HID 0.1
   0.127358     refresh_report_buffer: expected 6 bytes, but got 8 instead
   0.127381     Path: UPS.PowerConverter.PowerConverterID, Type:
Feature, ReportID: 0x0b, Offset: 0, Size: 8, Value: 0.000000
   0.127403     Path: UPS.PowerConverter.Output.OutputID, Type:
Feature, ReportID: 0x0b, Offset: 8, Size: 8, Value: 0.000000
   0.131357     refresh_report_buffer: expected 3 bytes, but got 8 instead
   0.131383     Path: UPS.PowerConverter.Output.Voltage, Type:
Feature, ReportID: 0x0e, Offset: 0, Size: 8, Value: 230.000000
   0.135356     refresh_report_buffer: expected 4 bytes, but got 8 instead
   0.135377     Path: UPS.PowerConverter.Output.LowVoltageTransfer,
Type: Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 105.000000
   0.135393     Path: UPS.PowerConverter.Output.HighVoltageTransfer,
Type: Feature, ReportID: 0x13, Offset: 8, Size: 16, Value: 254.000000
   0.135409     Path: UPS.Flow.[4].FlowID, Type: Feature, ReportID:
0x0b, Offset: 16, Size: 8, Value: 0.000000
   0.139356     refresh_report_buffer: expected 2 bytes, but got 8 instead
   0.139376     Path: UPS.Flow.[4].ConfigVoltage, Type: Feature,
ReportID: 0x12, Offset: 0, Size: 8, Value: 230.000000
   0.143356     refresh_report_buffer: expected 4 bytes, but got 8 instead
   0.143376     Path: UPS.Flow.[4].ConfigFrequency, Type: Feature,
ReportID: 0x0d, Offset: 0, Size: 8, Value: 50.000000
   0.143392     Path: UPS.Flow.[4].ConfigApparentPower, Type: Feature,
ReportID: 0x0d, Offset: 8, Size: 16, Value: 257.000000
   0.143406     Path: UPS.PowerSummary.PowerSummaryID, Type: Feature,
ReportID: 0x0b, Offset: 24, Size: 8, Value: 0.000000
   0.143420     Path: UPS.PowerSummary.FlowID, Type: Feature,
ReportID: 0x0b, Offset: 32, Size: 8, Value: 0.000000
   0.147364     Path: UPS.PowerSummary.CapacityMode, Type: Feature,
ReportID: 0x0c, Offset: 0, Size: 8, Value: 2.000000
   0.147382     Path: UPS.PowerSummary.RemainingCapacityLimit, Type:
Feature, ReportID: 0x0c, Offset: 8, Size: 8, Value: 15.000000
   0.147399     Path: UPS.PowerSummary.CapacityGranularity1, Type:
Feature, ReportID: 0x0c, Offset: 16, Size: 8, Value: 25.000000
   0.151356     refresh_report_buffer: expected 5 bytes, but got 8 instead
   0.151374     Path: UPS.PowerSummary.iDeviceChemistry, Type:
Feature, ReportID: 0x10, Offset: 0, Size: 8, Value: 4.000000
   0.151390     Path: UPS.PowerSummary.iManufacturer, Type: Feature,
ReportID: 0x10, Offset: 8, Size: 8, Value: 3.000000
   0.151403     Path: UPS.PowerSummary.iProduct, Type: Feature,
ReportID: 0x10, Offset: 16, Size: 8, Value: 1.000000
   0.151416     Path: UPS.PowerSummary.iSerialNumber, Type: Feature,
ReportID: 0x10, Offset: 24, Size: 8, Value: 5.000000
   0.151429     Path: UPS.PowerSummary.PercentLoad, Type: Feature,
ReportID: 0x0e, Offset: 8, Size: 8, Value: 33.000000
   0.151444     Path: UPS.PowerSummary.DesignCapacity, Type: Feature,
ReportID: 0x0c, Offset: 24, Size: 8, Value: 100.000000
   0.151458     Path: UPS.PowerSummary.FullChargeCapacity, Type:
Feature, ReportID: 0x0c, Offset: 32, Size: 8, Value: 100.000000
   0.155380     Path: UPS.PowerSummary.RemainingCapacity, Type:
Feature, ReportID: 0x16, Offset: 0, Size: 8, Value: 100.000000
   0.155401     Path: UPS.PowerSummary.RemainingCapacity, Type: Input,
ReportID: 0x16, Offset: 0, Size: 8, Value: 100.000000
   0.155418     Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature,
ReportID: 0x16, Offset: 8, Size: 16, Value: 650.000000
   0.155433     Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input,
ReportID: 0x16, Offset: 8, Size: 16, Value: 650.000000
   0.159360     refresh_report_buffer: expected 2 bytes, but got 8 instead
   0.159386     Path:
UPS.PowerSummary.PresentStatus.CommunicationLost, Type: Input,
ReportID: 0x01, Offset: 0, Size: 1, Value: 0.000000
   0.159400     Path:
UPS.PowerSummary.PresentStatus.CommunicationLost, Type: Feature,
ReportID: 0x01, Offset: 0, Size: 1, Value: 0.000000
   0.159413     Path: UPS.PowerSummary.PresentStatus.Undefined, Type:
Input, ReportID: 0x01, Offset: 1, Size: 7, Value: 0.000000
   0.159426     Path: UPS.PowerSummary.PresentStatus.Undefined, Type:
Feature, ReportID: 0x01, Offset: 1, Size: 7, Value: 0.000000
   0.163363     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type:
Input, ReportID: 0x02, Offset: 0, Size: 1, Value: 1.000000
   0.163380     Path: UPS.PowerSummary.PresentStatus.Charging, Type:
Input, ReportID: 0x02, Offset: 1, Size: 1, Value: 1.000000
   0.163395     Path: UPS.PowerSummary.PresentStatus.Discharging,
Type: Input, ReportID: 0x02, Offset: 2, Size: 1, Value: 0.000000
   0.163408     Path:
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type:
Input, ReportID: 0x02, Offset: 3, Size: 1, Value: 0.000000
   0.163422     Path: UPS.PowerSummary.PresentStatus.NeedReplacement,
Type: Input, ReportID: 0x02, Offset: 4, Size: 1, Value: 0.000000
   0.163435     Path: UPS.PowerSummary.PresentStatus.Good, Type:
Input, ReportID: 0x02, Offset: 5, Size: 1, Value: 1.000000
   0.163449     Path: UPS.PowerSummary.PresentStatus.ShutdownImminent,
Type: Input, ReportID: 0x02, Offset: 6, Size: 1, Value: 0.000000
   0.163469     Path: UPS.PowerSummary.PresentStatus.Overload, Type:
Input, ReportID: 0x02, Offset: 7, Size: 1, Value: 0.000000
   0.163484     Path: UPS.PowerSummary.PresentStatus.InternalFailure,
Type: Input, ReportID: 0x02, Offset: 8, Size: 1, Value: 0.000000
   0.163500     Path: UPS.PowerSummary.PresentStatus.Undefined, Type:
Input, ReportID: 0x02, Offset: 9, Size: 7, Value: 0.000000
   0.163515     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type:
Feature, ReportID: 0x02, Offset: 0, Size: 1, Value: 1.000000
   0.163530     Path: UPS.PowerSummary.PresentStatus.Charging, Type:
Feature, ReportID: 0x02, Offset: 1, Size: 1, Value: 1.000000
   0.163546     Path: UPS.PowerSummary.PresentStatus.Discharging,
Type: Feature, ReportID: 0x02, Offset: 2, Size: 1, Value: 0.000000
   0.163562     Path:
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type:
Feature, ReportID: 0x02, Offset: 3, Size: 1, Value: 0.000000
   0.163578     Path: UPS.PowerSummary.PresentStatus.NeedReplacement,
Type: Feature, ReportID: 0x02, Offset: 4, Size: 1, Value: 0.000000
   0.163593     Path: UPS.PowerSummary.PresentStatus.Good, Type:
Feature, ReportID: 0x02, Offset: 5, Size: 1, Value: 1.000000
   0.163608     Path: UPS.PowerSummary.PresentStatus.ShutdownImminent,
Type: Feature, ReportID: 0x02, Offset: 6, Size: 1, Value: 0.000000
   0.163623     Path: UPS.PowerSummary.PresentStatus.Overload, Type:
Feature, ReportID: 0x02, Offset: 7, Size: 1, Value: 0.000000
   0.163638     Path: UPS.PowerSummary.PresentStatus.InternalFailure,
Type: Feature, ReportID: 0x02, Offset: 8, Size: 1, Value: 0.000000
   0.163653     Path: UPS.PowerSummary.PresentStatus.Undefined, Type:
Feature, ReportID: 0x02, Offset: 9, Size: 7, Value: 0.000000
   0.167358     refresh_report_buffer: expected 4 bytes, but got 8 instead
   0.167387     Path: UPS.PowerSummary.DelayBeforeShutdown, Type:
Feature, ReportID: 0x0f, Offset: 0, Size: 24, Value: 60.000000
   0.171361     refresh_report_buffer: expected 4 bytes, but got 8 instead
   0.171403     Path: UPS.PowerSummary.DelayBeforeStartup, Type:
Feature, ReportID: 0x11, Offset: 0, Size: 24, Value: 0.000000
   0.171446     Report descriptor retrieved (Reportlen = 412)
   0.171461     Found HID device
   0.171475     Detected a UPS: iDowell/iBox
   0.171490     find_nut_info: unknown info type: load.off.delay
   0.171503     find_nut_info: unknown info type: load.on.delay
   0.171515     find_nut_info: unknown info type: load.off.delay
   0.171542     upsdrv_initinfo...
   0.171574     upsdrv_updateinfo...
   0.186562     Got 10 HID objects...
[snip ...]
====================================

This keeps going on and on, so I attach the rest as a zipped file to
keep the noise down.

Please let me know if you need more of it.
-- 
Regards,
Mick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iDowel_debug.txt.zip
Type: application/zip
Size: 4097 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20110104/38f6839e/attachment-0001.zip>


More information about the Nut-upsuser mailing list