Serial Buffer Overflow
Posted: 26 Oct 2017 00:41
I have an application that is using RX1/TX1 setup at 19200 for serial comms with a external 'device'.
The device sends messages usually at a rate of one every few seconds and they are typically only around 10-15 bytes in size, so nothing too heavy.
It all seems to work fine except in situations where a few things change on the device and a burst of a few messages comes through fairly close together, and I see bytes dropped.
From some diagnostics I've added I can see that I am getting a buffer overflow. Is there a way of increasing the serial RX buffer size?
The device sends messages usually at a rate of one every few seconds and they are typically only around 10-15 bytes in size, so nothing too heavy.
It all seems to work fine except in situations where a few things change on the device and a burst of a few messages comes through fairly close together, and I see bytes dropped.
From some diagnostics I've added I can see that I am getting a buffer overflow. Is there a way of increasing the serial RX buffer size?