Re: Serial port monitoring



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.
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]

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Serial port monitoring
    ... You are still thinking in terms of "check the serial buffer", and that is not what you ... All you want to do is read a character from a serial port. ... Everything is done within my app. ... monitor), but now ...
    (microsoft.public.vc.mfc)
  • Re: Serial port monitoring
    ... serial port and rather not change horses in mid stride. ... I would then have a loop that checks for char in serial buffer. ... Everything is done within my app. ... monitor a serial port from another app unless you install some kind ...
    (microsoft.public.vc.mfc)
  • Re: Serial port monitoring
    ... In the background I need to act upon any data that comes in the serial port. ... I would then have a loop that checks for char in serial buffer. ... Everything is done within my app. ... monitor a serial port from another app unless you install some kind ...
    (microsoft.public.vc.mfc)
  • Re: Serial port monitoring
    ... serial port I did something like this. ... I would then have a loop that checks for char in serial buffer. ... Everything is done within my app. ... monitor), but now ...
    (microsoft.public.vc.mfc)
  • Re: Using KITL and ethernet in application
    ... BUT my app was ... When this crash happens it is normally when using the serial port. ... it takes over the ethernet port ??. ...
    (microsoft.public.windowsce.embedded)

Quantcast