华南农业大学珠江学院 毕业论文(设计)
基于单片机与GSM模块无线测温传输系统
——软件设计
孙立治
指导教师: 刘爱民
系: 信息工程系 年级专业:电子信息工程0801班
提交日期: 答辩日期:
答辩委员会主席(签名):
评阅人(签名):
年 月 日
摘 要
本论文设计了一种通过GSM短消息的收发实现对系统设备进行遥控,基于单片机控制,利用支持短消息业务的GSM引擎模块发送温度报警信息,还利用现有的900M或1800M的GSM网络,而监控终端也不再仅局限于PC机,也可以是移动通讯平台或其他移动终端。对系统环境状况监测和数据传输的GSM短消息遥控监测系统。该系统克服了普通电话遥控的人机界面不友好,且控制功能少等缺点,实现了数据采集(温度等)、实时监测、短信报警的功能。
系统的控制过程如下:用温度传感器采集外界温度值,通过A/D转换将此模拟信号转换为数字信号传入单片机中,对单片机进行编程。本系统采用了西门子公司提供的TC35短信模块进行短信的编辑和发送,它的串口通讯遵循RS232标准,所以要与单片机连接还要通过串口的电平转换电路,这也是系统设计的一部分;短信模块发送短信是由AT指令控制的,其发送的短信格式有两种:文本格式和PDU格式, 本论文选择采用文本格式,这样AT指令的短消息编程也成为了系统设计一部分。前面说提到的AT指令,即Attention AT命令集是从Terminal Equipment或DTE(Data Terminal Equipment) 向TA(Terminal Adapter)或DCE(Data Circuit Terminating Equipment)发送的通过TE发送AT命令来控制MS的功能与GSM网络业务进行交互复。
关键字:单片机;TC35i模块;短消息;AT指令;温度检测
Abstract
This dissertation designed a GSM short message sending and receiving remote control system equipment, control, based on single chip GSM engine module sends temperature alarm information to support short message service, to monitor the terminal is no longer confined to the PC, but alsocan be a mobile communications platform, or other mobile terminal.
The control process of the system are as follows: outside temperature, temperature sensor acquisition A/D converter to convert this analog signal to digital signal into the microcontroller, the microcontroller to be programmed. Microcontroller to obtain the temperature through the serial port and Siemens TC35 SMS module serial communications and data transfer, the temperature obtained by TC35 SMS module temperature mode of information sent to the target mobile communication platforms or other mobile devices.
TC35 SMS module control, editing, and sending of text messages, it sends the message format in two ways: the text format and PDU format, this dissertation used text format. TC35 SMS module is controlled by using AT command. Such a short news programming of the AT command also become a part of the design. AT command, the Attention AT command set is from the Terminal Equipment or DTE (Data Terminal Equipment) to the TA (Terminal Adapter) or DCE (Data Circuit Terminating Equipment) sent by the TE to send AT commands to control the MS functions and GSM network services interaction complex.
Keywords: microcontroller; TC35i module; short message; AT Instruction; Temperature detection
设计说明
本次设计的基于单片机与TC35i的 GSM模块无线测温报警系统主要有两大功能,分别为温度检测、短信报警。基于题目的基本要求,本系统对温度检测、短信报警这两大功能进行重点设计。本系统设计采用以单片机STC89C52和西门子TC35i短信模块为核心,结合DS18B20等必要的外围电路实现远程无线报警功能。
当系统上电启动后,单片机利用DS18B20检测温度。采用单片机的定时器计时的方式来计算时间,每隔一段时间,系统就会向事先设置好的移动终端发送温度。当温度高过一定的值或者低于一定的值的时候,就算系统计时的时间还没到,系统也会向移动终端发送信息。为了方便随时可以接受信息,本设计还设计了按键功能,当按下按键的时候系统也会向移动终端发送信息。
设计标准如下:
(1) 通过单片机和DS18B20检测温度。
(2) 设定报警范围,当温度不在这个范围的时候就自动发送当前温度到移动终端。 (3) 按键功能,没按下一次按键,系统就向移动终端发送当前温度。 关键字:STC89C52单片机;DS18B20;TC35i
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库基于单片机与GSM模块无线温度传输系统 - 图文在线全文阅读。
相关推荐: