Re: Serial port monitoring
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Sun, 17 Feb 2008 17:09:37 -0500
You are still unclear by what you mean by "monitoring". Who is monitoring? If it is your
app, then you can do this yourself by handling the result from ReadFile. You cannot
monitor a serial port from another app unless you install some kind of filter driver;
there are several commercial ones available (try google for serial port monitor), but now
the question is, what do you mean by "react"? What is it that the other app would do that
you couldn't handle in your own app? How does the other app synchronize with your app to
make sure that it is not causing potential problems?
Please be more explicit about what you are trying to do, and why.
joe
On Sun, 17 Feb 2008 20:10:08 GMT, "Kahlua" <kahlua@xxxxxxxxxx> wrote:
I want to monitor a port already opened by my app.Joseph M. Newcomer [MVP]
My app configures the port and opens it.
What I need is to monitor that port so that if a byte comes in I need to
read it and depending on byte value do something.
Thanks.
"Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp> wrote in message
news:ecH8aiZcIHA.1376@xxxxxxxxxxxxxxxxxxxxxxx
"Kahlua" <kahlua@xxxxxxxxxx> wrote in message
news:q5%tj.12033$MY2.9544@xxxxxxxxxxx
I use COMDrv++ by WCSC for serial port access.
I have had no problems in the past using this class for sending and
receiving serial data.
Now I have the need to be able to monitor the serial port in my app, and
react to specific data values, and I cannot figgure out how.
Any help would be appreciated.
Thanks
Your question is not clear. Do you want to monitor the port you have
opened, or do you mean monitor the port when some other app has opened it?
If you know how to input serial data from the library, what is the problem
with "monitor"ing and "react"ing?
--
Scott McPhillips [VC++ MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: Serial port monitoring
- From: Kahlua
- Re: Serial port monitoring
- References:
- Serial port monitoring
- From: Kahlua
- Re: Serial port monitoring
- From: Scott McPhillips [MVP]
- Re: Serial port monitoring
- From: Kahlua
- Serial port monitoring
- Prev by Date: Re: Dialog box size
- Next by Date: Re: Serial port monitoring
- Previous by thread: Re: Serial port monitoring
- Next by thread: Re: Serial port monitoring
- Index(es):
Relevant Pages
|