Is it possible to increase the serial buffer size?


#1

64 bytes is pretty small for a serial buffer. I was reading this article…
http://www.hobbytronics.co.uk/arduino-serial-buffer-size

Is it going to be possible for users to increase the Rx buffer size to ~255 for the Particle Electron?


Serial1 increase buffer size Photon
#2

@jmccorm have you experienced any issues where 64bytes is insufficient for your application?


#3

@kennethlimcp, this issue connected is discussed here
Default example for Asset Tracker GPS prints erratic NMEA sentences to serial


#4

Is there still a way to increase the size?
I need to have a bigger buffer because of some long task taking place during byte arrival.


#5

Did you find a solution for this?

Thanks!!


#6

The buffer size cannot be changed, but this library allows you to use a larger buffer:


#7

Thank you for the info. I try it out!


#8

I’ve just learned that custom buffers should be available on mesh devices and will likely be “backported” to previous generations too (when hardware allowes - Core might be too weak).

However, no ETA for Gen2 can be given at this point in time.