关键词:串口通信;Windows服务;安全队列;多线程
The Development of Serial Communication Service
Based on VC++
Abstract
With the development and spread of computer technology, serial communication is an important part in the field of computer network communication. In order to access server's serial port more convenient and faster through the Internet, this topic put serial communication services integrated into Windows service, which completed the basic operation of serial communication services. The serial communications services and the workflow are in detail described. The core code of the services is also given. Flow chart is used to describe the handling process of the serial communications services. The services using safe queue mechanism to control multithreading visit serials. During the entire development, according to the software engineering flow, from requirements analysis to summary design, from detail design to coding, and the final test, uses the software engineering tools to management the code and documentation. In addition, I developed a client to test the service. Test results of the experiment indicate the services can work normally. In the end, summarizes the disadvantages of the design and development, and further perfection of studies is surely in need.
Key words: Serial Communication; Windows Service; Safe Queue; Multithread