基于USB接口通讯程序设计(终稿).docVIP

  • 3
  • 0
  • 约2.36万字
  • 约 29页
  • 2018-06-02 发布于福建
  • 举报
基于USB接口通讯程序设计(终稿)

摘 要 随着计算机技术的发展和推广,利用串口进行数据通讯在通讯领域中占有着重要的地位。为了方便和快速的通过 Internet 网络访问串口服务器的串口,本课题把串口通信集成到 Windows 服务,Windows 服务完成串口通信的基本操作。 由文中详细描述了串口通信服务的原理和工作流程,还列举出了相关的核心代码。 用流程图的方式来描述了各个模块的逻辑实现。 串口通信服务中采用安全队列的机制来控制多线程访问多串口。在开发中按照软件工程的流程,从需求分析到概要设计从详细设计到编码,以及最后的测试,利用软件工程的工具管理开发代码和文档。此外,还开发出了客户端来测试该服务工作是否正常。经过测试服务工作正常,能通过网络连接到服务器完成串口的通信。最后总结了开发和设计的不足之处,程序还有待进一步完善。 关键词:串口通信;Windows 服务;安全队列;多线程 Abstract With?the?development of computer technology?and?to promote?theuse?of?serial?data communication?occupies?an important positionin?the?communications?field.?In order to?easily and quickly?through the Internet?network?to?access?the?serial?server?serial, the subjectof?serialcommunication?integrated?intotheWindows?services,Windows?services?to complete?the basic operation?of?the?serial communication.?By?the?paper?describes in detail?theprinciplesand?workflow?of?the?serialcommunication,?alsocited?the?corecode.?Flowchart?way?todescribe?the?logic?of?eachmodule.?Serial communication?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?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 the network?to connect to the?server to complete?theserial?communication.?Concluded?the?development and design ofthe inadequacies of?the?program?remains to be?further improved. Keywords:serialcommunication;Windowsservice;?securityqueue;?multi-threaded 目 录 TOC \o 1-3 \h \z \u   HYPERLINK \l _Toc323916696 摘 要  PAGEREF _Toc323916696 \h 1  HYPERLINK \l _Toc323916697 Abstract  PAGEREF _Toc323916697 \h 2  HYPERLINK \l _Toc323916698 第一章 引 言  PAGEREF _Toc323916698 \h 5  HYPERLINK \l _Toc323916699 1.1 课题背景  PAGEREF _Toc323916699 \h 5  HYPERLINK

文档评论(0)

1亿VIP精品文档

相关文档