drinker
drinker

Reputation: 41

Finding out comm port settings of a running app

The situation is as follows: I have a piece of hardware connected to a, windows running, PC via a serial port. This custom hardware is used to interface other hardware through GPIB. Now, the software that is used to operate this setup on the PC side needs to be changed without touching the hardware in the middle. The problem is getting a hold of the proper serial comm. parameters used for communication - setting them (the timeouts in particular - baud rates and bits are fine) to arbitrary values in the new software leads to a lot of comm errors so I'd like to know them precisely. The function GetCommTimeouts() would do the job, however you need the handle to the comm. device aquired via call to CreateFile() - only the original software has access to it. So the question is if one can get a hold of these settings from outside of the running, old app?

Thanks, drinker

Upvotes: 1

Views: 110

Answers (1)

R. Beiboer
R. Beiboer

Reputation: 724

I would suggest using a tool like Process Monitor. This tool can monitor the calls that are used to open and configure a serial port.

Upvotes: 1

Related Questions