The serial port debugging software uartcmd.exe and the virtual serial port software vspm can solve the problem of no hardware debugging during serial port programming. The virtual serial port equipment is output through vspm, after the program sends information to the vspm device, it can directly display the information through uartcmd.exe to facilitate debugging the serial communication program.
Uartassist download: http://download.csdn.net/detail/zh405123507/4198012
Vspm virtual serial download: http://download.csdn.net/detail/zh405123507/4198013
The virtual serial port software vspm can be used to virtualize multiple serial ports on a computer. It seems to the machine as a hardware. It can also be set to the upper computer or lower computer. However, the virtual output of a single serial port cannot achieve debugging results. We need to connect the two virtual serial ports, one as the sender of the program written by ourselves, and the other as the receiver of the serial port debugging software, in this way, the message sent by the program from the sender can be displayed at the receiver, and the effect is clear at a glance. For example:
After installing vspm, click vspm-> virtual serial port plug-in the Start menu, and overwrite the vspm. ini file in the directory to the program root directory. Remember to back up the original file. At this time you start vspm again, is the state of COM3-COM4 connection, COM5-COM6 connection.
Run two uartassist commands, set them to com5 and com6 respectively, deselect the "hexadecimal display" check box, and send messages to each other for testing.
At this time, write the program to send messages to com5, and then you can monitor it in com6.
==========================================
From: http://blog.csdn.net/zh405123507