How to detect a port monitoring software running?
How to detect a port monitoring software running?
How to detect a port monitoring software running?
How to detect a port monitoring software running?
How to detect a port monitoring software running?
How to detect a port monitoring software running? How to detect a port monitoring software running? How to detect a port monitoring software running? How to detect a port monitoring software running? How to detect a port monitoring software running? How to detect a port monitoring software running? How to detect a port monitoring software running? How to detect a port monitoring software running?
How to detect a port monitoring software running? How to detect a port monitoring software running?
How to detect a port monitoring software running?
Go Back  Xtreme Visual Basic Talk > > > How to detect a port monitoring software running?


Reply
 
Thread Tools Display Modes
  #1  
Old 02-28-2012, 12:00 PM
nguyenthanhcanh nguyenthanhcanh is offline
Newcomer
 
Join Date: Jan 2005
Location: HCMC, Vietnam
Posts: 14
Default How to detect a port monitoring software running?


Hello,

If a monitoring software runs first and monitors a COM port, our application can open port successfully.

I want to determine if any port monitoring software running before open a COM port.
Please tell me how to do that?


Thanks.
Reply With Quote
  #2  
Old 02-28-2012, 02:36 PM
Cerian Knight's Avatar
Cerian KnightHow to detect a port monitoring software running? Cerian Knight is offline
Polymath (in disciplina)

Super Moderator
* Expert *
 
Join Date: May 2004
Location: Michigan
Posts: 4,199
Default

Quote:
Originally Posted by nguyenthanhcanh View Post
If a monitoring software runs first and monitors a COM port, our application can open port successfully.
Are you saying that you can NOT open the port unless monitoring software has run first (or is currently running... please clarify)? Is this a standard COM port or a USB to Serial COM port? What monitoring software is used (its name or is it a custom monitor)?

In any case, show us the code that you are using to open the port, in case that might help us understand the problem. Also, what error do you get when the monitoring software is or is not used?
__________________
I got all the answers wrong on the GLAT, apparently even #9 (where I put a period in the middle of the box and labeled it 'singularity ripe for rapid inflation').

Last edited by Cerian Knight; 02-28-2012 at 02:41 PM.
Reply With Quote
  #3  
Old 02-28-2012, 08:12 PM
mkaras's Avatar
mkarasHow to detect a port monitoring software running? mkaras is offline
Ultimate Contributor

Retired Leader
* Expert *
 
Join Date: Mar 2004
Location: Beaverton, OR
Posts: 1,874
Default

I think the OP is saying that their application can access and open the COM port with or without the monitoring software present. In otherwords the monitoring program is being pretty transparent.

My guess is there is a concern about if the monitoring program is running or not. It may be a security concern. It could also relate to wanting to find out if the monitor is there so that their application could try to talk to the monitor and/or control it in some way.

Michael Karas
Reply With Quote
  #4  
Old 02-29-2012, 12:01 AM
nguyenthanhcanh nguyenthanhcanh is offline
Newcomer
 
Join Date: Jan 2005
Location: HCMC, Vietnam
Posts: 14
Default

Yes, Michael has explained my idea.

The COM port (built-in or USB to COM) can open and work normally with or without the monitoring software present but due to security reason, I don't want my program working if the monitoring program is running in background.

The monitoring software is "HHD Software Free Serial Port Monitor" or similar programs.

Please tell me how to write the VB code to detect these programs?

Thanks
Reply With Quote
  #5  
Old 02-29-2012, 05:17 PM
Cerian Knight's Avatar
Cerian KnightHow to detect a port monitoring software running? Cerian Knight is offline
Polymath (in disciplina)

Super Moderator
* Expert *
 
Join Date: May 2004
Location: Michigan
Posts: 4,199
Default

If I were really worried about 3rd party software accessing the port, I might use VB to open and close the port, but do everything else using some equivalent to IO.dll to actually transact data with the UART. However, a smart monitor is free to hook the IRQ and read the hardware buffer directly, toggle the loop-back bit, stuff the read data back in and turn the loop-back bit off again. There are only two ways to know this has occurred. One is by using API calls to look at the IRQ handler chain looking for a middle-man and the other is by looking for excess latency in the communication (which might be impossible to detect).

I would have to see the monitoring code to know how this snooping is typically done... perhaps the API method would be fine. Where I work, we used to use custom add-in cards and driver dlls for serial communication (we called them DSP ports), so off-the-shelf monitoring would have been ineffective.

If I get a chance, I'll see if I can find some VB code around here for looking at the IRQ handler chain.
__________________
I got all the answers wrong on the GLAT, apparently even #9 (where I put a period in the middle of the box and labeled it 'singularity ripe for rapid inflation').
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
How to detect a port monitoring software running?
How to detect a port monitoring software running?
How to detect a port monitoring software running? How to detect a port monitoring software running?
How to detect a port monitoring software running?
How to detect a port monitoring software running?
How to detect a port monitoring software running? How to detect a port monitoring software running? How to detect a port monitoring software running? How to detect a port monitoring software running? How to detect a port monitoring software running? How to detect a port monitoring software running? How to detect a port monitoring software running?
How to detect a port monitoring software running?
How to detect a port monitoring software running?
 
How to detect a port monitoring software running?
How to detect a port monitoring software running?
 
-->