Thank you all for your input. Reading the device response with:
print dev.ctrl_transfer(0xC0,0x81,0, 0, len(MyCommand))

did successfully return meaningful data from the device. Since I already had
writing to the device working, I did manage to successfully communicate to
and from the device. Thank you for all your help with that.

Unfortunately I didn't realize until I was that far into this that making
sense of the data was another challenge unto itself. The interpretation of
the data is intended to be handled by the manufacturer's API. Their API is
available as Csharp source only so I spent several hours trying to
reverse-engineer that. In the end it turned out to be faster to write a
trivial Csharp program that uses their API to return the data I need from
the device. My Python script then calls that Csharp program, which is
reading and writing to and from the console. It's a bit of a kludge but it
works.

Thanks again to everybody for helping. Good list!

-John

On Sat, Jul 17, 2010 at 8:08 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:

> On Sat, Jul 17, 2010 at 8:40 AM, Chris Wolf <cw10...@gmail.com> wrote:
> >> Some good USB introduction sites:
> >> http://www.usbmadesimple.co.uk/
> >> http://www.beyondlogic.org/usbnutshell/
> >>
> > Maybe the actual spec, also...
> >
> > http://www.usb.org/developers/docs/usb_20_052510.zip
> >
>
> It is of course quite good as a standard. Compared to other
> standards, it is actually quite clear. But it is still a standard
> so it may not be so easy for usb beginners.
>
> On that note, Jan Axelson's USB Complete book is
> highly recommended.
> http://www.lvr.com/usb.htm
>
>
>
> --
> Xiaofan http://sourceforge.net/projects/libusb-win32/
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> pyusb-users mailing list
> pyusb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyusb-users
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to