Skip to content

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

Closed
@pottedplant

Description

@pottedplant

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

Metadata

Metadata

Assignees

Labels

Board: Arduino DueApplies only to the DueComponent: CoreRelated to the code for the standard Arduino API

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions