网站导航免费论文 原创论文 论文搜索 原创论文 网学软件 学术大家 资料中心 会员中心 问题解答 原创论文 大学论文导航 设计下载 最新论文 下载排行 原创论文
返回网学首页
网学联系
最新论文 推荐专题 热门论文 素材专题
当前位置: 网学 > 编程文档 > VC++ > 正文

基于VC++的串口通信服务的开发

来源:http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 来源: 网络 发布时间: 16/01/15

【编者按】:网学网VC++为您提供基于VC++的串口通信服务的开发参考,解决您在基于VC++的串口通信服务的开发学习中工作中的难题,参考学习。

包括论文,设计,论文字数:13335,页数:26

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

关键词:串口通信;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

目  录

1 引言 1
1.1 课题背景 1
1.2 研究现状 1
1.3 研究的意义 1
2 相关理论基础 1
2.1 Windows NT 服务 1
2.2 串口通信 2
2.3 多线程及线程间通信 3
2.4 安全队列 4
2.5 Windows套接字规范 4
2.6 客户机服务器系统 5
3 需求分析及设计方案 6
3.1 功能需求 6
3.2 设计方案 7
4 具体设计流程与实现 8
4.1 安全队列 8
4.2 服务应用程序 10
4.3 串口通信 16
4.4 客户端 18
4.5 类图 19
5 调试与分析 19
结    论 20
参考文献 20
致    谢 21
声    明 22

基于VC++的串口通信服务的开发......
  • 上一篇资讯: [VC++]
  • 版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
    Copyright 2008-2015 myeducs.Cn www.myeducs.Cn All Rights Reserved 湘ICP备09003080号