Well, I think you are doing things in the right way, may be the problem is a device protocol issue. Perhaps you are issuing the wrong command to get what you want... How do you get the storage capacity? How many bytes are expected to return? Please, post the code here (with comments).
2008/12/22 Phil Hannent <p...@hannent.co.uk>: > Hello, > > All appears to be going to plan, I have sent a hello to my device and > got a hello back (via interruptWrite then interruptRead). > > I can query the devices current key state using the same interruptWrite > then Read, however the next time I send a query asking it about its > storage capacity it returns random data. > > Is there something I have to do to clear a buffer? Again if I send the > hello and ask the device to enter transmit mode (where pen coordinates > are issued) I just get junk out. > > I guess I am failing to understand just how to receive data from a USB > device. The data I am getting is not an out of sequence packet so I do > not understand, what the data is. > > I could do with some more examples, do people have any that are not: > missle.py > lsusb.py > usbenum.py > PlugUSB.py > gotemp-pyusb.py > > Which are all the examples I have found on the internet. > > Regards > Phil Hannent > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Pyusb-users mailing list > Pyusb-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pyusb-users > > ------------------------------------------------------------------------------ _______________________________________________ Pyusb-users mailing list Pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users