[Nut-upsuser] Help needed: LIEBERT PowerSure Personal XT - USB interface

Alain Williams addw at phcomp.co.uk
Tue Jul 3 15:36:25 UTC 2007


On Tue, Jul 03, 2007 at 08:14:20AM -0400, Charles Lepple wrote:
> [please keep the list CC'd.]

Sorry: I didn't realise that it wasn't in the reply list.

> Try the newhidups driver (renamed to "usbhid-ups" in 2.2.x). As root,
> run "newhidups -u root -x vendorid=1234 -x explore -DD", replacing
> "1234" with the actual vendor ID of your UPS.
> 
> You can determine the vendor ID with "lsusb".
> 
> The "-x explore" option is basically a test mode that lets us see what
> is necessary to support the UPS in a more automated fashion. It may
> also be that they are using the USB HID class as a USB-to-serial
> bridge, but I have seen a few indications in other emails that this
> UPS might be able to work with newhidups, or a future version of it.

I did that:

	/usr/local/ups/bin/usbhid-ups -a mintups -u root -x vendorid=06da  -x explore -DD

And get the following, with the last 2 lines repeating every few seconds:
****************
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.2.0-pre2)

debug level is '2'
Checking device (0000/0000) (005/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.6.9-42.0.10.plus.c4 uhci_hcd
- Product: UHCI Host Controller
- Serial Number: 0000:00:10.3
- Bus: 005
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (004/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.6.9-42.0.10.plus.c4 uhci_hcd
- Product: UHCI Host Controller
- Serial Number: 0000:00:10.2
- Bus: 004
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (003/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.6.9-42.0.10.plus.c4 uhci_hcd
- Product: UHCI Host Controller
- Serial Number: 0000:00:10.1
- Bus: 003
Trying to match device
Device does not match - skipping
Checking device (06DA/FFFF) (002/004)
- VendorID: 06da
- ProductID: ffff
- Manufacturer: LIEBERT
- Product: PowerSure Personal XT
- Serial Number: unknown
- Bus: 002
Trying to match device
Device matches
HID descriptor retrieved (Reportlen = 265)
Report descriptor retrieved (Reportlen = 265)
Found HID device
Report Descriptor size = 265
Detected a UPS: LIEBERT/PowerSure Personal XT
Using subdriver: EXPLORE HID 0.1
Path: UPS.PowerSummary.FlowID, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1.000000
Path: UPS.PowerSummary.PowerSummaryID, Type: Feature, ReportID: 0x01, Offset: 8, Size: 8, Value: 1.000000
Path: UPS.PowerSummary.DesignCapacity, Type: Feature, ReportID: 0x01, Offset: 16, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature, ReportID: 0x01, Offset: 24, Size: 8, Value: 10.000000
Path: UPS.PowerSummary.CapacityMode, Type: Feature, ReportID: 0x01, Offset: 32, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.Rechargeable, Type: Feature, ReportID: 0x01, Offset: 40, Size: 8, Value: 1.000000
Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x02, Offset: 0, Size: 8, Value: 4.000000
Path: UPS.PowerSummary.iProduct, Type: Feature, ReportID: 0x02, Offset: 8, Size: 8, Value: 1.000000
Path: UPS.PowerSummary.iManufacturer, Type: Feature, ReportID: 0x02, Offset: 16, Size: 8, Value: 3.000000
Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, ReportID: 0x1f, Offset: 0, Size: 8, Value: 12.000000
Path: UPS.PowerSummary.PercentLoad, Type: Feature, ReportID: 0x0b, Offset: 0, Size: 8, Value: 25.000000
Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x0b, Offset: 8, Size: 8, Value: 13.000000
Path: UPS.PowerSummary.RemainingCapacity, Type: Input, ReportID: 0x15, Offset: 0, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x15, Offset: 0, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, ReportID: 0x15, Offset: 8, Size: 24, Value: 600.000000
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 0x15, Offset: 8, Size: 24, Value: 600.000000
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, ReportID: 0x16, Offset: 0, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input, ReportID: 0x16, Offset: 1, Size: 1, Value:
0.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, ReportID: 0x16, Offset: 2, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, ReportID: 0x16, Offset: 3, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Overload, Type: Input, ReportID: 0x16, Offset: 4, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Input, ReportID: 0x16, Offset: 5, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x16, Offset: 0, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x16, Offset: 1, Size: 1,
Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x16, Offset: 2, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x16, Offset: 3, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Overload, Type: Feature, ReportID: 0x16, Offset: 4, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Feature, ReportID: 0x16, Offset: 5, Size: 1, Value: 0.000000
upsdrv_updateinfo...
dstate_init: sock /var/state/ups/usbhid-ups-mintups open on fd 5
upsdrv_updateinfo...
Waiting for notifications...
upsdrv_updateinfo...
Waiting for notifications...
****************

So, at the bottom of /usr/local/ups/etc/ups.conf I put:

	[mintups]
	    driver = usbhid-ups
	    port = auto
	    vendorid = 06da

& try to start it:

	# /usr/local/ups/bin/upsdrvctl -DD start

getting:
****************
Network UPS Tools - UPS driver controller 2.2.0-pre2
Starting UPS: mintups
exec: /usr/local/ups/bin/usbhid-ups -a mintups
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.2.0-pre2)

No matching HID UPS found
Driver failed to start (exit status=1)
****************

Even adding ''-u root'' option does not change things.

-- 
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
#include <std_disclaimer.h>



More information about the Nut-upsuser mailing list