实例介绍
【实例截图】
【核心代码】
Contents
Foreword PAGEREF _Toc289438079 \h 6
0 Scope PAGEREF _Toc289438080 \h 7
0.1 References PAGEREF _Toc289438081 \h 7
0.2 Abbreviations PAGEREF _Toc289438082 \h 8
1 Reference configuration PAGEREF _Toc289438083 \h 9
1.1 V.24 Interface Circuits PAGEREF _Toc289438084 \h 9
1.1.1 Circuit definitions for the SMS Block mode PAGEREF _Toc289438085 \h 9
1.1.2 Circuit definitions for the SMS Text and PDU modes PAGEREF _Toc289438086 \h 10
2 SMS Block Mode PAGEREF _Toc289438087 \h 10
2.1 Beginning and ending of SMS/CBS Block Mode PAGEREF _Toc289438088 \h 10
2.1.1 Beginning SMS/CBS Block Mode PAGEREF _Toc289438089 \h 10
2.1.2 Returning from SMS/CBS Block Mode To Default Mode PAGEREF _Toc289438090 \h 11
2.2 Protocol description PAGEREF _Toc289438091 \h 11
2.3 Requesting messages already held in the Mobile Termination PAGEREF _Toc289438092 \h 12
2.3.1 Requesting List Of Messages PAGEREF _Toc289438093 \h 13
2.3.2 Requesting Transfer Of Messages PAGEREF _Toc289438094 \h 13
2.3.2.1 Requesting Transfer Of A Specific Message PAGEREF _Toc289438095 \h 13
2.3.2.2 Requesting Transfer Of All Messages PAGEREF _Toc289438096 \h 13
2.3.3 Requesting Diversion Of Incoming Messages PAGEREF _Toc289438097 \h 14
2.3.3.1 Requesting SMS Messages PAGEREF _Toc289438098 \h 14
2.3.3.2 Requesting CBS Messages PAGEREF _Toc289438099 \h 14
2.3.3.3 Requesting indication of message arrival PAGEREF _Toc289438100 \h 14
2.3.4 Requesting Transfer Into Mobile Termination PAGEREF _Toc289438101 \h 15
2.3.5 Requesting Deletion Of Messages PAGEREF _Toc289438102 \h 15
2.4 Message functional definitions and contents PAGEREF _Toc289438103 \h 16
2.4.1 Commands Issued By The Terminal Equipment PAGEREF _Toc289438104 \h 16
2.4.1.1 List Request PAGEREF _Toc289438105 \h 17
2.4.1.2 Get Message PAGEREF _Toc289438106 \h 17
2.4.1.3 Get First Message PAGEREF _Toc289438107 \h 17
2.4.1.4 Get Next Message PAGEREF _Toc289438108 \h 17
2.4.1.5 Transfer Inc SMS PAGEREF _Toc289438109 \h 17
2.4.1.6 Indicate Inc SMS PAGEREF _Toc289438110 \h 17
2.4.1.7 Transfer Inc CBS PAGEREF _Toc289438111 \h 18
2.4.1.8 Insert SMS PAGEREF _Toc289438112 \h 18
2.4.1.9 Delete message PAGEREF _Toc289438113 \h 18
2.4.1.10 Unable to process PAGEREF _Toc289438114 \h 18
2.4.1.11 End SMS Mode PAGEREF _Toc289438115 \h 18
2.4.1.12 Acknowledge Message PAGEREF _Toc289438116 \h 19
2.4.2 Responses/Indications Issued By The MT PAGEREF _Toc289438117 \h 19
2.4.2.1 Message List PAGEREF _Toc289438118 \h 19
2.4.2.2 Message PAGEREF _Toc289438119 \h 19
2.4.2.3 Get Message Failure PAGEREF _Toc289438120 \h 20
2.4.2.4 Inc Message PAGEREF _Toc289438121 \h 20
2.4.2.5 Message Arrived PAGEREF _Toc289438122 \h 20
2.4.2.6 Insert SMS Complete PAGEREF _Toc289438123 \h 20
2.4.2.7 Insert SMS Failure PAGEREF _Toc289438124 \h 20
2.4.2.8 Delete Message Complete PAGEREF _Toc289438125 \h 21
2.4.2.9 Delete Message Failure PAGEREF _Toc289438126 \h 21
2.4.2.10 Unable To Process PAGEREF _Toc289438127 \h 21
2.4.2.11 End SMS Mode PAGEREF _Toc289438128 \h 21
2.4.2.12 Request Confirmed PAGEREF _Toc289438129 \h 21
2.5 General message format and information elements coding PAGEREF _Toc289438130 \h 21
2.5.1 Message Type PAGEREF _Toc289438131 \h 21
2.5.2 Other Information Elements PAGEREF _Toc289438132 \h 22
2.5.2.1 Short Message Reference PAGEREF _Toc289438133 \h 22
2.5.2.2 SMS Transfer Type PAGEREF _Toc289438134 \h 23
2.5.2.3 Indication Type PAGEREF _Toc289438135 \h 23
2.5.2.4 Insert Type PAGEREF _Toc289438136 \h 24
2.5.2.5 Short Message Index PAGEREF _Toc289438137 \h 25
2.5.2.6 Short Message Data PAGEREF _Toc289438138 \h 26
2.5.2.7 Cause PAGEREF _Toc289438139 \h 28
2.5.2.8 Index Count PAGEREF _Toc289438140 \h 29
2.5.2.9 CBS Transfer Type PAGEREF _Toc289438141 \h 29
2.5.2.10 Page Index PAGEREF _Toc289438142 \h 29
2.5.2.11 Last Short Message PAGEREF _Toc289438143 \h 30
2.5.2.12 Confirm Type PAGEREF _Toc289438144 \h 30
2.5.2.13 TP-Failure Cause PAGEREF _Toc289438145 \h 31
2.5.2.14 SM-Deliver-Ack PAGEREF _Toc289438146 \h 31
2.5.2.15 SM-Submit-Ack PAGEREF _Toc289438147 \h 32
3 Text Mode PAGEREF _Toc289438148 \h 32
3.1 Parameter Definitions PAGEREF _Toc289438149 \h 32
3.2 General Configuration Commands PAGEREF _Toc289438150 \h 35
3.2.1 Select Message Service CSMS PAGEREF _Toc289438151 \h 35
3.2.2 Preferred Message Storage CPMS PAGEREF _Toc289438152 \h 36
3.2.3 Message Format CMGF PAGEREF _Toc289438153 \h 36
3.2.4 Enter SMS Block Mode Protocol CESP PAGEREF _Toc289438154 \h 37
3.2.5 Message Service Failure Result Code CMS ERROR PAGEREF _Toc289438155 \h 37
3.2.6 Informative Examples PAGEREF _Toc289438156 \h 38
3.3 Message Configuration Commands PAGEREF _Toc289438157 \h 38
3.3.1 Service Centre Address CSCA PAGEREF _Toc289438158 \h 38
3.3.2 Set Text Mode Parameters CSMP PAGEREF _Toc289438159 \h 38
3.3.3 Show Text Mode Parameters CSDH PAGEREF _Toc289438160 \h 39
3.3.4 Select Cell Broadcast Message Types CSCB PAGEREF _Toc289438161 \h 39
3.3.5 Save Settings CSAS PAGEREF _Toc289438162 \h 40
3.3.6 Restore Settings CRES PAGEREF _Toc289438163 \h 40
3.3.7 Informative Examples PAGEREF _Toc289438164 \h 41
3.4 Message Receiving and Reading Commands PAGEREF _Toc289438165 \h 41
3.4.1 New Message Indications to TE CNMI PAGEREF _Toc289438166 \h 41
3.4.2 List Messages CMGL PAGEREF _Toc289438167 \h 46
3.4.3 Read Message CMGR PAGEREF _Toc289438168 \h 47
3.4.4 New Message Acknowledgement to ME/TA CNMA PAGEREF _Toc289438169 \h 47
3.4.5 Informative Examples PAGEREF _Toc289438170 \h 48
3.5 Message Sending and Writing Commands PAGEREF _Toc289438171 \h 49
3.5.1 Send Message CMGS PAGEREF _Toc289438172 \h 49
3.5.2 Send Message from Storage CMSS PAGEREF _Toc289438173 \h 50
3.5.3 Write Message to Memory CMGW PAGEREF _Toc289438174 \h 50
3.5.4 Delete Message CMGD PAGEREF _Toc289438175 \h 51
3.5.5 Send Command CMGC PAGEREF _Toc289438176 \h 51
3.5.6 More Messages to Send CMMS PAGEREF _Toc289438177 \h 52
3.5.7 Informative Examples PAGEREF _Toc289438178 \h 52
4 PDU Mode PAGEREF _Toc289438179 \h 53
4.1 List Messages CMGL PAGEREF _Toc289438180 \h 53
4.2 Read Message CMGR PAGEREF _Toc289438181 \h 54
4.3 Send Message CMGS PAGEREF _Toc289438182 \h 54
4.4 Write Message to Memory CMGW PAGEREF _Toc289438183 \h 55
4.5 Send Command CMGC PAGEREF _Toc289438184 \h 55
4.6 New Message Acknowledgement to ME/TA CNMA PAGEREF _Toc289438185 \h 56
4.7 Send Message from Storage CMSS PAGEREF _Toc289438186 \h 57
Annex A (normative): Character Set Conversions for SMS Text Mode PAGEREF _Toc289438187 \h 58
Annex B (informative): Example of processing a data block PAGEREF _Toc289438188 \h 61
B.1 Example state diagrams for the block receiver PAGEREF _Toc289438189 \h 61
B.2 Example of coding and decoding a data block PAGEREF _Toc289438190 \h 61
Annex C (informative): Change History PAGEREF _Toc289438191 \h 68
相关软件
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论