2010/9/6 Kaan AKŞİT :
> Dear all,
>
> I am trying to immigrate some code from C to Python. I am stuck with above C
> line:
>
> libusb_bulk_transfer(handle, endpoint | LIBUSB_ENDPOINT_IN, data, size,
> &recvd, 0)
Just use self.read(endpoint, size)
This is enough...
>
> What I have noticed, self.
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=myVend
On Wed, Sep 8, 2010 at 7:49 AM, Massimo Di Stefano
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.cor
Hmm, just thinking loud. Are you sure that you are using the right endpoint.
I mean maybe instead of 0x81, you might need to use another endpoint. TO see
what endpoints you have try to this piece of code after
dev.set_configuration line:
for cfg in dev:
for i in cfg:
for e in i:
i tried with :
import usb
import usb.core
myVendorId = 1133
myProductId = 49685
dev = usb.core.find(idVendor=myVendorId, idProduct=myProductId)
dev.set_configuration()
>>> for cfg in dev:
... for i in cfg:
... for e in i:
... print
e.bEndpointAddress,usb.util.endpoint_ty
i can providing you any kind of test/log you need
i don't know if can help :-/
thanks!
Massimo.
Il giorno 08/set/2010, alle ore 01.55, Xiaofan Chen ha scritto:
>
> 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
On Wed, Sep 8, 2010 at 8:09 AM, Massimo Di Stefano
wrote:
>
> i can providing you any kind of test/log you need
> i don't know if can help :-/
>
Some old posts: they will probably not work for you right out of the
box but you can use them as a start. Mac users here may be able
to help you. If not