2011/7/28 C Duff <duffman....@gmail.com>: > Hi, > I'm new to pyusb and have what's probably a simple mistake. > I'm trying to get python to connect to Microchip's libusb example running on > a PIC18F14K50. > I can find and send data to the PIC fine, but pyusb has an error whenever I > try to read data: > http://paste.pound-python.org/show/10154/ > > Here is the python code, I just quickly changed it from the example. (I've > tried various sizes for the read function 1,7,8,64,1000 all seem to result > in the same error). > http://paste.pound-python.org/show/10158/ > > I know that the data is coming through because you can see it with usbmon > (it's device 6:004): > http://paste.pound-python.org/show/10156/ > > What am I doing wrong? > Try to read 64 instead of 8 bytes...
-- Best Regards, Wander Lairson Costa ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users