- 1、本文档共52页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
毕业设计论文-基于RS-232串行通信的水文数据采集系统
摘 要
随着计算机硬件、软件技术及集成电路技术的迅速发展,工业监控系统已成为计算机技术应用领域中最具活力的一个分支,并取得了巨大的进步。当前,远程监控和工业自动化领域常见的通信编程多为串并口通信编程,它们在监控软件中有着十分广泛的应用,如水文监测、闸门监控和灌区自动化等。本论文首先从串行通信的基础知识讲起,逐步深入到它在水文测报系统中的应用,并在此基础上设计了一个水文数据采集系统,该系统能够通过RS-232串行数据线采集相连计算机传来的水位、雨量、流量等数据,并将采集到的数据存入数据库中,实现了预定的功能。软件的开发基于Windows XP操作系统和Microsoft Access 2000数据库系统,开发工具采用Microsoft Visual Basic 6.0。
关键词:RS-232,串行通信,数据采集,ADO,通信协议
Abstract
With the rapid development of computer hardware、software and integrated circuit technology, industry monitoring system has become one of the most energetic part of computer application field, and has made great success. At present, the familiar communication programming of remote monitoring and industry automation field is mostly serial parallel communication programming, and they are widely used in monitoring software, such as hydrology monitoring、strobe monitoring and irrigation automation, etc. This paper firstly introduces the basic knowledge of serial communication, then steps deeply into its application in hydrological monitoring system, and at last designs the Hydrological Data Acquisition System based on this. The system can acquire the data of water level、rainfall and flux from connected computer through RS-232 serial data line, and import the received data into database, so it realizes prearranged functions. The software development has based on the operating system of Windows XP and database system of Microsoft Access 2000, and the programming tool is Microsoft Visual Basic 6.0.
Key words:RS-232, Serial Communication, Data Acquisition, ADO, Communication Protocol
目录
1 绪论 5
1.1 课题来源 5
1.2 研究背景 5
1.3 研究意义 6
1.4 本人工作概要介绍及论文章节安排 6
2 计算机接口技术 8
2.1 计算机接口技术简介 8
2.1.1 什么是接口 8
2.1.2 接口的基本功能 8
2.1.3 常见接口简介 9
2.2 RS-232-C串口标准 10
2.2.1 RS-232-C概述 10
2.2.2 数据终端设备与数据通信设备 11
2.2.3 RS-232-C协议标准 11
2.2.4 RS-232串口通信基本接线方法 12
2.3 RS-485/422串口标准 13
2.4 端口技术应用展望 13
3 端口通信基础 15
3.1 基本概念 15
3.1.1 单工、双工和全双工通信 15
3.1.2 端口通信----通信协议 15
3.1.3 数据安全和完整 17
3.2 端口资源与输入输出 17
3.2.1 串口端口资源 17
3.2.2 串行接口输入
文档评论(0)