Solved

RTS/CTS handshake on RS232C

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Trouble linking program with -lcrypt 3 152
Want to delete all my personal data 13 146
why "." vs "->" 23 120
Unable to start eclipse ? 17 142
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

831 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