[Nut-upsdev] Non Standard USB HID UPS

Arnaud Quette aquette.dev at gmail.com
Wed Jan 11 16:18:39 UTC 2006


2005/12/28, Charles Lepple <clepple at gmail.com>:
>
> On 12/28/05, Pierre-Yves AILLET <pierreyves.aillet at free.fr> wrote:
> > The libhid.c and libhid.h files in the Nut CVS are completely different
> from the
> > original libhid svn files. Then what would be the correct way to use
> libhid from
> > the libhid project for my non-standard UPS ? (inclusion in NUT or
> package
> > dependancy)
>
> Arnaud would probably be in a better position to answer this, but I
> believe he will be on vacation for another week.


configure test (check the one of libusb) + package deps

Note that the port to libhid should still happen by 2.2...

> Using libhid matcher to identify and claim the device interface avoid the
> need
> > of defining the port on the command line or in the config file, but
> defining
> > the port seems mandatory in the main.c file. Have I missed something ?
> Is there
> > a mean to get round this ?
>
> The current workaround is to use a dummy port name like 'auto'. I
> recall hearing about a change to newhidups (or maybe NUT core, I don't
> remember) which lifted some of the lockfile restrictions when the port
> name does not correspond to a physical port.
>

yup, I've done that in the nut core (upsd and driver).
http://lists.alioth.debian.org/pipermail/nut-upsdev/2005-November/000303.html

Arnaud
--
Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://people.debian.org/~aquette/
OpenSource Developer - http://arnaud.quette.free.fr/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20060111/7f300a18/attachment.htm


More information about the Nut-upsdev mailing list