While communicating with serial devices via Arduino, sometimes Arduino do not receive or send complete messages, especially when we communicate with LCDs or with GSM. While reading SMS via GSM Module, Arduino does not retrieve complete message because Serial buffer is full as the buffer length of Arduino is limited to 64 bytes only.
To increase buffer size or length of Arduino, there is a simple solution:
Follow these steps:
1. Go to “arduino\hardware\arduino\avr\cores\arduino”
2. Edit “HardwareSerial.
cpp” in Notepad
3. Search for “#define SERIAL_BUFFER_SIZE 64”
4. Change it to “#define SERIAL_BUFFER_SIZE 256”
5. Save and enjoy!!