Thanks! This backs up my claim and understanding, because the only difference between the two (25+ MB/s vs. under 5 MB/s) is how Serial.write() is called in the Teensy sketch.
Based on this, we can recommend Teensy developers use a buffer (buf)...
I've now gathered a more complete set of results from my local USB serial benchmark testing for analysis/comparison.
Teensy hardware setup #1 (block writes):
Teensy 4.0 running sketch given in post #7 above (as posted, unmodified i.e. using...
If you want, you could change the Teensy sketch (replacing #if 0 with #if 1), with no changes to the Linux program. You should see the transfer rate drop down to 4-5 MB/s.
(To repeat, the only difference is that the #if 1 version uses...
[ Please see post #11 below for a more complete report, including results for both block writes & single writes ]
OK, I've gathered my local USB serial benchmark testing results for analysis/comparison.
Teensy hardware setup:
Teensy 4.0...
@Nominal Animal : I'll give this a try later today. I have one fairly powerful laptop (modern gaming machine . . . I don't game much, but before retirement, I did lots of linux software development, & typically tested with anywhere from three to...
Here is the sketch I use for Teensy USB Serial benchmarking:
// SPDX-License-Identifier: CC0-1.0
// Size of outgoing buffer
constexpr size_t packet_size = 32;
constexpr size_t packet_words = packet_size / 4;
uint32_t...
It's not that. The 4 to 5 MB/s limit occurs when you use Serial.write() for each byte to be sent, instead of filling a buffer (of up to Serial.availableForWrite() bytes) and send the filled buffer using Serial.write(buffer, bytes).
If you use a...
I like using TI TXU0n0m unidirectional voltage level shifters. In this case, a TXU0101 would work well. It works at up to 200 Mbit/s rates, with the 5.0V-to-3.3V (or vice versa) propagation delay being 11ns maximum. TI recommends using a 0.1nF...
The DNS update reached me too, and everything seems to work fine.
I did have to set my avatar image, but I'm not sure I had one set before. Other than that, everything seems to have transferred over correctly. (y)