Serial buffer size on MOD5234

Discussion to talk about software related topics only.
Post Reply
barttech
Posts: 135
Joined: Fri Feb 20, 2009 12:59 pm

Serial buffer size on MOD5234

Post 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
User avatar
pbreed
Posts: 1088
Joined: Thu Apr 24, 2008 3:58 pm

Re: Serial buffer size on MOD5234

Post 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
barttech
Posts: 135
Joined: Fri Feb 20, 2009 12:59 pm

Re: Serial buffer size on MOD5234

Post by barttech »

Thanks Paul!
Sam
Post Reply