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


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>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章