wap push pdu 解析

wap push pdu 解析

Pdu:

 

0051000BA13108086406F600F5A785


00 ——SMSC 地址信息的长度。00表示用手机上设置的短信中心号码,PDU “SMSC 址格式段和“SMSC 地址段将省去

51 ——信息头字节。这个字节的结构见表1,各个位的具体含义见表 x

1 MT消息头标记

bit

7

6

5

4

3

2

1

0

域名称缩写

TP-RP

TP-UDHI

TP-SRI

No Used

TP-MMS

TP_M


    TP_MTI
0,表示消息类型为SMS_DELIVER,即移动终端MS接收到短消息。若为要发送的SMS,此位需设置为1
    TP-MMS
1,表示SMSC再无新消息发送给该移动终端。如果为0表示还有消息存放在SMSC
    TP-SRI
1,表示发送者请求状态报告。
    TP-UDHI
1,表示有用户数据头。参考:gsm-0340。
    TP-RP
0,表示无回复路径;如果为1,表示存在回复路径,移动终端可循发送SMS消息的短消息中心进行回复(但并非所有SMSC都会这样没置)

00 ——消息基准值(TP-MR)

0BA13108086406F6

00 ——协议标识(TP-PID) ,普通GSM 类型,点到点方式。也有其它值,但很少用,如有兴趣,请参看GSM 03.40

F5A785

_

 


User data header 1(WDP Header):

0B05040B8423F00003030101

wap push pdu 解析_第1张图片

0B ——UDHL

05040B8423F0 ——有的地方认为,这段编码表示接下来是一个WAP PUSH ,但是彩信通知消息也是如此。 05 --- Information-Element-Identifier; 04 ---- Length-of-Information-Element。

00 —— Tag。0x00表示是Short Information-Element –Identifier,即8-bit reference number.; 0x08表示为Long IEI,16-bit datagram reference number。

03 ---- Length。

03 ---- Reference number。

01 —— Total PacketWap push被分成1个短信发送

01 —— Current Packet。当前包的短信序号

  


User data header 2(WSP Header):

29060603AE81EA8DCA

Octet(s)

Description

29

Transaction ID

06

PDU Type: Push

06

Len of content type and headers

03 AE

Content type: application/vnd.wap.sic

81 EA

charset=utf-8

8DCA

content-length: CA

 

 

对0x03、0x81、0x8D的标志位定义参见:WAP-230-WSP-20010705-a.pdf 附表中Table 38、39
wsp structure:
      

 

02—— Version number : WBXML version 1.0

05—— SGML Public Identifier: //WAPFORUM//DTD SI 1.0//EN

6A—— UTF-8

00—— String table length

45—— <si /> (service indication),with content

C6—— <indication />,with content and attributes

08—— action=signal-high

0C—— href="http://

03—— Inline string follows(URI字符串开始)

3231312e3133362e3135332e33302f776170707573682f70757368496e64
65782e6a73703f7075736849643d3035303531313134313630353231
——URI

 

00 ——url字符串结束

01—— END (of indication attribute list)

03—— Inline string follows(内容描述字符串开始)

E8AFB7E782B9E587BBE4BBA5E4B88BE993BEE68EA5E88EB7E58F9
6E5BDA9E4BFA1E58685E5AEB9
——内容描述字符串

 

00—— 内容描述字符串结束

01—— </indication>

01—— </si>

你可能感兴趣的:(wap push pdu 解析)