Thanks for reply:
I am trying to write to it. Sorry - there was an error in the snip-it I
posted.
I believe ctrl_transfer is defined as:
ctrl_transfer(RequestType, Request, Value, Index, Length, Timeout)
Corrected code
msg='\x00\x01\x01\x01\x00\x01'
dev.ctrl_transfer(0x40, 0x03, msg, 0, len(msg), 0)
On Thu, Nov 17, 2011 at 11:05 AM, Eric Hewett <eric.hew...@gmail.com> wrote:
> Hi,
>
> I have been working with a Toradex Oak 4-20mA sensor. Using PYUSB I can
> read from this device, but I would like to write to it such that I can
> identify an individual sensor by flashing the LED or modifying its name. I
> am running on Ubuntu 10.10 with Python 2.6.6 with PyUSB1.0
>
>
> I believe the sensor has one normal endpoint plus the control endpoint???
>
> I am using
> dev.ctrl_transfer(0x40, 0x03, 0,0, 0x12)
>
> I get a variety of errrors in response but primarily:
> TypeError object is not iteratable - _interop.py Line 134
>
> with slight modifications the following errors:
> Unhandled AttributeError - module has no attribute backend
> libusb10.py Line 408
> Argument 4 TypeError wrongtype libusb10.py Line 548
>
> Any help and guidance appreciated
>
> regards
> Eric Hewett
>
>
--
regards
Eric Hewett
eric.hew...@gmail.com
Twitter: @ehewett
Website: www.erichewett.com
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users