I've got it !
Actually, it was obvious.
A question of rights on the USB port.
As soon as the process has the right rights (?) on the port, it runs smoothly.

Sorry for the useless post...
Regards,

Pierre Boullier

----- Original Message ----- 
From: Pierre Boullier 
To: [email protected] 
Sent: Friday, November 12, 2010 3:18 PM
Subject: usbhid-ups and APC Smart-UPS 1500


Hello !
I'm totally new with Linux, just migrating from NetWare.
Our brand new server runs SuSE Linux Enterprise Server 11 Service Pack 1
SLED11 ships with NUT 2.2.2-69.11

I'm trying to setup NUT to communicate with our UPS over the USB cable.
First, I've tried with a "standard" ups.conf. Error message : device is (or not 
yet) supported.

Second attempt, including productid in ups.conf. Error message : no matching 
HID UPD found.

Third attemps : running usbhid-ups in debug mode.
Well, it seems that the UPS is recognized, after all.
Something wrong between upsdrvctl and usbhid-ups ?
I guess it's something obvious. But I don't knox where.
Can you help ?
Many thanks.

Regards,

Pierre Boullier 
Included : text file with my different attempts.
(ups.conf)
[myups]
        driver = usbhid-ups
        port = auto
        desc = "APC Smart-UPS 1500"


linuxsrv:/local # /usr/lib/ups/driver/upsdrvctl -u nutdev start
Network UPS Tools - UPS driver controller 2.2.2
Network UPS Tools: 0.29 USB communication driver - core 0.33 (2.2.2)

This APC device (051d:0003) is not (or perhaps not yet) supported
by usbhid-ups. Please make sure you have an up-to-date version of NUT. If
this does not fix the problem, try running the driver with the
'-x productid=0003' option. Please report your results to the NUT user's
mailing list <[email protected]>.

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


(ups.conf modified)
[myups]
        driver = usbhid-ups
        port = auto
        productid = 0003
        desc = "APC Smart-UPS 1500"


(terminal)
linuxsrv:/local # /usr/lib/ups/driver/upsdrvctl -u nutdev start
Network UPS Tools - UPS driver controller 2.2.2
Network UPS Tools: 0.29 USB communication driver - core 0.33 (2.2.2)

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


(terminal)
linuxsrv:/local # sudo /usr/lib/ups/driver/usbhid-ups -a myups -u root -DD -x 
productid=0003
Network UPS Tools: 0.29 USB communication driver - core 0.33 (2.2.2)

