Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 363
  • Last Modified:

Serial Communications

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
LittlePerson
Asked:
LittlePerson
2 Solutions
 
lakshman_ceCommented:
Plz have a look at the SetRTS method in the code at
http://www.codeproject.com/system/cserialport.asp

-Lakshman
0
 
Nass89Commented:
Hi,
Use EscapeCommFunction, you may use SETRTS or CLRRTS to change the RTS state.
See MSDN for more explanations.

Good Luck!
0
 
LittlePersonAuthor Commented:
thanks guys
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now