JIMI 发表于 20:51

基于YDT 1363.3-2005 通信协议的环境监控系统设计

论文编号:DZXX164  论文字数:16086,页数:46
摘 要
 本文介绍了一种基于YD/T 1363.3-2005通信协议的环境监控系统的设计方法,本模块主要由PIC18F6520微控制器为核心的控制模块、利用温湿度传感器采集现场环境的温湿度、利用烟雾传感器检测现场烟雾,并在显示面板上显示环境数据,同时通过RS-232和RS-485与监控中心通信,通信的双方都遵守YD/T 1363.3-2005通信协议,监控中心可以发送对应的命令读取系统环境的数据和设置系统的参数,若该系统出现告警,则会将告警信息发送至监控中心,实现系统的远程监控。
 
关键词:通信协议,PIC18F6520微控制器,监控
 
ABSTRACT
 This paper introduces a design method of environmental monitoring based on the YD/T 1363.3-2005 communication protocol. This design mainly consists of a control module whose core is the PIC18F6520 microcontroller, using temperature and humidity sensor to gather temperature and humidity of environmental, using smoke sensors to detection smoke, and displaying environmental data on the display panel, while through the RS-232and RS-485 communication with the control center, both of communications sides are comply with YD/T 1363.3-2005 communication protocol, the monitoring center can send the corresponding command to read environment data of system and set the parameters of system, if the system in the alarm, the alarm message will be sent to the control centers of the remote monitoring system.
Keywords: communication protocol, PIC18F6520 microcontroller, monitor
目 录
摘要 I
ABSTRACT II
第1章 引言 1
 1.1 背景 1
 1.2 课题的主要研究内容 1
第2章 系统设计的总体思路 3
 2.1系统模块设计的总体方案 3
 2.2系统软件的实现方法 3
第3章 系统硬件模块的设计 5
 3.1系统核心 5
 3.1.1 PIC单片机简介 5
 3.1.2 PIC18F6520单片机端口的分配 5
 3.2通信模块的设计 6
 3.2.1通信模块简介 6
 3.2.2 RS-232通信模块设计 8
 3.2.2 RS-485通信模块设计 8
 3.3温湿度模块设计 9
 3.3.1温湿度传感器简介 9
 3.3.2温湿度模块与单片机的接口电路 11
 3.4烟雾检测模块设计 11
 3.4.1烟雾传感器简介 11
 3.4.2烟雾检测模块的外围电路 12
 3.5系统时钟模块设计 12
 3.6控制模块设计 13
 3.7显示模块及键盘模块的设计 14
 3.7.1显示模块的设计 14
 3.7.2键盘模块的设计 15
第4章 系统软件的设计 17
 4.1 YD/T 1363.3-2005通信协议的软件设计 17
 4.1.1 YD/T 1363.3-2005通信协议简介 17
 4.1.2帧信息类型和结构的软件实现 18
 4.1.3帧信息的校验算法 21
 4.2命令信息的运算软件设计 22
 4.2.1软件设计的总体思路 22
 4.2.2软件的测试 23
 4.3模拟信号采集的软件设计 24
 4.4温湿度读取的软件设计 26
 4.5系统时钟的软件设计 28
 4.6控制模块的软件设计 29
第5章 系统的软硬件测试 30
 5.1通信协议测试 30
 5.1.1系统各参数设置测试 30
 5.1.2系统各参数读取测试 33
 5.1.3系统运行环境温湿度读取测试 35
 5.2 测试结果分析 36
第6章 结论 37
致谢 38
参考文献 39
附录 40
页: [1]
查看完整版本: 基于YDT 1363.3-2005 通信协议的环境监控系统设计