Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Due / SerialUSB losing bytes (high write rate/small buffer size) #1551

Closed
pottedplant opened this issue Aug 23, 2013 · 1 comment
Closed
Assignees
Labels
Board: Arduino Due Applies only to the Due Component: Core Related to the code for the standard Arduino API

Comments

@pottedplant
Copy link

dd if=foo of=/dev/ttyACM1 bs=64 # works fine
dd if=foo of=/dev/ttyACM1 bs=1 # ~13% byte loss
dd if=foo of=/dev/ttyACM1 bs=2 # ~5% byte loss
dd if=foo of=/dev/ttyACM1 bs=3 # seems to work fine

-- edit: test sketch:
void setup() {
Serial.begin(115200);
SerialUSB.begin(115200);
}

void loop() {
char buffer[512];
int l = SerialUSB.readBytes(buffer,512);
if(l) Serial.println(l);
}

-- edit: stty settings: disabled everything except: cs8 cread clocal 115200

@agdl
Copy link
Member

agdl commented Feb 8, 2017

This issue was moved to arduino/ArduinoCore-sam#29

@agdl agdl closed this as completed Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Board: Arduino Due Applies only to the Due Component: Core Related to the code for the standard Arduino API
Projects
None yet
Development

No branches or pull requests

4 participants