debug level is '2'
upsdrv_initups...
Checking device (1D6B/0001) (007/001)
- VendorID: 1d6b
- ProductID: 0001
- Manufacturer: Linux 2.6.32.12-0.7-pae uhci_hcd
- Product: UHCI Host Controller
- Serial Number: 0000:00:1d.1
- Bus: 007
Trying to match device
Device does not match - skipping
Checking device (1D6B/0001) (004/001)
- VendorID: 1d6b
- ProductID: 0001
- Manufacturer: Linux 2.6.32.12-0.7-pae uhci_hcd
- Product: UHCI Host Controller
- Serial Number: 0000:00:1a.1
- Bus: 004
Trying to match device
Device does not match - skipping
Checking device (03F0/0225) (003/003)
- VendorID: 03f0
- ProductID: 0225
- Manufacturer: Hewlett Packard
- Product: DAT160 USB Tape
- Serial Number: 4855310304333158
- Bus: 003
Trying to match device
Device does not match - skipping
Checking device (1D6B/0002) (003/001)
- VendorID: 1d6b
- ProductID: 0002
- Manufacturer: Linux 2.6.32.12-0.7-pae ehci_hcd
- Product: EHCI Host Controller
- Serial Number: 0000:00:1d.7
- Bus: 003
Trying to match device
Device does not match - skipping
Checking device (1D6B/0001) (008/001)
- VendorID: 1d6b
- ProductID: 0001
- Manufacturer: Linux 2.6.32.12-0.7-pae uhci_hcd
- Product: UHCI Host Controller
- Serial Number: 0000:00:1d.2
- Bus: 008
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (006/002)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: ServerEngines
- Product: SE USB Device
- Serial Number: 4002FD9770E1CC
- Bus: 006
Trying to match device
Device does not match - skipping
Checking device (1D6B/0001) (006/001)
- VendorID: 1d6b
- ProductID: 0001
- Manufacturer: Linux 2.6.32.12-0.7-pae uhci_hcd
- Product: UHCI Host Controller
- Serial Number: 0000:00:1d.0
- Bus: 006
Trying to match device
Device does not match - skipping
Checking device (1D6B/0001) (002/001)
- VendorID: 1d6b
- ProductID: 0001
- Manufacturer: Linux 2.6.32.12-0.7-pae uhci_hcd
- Product: UHCI Host Controller
- Serial Number: 0000:00:1a.0
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (1D6B/0001) (005/001)
- VendorID: 1d6b
- ProductID: 0001
- Manufacturer: Linux 2.6.32.12-0.7-pae uhci_hcd
- Product: UHCI Host Controller
- Serial Number: 0000:00:1a.2
- Bus: 005
Trying to match device
Device does not match - skipping
Checking device (051D/0003) (001/004)
- VendorID: 051d
- ProductID: 0003
- Manufacturer: American Power Conversion
- Product: Smart-UPS 1500 FW:COM 02.1 / UPS.05.I
- Serial Number: AS1024331913  
- Bus: 001
Trying to match device
Device matches
HID descriptor length 425
Report Descriptor size = 425
Using subdriver: APC HID 0.92
Path: UPS.PowerSummary.iProduct, Type: Feature, ReportID: 0x01, Offset: 0, 
Size: 8, Value: 2.000000
Path: UPS.PowerSummary.iSerialNumber, Type: Feature, ReportID: 0x02, Offset: 0, 
Size: 8, Value: 3.000000
Path: UPS.PowerSummary.iManufacturer, Type: Feature, ReportID: 0x03, Offset: 0, 
Size: 8, Value: 1.000000
Path: UPS.PowerSummary.iOEMInformation, Type: Feature, ReportID: 0x04, Offset: 
0, Size: 8, Value: 1.000000
Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x05, Offset: 
0, Size: 8, Value: 4.000000
Path: UPS.PowerSummary.Rechargeable, Type: Feature, ReportID: 0x06, Offset: 0, 
Size: 8, Value: 1.000000
Path: UPS.PowerSummary.CapacityMode, Type: Feature, ReportID: 0x06, Offset: 8, 
Size: 8, Value: 2.000000
Path: UPS.PowerSummary.DesignCapacity, Type: Feature, ReportID: 0x0e, Offset: 
0, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature, ReportID: 0x0e, 
Offset: 8, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.RemainingCapacity, Type: Input, ReportID: 0x0c, Offset: 
0, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x0c, 
Offset: 0, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature, ReportID: 0x10, 
Offset: 0, Size: 8, Value: 1.000000
Path: UPS.PowerSummary.CapacityGranularity2, Type: Feature, ReportID: 0x10, 
Offset: 8, Size: 8, Value: 1.000000
Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature, ReportID: 0x0f, 
Offset: 0, Size: 8, Value: 50.000000
Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, ReportID: 0x11, 
Offset: 0, Size: 8, Value: 10.000000
Path: UPS.PowerSummary.ManufacturerDate, Type: Feature, ReportID: 0x09, Offset: 
0, Size: 16, Value: 15563.000000
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, ReportID: 0x0d, Offset: 0, 
Size: 16, Value: 3900.000000
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 0x0d, Offset: 
0, Size: 16, Value: 3900.000000
Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 0x12, 
Offset: 0, Size: 16, Value: -1.000000
Path: UPS.PowerSummary.DelayBeforeReboot, Type: Feature, ReportID: 0x13, 
Offset: 0, Size: 24, Value: -1.000000
Path: UPS.PowerSummary.RemainingTimeLimit, Type: Input, ReportID: 0x08, Offset: 
0, Size: 24, Value: 120.000000
Path: UPS.PowerSummary.RemainingTimeLimit, Type: Feature, ReportID: 0x08, 
Offset: 0, Size: 24, Value: 120.000000
Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, ReportID: 0x0a, Offset: 0, 
Size: 16, Value: 24.000000
Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x0b, Offset: 0, Size: 
16, Value: 27.400000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Input, ReportID: 0x14, 
Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x14, 
Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, ReportID: 0x07, 
Offset: 0, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x07, 
Offset: 0, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, ReportID: 0x07, 
Offset: 1, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 
0x07, Offset: 1, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, ReportID: 0x07, 
Offset: 2, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x07, 
Offset: 2, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type: Input, ReportID: 
0x07, Offset: 3, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type: Feature, ReportID: 
0x07, Offset: 3, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input, 
ReportID: 0x07, Offset: 4, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: 
Feature, ReportID: 0x07, Offset: 4, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ShutdownRequested, Type: Input, ReportID: 
0x07, Offset: 5, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ShutdownRequested, Type: Feature, 
ReportID: 0x07, Offset: 5, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Input, ReportID: 
0x07, Offset: 6, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Feature, ReportID: 
0x07, Offset: 6, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Input, 
ReportID: 0x07, Offset: 7, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature, 
ReportID: 0x07, Offset: 7, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type: Input, ReportID: 
0x07, Offset: 8, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type: Feature, 
ReportID: 0x07, Offset: 8, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Input, ReportID: 
0x07, Offset: 9, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Feature, ReportID: 
0x07, Offset: 9, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Overload, Type: Input, ReportID: 0x07, 
Offset: 10, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Overload, Type: Feature, ReportID: 0x07, 
Offset: 10, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: Input, 
ReportID: 0x07, Offset: 11, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: Feature, 
ReportID: 0x07, Offset: 11, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ff860080, Type: Input, ReportID: 0x07, 
Offset: 12, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ff860080, Type: Feature, ReportID: 0x07, 
Offset: 12, Size: 1, Value: 0.000000
Can't retrieve Report 137: Broken pipe
Path: UPS.ff8600fd, Type: Input, ReportID: 0x89, Offset: 0, Size: 8
Can't retrieve Report 144: Broken pipe
Path: UPS.ff8600fc, Type: Output, ReportID: 0x90, Offset: 0, Size: 8
Report descriptor retrieved (Reportlen = 425)
Found HID device
Detected a UPS: American Power Conversion/Smart-UPS 1500 FW:COM 02.1 / UPS.05.I
Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x0c, 
Offset: 0, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, ReportID: 0x11, 
Offset: 0, Size: 8, Value: 10.000000
Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature, ReportID: 0x0f, 
Offset: 0, Size: 8, Value: 50.000000
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 0x0d, Offset: 
0, Size: 16, Value: 3900.000000
Path: UPS.PowerSummary.RemainingTimeLimit, Type: Feature, ReportID: 0x08, 
Offset: 0, Size: 24, Value: 120.000000
Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x0b, Offset: 0, Size: 
16, Value: 27.400000
Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, ReportID: 0x0a, Offset: 0, 
Size: 16, Value: 24.000000
Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x05, Offset: 
0, Size: 8, Value: 4.000000
Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 0x12, 
Offset: 0, Size: 16, Value: -1.000000
Path: UPS.PowerSummary.DelayBeforeReboot, Type: Feature, ReportID: 0x13, 
Offset: 0, Size: 24, Value: -1.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x14, 
Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.ManufacturerDate, Type: Feature, ReportID: 0x09, Offset: 
0, Size: 16, Value: 15563.000000
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x07, 
Offset: 2, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 
0x07, Offset: 1, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x07, 
Offset: 0, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Feature, ReportID: 
0x07, Offset: 6, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: 
Feature, ReportID: 0x07, Offset: 4, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Overload, Type: Feature, ReportID: 0x07, 
Offset: 10, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Feature, ReportID: 
0x07, Offset: 9, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature, 
ReportID: 0x07, Offset: 7, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type: Feature, ReportID: 
0x07, Offset: 3, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 0x12, 
Offset: 0, Size: 16, Value: -1.000000
Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 0x12, 
Offset: 0, Size: 16, Value: -1.000000
Path: UPS.PowerSummary.DelayBeforeReboot, Type: Feature, ReportID: 0x13, 
Offset: 0, Size: 24, Value: -1.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x14, 
Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x14, 
Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x14, 
Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x14, 
Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x14, 
Offset: 0, Size: 8, Value: 2.000000
upsdrv_initinfo...
upsdrv_updateinfo...
Got -110 HID objects...
Quick update...
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x07, 
Offset: 2, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 
0x07, Offset: 1, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x07, 
Offset: 0, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: 
Feature, ReportID: 0x07, Offset: 4, Size: 1, Value: 0.000000
dstate_init: sock /var/lib/ups/usbhid-ups-myups open on fd 5
upsdrv_updateinfo...
Got -110 HID objects...
Quick update...
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x07, 
Offset: 2, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 
0x07, Offset: 1, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x07, 
Offset: 0, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: 
Feature, ReportID: 0x07, Offset: 4, Size: 1, Value: 0.000000
upsdrv_updateinfo...
Got -110 HID objects...
Quick update...
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x07, 
Offset: 2, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 
0x07, Offset: 1, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x07, 
Offset: 0, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: 
Feature, ReportID: 0x07, Offset: 4, Size: 1, Value: 0.000000
^CSignal 2: exiting
upsdrv_cleanup...

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

Reply via email to