Page 1 of 1

Serial buffer size on MOD5234

Posted: Tue Mar 11, 2014 12:52 pm
by barttech
"Calling either the OpenSerial() or SimpleOpenSerial() function will open the serial port in an interrupt-driven and buffered mode.."
How do I find what size the buffers are? A customer is having trouble that seems like it could be due to overflowing the (or at least trying to,or overwriting) the serial buffer.
Sam

Re: Serial buffer size on MOD5234

Posted: Tue Mar 11, 2014 2:10 pm
by pbreed
They default to ~3000 bytes.

You can increase them in 1500 byte increments of 1500 by changing

SERIAL_RX_BUFFERS
SERIAL_TX_BUFFERS

in nburn\include\constants.h

They default to 2

If you change ANYTHING in constants.h you must rebuild everything, system, platform and project...

(IE rebuild all)

Paul

Re: Serial buffer size on MOD5234

Posted: Wed Mar 12, 2014 4:16 am
by barttech
Thanks Paul!
Sam