anharmonicstring
New member
I am looking for detailed documentation about the Teensy 4.1 Serial class from the Teensyduino library, but unsuccessful so far.
In particular I am trying to understand when/if/how I can reliably expect communication without information loss.
I am transmitting binary data (the rate I need is approximately 0.8 MB/s). So far I was experimenting with the Serial.write command (and transmit data in batches of ~ 110 kB), which seems to happily transmit. However, the command even works / does not block, if the receiver does not read anything. This seems to imply that I cannot expect that no bit-loss has occured even if the receiver does read data.
Is there any way to ensure no bit-loss?
I also experimented with Serial.flush(), which according to the Arduino-documentation waits for outgoing transmissions to be completed, but this didn't work (it did not block even though the receiver was not reading). So the implementation on the Teensy is probably different?
Can anybody please shed some light on my ignorance?
Thank you.
In particular I am trying to understand when/if/how I can reliably expect communication without information loss.
I am transmitting binary data (the rate I need is approximately 0.8 MB/s). So far I was experimenting with the Serial.write command (and transmit data in batches of ~ 110 kB), which seems to happily transmit. However, the command even works / does not block, if the receiver does not read anything. This seems to imply that I cannot expect that no bit-loss has occured even if the receiver does read data.
Is there any way to ensure no bit-loss?
I also experimented with Serial.flush(), which according to the Arduino-documentation waits for outgoing transmissions to be completed, but this didn't work (it did not block even though the receiver was not reading). So the implementation on the Teensy is probably different?
Can anybody please shed some light on my ignorance?
Thank you.