From: Brendan S. (eTRIX) <Bre...@eT...> - 2009-06-17 05:14:39
|
I have a device with a usb connection that presents itself as a serial device to operating system (OS X). It appears as /dev/cu.usbmodem0001 and /dev/tty.usbmodem0001 on the filesystem when the device is plugged in. I can successfully detect the device USB Vendor ID and Product ID using pyusb :) Now I have to use pyserial to talk to the device -- which I have successfully done by opening the serial port with a hard coded device filename (/dev/cu.usbmodem0001). There must be some way for me to use the pyusb information to be able to determine the appropriate device filename to open with pyusb. Does anyone know how to do this or have any suggestions ??? Thanks, Brendan. |