Timeline for How does the Arduino handle serial buffer overflow?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 19, 2017 at 6:10 | comment | added | SDsolar | I just looked through all that code (under /usr/share/arduino/hardware/arduino/core/arduino/HardwareSerial.cpp) and can confirm what you wrote here. The only thing I would add is that since the SRAM is 2K (RAMEND>1000) then that if statement will always use 64 rather than 16 on a Nano or an Uno. So if one would want to expand the size of the ring buffer that would be the place to change it | |
Jun 19, 2015 at 18:54 | comment | added | Kolban | I get the impression that if I transmit data to the Arduino and don't have an active "puller" of data on the Arduino side then if more data arrives than can fit in the buffer, it will be discarded. Can you confirm that? I had naively assumed that the transmitter would block until space available to hold the data became available. | |
May 27, 2014 at 15:25 | history | migrated | from stackoverflow.com (revisions) | ||
May 25, 2014 at 18:31 | vote | accept | Community Bot | ||
May 25, 2014 at 8:38 | history | answered | PeterJ | CC BY-SA 3.0 |