版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、Based on GSM module and AT89C51 connection design and applicationAbstract: This article through analyzed the GSM module and the monolithic integrated circuit connection design simply introduced the TC35i module commonly used instruction and the coding rule, introduced emphatically the TC35i module a
2、nd the AT89C51 principle of work, the periphery connection electric circuit, the software control technology, at the same time has produced some TC35i module and the AT89C51 connection application procedure, proposed AT89C51 when receive data should pay attention question, thus designed has the GSM
3、module the data transmission terminal. Key word: SIM Card GSM AT Instruction TC35i AT89C51 1 Summarize: Along with correspondence technique of development, according to the service function of the NTT DoCoMo net, just to industry control and control from a distance the realm have continuously extens
4、ion of trend.Is orientation this kind of demand, Siemens company released a new generation wireless correspondence GSM mold piece-TC35i, according to should the short news function of the mold piece, can fast safety credibility realization customer information processing etc. function, special be ap
5、plicable to control centre and terminal equipments distance very far, or inconvenience adoption wired correspondence lie quality etc. situation, for example the oil well information collect behind of deliver, the long range copy form system, city transportation direction etc. all according to the TC
6、35i mold piece to realization.2 The TC35i mold piece introductionCurrently, domestic already beginning usage of the GSM mold piece have a lot, and these of function, method of using difference not big.What this design adoption is a Siemens TC35 the TC35i of the series.On this kind of wireless mold p
7、iece function and TC35 and permit, design tightly packed, consumedly contracted the physical volume of customer's product.The TC35i and GSM2/2 and permit,dual-band(GSM900/GSM1800), RS232 the data connect, should mold piece and radio frequency electric circuit and Ji take and integral whole, prov
8、ide toward the customer standard of AT order connect, is data, speech, short news and fax provide fast, credibility, safety of deliver, convenience customer of application development and design. 2.1 The GSM AT instruction introduction that the mold has something to do with SMS in the pieceThe order
9、 for provide of the GSM- powered mold piece match GSM07.05 and GSM07.07 norm.In the GSM07.07 definition of the AT Command connect and provided a kind of which move terrace and data terminal equipments of in general use connect;The GSM07.05 made to the short news detailed of provision.At short news m
10、old piece receive network hair of short news, can send out a designation information through a string of, the data terminal equipments can send out toward the GSM mold piece various order.The instruction of GSM AT having something to do with SMS such as List1 to show.The instruction of GSM AT gather
11、, is signed letter, Motorola and HP etc. factory house by Nokia, love to together develop for the GSM system of, among them include control SMS(Short Message Service). List1 With SMS some related instruction of GSM ATAT instruction 草篳楱沲驤荑蹙瘟嘲蕢忘function 謊莓篩釩兕藥忍太宣悠施AT+CMGC 傭勉瞟潯隉崦牲荀打囡牡Send an SMS commen
12、d(issue a message order) 唱書(shū)檢炫屯覷泓蹇玢薰隴AT+CMGD 壕箴笱柑賞市隔鉀廁坎臁Delete SMS message (delete SIM card the information of the memory) 刪曖羸芥瑞已渺疒鱧旖瑯AT+CMGF 廄冗豇悖冫釬賚檸很弳擋Select SMS message format(choice short news information format:0-PDU;1-文本) 蚓到潘降糅水亂杰又塑斫AT+CMGL 頏遜漳艘甯中葚鷲逸藤泯List SMS message from preferred store(list
13、short PDU/TEXT of the news format in the SIM card:In order to read 0"REC UNREAD", one"REC READ" in order to have already read, 2"STOU NSENT"s is a due-out, 3"STOSENT" is already hair, 4"ALL" is all嫠展樟抑片事嚳鰭螺篦佚AT+CMGR 柴漓噫霧鵪繕陀筒膨聵簾Read SMS message (read
14、short news) 俾渤奪鄔褸墻髏帷有獨(dú)契AT+CMGS 瘓麴合嬙蓯軌綜香贍啷氮Send SMS message (the hair short news) 獰芹尕賅宮場(chǎng)隱痹甕裥毹AT+CMGW 徐袈剩襪厶渴膻鍥咽賺歸Write SMS message to memory (to write in the short news of due-out in the SIM memory) 櫝苔比擱弁超樺關(guān)付諧個(gè)AT+CNMI 榱掩頷蟄螋寅蓿彤孿愛(ài)挫New SMS message storage(the manifestation lately- receive short news) 樓螢招
15、狗邋筇琢脊潘癡敬AT+CPMS 你搽蘊(yùn)亭錨嬙昶體忤疰詵Preferred SMS message storage (the choice short news memory) 町璜蓽宛我牟液咭懦不淡AT+CSCA 柒盒揭拖螂直天盈吞斡喀SMS service center address(the choice short news memory) 噸暝氆綮蕭?cǎi)哥旒嬦膬?nèi)由AT+CSCB 邁街欠眠泯俾訛熠徭頷船Select cell broadcast message messages (choice beehive broadcasting information) 砣惟菠垛榔憮涸傍屹吏躥AT+
16、CSMP 租夕蜴瑾肺革詳掃攏愆眼Set SMS text mode parameters(constitution short news text origin mode parameter) 婦繕?lè)€(wěn)確縊湊祈翩巨募夯 The PDU code ruleSend out short news in common use Text and PDU(Protocol Data Unit, agreement data unit) mode currently.The usage Text mode receive and dispatch a message code simple, realiza
17、tion get up very easy, but the biggest weakness be to can't receive and dispatch Chinese message;But PDU mode not only support Chinese message, also the ability send out English message.The PDU mode receive and dispatch a message can the usage be 3 kinds of to code:7-bit, 8-bit and UCS2 code.7-t
18、he bit code to used for send out common of ASCII character list, 8-bit code Be usually used for sending out data news, UCS2 code used for sending out Unicode character list.General PDU's code is constitute by ABCDEFGHIJKLM 13. A:The address length of the message center, 216 enter to make number(
19、one word stanza)B:The number type of the message center, 216 enter to make number. C:Message center number, B+C length will from the data decision in the A. D:Document head word stanza, 216 enter to make number. E:Information type, 216 enter to make number. F:Drive call number length, 216 enter to m
20、ake number. G:Drive call number type, 216 enter to make number, take value together B. H:Drive call number, length from data within F decision. I:Agreement marking, 216 enter to make number. J:The data code a project, 216 enter to make number. K:Term of validity, 216 enter to make number. L:Customer
21、 data length, 216 enter to make number. M:Customer's data, its length from the data decision in the L.Enactment in J adoption UCS2 code, here is the Unicode character list of Chinese-English. 3 the hardware of the TC35i and list slice machine connect a people's electric circuitThe TC35i mold
22、 piece is main to save according to the processor, GSM radio frequency mold piece, power supply mold piece, Shan from the GSM, the ZIF conjunction machine, antenna connect six part constitute.Connect machine with a list slice machine realization electric circuit to connect through a ZIF, should conn
23、ect read or send out the TC35i mold piece in of data.4 list slice the software of the machine and TC35i connect and control principleList slice the software of the machine and TC35i connect in fact be list slice the machine pass AT instruction control cellular phone of control technique, first const
24、itution the TC35i mold piece of work mode:AT+CMGF=n, n=0 is a PDU mode;N=1 write an article this mode;Usually the constitution is a PDU mode, under this kind of mode, ability transmission or accept a transparent data.(customer from definition data)AT+CMGR=n in order to read the short news data of th
25、e TC35i mold piece, the n is a short news number.AT+CMGL=n in order to list the short news in the TC35i mold piece, n=0 is the short news which read, n=a the short news which have been already read, n=2 short news which sent out, n=3 for have already send out of short news n=4 is all short news.AT+C
26、MGD=the n is the short news which delete the TC35i mold piece and the n is a short news serial number. 4 Master routine The software plait distance pass to write in toward the TC35i dissimilarity of AT instruction ability completion variety function, such as network debarkation, read SIM card top te
27、lephone number, send out SMS news and receive SMS news etc. The instruction sign, constant, PDU data.etc. of AT instruction all code form transmission by ASCII;The transmission transparent data have to pair of the TC35i mold piece of work mode constitution is PDU mode;List slice machine toward the T
28、C35i mold piece after send out each instruction have to with return to car sign conduct and actions should instruction of be over, for example list slice the machine send out instruction in"AT+ CMGF=0" toward the cellular phone, its ASCII code sequence is"41 H, 54 H, 2 BH, 42 H, 4 DH,
29、 47 H, 46 H, 3 DH, 30 H, 0 DH", the last word stanza 0 DH is to return to car sign, mean that instruction be over, if have no this to return to car sign, the cellular phone won't identify this instruction.When the AT instruction which receive to an integrity of the TC35i mold piece after, t
30、he TC35i mold piece not summary execution should instruction, but first just receive of the ASCII of the AT instruction code sequence all anti- send out;(contain 0 DH)Secondly send out a the ASCII which return to car sign with a carriage return sign to code, namely 0 DH with 0 AH;Then performance sh
31、ould instruction. The list slice machine read the PDU data of the TC35i mold piece, originality data should is 16 enter make number, but read back of data still is an ASCII mean of 16 enter make number.So a word stanza of 16 entered to make number and then became 2 word stanza of ASMII code.But the
32、PDU data data word stanza length within pack part still is actual character list length.But isn't the word stanza which become ASCII code length, this at plait distance should special attention, otherwise receive of data not integrity.The list slice machine is after receiving a PDU data pack dat
33、a have to its instauration become 16 enter make a data, its calculate way as follows:Establish a for the ASCII code receive, b for the conversion is behind of 16 enter make number.So if a<39 H, b=a-30 H;If a>39 H, b=h-07 H a-30.End pair of in front and back two pieces merger is a word stanza.
34、5 Concluding remark The usage cellular phone mold piece benefit is at the system integration, the cost be lower.Install correspondence circuit in secluded region etc. difficulty or uneconomical place, engineering service facilities can freedom vivid of constitution, no longer be subjected to geograp
35、hy condition of restriction.In fine, GSM mold piece the price be cheap, application extensive, application the foreground be captivating, pass with cellular phone mold the piece connect can very convenience of design customer demand of the data receive terminal. 基于GSM模塊與AT89C51的接口設(shè)計(jì)及應(yīng)用摘 要 本文通過(guò)分析GSM模
36、塊與單片機(jī)的接口設(shè)計(jì)簡(jiǎn)單介紹了TC35i模塊的常用指令及編碼規(guī)那么,著重介紹了TC35i模塊與AT89C51的工作原理、外圍接口電路、軟件控制技術(shù),同時(shí)給出了一些TC35i模塊與AT89C51接口的應(yīng)用程序,提出了AT89C51在接收數(shù)據(jù)時(shí)應(yīng)該注意的問(wèn)題,從而設(shè)計(jì)出具有GSM模塊的數(shù)據(jù)傳輸終端。 關(guān)鍵詞 SIM卡 GSM AT指令 TC35i AT89C51 1 概述: 隨著通信技術(shù)的開(kāi)展,基于移動(dòng)通信網(wǎng)絡(luò)效勞功能,正向工業(yè)控制和遙控領(lǐng)域有不斷擴(kuò)大的趨勢(shì)。為適應(yīng)這種需要,西門(mén)子公司推出了新一代無(wú)線(xiàn)通信GSM模塊TC35i,基于該模塊的短消息功能,可以快速平安可靠地實(shí)現(xiàn)用戶(hù)信息處理等功能,特別適
37、用于控制中心與終端設(shè)備距離很遠(yuǎn),或不便采用有線(xiàn)通信介質(zhì)等場(chǎng)合,例如油井信息采集后的傳輸、遠(yuǎn)程抄表系統(tǒng)、城市交通導(dǎo)向等均基于TC35i模塊來(lái)實(shí)現(xiàn)。 2 TC35i模塊介紹 目前,國(guó)內(nèi)已經(jīng)開(kāi)始使用的GSM模塊有很多,而且這些模塊的功能、用法差異不大。本設(shè)計(jì)采用的是西門(mén)子TC35系列的TC35i 。這種無(wú)線(xiàn)模塊功能上與TC35兼容,設(shè)計(jì)緊湊,大大縮小了用戶(hù)產(chǎn)品的體積。TC35i與GSM2/2兼容、雙頻GSM900/GSM1800、RS232數(shù)據(jù)接口,該模塊及射頻電路和基帶與一體,向用戶(hù)提供標(biāo)準(zhǔn)的AT命令接口,為數(shù)據(jù)、語(yǔ)音、短消息和 提供快速、可靠、平安的傳輸,方便用戶(hù)的應(yīng)用開(kāi)發(fā)及設(shè)計(jì)。 2.1 模塊
38、中與SMS有關(guān)的GSM AT指令介紹 GSM引擎模塊提供的命令符合GSM07.05和GSM07.07標(biāo)準(zhǔn)。GSM07.07中定義的AT Command接口,提供了一種移動(dòng)平臺(tái)與數(shù)據(jù)終端設(shè)備之間的通用接口;GSM07.05對(duì)短消息作了詳細(xì)的規(guī)定。在短消息模塊收到網(wǎng)絡(luò)發(fā)來(lái)的短消息時(shí),能夠通過(guò)串口發(fā)送指示信息,數(shù)據(jù)終端設(shè)備可以向GSM模塊發(fā)送各種命令。與SMS有關(guān)的GSM AT指令如表一所示。GSM AT指令集,是由諾基亞、愛(ài)立信、摩托羅拉和HP等廠(chǎng)家共同為GSM系統(tǒng)研制的,其中包含了對(duì)SMSShort Message Service的控制。 2.2 PDU編碼規(guī)那么 目前,發(fā)送短消息常用Text和
39、PDU(Protocol Data Unit,協(xié)議數(shù)據(jù)單元)模式。使用Text模式收發(fā)短信代碼簡(jiǎn)單,實(shí)現(xiàn)起來(lái)十分容易,但最大的缺點(diǎn)是不能收發(fā)中文短信;而PDU模式不僅支持中文短信,也能發(fā)送英文短信。PDU模式收發(fā)短信可以使用3種編碼:7-bit、8-bit和UCS2編碼。7-bit編碼用于發(fā)送普通的ASCII字符,8-bit編碼通常用于發(fā)送數(shù)據(jù)消息, UCS2編碼用于發(fā)送Unicode字符。一般的PDU編碼由ABCDEFGHIJKLM十三項(xiàng)組成。 A:短信息中心地址長(zhǎng)度,2位十六進(jìn)制數(shù)1字節(jié) B:短信息中心號(hào)碼類(lèi)型,2位十六進(jìn)制數(shù)。 表一 與SMS相關(guān)的假設(shè)干GSM AT指令 AT指令 卅偶棹
40、扣訃豹錮袂慮鏍漭功 能 率妾茺舭空淖娜蓰奪赧鏵AT+CMGC 驅(qū)漏管痘壺串羌粲搗奇邪Send an SMS commend(發(fā)出一條短信息命令) 揆酌瞍筐倦犸雙杏漆陜傅A(chǔ)T+CMGD 刃泖妲眵閣握家畚咧爪魏Delete SMS message (刪除SIM卡內(nèi)存的信息) 泖擰坷而鰣頗蜣摶蝣銪卵AT+CMGF 焦嶁僬髦帛硫嗉徹堆蒜何Select SMS message format(選擇短消息信息格式:0-PDU;1-文本) 粥娃瘀拮鄲蘧灸醇涉鈀寤AT+CMGL 韙馀恁婺仕巳燜膜聯(lián)諦追List SMS message from preferred store(列出SIM卡中的短消息格式PDU/T
41、EXT:0“REC UNREAD為未讀,1“REC READ為已讀,2“STOU NSENT為待發(fā),3“STOSENT為已發(fā),4“ALL為全部 簏髻姜卡盜闈才笏橛丸逄AT+CMGR 脈謎勾優(yōu)柚梅籽槽昀唷懺Read SMS message (讀短消息) 鉀蛘望熠浜弈在碲僻梭逃AT+CMGS 鑭莪丞鰭睞眩懶帔酶鵓侶Send SMS message (發(fā)短消息) 階酥臣嶝脊煽鄖棟啪贍淳AT+CMGW 狒垡阿慣繹叮汜倪劾蓼蘸Write SMS message to memory (向SIM內(nèi)存中寫(xiě)入待發(fā)的短消息) 縣邑孺輥贄誕犯范芰靴殺AT+CNMI 漠蔚弒慨李琴乒株舸抽拘New SMS messag
42、e storage(顯示新收到的短消息) 坭淙謹(jǐn)楓跎鰭郁甥杠冼澗AT+CPMS 銑咕覓織嬙呈鶘匝硤鶚娑Preferred SMS message storage (選擇短消息內(nèi)存) 開(kāi)蔫茌境趄律鶉砭目琬褫AT+CSCA 肽需吃雨蛾釹白闡塑魃凝SMS service center address(短消息中心地址) 庖甫悻仕璋楦姜郾墀靡侖AT+CSCB 倆封意廓駐號(hào)乩痕喻糨終Select cell broadcast message messages (選擇蜂窩播送信息) 拆栓鉻押闖虺晡派劬音鱸AT+CSMP 寧嫘咼政賒獨(dú)罨煥沛煮踔Set SMS text mode parameters(設(shè)置短消息文本模式參數(shù)) 莛云害劂認(rèn)竽色蝕函隘愉C:短信息中心號(hào)碼,B+C的長(zhǎng)度將由A中的數(shù)據(jù)決定。 D:文件頭字節(jié),2位十六進(jìn)制數(shù)。 E:信息類(lèi)型,2位十六進(jìn)制數(shù)。 F
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 建筑木材質(zhì)量評(píng)估行業(yè)市場(chǎng)調(diào)研分析報(bào)告
- 蒸汽拖把蒸汽清潔器械項(xiàng)目運(yùn)營(yíng)指導(dǎo)方案
- 答辯魔法書(shū):輕松搞定-高校學(xué)術(shù)答辯全方位指南
- 醫(yī)療分析儀器產(chǎn)品供應(yīng)鏈分析
- 狗用驅(qū)蟲(chóng)劑商業(yè)機(jī)會(huì)挖掘與戰(zhàn)略布局策略研究報(bào)告
- 廢物再生行業(yè)經(jīng)營(yíng)分析報(bào)告
- 地質(zhì)勘探行業(yè)經(jīng)營(yíng)分析報(bào)告
- 矯形襪項(xiàng)目營(yíng)銷(xiāo)計(jì)劃書(shū)
- 醫(yī)療設(shè)備包裝行業(yè)營(yíng)銷(xiāo)策略方案
- 冷鏈乳制品行業(yè)經(jīng)營(yíng)分析報(bào)告
- 監(jiān)理單位工程質(zhì)量責(zé)任登記表
- 集團(tuán)型企業(yè)印控管理平臺(tái)建設(shè)方案
- 樂(lè)高零件分類(lèi)圖鑒
- 靜脈采血PPTPPT幻燈片課件
- 肺腫瘤熱消融并發(fā)癥的預(yù)防及處理[兼容模式]
- 倒閘操作票范本
- 漢字筆畫(huà)名稱(chēng)表(拼音版)
- 校車(chē)使用(許可)申請(qǐng)表
- 月度質(zhì)量例會(huì)PPT模板
- 故鄉(xiāng)雨正普五線(xiàn)譜(正譜)
- YD_T 3956-2021 電信網(wǎng)和互聯(lián)網(wǎng)數(shù)據(jù)安全評(píng)估規(guī)范_(高清版)
評(píng)論
0/150
提交評(píng)論