Did a little test:
Code:
void setup() {
Serial.begin(9600);
delay(10000);
for (int i=0; i<100000; i++)
Serial.print("123456789\n");
}
void loop() {}
Opened Teraterm (EDIT: no, sry, H-Term), logged output to file.
Not a single missing or wrong byte. Ok, i used a T4, was too lazy to take the 3.2 out.. NOTE: MUCH faster than a T3.2
Ir you don't believe me, here is the file (997k packed to about ~2k - fantastic
):
I had IP-Live TV running in the background (VLC) on my 3rd screen, and yes, my email-program, github client, my always running "winamp" (muted). and excel with a large sheet. Edit: Almost forgot to mention Arduino... and H-Term. Not to mention all the windows-typical background stuff... like firewall and myriads of "services".
And even WITHOUT protocol or flow control.
All this with a old AMD Ryzen 5 2.4GHz, running Windows.
So... again.. if python can't do this, don't use it. Or add a protocol.
There is
no reason to invent a new USB transfer and to spend weeks implementing it.
Edit: did it again and measured the time. 41 Milliseconds for 1e6 bytes. Edit: is that ~23MegaBytes /s?
So much for "computer sience"
@Paul: would be awsome if you *someday* added a "Log to file" to the serial monitor.