Delphi uses serial port simulation tool to develop and debug serial port program

Source: Internet
Author: User

  

Copyright NOTICE: This article is for bloggers original article, if need reprint please indicate source and author.

This article by Xiao Li column original, reprint need to indicate the source: "http://blog.csdn.net/softwave/article/details/8907599"

A recent project that requires Java to read a small pound of data in a pound room requires that Java be used to communicate with the serial port. Serial port Java code has been developed, but can not always be in the production site debugging procedures, so how to simulate the serial data on their own notebook computer is becoming a top priority. Google's blessing, found two gadgets: VSPD and serial debugging assistant. The following is a brief introduction of how to combine the two small tools to debug the serial port program.

1, after installing the VSPD, first select the port number you want to virtual, click "Add Port". Generally now the notebook computer does not have the serial port, so can choose COM1 and COM2.

2, the virtual good port, the left can see the new virtual out of the COM1 and COM2, at this time two ports should not be occupied, in a deactivated state.

3, open the Serial debugging assistant, set the COM1 baud rate, parity bit, data bits, stop bits and other parameters, while ensuring that the COM2 is not occupied state. We set this up so that COM1 is responsible for sending the data, COM2 is responsible for receiving the data. If the COM2 is also occupied, then your program will not be able to use this port.

4, in the picture of the Chinese box to fill in the data you want to simulate, and then click "Automatic Send", you should see the progress bar moving forward, and vspd COM1 sent data growing, indicating that the serial debugging assistant is constantly sending data through the COM1.

5, open the program you want to debug, in your program set a good baud rate and other parameters, you can see the simulation results. At this point, you can see that the COM2 in VSPD is occupied by Java, and received data is growing.

Delphi uses serial port simulation tool to develop and debug serial port program

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.