Hi folks,

В Tue, 03 Nov 2009 15:01:45 +0100
Arjen de Korte <[email protected]> пишет:

> Citeren Arnaud Quette <[email protected]>:
> 
> > @Alex: let us know when you receive a unit so that we can start the
> > work. I (or Arjen or someone else) can bootstrap the work by
> > created a subdriver to complete.

I've received the unit a couple of days ago. It is a Powercom IMP-525AP
device.

> It would help if we would have the following information up front:
> 
> 1) VendorID:ProductID combination that will be used (all
> permutations, if VendorID is also used for non USB HID Power Device
> Class devices)

The VID:PID combination is 0d9f:00a2. I'm also sending 'lsusb -v'
output in the attachment.

> 2) output of usbhid-ups driver when running in explore mode (see
> 'man 8 usbhid-ups' how to set this up)

Attached it either.

-- 
  Alexander

Attachment: lsusb.out
Description: Binary data

Network UPS Tools - Generic HID driver 0.34 (2.4.1-2089)
USB communication driver 0.31
   0.000000	debug level is '2'
   0.000880	upsdrv_initups...
   0.125975	Checking device (0D9F/00A2) (003/002)
   0.170619	- VendorID: 0d9f
   0.170649	- ProductID: 00a2
   0.170661	- Manufacturer: POWERCOM Co.,LTD 
   0.170673	- Product:   UPS  IMP--525AP FW1.A1 
   0.170685	- Serial Number: 0A2-0000-0001  
   0.170697	- Bus: 003
   0.170708	Trying to match device
   0.170788	Device matches
   0.178644	HID descriptor length 720
   0.271644	Report Descriptor size = 720
   0.272381	Using subdriver: EXPLORE HID 0.1
   0.275693	Path: UPS.PowerSummary.iProduct, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1.000000
   0.279664	Path: UPS.PowerSummary.iSerialNumber, Type: Feature, ReportID: 0x02, Offset: 0, Size: 8, Value: 2.000000
   0.283618	Path: UPS.PowerSummary.iManufacturer, Type: Feature, ReportID: 0x03, Offset: 0, Size: 8, Value: 3.000000
   0.287663	Path: UPS.PowerSummary.iOEMInformation, Type: Feature, ReportID: 0x04, Offset: 0, Size: 8, Value: 3.000000
   0.291608	Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x05, Offset: 0, Size: 8, Value: 4.000000
   0.295630	Path: UPS.PowerSummary.Rechargeable, Type: Feature, ReportID: 0x07, Offset: 0, Size: 8, Value: 1.000000
   0.299603	Path: UPS.PowerSummary.CapacityMode, Type: Feature, ReportID: 0x08, Offset: 0, Size: 8, Value: 2.000000
   0.303601	Path: UPS.PowerSummary.DesignCapacity, Type: Feature, ReportID: 0x09, Offset: 0, Size: 8, Value: 100.000000
   0.303631	Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature, ReportID: 0x09, Offset: 8, Size: 8, Value: 100.000000
   0.307584	Path: UPS.PowerSummary.RemainingCapacity, Type: Input, ReportID: 0x0a, Offset: 0, Size: 8, Value: 100.000000
   0.307610	Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x0a, Offset: 0, Size: 8, Value: 100.000000
   0.311583	Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature, ReportID: 0x0b, Offset: 0, Size: 8, Value: 30.000000
   0.315587	Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, ReportID: 0x0c, Offset: 0, Size: 8, Value: 10.000000
   0.319628	Path: UPS.PowerSummary.ManufacturerDate, Type: Feature, ReportID: 0x0d, Offset: 0, Size: 16, Value: 13478.000000
   0.323664	Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, ReportID: 0x0e, Offset: 0, Size: 16, Value: 2432.000000
   0.323712	Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 0x0e, Offset: 0, Size: 16, Value: 2432.000000
   0.327643	Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 0x0f, Offset: 0, Size: 16, Value: 0.000000
   0.331618	Path: UPS.PowerSummary.DelayBeforeStartup, Type: Feature, ReportID: 0x10, Offset: 0, Size: 16, Value: 0.000000
   0.334659	Can't retrieve Report 17: Value too large for defined data type
   0.334690	Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, ReportID: 0x11, Offset: 0, Size: 8
   0.338612	Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x12, Offset: 0, Size: 16, Value: 212.000000
   0.342607	Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 1.000000
   0.346590	Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, ReportID: 0x14, Offset: 0, Size: 1, Value: 0.000000
   0.346625	Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x14, Offset: 0, Size: 1, Value: 0.000000
   0.346649	Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, ReportID: 0x14, Offset: 1, Size: 1, Value: 0.000000
   0.346676	Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x14, Offset: 1, Size: 1, Value: 0.000000
   0.346711	Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, ReportID: 0x14, Offset: 2, Size: 1, Value: 1.000000
   0.346736	Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x14, Offset: 2, Size: 1, Value: 1.000000
   0.346761	Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type: Input, ReportID: 0x14, Offset: 3, Size: 1, Value: 1.000000
   0.346793	Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type: Feature, ReportID: 0x14, Offset: 3, Size: 1, Value: 1.000000
   0.346817	Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input, ReportID: 0x14, Offset: 4, Size: 1, Value: 0.000000
   0.346849	Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x14, Offset: 4, Size: 1, Value: 0.000000
   0.346874	Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Input, ReportID: 0x14, Offset: 5, Size: 1, Value: 0.000000
   0.346905	Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature, ReportID: 0x14, Offset: 5, Size: 1, Value: 0.000000
   0.346930	Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Input, ReportID: 0x14, Offset: 6, Size: 1, Value: 0.000000
   0.346961	Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Feature, ReportID: 0x14, Offset: 6, Size: 1, Value: 0.000000
   0.346985	Path: UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: Input, ReportID: 0x14, Offset: 7, Size: 1, Value: 0.000000
   0.347017	Path: UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: Feature, ReportID: 0x14, Offset: 7, Size: 1, Value: 0.000000
   0.347041	Path: UPS.PowerSummary.PresentStatus.ShutdownRequested, Type: Input, ReportID: 0x14, Offset: 8, Size: 1, Value: 0.000000
   0.347072	Path: UPS.PowerSummary.PresentStatus.ShutdownRequested, Type: Feature, ReportID: 0x14, Offset: 8, Size: 1, Value: 0.000000
   0.347096	Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Input, ReportID: 0x14, Offset: 9, Size: 1, Value: 0.000000
   0.347127	Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Feature, ReportID: 0x14, Offset: 9, Size: 1, Value: 0.000000
   0.347152	Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type: Input, ReportID: 0x14, Offset: 10, Size: 1, Value: 0.000000
   0.347182	Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type: Feature, ReportID: 0x14, Offset: 10, Size: 1, Value: 0.000000
   0.347207	Path: UPS.PowerSummary.PresentStatus.Overload, Type: Input, ReportID: 0x14, Offset: 11, Size: 1, Value: 0.000000
   0.347238	Path: UPS.PowerSummary.PresentStatus.Overload, Type: Feature, ReportID: 0x14, Offset: 11, Size: 1, Value: 0.000000
   0.347262	Path: UPS.PowerSummary.PresentStatus.ff860080, Type: Input, ReportID: 0x14, Offset: 15, Size: 1, Value: 0.000000
   0.347293	Path: UPS.PowerSummary.PresentStatus.ff860080, Type: Feature, ReportID: 0x14, Offset: 15, Size: 1, Value: 0.000000
   0.350584	Path: UPS.Battery.Test, Type: Feature, ReportID: 0x15, Offset: 0, Size: 8, Value: 1.000000
   0.354584	Path: UPS.Battery.Initialized, Type: Feature, ReportID: 0x16, Offset: 0, Size: 8, Value: 1.000000
   0.358585	Path: UPS.Battery.ManufacturerDate, Type: Feature, ReportID: 0x17, Offset: 0, Size: 16, Value: 13478.000000
   0.362589	Path: UPS.Battery.RemainingCapacity, Type: Feature, ReportID: 0x18, Offset: 0, Size: 8, Value: 100.000000
   0.365600	Can't retrieve Report 25: Value too large for defined data type
   0.365627	Path: UPS.Battery.ConfigVoltage, Type: Feature, ReportID: 0x19, Offset: 0, Size: 8
   0.369618	Path: UPS.Battery.Voltage, Type: Feature, ReportID: 0x1a, Offset: 0, Size: 16, Value: 212.000000
   0.373599	Path: UPS.Battery.DelayBeforeStartup, Type: Feature, ReportID: 0x1b, Offset: 0, Size: 16, Value: 0.000000
   0.376605	Can't retrieve Report 28: Value too large for defined data type
   0.376625	Path: UPS.Input.ConfigVoltage, Type: Feature, ReportID: 0x1c, Offset: 0, Size: 8
   0.380612	Path: UPS.Input.Voltage, Type: Feature, ReportID: 0x1d, Offset: 0, Size: 16, Value: 212.000000
   0.384595	Path: UPS.Input.Frequency, Type: Feature, ReportID: 0x1e, Offset: 0, Size: 8, Value: 50.000000
   0.388596	Path: UPS.Output.PercentLoad, Type: Feature, ReportID: 0x1f, Offset: 0, Size: 8, Value: 0.000000
   0.391619	Can't retrieve Report 32: Value too large for defined data type
   0.391646	Path: UPS.Output.ConfigVoltage, Type: Feature, ReportID: 0x20, Offset: 0, Size: 8
   0.395605	Path: UPS.Output.Voltage, Type: Feature, ReportID: 0x21, Offset: 0, Size: 16, Value: 212.000000
   0.399670	Path: UPS.Output.Frequency, Type: Feature, ReportID: 0x22, Offset: 0, Size: 8, Value: 50.000000
   0.403676	Path: UPS.Output.DelayBeforeShutdown, Type: Feature, ReportID: 0x23, Offset: 0, Size: 16, Value: 0.000000
   0.407948	Path: UPS.Output.DelayBeforeStartup, Type: Feature, ReportID: 0x24, Offset: 0, Size: 16, Value: 0.000000
   0.411623	Path: UPS.iName, Type: Feature, ReportID: 0x06, Offset: 0, Size: 16, Value: 5.000000
   0.415597	Path: UPS.AudibleAlarmControl, Type: Feature, ReportID: 0x25, Offset: 0, Size: 8, Value: 1.000000
   0.419599	Path: UPS.PresentStatus.Charging, Type: Feature, ReportID: 0x26, Offset: 0, Size: 1, Value: 0.000000
   0.419625	Path: UPS.PresentStatus.Discharging, Type: Feature, ReportID: 0x26, Offset: 1, Size: 1, Value: 0.000000
   0.419646	Path: UPS.PresentStatus.ACPresent, Type: Feature, ReportID: 0x26, Offset: 2, Size: 1, Value: 1.000000
   0.419666	Path: UPS.PresentStatus.BatteryPresent, Type: Feature, ReportID: 0x26, Offset: 3, Size: 1, Value: 1.000000
   0.419686	Path: UPS.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x26, Offset: 4, Size: 1, Value: 0.000000
   0.419706	Path: UPS.PresentStatus.RemainingTimeLimitExpired, Type: Feature, ReportID: 0x26, Offset: 5, Size: 1, Value: 0.000000
   0.419726	Path: UPS.PresentStatus.NeedReplacement, Type: Feature, ReportID: 0x26, Offset: 6, Size: 1, Value: 0.000000
   0.419746	Path: UPS.PresentStatus.VoltageNotRegulated, Type: Feature, ReportID: 0x26, Offset: 7, Size: 1, Value: 0.000000
   0.419766	Path: UPS.PresentStatus.ShutdownRequested, Type: Feature, ReportID: 0x26, Offset: 8, Size: 1, Value: 0.000000
   0.419786	Path: UPS.PresentStatus.ShutdownImminent, Type: Feature, ReportID: 0x26, Offset: 9, Size: 1, Value: 0.000000
   0.419806	Path: UPS.PresentStatus.CommunicationLost, Type: Feature, ReportID: 0x26, Offset: 10, Size: 1, Value: 0.000000
   0.419826	Path: UPS.PresentStatus.Overload, Type: Feature, ReportID: 0x26, Offset: 11, Size: 1, Value: 0.000000
   0.419845	Path: UPS.PresentStatus.Boost, Type: Feature, ReportID: 0x26, Offset: 12, Size: 1, Value: 0.000000
   0.419865	Path: UPS.PresentStatus.Buck, Type: Feature, ReportID: 0x26, Offset: 13, Size: 1, Value: 0.000000
   0.419885	Path: UPS.PresentStatus.Tested, Type: Feature, ReportID: 0x26, Offset: 14, Size: 1, Value: 0.000000
   0.419905	Path: UPS.PresentStatus.ff860080, Type: Feature, ReportID: 0x26, Offset: 15, Size: 1, Value: 0.000000
   0.423592	Path: UPS.ShutdownImminent, Type: Feature, ReportID: 0x27, Offset: 0, Size: 8, Value: 0.000000
   0.429614	Path: UPS.0084002f, Type: Feature, ReportID: 0x28, Offset: 0, Size: 8, Value: 196.000000
   0.432604	Can't retrieve Report 41: Broken pipe
   0.432624	Path: UPS.ff860060, Type: Input, ReportID: 0x29, Offset: 0, Size: 8
   0.435589	Can't retrieve Report 41: Broken pipe
   0.435606	Path: UPS.ff860060, Type: Feature, ReportID: 0x29, Offset: 0, Size: 8
   0.435653	Report descriptor retrieved (Reportlen = 720)
   0.435663	Found HID device
   0.435674	Detected a UPS: POWERCOM Co.,LTD /  UPS  IMP--525AP FW1.A1 
   0.435691	upsdrv_initinfo...
   0.435712	upsdrv_updateinfo...
   0.687606	Got 0 HID objects...
   0.687640	Quick update...
   0.687861	dstate_init: sock /home/alex/development/nut/build/var/state/ups/usbhid-ups-powercom open on fd 5
   0.687920	upsdrv_updateinfo...
   0.939645	Got 0 HID objects...
   0.939680	Quick update...
   2.689740	upsdrv_updateinfo...
   2.942651	Got 0 HID objects...
   2.942686	Quick update...
   4.691628	upsdrv_updateinfo...
   4.944641	Got 0 HID objects...
   4.944676	Quick update...
   6.693555	upsdrv_updateinfo...
   6.822666	Got 1 HID objects...
   6.826671	Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, ReportID: 0x0e, Offset: 0, Size: 16, Value: 2432.000000
   6.826707	Quick update...
   8.694629	upsdrv_updateinfo...
   8.742611	file_report_buffer: expected 2 bytes, but got 3!
   8.742655	HIDGetEvents: failed to buffer report: Numerical result out of range
   8.742670	Got 0 HID objects...
   8.742680	Quick update...
  10.696360	upsdrv_updateinfo...
  10.726605	Got 13 HID objects...
  10.736653	Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, ReportID: 0x14, Offset: 0, Size: 1, Value: 0.000000
  10.736709	Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, ReportID: 0x14, Offset: 1, Size: 1, Value: 0.000000
  10.736736	Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, ReportID: 0x14, Offset: 2, Size: 1, Value: 1.000000
  10.736763	Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type: Input, ReportID: 0x14, Offset: 3, Size: 1, Value: 1.000000
  10.736794	Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input, ReportID: 0x14, Offset: 4, Size: 1, Value: 0.000000
  10.736832	Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Input, ReportID: 0x14, Offset: 5, Size: 1, Value: 0.000000
  10.736858	Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Input, ReportID: 0x14, Offset: 6, Size: 1, Value: 0.000000
  10.736887	Path: UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: Input, ReportID: 0x14, Offset: 7, Size: 1, Value: 0.000000
  10.736922	Path: UPS.PowerSummary.PresentStatus.ShutdownRequested, Type: Input, ReportID: 0x14, Offset: 8, Size: 1, Value: 0.000000
  10.736957	Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Input, ReportID: 0x14, Offset: 9, Size: 1, Value: 0.000000
  10.736993	Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type: Input, ReportID: 0x14, Offset: 10, Size: 1, Value: 0.000000
  10.737020	Path: UPS.PowerSummary.PresentStatus.Overload, Type: Input, ReportID: 0x14, Offset: 11, Size: 1, Value: 0.000000
  10.737047	Path: UPS.PowerSummary.PresentStatus.ff860080, Type: Input, ReportID: 0x14, Offset: 15, Size: 1, Value: 0.000000
  10.737068	Quick update...
  12.696952	upsdrv_updateinfo...
  12.949595	Got 0 HID objects...
  12.949630	Quick update...
  14.698493	upsdrv_updateinfo...
  14.951648	Got 0 HID objects...
  14.951691	Quick update...
  16.700063	upsdrv_updateinfo...
  16.742616	file_report_buffer: expected 2 bytes, but got 3!
  16.742670	HIDGetEvents: failed to buffer report: Numerical result out of range
  16.742682	Got 0 HID objects...
  16.742697	Quick update...
  18.702196	upsdrv_updateinfo...
  18.726670	Got 1 HID objects...
  18.730616	Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, ReportID: 0x0e, Offset: 0, Size: 16, Value: 2432.000000
  18.730652	Quick update...
  20.704286	upsdrv_updateinfo...
  20.710651	file_report_buffer: expected 2 bytes, but got 3!
  20.710685	HIDGetEvents: failed to buffer report: Numerical result out of range
  20.710699	Got 0 HID objects...
  20.710715	Quick update...
  22.706463	upsdrv_updateinfo...
  22.758625	Got 13 HID objects...
  22.762613	Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, ReportID: 0x14, Offset: 0, Size: 1, Value: 0.000000
  22.762651	Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, ReportID: 0x14, Offset: 1, Size: 1, Value: 0.000000
  22.762677	Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, ReportID: 0x14, Offset: 2, Size: 1, Value: 1.000000
  22.762704	Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type: Input, ReportID: 0x14, Offset: 3, Size: 1, Value: 1.000000
  22.762736	Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input, ReportID: 0x14, Offset: 4, Size: 1, Value: 0.000000
  22.762773	Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Input, ReportID: 0x14, Offset: 5, Size: 1, Value: 0.000000
  22.762799	Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Input, ReportID: 0x14, Offset: 6, Size: 1, Value: 0.000000
  22.762833	Path: UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: Input, ReportID: 0x14, Offset: 7, Size: 1, Value: 0.000000
  22.762860	Path: UPS.PowerSummary.PresentStatus.ShutdownRequested, Type: Input, ReportID: 0x14, Offset: 8, Size: 1, Value: 0.000000
  22.762894	Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Input, ReportID: 0x14, Offset: 9, Size: 1, Value: 0.000000
  22.762922	Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type: Input, ReportID: 0x14, Offset: 10, Size: 1, Value: 0.000000
  22.762957	Path: UPS.PowerSummary.PresentStatus.Overload, Type: Input, ReportID: 0x14, Offset: 11, Size: 1, Value: 0.000000
  22.762984	Path: UPS.PowerSummary.PresentStatus.ff860080, Type: Input, ReportID: 0x14, Offset: 15, Size: 1, Value: 0.000000
  22.763008	Quick update...
  24.707980	upsdrv_updateinfo...
  24.959622	Got 0 HID objects...
  24.959655	Quick update...
  26.709778	upsdrv_updateinfo...
  26.961651	Got 0 HID objects...
  26.961686	Quick update...
^C  27.269259	Signal 2: exiting
  27.269285	upsdrv_cleanup...

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev

Reply via email to