I ran into some problems using the SoftwareSerial
-Library of my Arduino Uno R3
:
Sending and receiving signals (ASCII
) works but depending on the length of the serial "response" some characters are missing.
So I think the topic should be the serial buffer
of the Arduino.
Deep inside the code I found a line which sets the buffer on 16
(if RAM < 1000
) and on 64
( else
).
I tried to change these values step by step on a maximum of 256
but the characters are still missing.
So:
1) Am I doing something wrong by just changing these values?
1b) Does the Arduino even have enough memory to buffer more than 64 bytes?
2) Is there a programmatic way to solve this buffer overflow problem (seems common)?
2b) Is it Arduino's clock rate, which is simple not high enough to empty the buffer in time?
Really appreciate your help, Thank you!