Serial programming: virtual serial port vspm solves Serial Port Programming Problems

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.