Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have an application that sends out data via a USB W-LAN Adpater. The adapter is plugged via USB. However it will be shown also as an COM Port in the device manager.
The setup in the application needs to configure to "talk" with that COM Port.
The question is, how can I get the data that will be send from the Application to that com port?

I have seen a lot of tutorials describing how to listen to a com port by using virtual com ports and other methods. But As the COM port is in use how can I listen to it with a seperate application?

I unfortuanetely don't have a big expirience with COM Ports. So please bear with me. Maybe the solution (COM Port Sniffer and so on) is all what I need and I am not able to put all information together only.

Thanks

What I have tried:

I already tried it with some of the COM POrt Monitor or COM Port Sniffers but I am getting every time that the port I want to monitor is already in use
Posted
Updated 28-Feb-18 8:52am
v2
Comments
[no name] 28-Feb-18 19:12pm    
Your explanation is a little unclear. Are you talking about one application or two? It appears that you have a third party application which is sending data to the USB W_LAN adaptor via a virtual COM port that the adaptor implements. You wish to examine that data using your own application. If so the only way of reading that data is either the third party application provides an interface OR you listen on the LAN port. If the COM port is in use no other application can get hold of it - the OS enforces that.

1 solution

Maybe you can use this plugin: SerialComms.Manager - A serial communications plug-in for .NET[^]
But watch out, it's from down-under and for .NET 1 :)

Here is another answer: How to listen to COM port which is already in use by another application[^]

Here is a professional sniffer, but not for C# Serial Port Monitor - RS232 port sniffer & analyzer - Serial Monitor[^]
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900