Increasing Serial buffer size.

hi, I want to increase my rx buffer size for software UART. because i have four Software uart slaves from each i want take minimum i00KB of data and process it. meanwhile other slaves also will be sending the Data to my controller. in that time. how i can increase the RX buffer size to make no loss in data from all the nodes.

Needing this is usually a consequence of poor code design and not being able to read the buffer fast enough but in case this is really needed theArduino/hardware/arduino/avr/libraries/SoftwareSerial/src/SoftwareSerial.h file starts with this:

#ifndef _SS_MAX_RX_BUFF
#define _SS_MAX_RX_BUFF 64 // RX buffer size
#endif

also remember that Software Serial — If using multiple software serial ports — only one can receive data at a time...

you might be better off with a Mega and multiple hardware Serial

how i can increase the RX buffer size to make no loss in data from all the nodes.

Only one instance of SoftwareSerial can listen at a time. Increasing the size of the buffer will NOT help.

Changing hardware will.

Prithiviraj_pandian: I want to increase my rx buffer size for software UART. because i have four Software uart slaves from each i want take minimum i00KB of data and process it. meanwhile other slaves also will be sending the Data to my controller. in that time. how i can increase the RX buffer size to make no loss in data from all the nodes.

I don't know of any Arduino that has the capacity to receive 100KB of data.

No matter how many instances of SoftwareSerial you create only one of them can listen at any one time. If you need to listen to several messages at the same time you need a HardwareSerial port for each. A Mega has 4 HardwareSerial ports.

If you use code like the examples in Serial Input Basics the size of the SerialInput buffer is not a limitation.

...R

How fast does that i00K of data come in? Do you need to process it in realtime, or store it & then process it later?

Thanks for the responses,

I have to send those information through harware serial port to computer USB for further processing..

Let me know the possibilities for that. is there any software uart RX buffer? if that is there we can try for increase the size of those buffer right??

If it will happen in that cases what modification i should for changing the buffer size??

How fast does that i00K of data come in?

Prithiviraj_pandian: Thanks for the responses,

I have to send those information through harware serial port to computer USB for further processing..

Let me know the possibilities for that. is there any software uart RX buffer? if that is there we can try for increase the size of those buffer right??

If it will happen in that cases what modification i should for changing the buffer size??

Many small LCD boards come with SDK memory hardware plug-ins. . Need 100Kb ? How about few GB? As far as processing multiple x baud rate connections - they are still the slowest kids on the block. Nothing to worry. Jim