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?


--

Sincerely,
*Joshua Parrish*


--

Sincerely,
*Joshua Parrish*
Staff Engineer
*ARMA Design
* San Diego, CA
United States of America

Tel: (858) 373-1320 x138
Fax: (858) 373-1325
Web: www.ARMAnet.com




The information contained in this electronic message is private and may contain 
privileged, confidential or inside information.  Any distribution, copying or 
forwarding or use of this communication by anyone other than the intended 
recipient(s) is strictly prohibited and may be unlawful.
------------------------------------------------------------------------------
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