Go Down

Topic: Problem with Serial1 buffer (Read 1 time) previous topic - next topic

newhobby

I'm having an issue when using Serial1.
If I send data at 57600 baud that is more than 64 bytes, I never receive the remaining data.
It seems that the buffer is only 64 bytes and it overruns and discards the rest of the incoming data.
How do I resolve this problem?

sandeepmistry

Hi @newhobby,

I can confirm the RX buffer has a size of 64 bytes, see RingBuffer.h.

Could you please share a sketch that is causing issues? Maybe you are not calling Serial.read(...) frequently enough?

newhobby

I fixed my issue by storing it in a String variable and then using it at the end of the line, instead of trying to process every single character as they would be coming.

Go Up