外文翻译--TC35I模块介绍.doc_第1页
外文翻译--TC35I模块介绍.doc_第2页
外文翻译--TC35I模块介绍.doc_第3页
外文翻译--TC35I模块介绍.doc_第4页
外文翻译--TC35I模块介绍.doc_第5页
免费预览已结束,剩余8页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1 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 piece function and TC35 and permit, design tightly packed, consumedly contracted the physical volume of customers 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, provide 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 Usely AT introductionThe follow is uselly the At. 3 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, realization get up very easy, but the biggest weakness be to cant 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-the 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 PDUs code is constitute by ABCDEFGHIJKLM 13. A:The address length of the message center, 216 enter to make number(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 make 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 data length, 216 enter to make number. Usely ATAT instruction function AT+CMGC Send an SMS commend(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 short PDU/TEXT of the news format in the SIM card:In order to read 0REC UNREAD, oneREC READ in order to have already read, 2STOU NSENTs is a due-out, 3STOSENT is already hair, 4ALL is allAT+CMGR Read SMS message (read 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) 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+CSMP Set SMS text mode parameters(constitution short news text origin mode parameter) M:Customers 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. 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 constitution 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 the 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+CMGD=the n is the short news which delete the TC35i mold piece and the n is a short news serial number. 5 RS-232 InterfaceRS-232 is one of the normally used interfaces at any time, it not only built in every PC-set, but also built in any types of computers which are from microcontroller to host computers, and equipment connected with them. The general usage of RS-232 is to connect a modern, the other arrangements with RS-232 interfaces include printer, data collection module, testing device and control loop. RS-232 can be also used in the simple link of any type of computer.RS-232 is designed to deal with the communication between two arrangements with distance limitation from 50 to 100ft, which depend on Potter rate and type of electric cable. Because of wide application of RS-232 port, its other usage is to link another type of adapter converted form the port.For example, a simple loop changes a RS-232 into a RS-485 port. The port can be link with several devices by means of a long lead. Non-equilibrium lead is used to linked to RS-232. Although non-equilibrium should something avoidable, it only refers to the electric property of the signal in lead. In a non-equilibrium lead, signal voltage is applied to another lead, all has another technical term “signal end”.Advantages in RS-232RS-232 is used everywhere. Every PC-set has one or more RS-232 ports. The renewed computers sustain other serial interfaces like USB. But RS-232 can do many things which USB cant do.In the micro-controller interface chip can be easily used to change into RS-232.The jointing distance can reach 50-100ft. Many external interfaces are not used for too long distance. The longest distance joint of USB can reach 16ft. The distance between parallel printer interface on the PC-set and the host computer can reach 10 to 15ft, or 30ft by using Type TEEE-1284B driver. But RS-232 can use the longer electric cable.If every RS-232 port is linked with a modern, Telephone network can used to send data in the rage of the world.For a double link, 3 leads are needed. A parallel circuit generally needs 8 data lines, two or more control signal lines and ground wires。It is more expensive if more leads and bigger connectors are used.Disadvantages in RS-232If one side of link needs parallel data, it has to transform serial into parallel data. But if it is easily realized a UART is used.Because of the serial port so useful, it is maybe harder to look for a free serial port PC-set may have many serial ports, but a system maybe cant distribute a sole breaking enquiring signal to every serial port. Most micro-controller only has one hardware serial port.No more than 2 set in one link.The biggest designated transmitting rate of data is 2000bits/s.But many interface chip can surpass this numerical value, especially in the short distance link.A longer link needs a different interface.basic signals of the double RS-232 communication as follows:TD. Transform data DTE to DCE Its also called TX and TXD.RD. Transform data DCE to DTE Its also called RX and RXD.SG. Signal land. Its also called GND and SGND.VoltageLogic0 is a positive RS-232 voltage, the logic electric level of RS-232 is indicated with positive-negative, and not only use the positive voltage signal of the 5VTTL and CMOS logic to indicate. In the data logger(TD)of RS-232,a logic0 is defined equal to or higher than +5V, and a Logic1 defined equal to -5V or lower than -5V. In another word, signal use the negative logic, in this logic, the negative voltage is Logic1.Control signal uses the same voltage, but it uses positive logic. A positive voltage indicates this function is on and a negative voltage indicates this function is off.RS-232 interface chip transform these signals in reverse. In output pin of one UART, A logic1 datum or a off control signal is close to 5V, it produces negative voltage on the interface of RS-232.A logic0 datum or an on-control signal is close to 0V, it produces a positive voltage on the interface of RS-232.Because of the RS-232 receptor maybe at the end of a long electrical cable, when the signal reaches the receiver, its voltage is probably weaker or with the noise signal. In consideration of this circumstance minimum at the receiver should be lower than the voltage at the driver. An input higher than +3V on the RD are a Logic0, or on a control input is open. An input lower than -3V on the RD are a Logic1, or on a control input is off. According to this standard, input logic electrical level between -3V and +3V have no definition Noise tolerable limitation or voltage tolerable limitation is difference output voltage and input voltage. The big voltage undulation from RS-232 lead to a noise tolerable limitation wider than logic5TTL. For example, even thought a output from RS-232 driver is the smallest +5V,its also be weaken in the receiver or the noise peak rise to 2V, and still is a effective Logic0.Many outputs from RS-232 have the wider voltage undulation : 9V and 12V are very common affairs. All these affairs can lead to a noise limitation. The biggest permitting voltage undulation is 15V, even though the receive must have no harm to deal with the voltage higher to 25V.The other two technical terms concern with RS-232 to be used is Mark and Space. Space is Logic0 and Mark is Logic1. These two technical terms which was used by the machine recording instrument to record binary data in many years ago, each of them are representation physical and blank.Clocking Limitation:TIA/EIA-232 including smallest and biggest clocking stipulate. All out the RS-232 interface chips all accord this stipulate.Appointed revolving speed limited the biggest Potter rate of interface.The revolving rate is measure to the rate of speed change when output cut-over voltage, and describe the change of instantaneous velocity in The advantage in limited the revolving is for improve signal quality by in the matter of fact to limited the problem which is due to voltage deflection, voltage deflection occur the signal in the long distance link which has high-speed rise and descend. There more detailed narrations to this problem are in capter10.But revolving velocity also limited to the biggest speed of a link. Under speed of 30V/s, a output need 0.3 s to cut-over time in 166 times.Actually, because the UART to read input data in near the middle of the digit, and also because many times consult clock in very accurate, usually can may use the digit width for cut-over time as short 5 to 10 time safety. Considered these conditions, some interface chips permitting 115kbps or more higher Potter rate, even though its infringe the suggestion this standard.Except for has a biggest cut-over velocity, RS-232 driver also must according the lowest standard to ensure the signal no stopover in the undefined area between the logical condition. To control signal other 40bps and the lower signal. Signal lines must spend time not surpass 1s in the transmit area between the effective Logic1 and Logic0.To other data and time signal this limitation place wide is 4% or under 20 bps is 2s. Frequencies of signal rise and descend also probably close to be equal.Transformation between 5V logical and RS-232Many micro-controllers have asynchronous serial ports, but their input and output rather to use 5V logic than to RS-232 voltage. To link 5V logic to a RS-232 port need to transform into RS-232 electrical level and transform from RS-232 electrical level into 5V logicTo use of 5V logic, I supposed to the use of electrical level of TTL or CMOS logic chips, these chips are supply electricity by a single +5V electrical, signal electrical level refer to grounding electrical level. Tables 6-2 indicate this. I also supposed to positive logic, in here, the logical high electric level is logic1.To TTL logic, a logical low output must below 0.4V, a logical low input must below 0.8V. A logical high output must be 2.4V at least and a logical high input must be 2V at least. To use of these logical electrical levels, an interface may have noise signal at 0.4V and not necessarily to make mistake.These logical electrical levels are used into TTL logic of early days standard 7400 series and other drivers series, including 74LS 74F and 74AL STTL. The NMOS technology early is used to make micro-controllers also use these helical electrical levels.Most CMOS chips definite different logical electrical levels and have wider noise tolerable. A logical low CMOS output below 0.1V and logical low input may higher to 20% electrical voltage, or to electrical voltage in 5V can reach to 1V. A logical high output to be 4.9V at least and logical high input must reach to electronically voltages 70% at least, or to 5V electrical input reach to 3.5V. To use of this series of logical electrical level, including 4000 series, 74HC and 74AC logic. Some of CMOS chips have TTL compatible input and CMOS compatible output. Its make them can link with CMOS or TTL logic directly. The chips of follow to this usual practice including 74HC logic series and most of micro-controllers.1、 TC35i模块介绍 目前,国内已经开始使用的GSM模块有很多,而且这些模块的功能、用法差别不大。本设计采用的是西门子TC35系列的TC35i 。这种无线模块功能上与TC35兼容,设计紧凑,大大缩小了用户产品的体积。TC35i与GSM2/2兼容、双频(GSM900/GSM1800)、RS232数据接口,该模块及射频电路和基带与一体,向用户提供标准的AT命令接口,为数据、语音、短消息和传真提供快速、可靠、安全的传输,方便用户的应用开发及设计。2、常用AT指令如下表所示为常用At指令:常用AT指令AT指令 功 能 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/TEXT: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 message 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(设置短消息文本模式参数) 3、 PDU编码规则目前,发送短消息常用Text和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位十六进制数。 C:短信息中心号码,B+C的长度将由A中的数据决定。 D:文件头字节,2位十六进制数。 E:信息类型,2位十六进制数。 F:被叫号码长度,2位十六进制数。 G:被叫号码类型,2位十六进制数,取值同B。 H:被叫号码,长度由F中的数据决定。 I:协议标识,2位十六进制数。 J:数据编码方案,2位十六进制数。 K:有效期,2位十六进制数。 L:用户数据长度,2位十六进制数。 M:用户数据,其长度由L中的数据决定。J中设定采用UCS2编码,这里是中英文的Unicode字符。 4 单片机与TC35i的软件接口及控制原理 单片机与TC35i的软件接口其实就是单片机通过AT指令控制手机的控制技术,首先设置TC35i模块的工作模式:AT+CMGF=n,n=0为PDU模式;n=1为文本模式;通常设置为PDU模式,在这种模式下,能传送或接受透明数据(用户自定义数据)。AT+CMGR=n为读TC35i模块短消息数据,n为短消息号。AT+CMGL=n为列出TC35i模块内的短消息,n=0是未读的短消息,n=1位已读的短消息,n=2位未发送的短消息,n=3为已发送的短消息n=4为所有短消息。AT+CMGD=n为删除TC35i模块的短消息,n为短消息编号。5 RS-232串行接口RS-232是在任何时候都常用的接口之一。它不仅已经被内置于每台PC,而且已被内置于从微控制器到主机的多种类型的电脑和与它们连接的设备。RS-232的最通常得用处是连接到一个Modem,其他拥有RS-232接口的设备包括打印机,数据采集模块,测试装置和控制回路。你也可以将RS-232用在任何类型得计算机之间的简单连接中。RS-232是设计来处理两台设备之间的通信的,距离限制为50到100f,这决定于波特率和电缆类型。因为RS-232端口被广泛应用,它的另一个用途是与一个将这个接口转换成另一种类型的适配器相连。例如,一个简单的回路将一个RS-232端口转换成一个RS-485端口,这个端口可以和多台设备相连并且可以使用更长的导线连线。RS-232连接使用非平衡导线。尽管一个非平衡的状态听起来像是一些应该避免的东西,在这里它仅仅是指导线中的信号的电气特性。在一条非平衡导线中,信号电压加到一条导线上,所有的信号电压都使用一个公共的接地线。这种类型的接口的另一个术语是单端。特性RS-232有几个优点:n 它是无处不在的。每一台PC机都有一个或更多的RS-232端口。更新的计算机现在支持其他诸如USB这样的串行接口,但是RS-232可以做很多USB无法做的事情。n 在微控制器中,接口芯片使得将一个5V串口转换成RS-232变得很容易。n 连接距离可以达到50到100ft。大多数的外设接口都不会用于太长的距离。USB连接最长可以达到16ft,PC机的并口打印机接口与主机的距离可以达到10到15ft,或者利用IEEE-1284B型驱动器可以达到30ft。但是RS-232可以使用更长的电缆。如果每一个RS-232端口与一个Modem相连,你可以使用电话网在世界范围内发送数据。n 对于一个双向连接,你只需要3条导线。一个并行连接一般需要8条数据线,两条或者更多的控制信号线,和几条接地线。所有的导线和更大的连接器使得价格累计起来就比较高了。RS-232的缺点包括以下这些:n 如果连接的另一头需要并行数据,它不得不将这个串口数据转换成并行数据。但是利用一个UART,这很容易实现。n 串口是如此的有用,以至于寻找一个未用的串口可能会比较困难。PC机可以有多个串口,但是一个系统可能无法为每一个串口分配一个唯一的中断请求信号。大多数的微控制器只有一个硬件串口。n 在一个连接中不能有超过2台以上的设备。n 指定的最大数据传输速率是每秒20000位。但是,很多接口芯片可以超过这个数值,尤其是在短程连接上。n 很长的连接需要一个不同的接口。双向RS-232通信的3个基本信号如下:TD:将数据从DCE传输到DCE也被称作TX和TXD。RD:将数据从DCE传输到DTE。也被称作RX和RXD。SG:信号地。也被称作GND和SGND。电压 RS-232的逻辑电平用正负电压表示,而不是只用5V TTL和CMOS逻辑的正电压信号表示。在一个RS-232的数据输出(TD),一个逻辑0被定义为等于或者高于+5V,而一个逻辑1被定义为等于-5V或者比低于-5V。换言之,信号使用负逻辑,在这种逻辑中,负的电压为逻辑1。 控制信号使用相同的电压,但是使用的是正逻辑。一个正的电压表示这项功能为开,而一个负的电压表示这个功能为关。 RS-232接口芯片反向转

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论