I have a small application that on request can echo the content of a log file through SerialUSB to a Raspberry Pi. The problem is that I loose some of the lines sent. Before diving too deep into linux cdc-acm drivers or the node.js serialport implementation I want to see whether the issue is on the maple side of things.
Is HW handshaking always handled by the USB layer, or do I take care of it in my applicaiton program? Now I loop over the file, and per line I call:
SerialUSB.println(msg);
I loose about 12 lines of 140 lines per second, which BTW is due to a periodic task performed at the receiver side.
Should I check on RTS myself?
if SerialUSB.getRTS()
SerialUSB.println(msg);