|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Device bussy errorHi,
I am new in libusb. I am porting a win32 application (not libusb-win32) to linux. I decided to use 0.1 to work on both platforms. I am using ubuntu karmic. My problem is reading interrupt from a custom hid device. When I try to read as user, I got "operation not permitted". When as root, "Device bussy". The device have got a development board's product id and vendor id, but the sub class is 0 (custom class) in interface. I cannot understand the problem, or does linux uses the device. Do you have any idea ? Huseyin ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Libusb-devel mailing list Libusb-devel@... https://lists.sourceforge.net/lists/listinfo/libusb-devel |
|
|
Re: Device bussy errorHüseyin Kozan wrote:
> I am new in libusb. I am porting a win32 application (not > libusb-win32) to linux. I decided to use 0.1 to work on both > platforms. I am using ubuntu karmic. > > My problem is reading interrupt from a custom hid device. When I try > to read as user, I got "operation not permitted". When as root, > "Device bussy". > > The device have got a development board's product id and vendor id, > but the sub class is 0 (custom class) in interface. I cannot > understand the problem, or does linux uses the device. > If it's HID class, then the Linux HID driver will have claimed it. You need to use usb_detach_kernel_driver_np to get it to release. There is a separate library designed specifically for dealing with HID devices (libhid). It might save you some work if that will do the job. -- Tim Roberts, timr@... Providenza & Boekelheide, Inc. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Libusb-devel mailing list Libusb-devel@... https://lists.sourceforge.net/lists/listinfo/libusb-devel |
|
|
|
|
|
|
|
|
Re: Device bussy errorTim Roberts wrote:
> However, you said you are using libusb 0.1, didn't you? Libusb 0.1 is > not thread-safe. You can't access two pipes from two different threads. My libusb 0.1 happily has threads accessing different end points on Linux and OS X, and (with libusb-win32) on MSWindows. The only reason the "official" 0.1 doesn't do this, is that it hasn't been updated with the appropriate fixes. Graeme Gill. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Libusb-devel mailing list Libusb-devel@... https://lists.sourceforge.net/lists/listinfo/libusb-devel |
|
|
Re: Device bussy errorWhile I don't use libusb in the way you describe, I'm nevertheless curious
to see these patches, just to further my understanding. Are they posted publicly anywhere? Thanks, Michael -----Original Message----- From: Graeme Gill [mailto:graeme2@...] Sent: Thursday, October 29, 2009 7:59 PM To: libusb-devel Subject: Re: [Libusb-devel] Device bussy error Tim Roberts wrote: > However, you said you are using libusb 0.1, didn't you? Libusb 0.1 is > not thread-safe. You can't access two pipes from two different threads. My libusb 0.1 happily has threads accessing different end points on Linux and OS X, and (with libusb-win32) on MSWindows. The only reason the "official" 0.1 doesn't do this, is that it hasn't been updated with the appropriate fixes. Graeme Gill. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Libusb-devel mailing list Libusb-devel@... https://lists.sourceforge.net/lists/listinfo/libusb-devel |
|
|
Re: Device bussy errorMichael Plante wrote:
> While I don't use libusb in the way you describe, I'm nevertheless curious > to see these patches, just to further my understanding. Are they posted > publicly anywhere? In the libusb sub directory of the source archive <http://www.argyllcms.com/Argyll_V1.0.4_src.zip> Most of the changes are in the usb_urb_transfer() function in linux.c. Graeme Gill. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Libusb-devel mailing list Libusb-devel@... https://lists.sourceforge.net/lists/listinfo/libusb-devel |
| Free embeddable forum powered by Nabble | Forum Help |