基于usb接口的通讯程序设计

基于usb接口的通讯程序设计

ID:13093386

大小:267.76 KB

页数:29页

时间:2018-07-20

基于usb接口的通讯程序设计_第1页
基于usb接口的通讯程序设计_第2页
基于usb接口的通讯程序设计_第3页
基于usb接口的通讯程序设计_第4页
基于usb接口的通讯程序设计_第5页
资源描述:

《基于usb接口的通讯程序设计》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、摘要随着计算机技术的发展和推广,利用串口进行数据通讯在通讯领域中占有着重要的地位。为了方便和快速的通过Internet网络访问串口服务器的串口,本课题把串口通信集成到Windows服务,Windows服务完成串口通信的基本操作。由文中详细描述了串口通信服务的原理和工作流程,还列举出了相关的核心代码。用流程图的方式来描述了各个模块的逻辑实现。串口通信服务中采用安全队列的机制来控制多线程访问多串口。在开发中按照软件工程的流程,从需求分析到概要设计从详细设计到编码,以及最后的测试,利用软件工程的工具管理开发代码和文档。此外,还开发出了客户端来测试该服务工作是否正常。经过测试服务工作正常,能通过网络

2、连接到服务器完成串口的通信。最后总结了开发和设计的不足之处,程序还有待进一步完善。关键词:串口通信;Windows服务;安全队列;多线程AbstractWith the developmentofcomputertechnology and topromote theuse of serial datacommunication occupies animportantpositionin the communications field. Inorderto easilyandquickly throughtheInternet network to access the serial s

3、erver serial,thesubjectof serialcommunication integrated intotheWindows services,Windows services tocomplete thebasicoperation of the serialcommunication. By the paper describesindetail theprinciplesand workflow of the serialcommunication, alsocited the corecode. Flowchart way todescribe the logic 

4、of eachmodule. Serialcommunication services usedin the security queue mechanismtocontrol the multi-threaded access to morethan serial.Development in accordance with the softwareengineeringprocess,fromrequirements analysisto outlinedesign, detaileddesign to coding, and finaltesting,theuseof software

5、engineering toolsformanaging thedevelopmentof codeanddocumentation. Alsodeveloped a client totest theservice isworkingproperly. After the normal work of testingservices,throughthenetwork toconnecttothe servertocomplete theserial communication. Concluded the developmentanddesignoftheinadequaciesof t

6、he program remainstobe furtherimproved.Keywords:serialcommunication;Windowsservice; securityqueue; multi-threaded目录摘要1Abstract2第一章引言51.1课题背景51.2研究现状51.3研究目的及意义6第二章开发技术简介72.1串行通信简介72.2vc++简介72.3USB接口技术简介92.4USB通信参考模型92.5USB接口的通讯原理102.5.1USB设备的接入102.5.2USB设备的识别102.6功能需求112.6.1服务器端112.6.2串口通信112.6.3客户

7、端112.7设计方案112.7.1服务器端112.7.2串口通信122.7.3客户端12第三章系统程序设计133.1串口通讯的程序设计133.2通信协议14第四章系统程序的主要功能154.1程序功能154.1.1参数设置功能154.1.2参数显示功能154.1.3打开串口功能154.1.4关闭串口功能154.1.5接收数据功能154.1.6发送数据功能154.1.7清空数据接收区功能154.1.8清空数据发送

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。