Skip to content

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

Open
@agdl

Description

@agdl

From @pottedplant on August 23, 2013 21:55

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

Copied from original issue: arduino/Arduino#1551

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions