Solved

RTS/CTS handshake on RS232C

Posted on 1997-06-10
2
2,404 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
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Retrun object in plist format 5 50
logging Access violation 6 18
C programming help for beginner sort routine 5 259
Line meaning 9 75
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
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…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now