Solved

RTS/CTS handshake on RS232C

Posted on 1997-06-10
2
2,450 Views
Last Modified: 2010-08-05
I have developed a program in Borland C for MSDOS which handles serial communications over COM1/2/3/4 using only the pins TXD, RXD and GND. (I access the UARTs directly). I have been using Xon/Xofff software handshake but now would like to use RTS/CTS for hardware handshake. My problem is that I don't know what the standard is! What shall I do with RTS/CTS to provide data integrity?
When shall I raise and/or lower RTS?
When shall I check CTS? Do I need to check?
I would appreciate if somebody could come up with some help and maybe some documents about this subject.

Thanks in advance,

Paulo Neves
0
Comment
Question by:pneves
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:pneves
ID: 1251216
Edited text of question
0
 

Accepted Solution

by:
aviad earned 50 total points
ID: 1251217
The following is an excerpt from http://www.med2000.com:457/HANDBOOK/RTS_CTS.html
--------------
The Ready To Send (RTS) and Clear To Send (CTS) lines for the RS-232 serial interface were originally intended as handshaking signals between a DTE device (computer, printer, and so forth) and a DCE device (almost always a modem). This section describes unidirectional handshaking between two DTE devices: a computer and a printer. The computer asserts its RTS (Ready To Send) line when it is ready to send data to the printer. The printer asserts its RTS when it was ready to receive data.

If the printer's input buffer is nearly full, it lowers its RTS line (connected to the computer's CTS (Clear To Send) line). If the computer sees CTS go low, it stops sending data until it goes high again when the printer has caught up.
----------------
Hope this helps.
Aviad.
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question