




已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1. 特殊消息DCS字段承载1.1. 字段来源1、TPDCS字段在etsi 0338协议或3gpp 23038协议里规定,也就是我们平时常说的0338协议,打开此协议你可以看到此字段虽然是一字节,但规定的值很多,含义丰富。2、SMPP协议里的DCS字段参照etsi 0338协议里的定义。1.2. 如何理解打开etsi 0338协议,我们可以看到其DCS分多种情况进行定义,bit7bit4为一段,bit3bit0为一段。我们平时常用的dcs=0/4/8其实仅仅是其中的bit3与bit2的取值。重要的导读语在下面是蓝色字体标出:SMS Data Coding SchemeThe TP-Data-Coding-Scheme field, defined in GSM03.40, indicates the data coding scheme of the TPUD field, and may indicate a message class. Any reserved codings shall be assumed to be the GSM default alphabet (the same as codepoint 00000000) by a receiving entity. The octet is used according to a coding group which is indicated in bits 7.4. The octet is then coded as follows:Coding Group Bits7.4Use of bits 3.000xxGeneral Data Coding indicationBits 5.0 indicate the following : Bit 5, if set to 0, indicates the text is uncompressedBit 5, if set to 1, indicates the text is compressed using the GSM standard compression algorithm. ( see GSM TS 03.42)Bit 4, if set to 0, indicates that bits 1 to 0 are reserved and have no message class meaningBit 4, if set to 1, indicates that bits 1 to 0 have a message class meaning : Bit 1Bit 0Message Class00Class 001Class 1 Default meaning: ME-specific.10Class 2 SIM specific message11Class 3 Default meaning: TE specific (see GSMTS 07.058) 解读:当bit7bit6=00时:1、如果bit5=0表示内容是非压缩方式,如果bit5=1表示内容是压缩方式,压缩方法可参见GSM TS 03.42协议。2、如果bit4=0表示bit1bit0无其它含义,如果bit4=1表示bit1bit0有意义,其bit1bit0的几种取值也是一些比较特殊的消息,其含义在后面的详细的解释,请先在这里作一标记,后面再解惑不同的Class究竟是什么意思。Bits 3 and 2 indicate the alphabet being used, as follows :Bit 3Bit2Alphabet:00Default alphabet018 bit data10UCS2 (16bit)1011Reserved解读:Bits 3 and 2,我们测试过程中最常见的dcs=0/4/8。所以看到这里要摆脱新员工学习时的误区,不要认为ucs2编码时dcs只等于8,因为dcs字段是按比特来算的,同样dcs=24时bit3bit2也为10,也是ucs2编码,等等。NOTE: The special case of bits 7.0 being 0000 0000 indicates the Default Alphabet as in Phase 20100.1011Reserved coding groups1100Message Waiting Indication Group: Discard MessageBits 3.0 are coded exactly the same as Group 1101, however with bits 7.4 set to 1100 the mobile may discard the contents of the message, and only present the indication to the user.解读:当bit7bit4=1100时,其bit3bit0的意义与下面bit7bit4=1101一样,但不同的是当bit7bit4=1100时,手机用户收以消息后仅做提示,看完后不会自动保存到收件箱里。 (continued)(concluded)1101Message Waiting Indication Group: Store MessageThis Group allows an indication to be provided to the user about the status of types of message waiting on systems connected to the GSMPLMN. The mobile may present this indication as an icon on the screen, or other MMI indication. The mobile may take note of the Origination Address for messages in this group and group 1100. For each indication supported, the mobile may provide storage for the Origination Address which is to control the mobile indicator. Text included in the user data is coded in the Default Alphabet.Where a message is received with bits 7.4 set to 1101, the mobile shall store the text of the SMS message in addition to setting the indication.Bits 3 indicates Indication Sense:Bit 30Set Indication Inactive1Set Indication ActiveBit 2 is reserved, and set to 0Bit 1Bit 0Indication Type:00Voicemail Message Waiting01Fax Message Waiting10Electronic Mail Message Waiting11Other Message Waiting* Mobile manufacturers may implement the “Other Message Waiting” indication as an additional indication without specifying the meaning. The meaning of this indication is intended to be standardized in the future, so Operators should not make use of this indication until the standard for this indication is finalized.解读:上面几bit的定义是指示手机有特殊消息存储在某处,手机用户看到后可以根据提示去收取,如语音消息、传真消息、电子邮件消息或其它消息。如果有熟悉SMPP协议各TLV的意思的看官看到这里应该就会觉得很熟悉了,上面所说的Voicemail Message Waiting、Fax Message Waiting等与SMPP协议里ms_msg_wait_facilities字段的意义不是一样的嘛,对头,SMPP消息里若发送含ms_msg_wait_facilities与unmber_of_message的消息,从GSM网络下发,我们的短消息中心就会将SMPP TLV与上面的dcs作为映射,以提示手机正确显示。其对应转换关系请参见GSM短信中心SMPP3.4 TLV字段解析。1110Message Waiting Indication Group: Store MessageThe coding of bits 3.0 and functionality of this feature are the same as for the Message Waiting Indication Group above, (bits 7.4 set to 1101) with the exception that the text included in the user data is coded in the uncompressed UCS2 alphabet.解读:当bit7bit4=1110时,bit3bit0与上面一样的定义,但要注意的是bit7bit4=1110时,消息内容是采用ucs2编码。1111Data coding/message classBit 3 is reserved, set to 0.Bit 2Message coding:0Default alphabet18-bit dataBit 1Bit 0Message Class:00Class 001Class 1 default meaning: ME-specific.10Class 2 SIM-specific message.11Class 3 default meaning: TE specific (see GSM TS 07.058)Default alphabet indicates that the TP-UD is coded from the 7-bit alphabet given in subclause6.2.1. When this alphabet is used, the characters of the message are packed in octets as shown in subclause6.1.2.1.1, and the message can consist of up to 160 characters. The default alphabet shall be supported by all MSs and SCs offering the service.8-bit data indicates that the TP-UD has user-defined coding, and the message can consist of up to 140octets. UCS2 alphabet indicates that the TP-UD has a UCS210 coded message, and the message can consist of up to 140 octets, i.e. up to 70 UCS2 characters. The General notes specified in subclause6.1.1 override any contrary specification in UCS2, so for example even in UCS2 a character will cause the MS to return to the beginning of the current line and overwrite any existing text with the characters which follow the .When a message is compressed, the TP-UD consists of the default alphabet or UCS2 alphabet compressed message, and the compressed message itself can consist of up to 140 octets in total.When a mobile terminated message is class 0 and the MS has the capability of displaying short messages, the MS shall display the message immediately and send an acknowledgement to the SC when the message has successfully reached the MS irrespective of whether there is memory available in the SIM or ME. The message shall not be automatically stored in the SIM or ME.The ME may make provision through MMI for the user to selectively prevent the message from being displayed immediately.If the ME is incapable of displaying short messages or if the immediate display of the message has been disabled through MMI then the ME shall treat the short message as though there was no message class, i.e. it will ignore bits 0 and 1 in the TP-DCS and normal rules for memory capacity exceeded shall apply.When a mobile terminated message is Class 1, the MS shall send an acknowledgement to the SC when the message has successfully reached the MS and can be stored. The MS shall normally store the message in the ME by default, if that is possible, but otherwise the message may be stored elsewhere, e.g. in the SIM. The user may be able to override the default meaning and select their own routing.When a mobile terminated message is Class 2 (SIM-specific), a phase 2 (or later) MS shall ensure that the message has been transferred to the SMS data field in the SIM before sending an acknowledgement to the SC. The MS shall return a protocol error, unspecified error message (see GSMTS 04.11) if the short message cannot be stored in the SIM and there is other short message storage available at the MS. If all the short message storage at the MS is already in use, the MS shall return memory capacity exceeded.When a mobile terminated message is Class 3, the MS shall send an acknowledgement to the SC when the message has successfully reached the MS and can be stored, irrespectively of whether the MS supports an SMS interface to a TE, and without waiting for the message to be transferred to the TE. Thus the acknowledgement to the SC of a TE-specific message does not imply that the message has reached the TE. Class 3 messages shall normally be transferred to the TE when the TE requests TEspecific messages (see GSMTS 07.058). The user may be able to override the default meaning and select their own routing.解读:上面一大串说的就是Class0Class3,每种类别的消息在手机收到后应做怎么样的处理,这些值对短消息中心来说没有特别的,但在外面对接或搞其它产品,这些值在各业务里有很多的应用。简单列一下上面的意思:1、Class0消息,手机收到后不管手机或SIM卡里有没有空闲内存,这些消息都立即显示,显示之后这些消息不会自动存储到手机或SIM卡里,需要提醒用户是否保存。OK,这是什么消息呢,执行过基线的基线的用例的同学应该知道,这些就是所谓的闪电消息(目前很多海外用户需求里提及的Flash Message)。2、Class1消息,手机收到后如果手机或SIM卡上只要有存储空间就应给短消息中心回应答,这些消息会自动存储到手机或SIM卡里,存储位置的优先级由用户在手机上设置。3、Class2消息(SIM-specific),,手机收到后如果SIM卡
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025江苏大学附属医院招聘编外工作人员15人(二)考前自测高频考点模拟试题附答案详解(典型题)
- 2025黑龙江哈尔滨市木兰县公安局招聘警务辅助人员54人模拟试卷含答案详解
- 2025湖南中医药大学第二附属医院招聘21人(第一批)模拟试卷及答案详解(必刷)
- 2025国家电投集团陕西公司招聘11人模拟试卷完整答案详解
- 2025贵州贵阳市某单位派遣制员工考前自测高频考点模拟试题附答案详解(突破训练)
- 2025年甘肃人力委托招聘中石油酒泉加油站加油员模拟试卷附答案详解(考试直接用)
- 2025湖南长沙市宁乡市中医医院招聘编外聘用人员20人模拟试卷及答案详解(新)
- 2025年丽水缙云农商银行秋季新员工招聘备考考试题库附答案解析
- 2025湖州德清县教育局择优招聘浙江开放大学德清学院和职业类教师15人模拟试卷及答案详解(网校专用)
- 2025江西南昌经济技术开发区社医服务工作人员招聘9人考前自测高频考点模拟试题及答案详解(考点梳理)
- 2025年全国电力安全生产网络知识竞赛题库及答案
- 2025年通榆县事业单位面向社会公开招聘工作人员及公开招聘基层治理专干(19人)考试参考试题及答案解析
- 《军品价格管理办法》
- 2025年会计师事务所招聘面试模拟题及解析
- 餐饮门迎培训课件
- 医院培训鼠疫课件模板
- 基孔肯雅热主题班会课件
- 2025年部编版三年级语文上册全册教案
- 心力衰竭的全程管理
- DB4201∕T 630.1-2020 中小学生研学旅行 第1部分:服务机构评定与服务规范
- 学生文明上网班会课件
评论
0/150
提交评论