Tech Miscellanea

The simplest way to show available serial port number

While playing with MCU/MPU boards, rather than check device manager everytime, we need a easier method to get known which serial ports are currently exist/available...yes, especially when we worked with a USB serial cable/converter, as their port number always changed from time to time :(

This can be done with a simple command:
   reg query HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM

And, if you want do this with just one mouse click, you can just make text file with content:
  reg query HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM
  pause

Save it, and rename it as a '.bat' file, such as 'SerialCheck.bat'.
Then, every time when you click on it, a cmd window will give you the information as following:
cmd

Posted in Tech Miscellanea at 05:40 on Saturday, 24 Oct, 2009 by millin
1 view | Print