EC51/52 GSM /GPRS MODEN AT SMS aoe EC66.com 2004.11
... 2 1 GSM AT... 3 2 EC51... 4 3 PDU... 4 4 PDU... 5 5... 7 6 TEXT... 8 7... 9 8.... 9 9.... 9 http://www.ec66.com/ 1
AT GPRS Modem SMS AT EC51 EC52 GSM /GPRS MODEN Email: iloveaoe@163.com Qq: 34740080 http://www.ec66.com/ -- http://www.ecbbs.com/ -- http://www.ec66.com/download/ AT SMS http://www.ec66.com/download/ http://www.ec66.com/ 2
1 GSM AT SMS GSM AT from GSM07.05 1 1 GSM AT AT AT+CMGC AT+CMGD AT+CMGF AT+CMGL AT+CMGR AT+CMGS AT+CMGW AT+CMSS AT+CNMI AT+CPMS AT+CSCA AT+CSCB AT+CSMP AT+CSMS Send an SMS command Delete SMS message SIM Select SMS message formate 0-PDU;1- List SMS message from preferred store SIM PDU/text: 0/ REC UNREAD - 1/ REC READ - 2/ STO UNSENT - 3/ STO SENT - 4/ ALL - Read SMS message Send SMS message Write SMS message to memory SIM Send SMS message from storage SIN M New SMS message indications Preferred SMS message storage SMS service center address Select cell broadcast messages Set SMS text mode parameters Select Message Service http://www.ec66.com/ 3
Block Mode AT PDU Mode AT Text Mode Block PDU Mode Block Mode, Text Mode PDU Text Text Text PDU Mode EC51 GPRS MODEM 2 EC51 1 RS232 EC51 RS232 9600 8 1 2 AT OK EC51 EC51 AT AT+CMGS=? OK EC51 EC51 PDU Mode AT+CMGF? 0 AT+CMGS=PDU is given<^z/esc> OK +CMGS: [,] +CMS ERROR: EC51 Text Mode AT+CMGF? 1 AT+CMGS=[,toda]text is entered<^z/esc> OK +CMGS: [,] +CMS ERROR: EC51 AT+CNMI AT+CNMI=[][,][,][,][,] EC51 +CMTI: SM, AT+CMGR 3 PDU MODEM SIM MODEM SIM AT+CMGR AT+CMGL http://www.ec66.com/ 4
AT+CMGF=0 PDU AT+CMGR=1 PDU GSM +CMGR: <stat>,,<length><cr><lf><pdu> stat 0 1 Length pdu <CR><LF> pdu PDU PDU PDU AT+CMGF=0 { PDU } OK AT+CMGS=33{ octets 9 } >{ ASCII $20H $2EH } 0891683108200005F011000D91683117293955F9000800124E2D56FD75355B506280672F4FE1606 F7F51 9 28 48 AT+CMGS SMSC modem > PDU CTRL^Z Aoe 18 9 15 18+15=33 0D 0B 91 68 AT+CMGS= 32 PDU 0891683108200005F011000B913117293955F9000800124E2D56FD75355B506280672F4FE1606F7 F51 18+14=33 cetinet AT+CMGS= 28 > 0891683108200005F011000B913117293955F90008000E0063006500740069006E00650074 Aoe USC2 16bit 2 4 PDU PDU SMS / 140 PDU PDU SMSC PDU MR DA PID DCS VP UDL UD 0 140octed PDU SMSC PDU OA PID DCS SCTS UDL UD 0 140octed SMSC DA/OA / PID DCS UDL UD VP MR SCTS Hi 13677328099 PDU 08 91 683108701305F0 11 00 0D 91 3176378290F9 00 00 00 02 C834 http://www.ec66.com/ 5
08 91 + 683108701305F0 Aoe 91 TON/NPI International/E.164 + 91 91 10010001 81 10000001 BIT No. 7 6 5 4 3 2 1 0 Na me 1 Type of Number 000 001 010,111 Numbering plan identification :0000 0001 ISDN/ (E.164/E.163) 1111 683108701305F0 8613800731500 F 1 Address of the SMSC 11 11&h=00010001&b BIT No. 7 6 5 4 3 2 1 0 Name TP-RP TP-UD HI TP-SP R TP-VFP TP-RD TP-MTI Value 0 0 0 1 0 0 0 1 TP-RP TP-Reply-Path 0 ; 1 TP-UDHL TP-User-Data-Header-Indicator 0 ; 1 TP-SPR TP-Status-Report-Request 0 ; 1 TP-VPF TP-Validity-Period-Format 00 Not present ; 10 01 ; 11 8 Semi-Octet Represented TP-RD TP-Reject-Duplicates 0 ; 1 TP-MTI TP-Message-Type-Indicator 00 Deliver ; 01 Submit 00 TP-Message-Reference 0B Aoe 91 3176378290F9 13677328099 http://www.ec66.com/ 6
TP-Destination-Address 00 TP-PID TP-Protocol-Identifier BIT No. 7 6 5 4 3 2 1 0 Bit No.7 Bit No.6 00 Bit No.0 Bit No.5 01 GSM03.40 10 11 SC Bit No.0 Bit No.5 00 Bit No.5 0 1 Bit No.0 Bits No.4 00000 00001 00010 group 3 telefax 00100 00101 ERMES 00110 10001 X.400 10010 Email 00 TP-DCS TP-Data-Coding-Scheme BIT No. 7 6 5 4 3 2 1 0 Bit No.7 Bit No.6 : 00 Bit No.5 0 1 GSM Bit No.4 0 Bit No.1 Bit No.0 1 Bit No.1 Bit No.0 Bit No.3 Bit No.2 00 01 8bit 10 USC2 16bit 11 Bit No.1 Bit No.0 00 Class 0 01 Class 1 10 Class 2 SIM 11 Class 3 AOE 08 00 00 TP-VP TP-Valid-Period VP value(&h) 00 to 8F (VP+1)*5 90 to A7 12 +(VP-143)*30 A8 to C4 C5 to FF (VP-166)*1 (VP-192)*1 02 TP-UDL TP-User-Data-Length C834 TP-UD TP-User-Data Hi 5 5.1 PDU http://www.ec66.com/ 7
PDU GSM 7 TP-DCS 00 Hi 7 ASCII H ASCII 1001000 i ASCII 1101001 H i H 11001000 C8 i 110100 0 00110100 34 Hi C834 PDU 7 Text 5.2PDU 2 PDU GSM UTF-8 GB-2312 GB-2313 UTF-8 GB-2312 UTF-8 GB-2312 UTF-8 GB-2312 2 14 890 2 7445 UTF-8 GB-2312 UTF-8 GB-2312 PDU SMS TP-UD UTF-8 GB-2312 GB-2312 lg2(n+1) UTF-8 n 7445 13 UTF-8 GB-2312 13 30 KB GB-2312 UTF-8 60 KB 128KB ATmega128 60 KB 70 KB 6 TEXT EC51 TEXT 1 AT+CSCA="+8613800731500"( ) 2 AT+CMGF=1 (1-TEXT; 0-PDU) 3 ( test ) AT+CMGS="13508485560"( ) > test ^z 4 : +CMTI:"SM",INDEX( ) AT+CNMI=1,1,0,0,1() 5 (Once more) INDEX 8 AT+CMGR=8 http://www.ec66.com/ 8
+CMGR: "REC UNREAD","+8613508485560",,"01/07/16,15:37:28+32",Once more 7 1 AT+CSCA 2 SIM 3 PRINT URAT Chr(34) ASCII Chr(26) ASCII Ctrl-Z PRINT "AT+CSCA=";Chr(34);"+8613800210500";Chr(34) 8. Modem 9. 1860 1001 +861380( )500 "0" "+8613800100500" "+8613800230500" "+8613800200500" "+8613800755500" +8613010112500 008613010112500 +8613010314500 008613010314500 +8613010888500 008613010888500 +8613010171500 008613010171500 +8613010341500 008613010341500 +8613010360500 008613010360500 +8613010380500 008613010380500 +8613010811500 008613010811500 +8613010831500 008613010831500 +8613010501500 008613010501500 +8613010980500 008613010980500 +8613010911500 008613010911500 +8613010130500 008613010130500 +8613010180500 008613010180500 +8613010950500 008613010950500 +8613010701500 008613010701500 +8613010305500 008613010305500 +8613010969500 008613010969500 http://www.ec66.com/ 9
+8613010776500 008613010776500 +8613010879500 008613010879500 +8613010796500 008613010796500 +8613010788500 008613010788500 +8613010868500 008613010868500 +8613010731500 008613010731500 +8613010710500 008613010710500 +8613010200500 008613010200500 +8613010591500 008613010591500 +8613010761500 008613010761500 +8613010720500 008613010720500 +8613010240500 008613010240500 http://www.ec66.com/ 10