Mcu32
Well-known member
My new test:
H-Term shows stable 26MBits, without misssing lines or garbage.
So, this makes your speedtests work.
Code:
//Use a Terminal that can log to a file.
//Check if the line numbers fit.
//Windows: There is a memory bug in the USB CDC driver, so you'll probably see strange results.
const int n = 100000;
volatile uint32_t t;
void setup() {
Serial.begin(9600);
while (!Serial);
delay(1000);
}
void loop() {
t = micros();
for (int i = 1; i < n + 1; i++) {
while ( Serial.availableForWrite() < 10 ) {}
Serial.printf("%09d\n", i);
}
t = micros() - t;
Serial.printf("%d Bytes in %d us = %0.2f Megabits per second", n * 10, t, (double)n * 10 * 8 / t);
delay(3000); //If your computer is not that fast, increase this delay! Windows seems to need it, as the Teensy is too fast for the Windows CDC driver
}
H-Term shows stable 26MBits, without misssing lines or garbage.
So, this makes your speedtests work.
Last edited: