Solved

Serial Communications

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Replacement selected text 2 58
Tab names are off by one 5 53
Named range not carried over 10 62
x-bar in Google Sheets 2 27
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 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

24 Experts available now in Live!

Get 1:1 Help Now