Skip to content

UART RX BUFFER SIZE #1683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
snowbizz opened this issue Feb 25, 2016 · 5 comments
Closed

UART RX BUFFER SIZE #1683

snowbizz opened this issue Feb 25, 2016 · 5 comments

Comments

@snowbizz
Copy link

Hi,
In 2.0.0 version there were two definitions of UART's buffer size in HardwareSerial.h file:

define SERIAL_TX_BUFFER_SIZE 256

define SERIAL_RX_BUFFER_SIZE 256

After 2.1.0 it is gone and buffer size can't be changed.
I can't receive more than 128 chars which is default value.

I found also in uart.h file:

define UART_TX_FIFO_SIZE 0x80

But it is only for TX and I am not sure is this works.

Cheers.

@igrr
Copy link
Member

igrr commented Feb 25, 2016

Software managed UART buffer has been removed in favor of hardware RX buffer, which is 128 characters long.

@snowbizz
Copy link
Author

So there is no chance to receive more than 128 chars by Hardware Serial?
Because in version 2.0.0 I was able to receive more than 128 chars by Hardware Serial.

@penfold42
Copy link

You I'll have to grab the characters more often and maintain your own bigger software buffer.

The main purpose of the uart buffer is to catch characters while your software is busy doing other things.

@snowbizz
Copy link
Author

It is working this way, but in my opinion - having a possibilty to change a buffer size will be a nice feature :)

@miky2k
Copy link

miky2k commented Feb 26, 2016

You only need is to listen hw buffer overrun interrupt .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants