【正文】
................................................... 4 2 GSM 網(wǎng)絡(luò)基礎(chǔ)知識(shí)和 SMS 通信原理 ............................................................................. 5 GSM 模塊技術(shù)概況及其特點(diǎn) ................................................................................ 5 短消息業(yè)務(wù) SMS 的概 述 ....................................................................................... 5 SMS 的通信指令 TA 指令 .......................................................................... 6 TC35I 通信模塊 ...................................................................................................... 8 3 系統(tǒng)硬件電路的設(shè)計(jì) ..................................................................................................... 10 系統(tǒng)總體硬件結(jié)構(gòu) 設(shè)計(jì) ....................................................................................... 10 AT89S52 及其外圍電路 ........................................................................................11 電源電路 ................................................................................................... 14 溫度傳感器 DS18B20 ............................................................................... 15 按鍵電路 .................................................................................................... 16 液晶顯示電路 ............................................................................................ 17 TC35I 外圍電路設(shè)計(jì) ............................................................................................ 18 采用 MAX232 接口的串行通信 ............................................................... 20 4 軟件設(shè)計(jì) ......................................................................................................................... 21 系統(tǒng)總軟件的設(shè)計(jì)流程 ....................................................................................... 21 短消息的軟件設(shè)計(jì) ............................................................................................... 21 測(cè)試結(jié)果 ............................................................................................................... 23 結(jié) 論 ............................................................................................................................. 25 參考文獻(xiàn) ............................................................................................................................. 26 致 謝 ............................................................................................................................. 28 附錄 1:整體電路圖 .......................................................................................................... 29 附錄 2:源程序 .................................................................................................................. 31 天津職業(yè)技術(shù)師范大學(xué) 2020屆本科生畢業(yè)設(shè)計(jì) 1 1 緒論 遠(yuǎn)程溫度監(jiān)測(cè)系統(tǒng)產(chǎn)生的背景和意義 隨著科技的發(fā)展和自動(dòng)化水平的提高,溫度的自動(dòng)監(jiān)測(cè)已經(jīng)成為各行各業(yè)進(jìn)行安全生產(chǎn)和減少損失采取的重要措施之一。 Remote monitoring。 關(guān)鍵詞 :GSM;短消息;遠(yuǎn)程監(jiān)測(cè); TEXT 模式; AT 指令; AT89C52 單片機(jī) II Abstract This paper design a remote monitoring temperature system based on GSMSMS. In this system GSM work is a medium for transmitting the remote signal, it presents detailed explanation of GSM work?s system structure and emphasizes the munication principle that is important for the task. The mode of transmitting data is most SMS. TEXT mode is used during transmitting SMS. Transmitting and receiving SMS is realized by using AT mand. It presents the familiar AT mand and using method. It presents TC35 and microchip AT89S52 and peripheral circuit during design of system hardware. Hardware of system includes two parts: the monitoring center and the remote monitoring station. It consists of a puter and a TC35 munication module of GSM in the monitoring center. Computer and TC35 are joined by RS232. It includes a TC35 munication module of GSM, a AT89S52 MCU, a display part and a gathering data part. It includes the monitoring center software and the remote monitoring station software in design of system software. The monitoring center finishes the interface design and the function of receiving and transmitting and saving data. The remote monitoring station software includes single chip initialization and main program and interrupt of gathering signal and receiving and transmitting program through the serial port. In the end of the paper, it presents a remote temperature monitoring system based on GSM, using the designed system of remote monitoring system based on GSM SMS and technique of measuring temperature. Keywords:GSM。遠(yuǎn)程監(jiān)測(cè)分站軟件包括單片機(jī)初始化、主程序、信號(hào)采集中斷程序、通過(guò)串口的短消息接收和發(fā)送程 序。系統(tǒng)的軟件設(shè)計(jì)包括監(jiān)測(cè)中心站軟件設(shè)計(jì)和遠(yuǎn)程監(jiān)測(cè)分站軟件設(shè)計(jì)。系統(tǒng)的硬件設(shè)計(jì)中,對(duì) 主要硬件 TC35和 AT89S52 單片機(jī)及其外圍電路進(jìn)行了詳細(xì)的講述。數(shù)據(jù)的傳輸方式主要是短消息方式,系統(tǒng)中采用 TEXT 模式。 天津職業(yè)技術(shù)師范大學(xué) Tianjin University of Technology and Education 畢 業(yè) 設(shè) 計(jì) 專 業(yè): 應(yīng)用電子技術(shù)教育 班級(jí)學(xué)號(hào): 應(yīng)教 0512 34 學(xué)生姓名: 夏連紅 指導(dǎo)教師: 李彤 副教授 二 ○ 一 ○ 年 六 月 天津職業(yè)技術(shù)師范大學(xué)本科生畢業(yè)設(shè)計(jì) 基于 GSM 模塊的遠(yuǎn)程溫度監(jiān)測(cè)系統(tǒng) A Remote Temperature Monitoring System Based on GSM Module 專業(yè)班級(jí): 應(yīng)教 0512 班 學(xué)生姓名: 夏連紅 指導(dǎo)教師: 李彤 副教授 學(xué) 院 : 電子工程學(xué)院 2020 年 6 月 I 摘 要 本 設(shè)計(jì) 設(shè)計(jì) 了一種基于 GSM 短消息的遠(yuǎn)程 溫度 監(jiān)測(cè)系統(tǒng) 。 系統(tǒng)以 GSM 網(wǎng)絡(luò)作為遠(yuǎn)程信號(hào)的傳輸平臺(tái) , 對(duì) GSM 網(wǎng)絡(luò)體系結(jié)構(gòu)作了詳細(xì)的講解。短消息的接收和發(fā)送是通過(guò) AT 指令來(lái)實(shí)現(xiàn)的,講述了常見(jiàn)的 AT 指令及其使用方法。系統(tǒng)分為兩個(gè)部分進(jìn)行設(shè)計(jì) —監(jiān)測(cè)中心站和遠(yuǎn)程監(jiān)測(cè)分站:監(jiān)測(cè)中心站硬件包括液晶顯示, GSM 通信模塊 TC35,兩者通過(guò) RS232 連接;遠(yuǎn)程監(jiān)測(cè)分站硬件包括 GSM 通信模塊 TC35, AT89C52 單片機(jī),顯示單元,溫度傳感器數(shù)據(jù)采集與處理單元。監(jiān)測(cè)中心站軟件完成了界面設(shè)計(jì)、數(shù)據(jù)的接收與發(fā)送以及保存等功能。論文的最后部分以 GSM 短消息的遠(yuǎn)程監(jiān)測(cè)系統(tǒng)為基礎(chǔ),結(jié)合溫度檢測(cè)技術(shù)設(shè)計(jì)出一套基于 GSM 的溫度監(jiān)測(cè)系統(tǒng) 。 SMS。 TEXT mode。特定場(chǎng)合下由于監(jiān)測(cè)分站比較分散、偏遠(yuǎn),采用傳統(tǒng)的溫度測(cè)量方式周期長(zhǎng)、成本高,而且測(cè)量員必須到現(xiàn)場(chǎng)進(jìn)行測(cè)量,有些傳統(tǒng)的測(cè)量元件(熱電偶,熱電阻)組成的測(cè)量電路負(fù)責(zé),遠(yuǎn)程 智 能化低,易受干擾的缺點(diǎn),因此工作效率非常低,且不便與管理。我們可以推想這樣一個(gè)溫度檢 測(cè)的場(chǎng)景:檢測(cè)員暫時(shí)離開(kāi)了,工業(yè)設(shè)備環(huán)境溫度或檢測(cè)上網(wǎng)環(huán)境溫度超過(guò)上限或下限,隨后導(dǎo)致過(guò)熱或過(guò)冷,從而帶來(lái)了巨大的損失 。本設(shè)計(jì)有效的解決了傳統(tǒng)溫度堅(jiān)持的缺點(diǎn)和不足。目前使用較多的是基于 Inter、 PSTN 公用電話網(wǎng)或者現(xiàn)場(chǎng)總線網(wǎng)絡(luò)的有線數(shù)據(jù)傳輸方式。在工程應(yīng)用中,無(wú)線遠(yuǎn)程監(jiān)控主要采用兩種傳輸模式:建立以無(wú)線數(shù)字電臺(tái)為基礎(chǔ)的專用通信網(wǎng)絡(luò);利用 GSM/GPRS 陸地公用移動(dòng)通信網(wǎng)絡(luò),甚至運(yùn)用正在興起的 3G 網(wǎng)絡(luò)CDMA 也是一種發(fā)展趨勢(shì)。而現(xiàn)在 GSM 網(wǎng)絡(luò)覆蓋了國(guó)內(nèi) 的幾乎所有地區(qū),基于 GSM 的遠(yuǎn)程監(jiān)控系統(tǒng)一般不用考慮通信距離的問(wèn)題。本文提出了一種基于 GSM短消息的遠(yuǎn)程溫度監(jiān)測(cè)系統(tǒng)。