[libhid-discuss] hid_force_open & non-root access using udev and also other platforms

Xiaofan Chen xiaofanc at gmail.com
Mon Oct 8 09:34:47 UTC 2007


On 10/8/07, Peter Stuge <stuge-libhid at cdy.org> wrote:
> On Mon, Oct 08, 2007 at 05:28:44PM +0800, Xiaofan Chen wrote:
> > By the way, I think the strong point of libhid is the HID parser.
>
> I agree.
>
>
> > If you do not need that functionality, you'd better use libusb
> > under Linux and use Native HID APIs under other OS.
>
> I disagree strongly.
>
> libusb is only intended for portability. If portability is not an
> issue (like when using native APIs on other systems) then don't
> bother using libusb - use the native Linux API instead.
>
> Linux also has a HID API. Not stellar by any means and going out of
> fashion, but it may work for many things.

I am not an Linux programming expert but I remember that the
hiddev API does not work well with basic interrupt read/write.
That is why many Linux application for HID does not use it.
It is said that it is anyway not designed to work so many
pseudo HID device (for the convenience of no need to
develope a driver under Windows).

It is said the new raw HID I/O API (called simple HID or similar)
will change this but it is not available yet.

Xiaofan



More information about the libhid-discuss mailing list