Using RAWHID to send data, and reading with PyUSB, the data transfer rate seems to be about 15usec/byte, or 67 kB/sec.
On the Teensy (3.2, 96MHz), it is simply looping over
On the python side it is looping over
Notice on the python side, I am not using HID, and instead reading the endpoint directly. Also , the python is running on a >3GHz Linux host, so it should be able to keep up.
Using timers outside the python loop, or inside the loop before the append, it adds up to the same 112 milliseconds to transfer 116 packets (7,4 kB). In other words, that is the time spent in the PyUSB read().
Is that what is expected?
Is there a faster way to do this?
Is there a faster, lower level USB interface available with an API?
Thank you
On the Teensy (3.2, 96MHz), it is simply looping over
Code:
RawHID.send( &buffer[i], 100)
i += 64;
On the python side it is looping over
Code:
barray = self.dev.read(self.endpoint_in.bEndpointAddress, 64, 1000)
pieces.append(barray)
Notice on the python side, I am not using HID, and instead reading the endpoint directly. Also , the python is running on a >3GHz Linux host, so it should be able to keep up.
Using timers outside the python loop, or inside the loop before the append, it adds up to the same 112 milliseconds to transfer 116 packets (7,4 kB). In other words, that is the time spent in the PyUSB read().
Is that what is expected?
Is there a faster way to do this?
Is there a faster, lower level USB interface available with an API?
Thank you
Last edited: