2011/9/15 Joshua Parrish <joshua_parr...@armanet.com>:
> To whom it may concern,
>
> Hello,
>
> I'm trying to develop a simple protocol to read a device that does not have
> a driver installed.
>
> All this device is intended to do is work like a usb to serial device.
> I've tried working with the built in drivers but they do not work for what I
> need to do.
>
>
>
> When I run my code I get a
> Trackback ---
> file "--", line32 in <module?
>
> and finally at the end usb.core.USBerror: Operation timed out
>
>
> My code simply is:
>
> #!/usr/bin/python
>
> import usb
> import operator
> import usb.core
> import usb.util
>
>
>
> # find our device
> dev = usb.core.find(idVendor=0x0fcf, idProduct=0x1006)
>
> # was it found?
> if dev is None:
>     raise ValueError('ANT Device not found')
>
> dev.set_configuration()
> dev.reset()
> dev.set_configuration()
>
>
> status = 0
>
> status = dev.read(0x81, 20,0,100)
> print status
>
>
>
> I'm running an ARMv7 ubuntu 10.04 dist.
> I have libusb1.0 and pyusb1.0.0-a1 installed as well.
> I'm not sure what else might be needed.
>
> ------------------
>
> Any thoughts?
>
>
> --
>

What OS are you working on?

-- 
Best Regards,
Wander Lairson Costa

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to