Re: [pyusb-users] Unable to read from an USB device

2014-09-17 Thread Wander Lairson Costa
2014-09-16 9:51 GMT-03:00 Gerry : > I have the following code but it is NOT getting any data. > > import usb.core > import usb.util > import sys > VENDOR_ID = 0x24c0 > PRODUCT_ID = 0x0003 > device = usb.core.find(idVendor=VENDOR_ID, idProduct=PRODUCT_ID) > if device is None: > sys.exit("Could

[pyusb-users] Unable to read from an USB device

2014-09-16 Thread Gerry
I have the following code but it is NOT getting any data. import usb.core import usb.util import sys VENDOR_ID = 0x24c0 PRODUCT_ID = 0x0003 device = usb.core.find(idVendor=VENDOR_ID, idProduct=PRODUCT_ID) if device is None: sys.exit("Could not find the Weather Station") else: print (devi