D
DeletedUser
Guest
Hi, I am trying to read sensor data from a Teensy 4.0 to my PC as fast as possible. I used the following code to check the transfers per second:
I got a range from 1000 to 67 transfers per second. I know the transfers per second depend on the OS and hardware, but I was surprised to see nearly constant 1000 transfers/second during some tests and nearly constant 67 transfers/second during other tests, but I did not change the connected hardware, OS or PC load. I have read here: https://www.pjrc.com/teensy/td_serial.html that the USB host controller chip of my PC sets the transfer per second rate. Is there a way to constantly get more than 500 transfers/second? I thought of maybe setting the Teensy USB connection to isychronous or interrupt for example, if that is even possible. At first I thought I needed many Mbits/sec, but what I actually need are only some bytes, but as fast as possible.
Code:
void setup() {
Serial.begin(115200);
}
void loop() {
byte test = 4;
Serial.println(test);
delayMicroseconds(500);
}