Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I view which properties an open serial connection has? So the baud, start and stop bits, the parity, the number of data bits and especially how the to be transmitted string is terminated (line feed, and so on)

Or is there a windows-tool for?

share|improve this question

migrated from stackoverflow.com Jun 14 '13 at 13:01

This question came from our site for professional and enthusiast programmers.

    
in what windows? or –  DevZer0 Jun 13 '13 at 8:56
    
Oh sorry, I've forgotten. I need a solution for Windows. –  CrazyMetal Jun 13 '13 at 9:01

2 Answers 2

up vote 3 down vote accepted

It isn't very clear from the question but I have to assume that some other program is using the port. Which stops you from opening the port, required to get the settings. Serial ports cannot be shared. You can do so after the program closes the port, but there are non-zero odds that it restores the settings.

The best way is to use the free SysInternals' Portmon utility. It installs a filter driver that snoops on the serial port driver. You'll see everything the program does, including initializing the port.

share|improve this answer
    
Yes an other program is using the port and I've to know the settings. Portmon Utiltiy looks very good, do you know if there a 64-Bit-Version? –  CrazyMetal Jun 13 '13 at 9:23
    
Sadly there is not, I have done this search my self and I could not find any free tool that has a 64 bit driver. What I ended up doing is forwarding the serial port to a VM running a 32 bit windows and running my program and PortMon inside the VM. –  Scott Chamberlain Jun 14 '13 at 14:45

Yes, you can use puttty for this and connect with putty to the serial port and set the baud, start and stop bits and such with putty when you connect to the serial port of a device using putty.

share|improve this answer
    
Not really. I've to know the port-settings an other software is using. –  CrazyMetal Jun 13 '13 at 9:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.