[Nut-upsdev] NUT and libhid

Peter Selinger selinger at mathstat.dal.ca
Tue Aug 14 11:49:32 UTC 2007

I think the differences between NUT HID and libhid are probably
considerable at this point, as I've spent some time last year updating
the former. 

- the report buffer,
- introduced a data structure to store the parsed report descriptor,
  rather than re-parsing it each time it is used,
- much improved conversion functions for physical and logical units,
- cleaned up many parts of the code, eliminated global variables where
- and probably more.

I don't know how many changes you made to libhid since the fork;
perhaps it's easier to keep improving NUT's HID?

-- Peter

Charles Lepple wrote:
> On 8/14/07, Arjen de Korte <nut+devel at de-korte.org> wrote:
> > > This would all take a lot more effort than I originally imagined. But
> > > it's good information for me to keep in the back of my mind as I
> > > update libhid.
> >
> > If you have the time available, can I ask for a badly needed feature? We
> > badly need a call to clear the reportbuffer. Currently, both the instcmd()
> > and setvar() functions in usbhid-ups are broken (yes, in the stable
> > nut-2.2.0 as well).
> I forgot about the report buffer - that was added to NUT after its HID
> code was forked from libhid.
> -- 
> - Charles Lepple
> _______________________________________________
> Nut-upsdev mailing list
> Nut-upsdev at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev

More information about the Nut-upsdev mailing list