[Nut-upsuser] Problems with usbhid-ups and CyberPower CP1500 on 2.6.0
aquette.dev at gmail.com
Thu Mar 17 15:36:24 UTC 2011
2011/3/17 Arjen de Korte <nut+users at de-korte.org>
> Citeren Charles Lepple <clepple at gmail.com>:
> Arjen: do we actually have any cases of reports larger than 8 bytes?
> Yes. At least the MGE Evolution series uses reports that are larger than 8
some Eaton and Dell models too
> If so, should we mark this as a quirk for CyberPower devices?
> Well, I still don't understand why we can't read with an arbitrary buffer
> length in the libusb call in the first place. This should be handled by the
> library (not the application).
> Also, it
>> seems like we need to distinguish between returning 0 and <0 from the
>> libusb call. Currently, we are reading errno when a zero-length packet
>> is being read.
> This too is broken. If we attempt to read a report and libusb can't return
> any data, it should at least give us a hint why. I really feel that this
> should be handled by the library, not NUT.
seconded. I've not had a look at libusb-1 to see if the situation has
improved, but I hope so...
Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Nut-upsuser