On Wed, Sep 8, 2010 at 7:49 AM, Massimo Di Stefano
<massimodisa...@gmail.com> wrote:
> Hello All,
>
> i'm tring to learn pyusb, i'm on a mac osx 10.6.4
> i buid libusb from source with "log enabled"
> googling i tried learn how to read data from an USB device (a joystick)
> i find this code :
>
> import usb
> import usb.core
> myVendorId = 1133
> myProductId = 49685
> dev = usb.core.find(idVendor=myVendorId, idProduct=myProductId)
> dev.set_configuration()
> test = dev.read(0x81,8)
>
> but it gives me errors about "permision denied",
> se the log :

>>>> test = dev.read(0x81,8)
> libusb:debug [libusb_get_config_descriptor] index 0
> libusb:debug [libusb_get_config_descriptor] index 0
> libusb:debug [libusb_get_config_descriptor] index 0
> libusb:debug [libusb_get_config_descriptor] index 0
> libusb:debug [libusb_claim_interface] interface 0
> libusb:error [darwin_claim_interface] USBInterfaceOpen: another process has 
> device opened for exclusive access
>
> have you any clue on what i need to "read data" coming from such device ?

Unfortunately there is no good solution. The kernel driver is in the way.
And there is no HID backend for Mac OS X. So you are stuck.
The only way is to have a codeless kext to block the kernel driver.
But I do not have a Mac to know which kext is working.
http://www.libusb.org/ticket/33

-- 
Xiaofan

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to