I had a need to increase the core ring buffer receive size for a project I'm working on. The standard buffer for the Mega is 64. I needed to increase to 256.
With help from other posts, I arrived at file "HardwareSerial.cpp" in the Arduino 1.0.5 installation (Mac OS/X, path Arduino.app> "Contents/Resources/Java/hardware/arduino/cores/arduino") and modified the value of symbol "SERIAL_BUFFER_SIZE" from 64 to 256 (in the #else block). [source: http://www.cooking-hacks.com/forum/view ... =39&t=4175] -- right-click on the app and work your way down the internal folder tree, until you reach HardwareSerial.cpp. I edited the file with TextEdit and saved.
Compile worked and tested fine, and I now have a workable increase in the incoming buffering.
How to increase serial receive buffer on OSX
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- robertwrand
- Posts: 22
- Joined: Fri Jan 03, 2014 8:24 pm
- adafruit_support_mike
- Posts: 67448
- Joined: Thu Feb 11, 2010 2:51 pm
Re: How to increase serial receive buffer on OSX
Interesting.. thanks for posting the information.
Please be positive and constructive with your questions and comments.