CDMA短信解析.ppt
CDMA短信解析,黄明 2011-08-29,CDMA短信实例-普通,A0DC0804FF 03760000021002020702C69965046A840863000310DEC0014E213298BA756276533072C94B60A001D4B7BCB1ACB7447B64B1ACB747F862FD74C677F86001900168019BF53FF86338027A7360A3714801900182F537F8633804D6C360A37148019001BAF531801003061108251833260801400A01400601DCFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF,CDMA短信解析-普通,CDMA普通短信(7F25/6F3C),CDMA短信格式解析-普通,0376+-00/SMS_MSG_TYPE+-00021002/Teleservice Identifier+-020702C69965046A84/Originating Address+-0863/Bearer Data+-000310DEC0/MESSAGE_IDENTIFIER+-014E213298BA756276./USER_DATA+-0306110825183326/Message Center Time Stamp+-080140/Priority Indicator+-0A0140/Reply Option+-0601DC/Bearer Reply Option,数据项解析,User 数据解析:014E213298BA756276 0010 0001 0011 0010 1001 1000 1011 1010 0111 0101 0110 0010 04 26 53 17 4E AC-北京Address 数据解析:020702C69965046A84 02C69965046A84-“10659411001”0000 0010 1100 0110 1001 1001 0110 0101 0000 0100 0B 1A 65 94 11 AA 1,上行短信,下行短信,TPDU类型与结构,CDMA SMS TPDU,Parameter Definitions,SMS Deliver(传达)Message,SMS Submit(提交)Message,Bearer Data 标识,Address Parameters,地址参数说明,DIGIT_MODE Set0:DTMF digits,Set1:8-bit characters NUMBER_MODE(参考ANSI T1.607)field shall be set to 0.To specify an address using data network address formats,this field shall be set to 1.,地址数据编码,参考:TIA-95-B-1999,Bearer Reply Option,REPLY_SEQ-Reply sequence number.This field shall be set to a value identifying the SMS message for which acknowledgment is requested.,User Data,MSG_ENCODING,Teleservice Identifier,00021002TIA/EIA-41-D(See Table 175 in Section6.5.2),CDMA短信格式解析,48 CDMA_SMS_TPDU Len len=1|+SMS_MSG_TYPE len=1|+-TAG_TELESERVICE_IDENTIFIER 00|+-TAG_ORIGINATING_ADDRESS 02/originating address:TAG+len+mode(2bit)+num_field(8bit)+value|OR 04/destination address:.+-TAG_BEARER_DATA 08+|+-TAG_MESSAGE_IDENTIFIER 00|+-TAG_MESSAGE_DISPLAY_MODE 0F/2bit+6bit|+-TAG_USER_DATA 01(user data):tag+len+MSG_ENCODING(5bit)+NUM_FIELDS(8bit)+value|+-TAG=06 内部数据项长度前不加 0 x81,CDMA短信实例-上行数据,D066810301130082028183 485B000002100204060246996605A0084C00032000000F01E00142020013800001D868000000058001880000000000000801500009000840B8000000480000000000001410000000047564AB980000100001388000000000071DB882709000-有效数据内容:0040 027000003B0D00000000B0003100000000000001002A000120010817000000090000000000000282000000008EAC9573000002000027100000000000E3B7104E地址:0406 0246996605A0 0000 0010 0100 0110 1001 1001 0110 0110 0000 0101 1010 0000 09 1A 65 98 16 8,CDMA短信实例-下行数据,A0C2000063 D161 82028381 C85B 0000021002020300C594060100 084C0003100000 0F01E00142 020013800001D868000000058001880000000000000801500028009C039BAB1B1B2B9B9B2B21010101010101010101004880B0222A3D555555555555555555555550-有效数据内容:0040027000003B0D00000000B0003100000000000001002A000500138073756363657373656420202020202020202020091016044547AAAAAAAAAAAAAAAAAAAAAAAA,Message Identifier,0003200000,Message Display Mode,UIM常用 DisplayMode,PRL,48 CDMA_SMS_TPDU Len len=1|+SMS_MSG_TYPE len=1|+-TAG_TELESERVICE_IDENTIFIER 00|+-TAG_ORIGINATING_ADDRESS 02/originating address:|/TAG+len+mode(2bit)+num_field(8bit)+value+-TAG_BEARER_DATA 08+|+-TAG_MESSAGE_IDENTIFIER 00|+-TAG_MESSAGE_DISPLAY_MODE 0F/2bit+6bit=0D|+-TAG_USER_DATA 01(user data):tag+len+MSG_ENCODING(5bit)+NUM_FIELDS(8bit)+value|+-TAG=06,PRL data,03B5000002100202060206996459400601FC08A3000310E190018E046016000087011B00D38103C0243411B1923C85004E0EE094639845D9798C0E86F182635C4C2CEA11939ED14A521DE460CD1C30020A82987C172388859342E27B0468B6120480311B63BE5450011527C643006A8EA1D23311B1E23204F8C713A641BC41C5A930310287FC657EA0802507413C657E61180E86F182A780002000054CC1002000000802000000600003061108250954520A01400F01D0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,PRL命令数据内容,参见:中国联通800MHz CDMA数字蜂窝移动通信网UTK 技.doc 中国联通800MHz CDMA数字蜂窝移动通信网UIM 技.doc,PRL更新处理,Rec_Process_PRL/更新记录方式处理PRL 数据;00 X/Y PRL处理中 01 处理成功!(结束)02 PRL更新出错PRL有效数据更新到PRL缓存区,全部收完后,写入EF-PRL(6F30);Envelope PPDownload 方式的PRL更新,通过 DisplayText给出提示.,协议解析,解析各模块功能,PPDown解析,分支短信类型,PPDown解析,数据整理移位,应用分支解析,区分TAR值,调用应用处理,反向,命令分发与处理,数据编码对照,C网及PRL处理注意事项,1)注意下行C网短信各数据项位置不固定;0601DC(Bearer Reply Option)可能在 Bear Data之前或之后;问题:影响对PRL处理后的数据截取;2)纯C网手机在某些操作后可能多次重启;问题1:影响 PRL处理对接收短信的记录;问题2:影响 C网短信的发送(双模情况);3)对 PRL 处理的有必要严格按照 DisplayMode 定义来判断处理.4)注意移位后的数据填充:一般可填0,注意脚本测试.5)C网上行不需要短信中心号;6)ESN上报处理的流程设计要合理,涉及到STK交互;要进行兼容性或相关脚本测试.7)注意相关的MD5算法运行、PRL处理所需要建立的文件;(减少不必要工作)8),解决办法,1)对相关规范有所了解;2)有效工具来检查短信出错情况;3)软件处理模块需要良好的结构,和灵活的处理流程;4)总结C网终端情况;5)总结、提取有关测试用例,进行前期验证。,参考规范,中国联通800MHz CDMA数字蜂窝移动通信网UIM 卡.doc中国联通800MHz CDMA数字蜂窝移动通信网UTK 技.doc3GPP2 C.S0015-0 Short Message ServiceANSI/TIA-95-B-2004,