If I'm using the software RS232. What is the best way to ensure that there will be no lose of characters in the receive side?
I can't wait for incoming characters all the time?!
Edi
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Thu Jan 08, 2004 9:48 am
If you have a free output, you could use that as a hardware handshake line for the transmitter.
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
Posted: Thu Jan 08, 2004 3:29 pm
You can poll kbhit() to see if data is arriving. You should poll at at least 5X each incoming bit so you only miss 1/5 of the start bit. You can poll less often but communication reliability may start to suffer. _________________ The search for better is endless. Instead simply find very good and get the job done.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum