How to increase serial receive buffer on OSX

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
robertwrand
 
Posts: 22
Joined: Fri Jan 03, 2014 8:24 pm

How to increase serial receive buffer on OSX

Post by robertwrand »

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.

User avatar
adafruit_support_mike
 
Posts: 67448
Joined: Thu Feb 11, 2010 2:51 pm

Re: How to increase serial receive buffer on OSX

Post by adafruit_support_mike »

Interesting.. thanks for posting the information.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”