PDA

View Full Version : Full duplex serial - larger RX buffer wanted



Shane De Catania
01-10-2008, 10:47 AM
G'day all,

Just wondering if anyone can help me... I am using "Full duplex serial" from the object exchange, but need a larger RX buffer (256 bytes as opposed to 16). I have tried changing a couple of values in the object from 16 to 256 where appropriate - which works great for RX but causes corruption to the TX data. I'd be internally grateful if anyone could point me in the write direction with this one.
Thanks in advance!

Cheers,
Shane.

Mike Cook
01-10-2008, 10:52 AM
Attached is a copy that I have modified, notes include in code. Look for

'<----------- Change Buffer Size Here'

for where I have modified the buffer size.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike (http://www.allsurplus.net/)

Post Edited (Mike Cook) : 1/10/2008 10:13:34 AM GMT

Shane De Catania
01-10-2008, 01:28 PM
Thanks Mike... I feel silly, but I'm still having a problem. The serial TX data seems to always be 1 char behind the one I intend to send (a one char delay). Please see attached test program - it just sends key-presses from the propeller demo board keyboard out of the RS232 port. What am I doing wrong?

Cheers,
Shane.

Shane De Catania
01-10-2008, 02:43 PM
OK it works now... see line 220 for the extra instruction added. Probably a dodgy fix, but seems to work!

Cheers,S

Mike Cook
01-10-2008, 06:11 PM
Oops!, You are correct! I though I had fixed that in the attached file, looks like I uploaded on old version. I have updated the attachment in the previous message.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike (http://www.allsurplus.net/)