Notification短信结构
以下是抓包后的短信内容
00 00 00 27 00 00 00 01 01
31 00 51 8d 24
3d 3d 00 00 00 00 00 ==.....
00 00
00 00 00 00 01 01 01 02 31 30 36 35 34 30 34 30 ........ 10654040
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 01 04 31 30 30 30 31 ........ ...10001
00 30 31 30 30 30 30 00 00 00 00 00 00 00 00 00 .010000. ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 31 30 36 35 34 ........ ...10654
30 34 30 00 00 00 00 00 00 00 00 00 00 00 00 00 040..... ........
01 31 33 34 35 30 32 32 34 31 37 38 00 00 00 00 .1345022 4178....
00 00 00 00 00 00
55
4d 00 00 00 00 00 00 00
1. 第一个颜色(即31 30 36 35 34 30 34 30 00 00 00 00 00 00 00 00 00 00 00 00 00)表示短信的Src_Id,占21个byte;
2. 第一个颜色后的01表示DestUsr_tl,占1个byte;
3. 第二个颜色的内容(即31 33 34 35 30 32 32 34 31 37 38 00 00 00 00 00 00 00 00 00 00)表示Dest_terminal_Id,占21*DestUsr_tl个byte,如果只发给一个手机号,则只占21个byte;
4. 第三个颜色(即
5. 第四个颜色(即06 05 04 0b
6. 第五个颜色(即
7. 第六个颜色(即02 d8 00 00 00,二进制表示)表示Notification的header中的version(占10bit),ui-mode(01,占2bit),initiator(1,占1bit),future-use(占27bit)这4个部分,共占5个字节;
8. Notification的header还包括下面三部分:
1) 82 21表示sessionId;
2) 05表示server-id的长度;
3)
Notification的body为空。
后面8个字节是短信保留的;
Notification= Digest + TriggerHdr + TriggerBody
Digest + Trigger-hdr = 16 + 5 + 2 + 1 + 5 = 29byte