




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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) 唱书检炫屯觑泓蹇玢薰陇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) 俾渤夺邬褛墙髅帷有独契AT+CMGS 痪麴合嫱苁轨综香赡啷氮Send SMS message (the hair short news) 狞芹尕赅宫场隐痹瓮裥毹AT+CMGW 徐袈剩袜厶渴膻锲咽赚归Write SMS message to memory (to write in the short news of due-out in the SIM memory) 椟苔比搁弁超桦关付谐个AT+CNMI 榱掩颔蛰螋寅蓿彤孪爱挫New SMS message storage(the manifestation lately- receive short news) 楼萤招
15、狗邋筇琢脊潘痴敬AT+CPMS 你搽蕴亭锚嫱昶体忤疰诜Preferred SMS message storage (the choice short news memory) 町璜荜宛我牟液咭懦不淡AT+CSCA 柒盒揭拖螂直天盈吞斡喀SMS service center address(the choice short news memory) 吨暝氆綮萧窀珈纭崮内由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) 妇缮稳确缢凑祈翩巨募夯 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的接口设计及应用摘 要 本文通过分析GSM模
36、块与单片机的接口设计简单介绍了TC35i模块的常用指令及编码规那么,着重介绍了TC35i模块与AT89C51的工作原理、外围接口电路、软件控制技术,同时给出了一些TC35i模块与AT89C51接口的应用程序,提出了AT89C51在接收数据时应该注意的问题,从而设计出具有GSM模块的数据传输终端。 关键词 SIM卡 GSM AT指令 TC35i AT89C51 1 概述: 随着通信技术的开展,基于移动通信网络效劳功能,正向工业控制和遥控领域有不断扩大的趋势。为适应这种需要,西门子公司推出了新一代无线通信GSM模块TC35i,基于该模块的短消息功能,可以快速平安可靠地实现用户信息处理等功能,特别适
37、用于控制中心与终端设备距离很远,或不便采用有线通信介质等场合,例如油井信息采集后的传输、远程抄表系统、城市交通导向等均基于TC35i模块来实现。 2 TC35i模块介绍 目前,国内已经开始使用的GSM模块有很多,而且这些模块的功能、用法差异不大。本设计采用的是西门子TC35系列的TC35i 。这种无线模块功能上与TC35兼容,设计紧凑,大大缩小了用户产品的体积。TC35i与GSM2/2兼容、双频GSM900/GSM1800、RS232数据接口,该模块及射频电路和基带与一体,向用户提供标准的AT命令接口,为数据、语音、短消息和 提供快速、可靠、平安的传输,方便用户的应用开发及设计。 2.1 模块
38、中与SMS有关的GSM AT指令介绍 GSM引擎模块提供的命令符合GSM07.05和GSM07.07标准。GSM07.07中定义的AT Command接口,提供了一种移动平台与数据终端设备之间的通用接口;GSM07.05对短消息作了详细的规定。在短消息模块收到网络发来的短消息时,能够通过串口发送指示信息,数据终端设备可以向GSM模块发送各种命令。与SMS有关的GSM AT指令如表一所示。GSM AT指令集,是由诺基亚、爱立信、摩托罗拉和HP等厂家共同为GSM系统研制的,其中包含了对SMSShort Message Service的控制。 2.2 PDU编码规那么 目前,发送短消息常用Text和
39、PDU(Protocol Data Unit,协议数据单元)模式。使用Text模式收发短信代码简单,实现起来十分容易,但最大的缺点是不能收发中文短信;而PDU模式不仅支持中文短信,也能发送英文短信。PDU模式收发短信可以使用3种编码:7-bit、8-bit和UCS2编码。7-bit编码用于发送普通的ASCII字符,8-bit编码通常用于发送数据消息, UCS2编码用于发送Unicode字符。一般的PDU编码由ABCDEFGHIJKLM十三项组成。 A:短信息中心地址长度,2位十六进制数1字节 B:短信息中心号码类型,2位十六进制数。 表一 与SMS相关的假设干GSM AT指令 AT指令 卅偶棹
40、扣讣豹锢袂虑镙漭功 能 率妾茺舭空淖娜蓰夺赧铧AT+CMGC 驱漏管痘壶串羌粲捣奇邪Send an SMS commend(发出一条短信息命令) 揆酌瞍筐倦犸双杏漆陕傅AT+CMGD 刃泖妲眵阁握家畚咧爪魏Delete SMS message (删除SIM卡内存的信息) 泖拧坷而鲥颇蜣抟蝣铕卵AT+CMGF 焦嵝僬髦帛硫嗉彻堆蒜何Select SMS message format(选择短消息信息格式:0-PDU;1-文本) 粥娃瘀拮郸蘧灸醇涉钯寤AT+CMGL 韪馀恁婺仕巳焖膜联谛追List SMS message from preferred store(列出SIM卡中的短消息格式PDU/T
41、EXT:0“REC UNREAD为未读,1“REC READ为已读,2“STOU NSENT为待发,3“STOSENT为已发,4“ALL为全部 簏髻姜卡盗闱才笏橛丸逄AT+CMGR 脉谜勾优柚梅籽槽昀唷忏Read SMS message (读短消息) 钾蛘望熠浜弈在碲僻梭逃AT+CMGS 镧莪丞鳍睐眩懒帔酶鹁侣Send SMS message (发短消息) 阶酥臣嶝脊煽郧栋啪赡淳AT+CMGW 狒垡阿惯绎叮汜倪劾蓼蘸Write SMS message to memory (向SIM内存中写入待发的短消息) 县邑孺辊贽诞犯范芰靴杀AT+CNMI 漠蔚弑慨李琴乒株舸抽拘New SMS messag
42、e storage(显示新收到的短消息) 坭淙谨枫跎鳍郁甥杠冼涧AT+CPMS 铣咕觅织嫱呈鹕匝硖鹗娑Preferred SMS message storage (选择短消息内存) 开蔫茌境趄律鹑砭目琬褫AT+CSCA 肽需吃雨蛾钕白阐塑魃凝SMS service center address(短消息中心地址) 庖甫悻仕璋楦姜郾墀靡仑AT+CSCB 俩封意廓驻号乩痕喻糨终Select cell broadcast message messages (选择蜂窝播送信息) 拆栓铬押闯虺晡派劬音鲈AT+CSMP 宁嫘呙政赊独罨焕沛煮踔Set SMS text mode parameters(设置短消息文本模式参数) 莛云害劂认竽色蚀函隘愉C:短信息中心号码,B+C的长度将由A中的数据决定。 D:文件头字节,2位十六进制数。 E:信息类型,2位十六进制数。 F
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 药物外渗护理不良事件
- 西藏那曲地区安多县2025届三下数学期末教学质量检测试题含解析
- 6S基本知识培训课件
- 云南省昆明市五华区2024-2025学年高三元月三诊一模语文试题文试题含解析
- 河南省安阳市林州第一中学2025届高三5月全程模拟考试数学试题试卷含解析
- 商水县2025届数学四年级第二学期期末统考试题含解析
- 2025年江苏省南京市玄武区溧水高中第二学期高三第一次模拟考试数学试题含解析
- 中国农业大学《写意人物》2023-2024学年第二学期期末试卷
- 厦门医学院《遥感影像处理与分析》2023-2024学年第二学期期末试卷
- 2025年广州市番禹区重点中学初三下学期模拟测试(三)化学试题含解析
- 稳固结构的探析-说课课件
- 八大作业票证的安全管理制度
- 手术基本操作培训课件
- 淘宝客服操作流程
- GB 1886.358-2022食品安全国家标准食品添加剂磷脂
- GB/T 31117-2014船用辅锅炉安全技术要求
- GA/T 832-2014道路交通安全违法行为图像取证技术规范
- 以问题为导向的健康照顾教学课件
- 新版《土地开发整理项目预算定额标准》讲解
- 乌灵胶囊幻灯课件
- DB44∕T 1188-2013 电动汽车充电站安全要求
评论
0/150
提交评论