Solved

Serial Communications

Posted on 2004-04-04
3
349 Views
Last Modified: 2013-11-20
Hi

I have implemented a class to handle serial communications using the Comm functions
in the Windows API. The device I am talking to cannot handle flow control either
hardware or software. However, when the PC wants to talk to the device it
needs to raise (make active) the RTS line and send the data, once all data
is transmitted the pc should lower (make inactive) the RTS signal in order to
receive data.

I have had a good look through the Windows API on Serial Comms and can;t find
a way of manually setting/resetting the RTS signal. MSComm object seems to
have RTSEnable function. Does anyone know how to achieve the same using the
Windows API tools??


Thanks in advance

LittlePerson
0
Comment
Question by:LittlePerson
[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
3 Comments
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 125 total points
ID: 10753917
Plz have a look at the SetRTS method in the code at
http://www.codeproject.com/system/cserialport.asp

-Lakshman
0
 
LVL 5

Assisted Solution

by:Nass89
Nass89 earned 125 total points
ID: 10755849
Hi,
Use EscapeCommFunction, you may use SETRTS or CLRRTS to change the RTS state.
See MSDN for more explanations.

Good Luck!
0
 

Author Comment

by:LittlePerson
ID: 10756373
thanks guys
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

735 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