On Wed, Mar 16, 2011 at 1:06 AM, wander.lairson <wander.lair...@gmail.com> wrote: >> This all works 'out of the box'. I don't have to detach any interfaces, and >> the operation of the sound card is unaffected (other programs can use it >> independently of this test code). If I give a user write permission >> to /dev/hidraw0 then I don't have to be root. >> >> So, how can I achieve the same thing with pyUSB? What is the relationship >> between the endpoints and /dev/hidraw0? >> >> Should I use pyUSB for this application? What are the pitfalls of simply >> writing to /dev/hidraw0? >> > If the driver provides what you need, you do better using it. >
Yes that is correct. If hidraw is fine, then stick to it. BTW, since it is using HID, and the libusb maintainer actually is against using libusb for HID and recommend to use HIDAPI if cross-platform is the goal. The latest Windows backend has already removed the HID backend even though quite some people (including Pete Batard and I) were against the decision. http://www.libusb.org/wiki/FAQ http://www.signal11.us/oss/hidapi/ (HIDAPI) HIDAPI under Windows and Mac OS X uses native HID API. HIDAPI under Linux uses either hidraw backend or libusb-1.0 backend. The problem with hidraw is that it is relatively new under Linux and there are patches not integrated yet in the kernel to get HIDAPI fully working. -- Xiaofan ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users