Solved

Serial Communications

Posted on 2004-04-04
3
314 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

705 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

15 Experts available now in Live!

Get 1:1 Help Now