Monitor serial port activity
-
Hi, Is there anyway to monitor an already opened serial port's activity? Any help would be highly appreciated, Cheers, Mehdi
-
Hi, Is there anyway to monitor an already opened serial port's activity? Any help would be highly appreciated, Cheers, Mehdi
Hmmm, I would propose to write a kind of driver which grabs the data flow between the application and the rs232-driver. There are many ways to do that. If you are not really in writing win32 drivers try api-hooking. That means you have to do a kind of overwriting functions used to handle the serial port like CreateFile(), ReadFile(), WriteFile() and so on. If you did the application doesn`t really call the functions from user32.dll or whatever but yours, keep the data and then call the original functions from system dlls and no one will worry. Take a look at "Programming Applications for MS Windows" by Jeffrey Richter - you will find some chapters about api-hooking, dll injecting and things like that. So far ... CU Mario /// --------------------------------- www.klangwerker.de Look out for free Win32 Serial Communication Module for VC++ or Borland C++ Builder ---------------------------------
-
Hi, Is there anyway to monitor an already opened serial port's activity? Any help would be highly appreciated, Cheers, Mehdi
This link could maybe get you started? Click here Cheers,
/FredrikSonork ID: 100.11430:PhatBoy