【正文】
表示無光標(biāo)。 指令 6:功能設(shè)置命令。 指令 7:字符發(fā)生器 RAM地址設(shè)置。 [7] TC35短信收發(fā)模塊 TC35 模塊是 Siemens 最新推出的新一代 GSM 模塊,它與 GSM phase2/2+兼容、雙頻( GSN900/GSM1800)、 RS232 數(shù)據(jù)口、符合 ETSI標(biāo)準(zhǔn) GSM0707 和 GSM0705且易于升級為 GPRS模塊;該模塊集射頻電路和基帶于一體,向用戶提供標(biāo)準(zhǔn)的 AT 命令接口,為數(shù)據(jù)、語言、短消息和傳真提供快速、可靠、安全的傳輸,方便用戶的應(yīng)用開發(fā)及設(shè)計(jì)。 GSM模塊電流變化非常大,空閑時(shí)電流小于 ,而在通話期間電流最大可達(dá) ,這就對供電電路提出了較高的要求。 圖 39 TC35 功能框 圖 圖 310為 TC35引腳圖。TEMP 接負(fù)溫度系數(shù)的熱敏電子;2429為 SIM卡引腳,分別為 CCIN、CCRST、 CCIO、 CCCLK、 CCVCC和 CCGND;3340為語音 接口用來接電話手柄;1 31和 32 腳為控制部分, 15為點(diǎn)火線 IGT(Ignition),當(dāng) TC35通電后必須給 IGT 一個(gè)大于 100ms低電平,模塊才啟動, 30 為 RTC backup, 31 為 Power down, 32 為SYNC; 1623 為數(shù)據(jù)輸入 /輸出分別為 DSR0、 RING0、 RxD0、 TxD0、 CTS0、RTS0\DTR0和 DCD0。它的所有操作都是通過 AT命令來實(shí)現(xiàn)的。通過 AT+CMGR 指令判讀短信來電,并與事先寫入單片機(jī) EEPROM 的授權(quán)手機(jī)號碼、控制命令內(nèi)容進(jìn)行比對,即可實(shí)現(xiàn)認(rèn)證短信發(fā)送方手機(jī)號碼,并 執(zhí)行相應(yīng)控制(如解防 /設(shè)防、開啟 /關(guān)閉單片機(jī)某一個(gè) I/O 端口所對應(yīng)的電器設(shè)備等)。 3AT+CMGF=1設(shè)置為 TXET模式。 全部過程如下: AT+CMGS=“ 13766832435” hello word +CMGS:199 OK 需要等到 OK 返回,才能確定是發(fā)送成功。F回車 返回: ATamp。在接收短信報(bào)警時(shí),會有 35S 的短信接收延時(shí)時(shí)間,不會對火災(zāi)的控制造成大的影響。改善了傳統(tǒng)火災(zāi)報(bào)警在無人情況下報(bào)警無效的不足,更有利于消防工作的快速進(jìn)行。 參考文獻(xiàn): [1]蔣維 ,金磊 .《 中國城市綜合減災(zāi)對策 》 .[M].中國建筑工業(yè)出版社, . [2]楊曉光 .火災(zāi)自動報(bào)警系統(tǒng)的發(fā)展和前景 [J].廣東公安科技 ,2022年第 4期 :5355. [3]岳靜 .家用火災(zāi)自動報(bào)警裝置的設(shè)計(jì) [J].安防科技 ,2022,3:3334. [4]溫度傳感器 DS18B20數(shù)據(jù)手冊 .百度文庫 . [5]煙霧傳感器 ,Q2數(shù)據(jù)手冊 .百度文庫 . [6]TLC549數(shù)據(jù)手冊 .百度文庫 . [7]LCD1602數(shù)據(jù)手冊 .百度文庫 . [8]吳玉田 ,王瑞光 ,鄭喜鳳 ,肖傳武 .《 GSM 模塊 TC35 及其應(yīng)用》 .[D].計(jì)算機(jī)測量與控制 .(8) [9]蘇林 ,全書海 ,衛(wèi)國愛 .《基于 TC35模塊的通信基站安防遙控系統(tǒng)設(shè)計(jì) 》 .[D].空軍雷達(dá)學(xué)院學(xué)報(bào) , 23卷第 2期 18 Based on the MCU remote automatic fire alarm system design Physics and Information Engineering institute Science and Technology of Electronic Information 070303001 Huang Jinsen Guiding teacher: Cai Zhi Shan Associate Professor 【 Abstract】 The system take STC89C51 as a controller, choice of temperature sensor DS18B20, MQ2 smoke sensor for the fire detection sensor, use of TC335 send text messages to designated phone a alarm mode, design suitable for housing, offices, restaurants and other places of simple and practical automatic fire alarm system. 【 Key word】 microcontroller STC89C51, DS18B20, MQ2, TC35, TLC549, fire alarm 19 附錄 1 系統(tǒng)整體電路連接圖 附錄 2 系統(tǒng) PCB圖 20 附錄 3 TC35模塊 PBC 圖 附錄 4 系統(tǒng)總程序 include include define uchar unsigned char define uint unsigned int sbit P0_0=P0^0。 uchar code csca[]=AT+CSCA=+8613800595500。 //短消息讀取命令 uchar code cmgd[]=AT+CMGD=1。 uchar i_receive, TC35_MAX, flag, flag0,flag1=0。 //臨時(shí)暫存變量 uchar temp_value,temp1_value。 uchar code str[20]={bi ye she ji}。 //4 腳 sbit lcdrw=P3^6。 sbit cs=P3^4。 //lcd 初始化 void lcdsendc(uchar c)。 //延時(shí)子程序 void display(uchar c1,uchar *str)。 unsigned char T。 for(i=0。 if(dataout==1) T=T+1。 } /***********************煙霧濃度顯示 *************************/ 22 void display_yanwu() { uchar shidu_qian,shidu_bai,shidu_shi,shidu_ge。} shidu_qian=0x30+num/1000。 tab[0]=shidu_qian。 display(0x88,tab)。 //8 位 2 行 5X10字符 delay1ms(3)。 } //發(fā)送 lcd命令 void lcdsendc(uchar c) { P1=c。 lcdbusy()。 lcdrs=1。 23 lcde=1。 lcde=0。 while((P1amp。itime。 } //顯示子程序 void display(uchar c1,uchar *str) { uchar a。\039。 } } /***************us 級延時(shí)函數(shù) *****************/ void delay2(unsigned int num) { while( num ) 。 //單片機(jī)將 DQ 拉低 delay2(90) 。 //如果 =0則初始化成功 =1則初始化失敗 delay2(50) 。 unsigned char dat = 0 。 // 給脈沖信號 dat = 1 。 } return (dat) 。 i) { DQ = 0 。 DQ = 1 。 // 跳過讀序號列號的操作 WriteOneChar(0x4E) 。 flag4=0。 // 啟動溫度轉(zhuǎn)換 Reset_DS18B20() 。 //溫度低 8位 TH=ReadOneChar()。 TL=~TL。 //整數(shù) temp1_value=(TL%16)*10/16。39。039。139。039。039。 TMPL|=TMPH。 //返回溫度值 } */ /*******************************************************************/ /*Disp_Temperature() { uchar dd。 display(0xc6,tab1)。 //定時(shí)器 1方式 定時(shí)器 0方式 1 TH1=0xfd。 EA=1。 } void delay(uint z) { 27 uint x,y。y0。 TI= 0 。 while(TI ==0)。 send_uart(0X0A)。i++) TC35_RE[i]=0。 char find_index。\039。)amp。)) return 1。) return 1。 } /*****************ok 應(yīng)答 **********************/ void TC35_ok() { delay(800)。 i_receive=SBUF。 } } ES=1。 29 TC35_ok()。 delay(100)。 delay(100)。 TC35_ok()。 flag0=0。 } } if(flag1==1) { flag1=0。a39。939。amp。 send(cmgd)。 delay(500)。 30 delay(500)。 TC35_ok()。 TC35_ok()。 delay1ms(2022)。 Init_DS18B20()。 TC35_init()。 while(1) { if(flag2==1) { flag2=0。 Read_Temperature()。 delay1ms(5)。flag5=0。 TF0=0。 if(h==40) { h=0。 } g an employment tribunal clai Employment tribunals sort out disagreements between employers and employees. You may need to make a claim to an employment tribunal if: ? you don39。re clear about the terms of the agreement. It might be best to get advice from an experienced adviser, for example, at a Citizens Advice Bureau. To find your nearest CAB, including those that give advice by , click on nearest CAB. 32 For more information about making a claim to an employment tribunal, see Employment tribunals. The (lack of) air up there Watch mCayman Islandsbased Webb, the head of Fifa39。s about how he felt and I would like to speak to him first to find out what his experience was. Uefa has opened disciplinary proceedings against CSKA for the racist behaviour of their fans during City39。s plaint. In a statement the Russian side added: We found no racist insults from fans