Virtual Serial port implementation

Source: Internet
Author: User

These two days need to develop a program to implement the GSM at command into CDMA at the command set (in order to tie in with another GSM at command of the third party SMS program access to our CDMA Modem), considered, decided to use the virtual serial port of the way to achieve, Is that we develop a gateway program control modem, while in the system simulation of a new serial port to use for third-party programs.

To save time (2 days), decided to adopt a mature virtual serial port program to achieve.
1 The use of VSPM such as serial simulation software
This is a domestic company developed free virtual serial port software, support in Chinese and English, support SERVER,CLIENT,UDP broadcast and other 3 modes of operation. I used the server mode, that is, to run the VSPM as a TCP server, it can simulate one or more local serial port, each serial port corresponding to open a TCP listening service, other applications can be connected to the client way, so that the local virtual serial port to the remote TCP connection mapping.

HTTP://P.BLOG.CSDN.NET/IMAGES/P_BLOG_CSDN_NET/STEPHENXU111/ENTRYIMAGES/20080722/04 virtual serial is connected. Jpg

2) com0com Tools
SourceForge Open source project (Windows platform), the implementation of the local virtual serial port mapping, its main way is in pairs of the model in the local virtual back-to-back serial port, such as the default installation it will be in the system to create two serial cnca0,cncb0. The input of one serial port becomes the output of another serial port, and vice versa. If you want to implement a switch to a TCP connection, you can use a tool that comes with it to implement a serial port-like 1-com2tcp TCP connection.

Http://p.blog.csdn.net/images/p_blog_csdn_net/stephenxu111/EntryImages/20080722/COM0COM.JPG
Using one of the above two ways, create a virtual serial port to the service of TCP, and then develop an application to the TCP connection to the service, the received at command conversion, and then through the physical serial port sent to the CDMA Modem, the entire function is realized. Best of all, because it is a TCP connection, the entire application can run on a remote computer.

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.