Re: [pyusb-users] Converting to pyusb

2012-04-10 Thread Wander Lairson Costa
2012/4/10 Eric Hewett : > Hi, > > > Thanks for the reply. I had tried length=32 already but length =33 gives > same error TypeError 'int 'object not iterable in _interop.py Line134 > Review you bmRequestType field, it may be wrong -- Best Regards, Wander Lairson Costa -

[pyusb-users] Converting to pyusb

2012-04-10 Thread Eric Hewett
Hi, Thanks for the reply. I had tried length=32 already but length =33 gives same error TypeError 'int 'object not iterable in _interop.py Line134 -- regards Eric Hewett eric.hew...@gmail.com Twitter: @ehewett Website: www.erichewett.com

Re: [pyusb-users] Converting to pyusb

2012-04-07 Thread Wander Lairson Costa
2012/4/6 Eric Hewett : [snip] > It results in a pipe error >         while True: >             reply = self.dev.ctrl_transfer(0x07, 0x03,0, 1,None) I think you should pass 33 instead of None to the last parameter, shouldn't you? >             if reply[0] != 0: >                 _debug('Device s

[pyusb-users] Converting to pyusb

2012-04-06 Thread Eric Hewett
Hi, I am trying to replicate the following piece of C++ code in Python using pyusb. All sensors use Feature reports of 1+32 Bytes length. The first byte is not really part of the report, but it is the report number. It is always 0 for all sensors of this type. I have included the Algorithm recomm