文档介绍:摘要
随着计算机技术的发展和推广,利用串口进行数据通讯在通讯领域中占有着重要的地位。为了方便和快速的通过 网络访问串口服务器的串口,本课题把串口通信集成到 Windows 服务,Windows 服务完成串口通信的基本操作。由文中详细描述了串口通信服务的原理和工作流程,还列举出了相关的核心代码。用流程图的方式来描述了各个模块的逻辑实现。串口通信服务中采用安全队列的机制来控制多线程访问多串口。在开发中按照软件工程的流程,从需求分析到概要设计从详细设计到编码,以及最后的测试,利用软件工程的工具管理开发代码和文档。此外,还开发出了客户端来测试该服务工作是否正常。经过测试服务工作正常,能通过网络连接到服务器完成串口的通信。最后总结了开发和设计的不足之处,程序还有待进一步完善。
关键词:串口通信;Windows 服务;安全队列;多线程
Abstract
With the development puter technology and to promote theuse of serial munication occupies an important positionin munications field. In order to easily and quickly through the work to access the serial server serial, the subjectof munication integrated intotheWindows services,Windows services plete the basic operation of the munication. By the paper describes in detail theprinciplesand workflow of the munication, alsocited the corecode. Flowchart way todescribe the logic of eachmodule. munication services usedin the security queue mechanismtocontrol the multi-threaded access to morethan  in accordance with the softwareengineeringprocess,fromrequirements analysisto outlinedesign, detaileddesign to coding, and final testing, the use of software engineering tools for managing the development of code and documentation. Also developed a client to test the service is working properly. After the normal work of testing services,through work to connect to the server plete munication. Concluded the development and design ofthe inadequacies of the program remains to be further improved.
Keywords:munication;Windowsservice; securityqueue; multi-threaded
目录
摘要 1
Abstract 2
第一章引言 5
课题背景 5
研究现状 5
研究目的及意义 6
第二章开发技术简介 7
7
vc++简介 7
USB接口技术简介 9
USB通信参考模型 9
USB 接口的通讯原理 10
设备的接入 10
USB 设备的识别 10
11
服务器端 11
串口通信 11
客户端 11
11
11
12
客户端 12
第三章系统程序设计 13
13
通信协议 14
第四章系统程序的主要功能 15
程序功能 15
15
15
15