CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Software RS232

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
edi



Joined: 22 Dec 2003
Posts: 82

View user's profile Send private message

Software RS232
PostPosted: Thu Jan 08, 2004 9:26 am     Reply with quote

Hi,

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

View user's profile Send private message Send e-mail

PostPosted: Thu Jan 08, 2004 9:48 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Jan 08, 2004 3:29 pm     Reply with quote

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.
edi



Joined: 22 Dec 2003
Posts: 82

View user's profile Send private message

PostPosted: Sun Jan 11, 2004 9:26 am     Reply with quote

Thanks
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group