[Nut-upsuser] APC SmartUPS 3000VA LCD not connecting

Zach La Celle lacelle at roboticresearch.com
Mon Mar 5 17:17:14 UTC 2012


Yes, I can test on trunk or on a patched version, but I cannot shut down
or restart this particular UPS during the day.  Hopefully we won't need
to do that to figure out the Report 89 / Report 90 stuff.

Would you like me to run off of stable or devel?  Also, can I check out
stable with subversion/git, or should I just download it manually?

-Zach

On 03/05/2012 09:58 AM, Arnaud Quette wrote:
> Hi Zach,
> 
> 2012/2/29 Zach La Celle <lacelle at roboticresearch.com>:
>> On 02/27/2012 06:38 AM, Arnaud Quette wrote:
>>> 2012/2/21 Zach La Celle <lacelle at roboticresearch.com>:
>>>> I figured out the cause of this problem: incorrect permissions on the
>>>> USB device.  At least, this seemed to fix the problem I had when I
>>>> manually tried to run upsdrvctl and got a permission denied.  The other
>>>> problems may have been solved simply by reinstalling nut, not sure.
>>>>
>>>> It no longer returns the temperature, line frequency, or load
>>>> percentage, but this is fine for now.
>>>>
>>>> In case anybody needs to fix their permissions in Debian-based system,
>>>> run lsusb to get your vendorId, productId, and usb bus address, then
>>>> check /dev/bus/usb/<bus number>/<device number> to see its permissions.
>>>>  Mine were 664: changing them to 666 worked for me.  To give an example
>>>> of my udev rule in /etc/udev/rules.d/90-APCUps.rules:
>>>>
>>>> # APC USB device
>>>> SUBSYSTEM=="usb", ATTR{idVendor}=="051d", ATTR{idProduct}="0003",
>>>> MODE="0666"
>>>
>>> this (udev support) is automatically included in for version that
>>> supports the device (generated automatically).
>>> Ie, in your case, as of nut 2.6.0.
>>>
>>>> Hope this helps.  Still not sure what was happening at first.  Also, if
>>>> there's any ways to get upsc to read more values from the UPS, let me know.
>>>
>>> can you please post an output of "/path/to/usbhid-ups -D -a ..."
>>> just to see if there is more data to retrieve.
>>>
>>> cheers,
>>> Arnaud
>>
>> Here's some more data for you.  I'm not sure if it's better to post
>> files somewhere on the web or just paste text in: for now, I'm pasting text.
>>
>> Notably missing from upsc (versus when using the other driver with my
>> other, older APC UPS') are line frequency, load percentage, and temperature.
>>
>> Output of upsc rack1ups:
>>
>> battery.charge: 100
>> battery.charge.low: 10
>> battery.charge.warning: 50
>> battery.runtime: 5220
>> battery.runtime.low: 120
>> battery.type: PbAc
>> battery.voltage: 54.8
>> battery.voltage.nominal: 24.0
>> device.mfr: American Power Conversion
>> device.model: Smart-UPS 3000
>> device.serial: ################
>> device.type: ups
>> driver.name: usbhid-ups
>> driver.parameter.pollfreq: 30
>> driver.parameter.pollinterval: 2
>> driver.parameter.port: auto
>> driver.parameter.productid: 0003
>> driver.parameter.vendorid: 051d
>> driver.version: 2.4.3
>> driver.version.data: APC HID 0.95
>> driver.version.internal: 0.34
>> ups.beeper.status: enabled
>> ups.delay.shutdown: 20
>> ups.firmware: UPS 06.5 / ID=18
>> ups.mfr: American Power Conversion
>> ups.mfr.date: 2011/08/19
>> ups.model: Smart-UPS 3000
>> ups.productid: 0003
>> ups.serial: #################
>> ups.status: OL
>> ups.timer.reboot: -1
>> ups.timer.shutdown: -1
>> ups.vendorid: 051d
>>
>> Output of /lib/nut/usbhid-ups -D -a rack1ups:
>>
>>   0.000000     debug level is '1'
>>   0.014536     upsdrv_initups...
>>   0.213175     Using subdriver: APC HID 0.95
>>   0.214015     Path: UPS.PowerSummary.iProduct, Type: Feature, ReportID:
>> 0x01, Offset: 0, Size: 8, Value: 2.000000
>>   0.215007     Path: UPS.PowerSummary.iSerialNumber, Type: Feature,
>> ReportID: 0x02, Offset: 0, Size: 8, Value: 3.000000
>>   0.216004     Path: UPS.PowerSummary.iManufacturer, Type: Feature,
>> ReportID: 0x03, Offset: 0, Size: 8, Value: 1.000000
>>   0.217008     Path: UPS.PowerSummary.iOEMInformation, Type: Feature,
>> ReportID: 0x04, Offset: 0, Size: 8, Value: 1.000000
>>   0.217976     Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature,
>> ReportID: 0x05, Offset: 0, Size: 8, Value: 4.000000
>>   0.218980     Path: UPS.PowerSummary.Rechargeable, Type: Feature,
>> ReportID: 0x06, Offset: 0, Size: 8, Value: 1.000000
>>   0.219003     Path: UPS.PowerSummary.CapacityMode, Type: Feature,
>> ReportID: 0x06, Offset: 8, Size: 8, Value: 2.000000
>>   0.220011     Path: UPS.PowerSummary.DesignCapacity, Type: Feature,
>> ReportID: 0x0e, Offset: 0, Size: 8, Value: 100.000000
>>   0.220040     Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature,
>> ReportID: 0x0e, Offset: 8, Size: 8, Value: 100.000000
>>   0.221016     Path: UPS.PowerSummary.RemainingCapacity, Type: Input,
>> ReportID: 0x0c, Offset: 0, Size: 8, Value: 100.000000
>>   0.221044     Path: UPS.PowerSummary.RemainingCapacity, Type: Feature,
>> ReportID: 0x0c, Offset: 0, Size: 8, Value: 100.000000
>>   0.222009     Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature,
>> ReportID: 0x10, Offset: 0, Size: 8, Value: 1.000000
>>   0.222036     Path: UPS.PowerSummary.CapacityGranularity2, Type: Feature,
>> ReportID: 0x10, Offset: 8, Size: 8, Value: 1.000000
>>   0.223006     Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature,
>> ReportID: 0x0f, Offset: 0, Size: 8, Value: 50.000000
>>   0.224009     Path: UPS.PowerSummary.RemainingCapacityLimit, Type:
>> Feature, ReportID: 0x11, Offset: 0, Size: 8, Value: 10.000000
>>   0.225006     Path: UPS.PowerSummary.ManufacturerDate, Type: Feature,
>> ReportID: 0x09, Offset: 0, Size: 16, Value: 16147.000000
>>   0.225983     Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input,
>> ReportID: 0x0d, Offset: 0, Size: 16, Value: 5220.000000
>>   0.226008     Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature,
>> ReportID: 0x0d, Offset: 0, Size: 16, Value: 5220.000000
>>   0.226979     Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature,
>> ReportID: 0x12, Offset: 0, Size: 16, Value: -1.000000
>>   0.227979     Path: UPS.PowerSummary.DelayBeforeReboot, Type: Feature,
>> ReportID: 0x13, Offset: 0, Size: 24, Value: -1.000000
>>   0.228977     Path: UPS.PowerSummary.RemainingTimeLimit, Type: Input,
>> ReportID: 0x08, Offset: 0, Size: 24, Value: 120.000000
>>   0.229001     Path: UPS.PowerSummary.RemainingTimeLimit, Type: Feature,
>> ReportID: 0x08, Offset: 0, Size: 24, Value: 120.000000
>>   0.230007     Path: UPS.PowerSummary.ConfigVoltage, Type: Feature,
>> ReportID: 0x0a, Offset: 0, Size: 16, Value: 24.000000
>>   0.231010     Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID:
>> 0x0b, Offset: 0, Size: 16, Value: 54.800000
>>   0.232004     Path: UPS.PowerSummary.AudibleAlarmControl, Type: Input,
>> ReportID: 0x14, Offset: 0, Size: 8, Value: 2.000000
>>   0.232031     Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature,
>> ReportID: 0x14, Offset: 0, Size: 8, Value: 2.000000
>>   0.232980     Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input,
>> ReportID: 0x07, Offset: 0, Size: 1, Value: 0.000000
>>   0.233004     Path: UPS.PowerSummary.PresentStatus.Charging, Type:
>> Feature, ReportID: 0x07, Offset: 0, Size: 1, Value: 0.000000
>>   0.233019     Path: UPS.PowerSummary.PresentStatus.Discharging, Type:
>> Input, ReportID: 0x07, Offset: 1, Size: 1, Value: 0.000000
>>   0.233031     Path: UPS.PowerSummary.PresentStatus.Discharging, Type:
>> Feature, ReportID: 0x07, Offset: 1, Size: 1, Value: 0.000000
>>   0.233044     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input,
>> ReportID: 0x07, Offset: 2, Size: 1, Value: 1.000000
>>   0.233057     Path: UPS.PowerSummary.PresentStatus.ACPresent, Type:
>> Feature, ReportID: 0x07, Offset: 2, Size: 1, Value: 1.000000
>>   0.233073     Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type:
>> Input, ReportID: 0x07, Offset: 3, Size: 1, Value: 1.000000
>>   0.233100     Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type:
>> Feature, ReportID: 0x07, Offset: 3, Size: 1, Value: 1.000000
>>   0.233112     Path:
>> UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input,
>> ReportID: 0x07, Offset: 4, Size: 1, Value: 0.000000
>>   0.233122     Path:
>> UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type:
>> Feature, ReportID: 0x07, Offset: 4, Size: 1, Value: 0.000000
>>   0.233133     Path: UPS.PowerSummary.PresentStatus.ShutdownRequested,
>> Type: Input, ReportID: 0x07, Offset: 5, Size: 1, Value: 0.000000
>>   0.233143     Path: UPS.PowerSummary.PresentStatus.ShutdownRequested,
>> Type: Feature, ReportID: 0x07, Offset: 5, Size: 1, Value: 0.000000
>>   0.233154     Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type:
>> Input, ReportID: 0x07, Offset: 6, Size: 1, Value: 0.000000
>>   0.233164     Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type:
>> Feature, ReportID: 0x07, Offset: 6, Size: 1, Value: 0.000000
>>   0.233175     Path:
>> UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Input,
>> ReportID: 0x07, Offset: 7, Size: 1, Value: 0.000000
>>   0.233185     Path:
>> UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature,
>> ReportID: 0x07, Offset: 7, Size: 1, Value: 0.000000
>>   0.233196     Path: UPS.PowerSummary.PresentStatus.CommunicationLost,
>> Type: Input, ReportID: 0x07, Offset: 8, Size: 1, Value: 0.000000
>>   0.233206     Path: UPS.PowerSummary.PresentStatus.CommunicationLost,
>> Type: Feature, ReportID: 0x07, Offset: 8, Size: 1, Value: 0.000000
>>   0.233217     Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type:
>> Input, ReportID: 0x07, Offset: 9, Size: 1, Value: 0.000000
>>   0.233228     Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type:
>> Feature, ReportID: 0x07, Offset: 9, Size: 1, Value: 0.000000
>>   0.233238     Path: UPS.PowerSummary.PresentStatus.Overload, Type: Input,
>> ReportID: 0x07, Offset: 10, Size: 1, Value: 0.000000
>>   0.233248     Path: UPS.PowerSummary.PresentStatus.Overload, Type:
>> Feature, ReportID: 0x07, Offset: 10, Size: 1, Value: 0.000000
>>   0.233259     Path: UPS.PowerSummary.PresentStatus.VoltageNotRegulated,
>> Type: Input, ReportID: 0x07, Offset: 11, Size: 1, Value: 0.000000
>>   0.233270     Path: UPS.PowerSummary.PresentStatus.VoltageNotRegulated,
>> Type: Feature, ReportID: 0x07, Offset: 11, Size: 1, Value: 0.000000
>>   0.233280     Path: UPS.PowerSummary.PresentStatus.ff860080, Type: Input,
>> ReportID: 0x07, Offset: 12, Size: 1, Value: 0.000000
>>   0.233291     Path: UPS.PowerSummary.PresentStatus.ff860080, Type:
>> Feature, ReportID: 0x07, Offset: 12, Size: 1, Value: 0.000000
>>   0.233980     Can't retrieve Report 89: Broken pipe
>>   0.234002     Path: UPS.ff8600fd, Type: Input, ReportID: 0x89, Offset: 0,
>> Size: 8
>>   0.234975     Can't retrieve Report 90: Broken pipe
>>   0.234997     Path: UPS.ff8600fc, Type: Output, ReportID: 0x90, Offset: 0,
>> Size: 8
>> Network UPS Tools - Generic HID driver 0.34 (2.4.3)
>> USB communication driver 0.31
>>   0.235030     Detected a UPS: American Power Conversion/Smart-UPS 3000
>> FW:UPS 06.5 / ID=18
>>   0.239247     upsdrv_initinfo...
>>   0.239265     upsdrv_updateinfo...
>>   0.491006     Got 0 HID objects...
>>   0.491032     Quick update...
>>   0.491116     upsdrv_updateinfo...
>>   0.744021     Got 0 HID objects...
>>   0.744045     Quick update...
>>   2.492938     upsdrv_updateinfo...
>>   2.745105     Got 0 HID objects...
>>   2.745129     Quick update...
>>   4.494748     upsdrv_updateinfo...
>>   4.747183     Got 0 HID objects...
>>   4.747206     Quick update...
>>   6.496560     upsdrv_updateinfo...
>>   6.748274     Got 0 HID objects...
>>   6.748299     Quick update...
>>   8.328686     Signal 2: exiting
>>   8.328728     upsdrv_cleanup...
>>
>> Hope this helps you.  I'm complaining to APC about not releasing the
>> MicroLink protocol, but somehow I don't think it will change their mind...
> 
> a good try, but I'm inclined in thinking that they won't move!
> 
>> Thanks.  Let me know if there's anything I can do.
> 
> yeah, I'd like to check what's beyond " Can't retrieve Report..." for
> report 89 and 90.
> would you be able to compile and test it on the trunk, possibly with
> an additional patch?
> 
> cheers,
> Arnaud




More information about the Nut-upsuser mailing list