Chinaunix首页 | 论坛 | 博客
  • 博客访问: 571384
  • 博文数量: 155
  • 博客积分: 7055
  • 博客等级: 少将
  • 技术积分: 1700
  • 用 户 组: 普通用户
  • 注册时间: 2004-11-22 11:40
文章分类

全部博文(155)

文章存档

2016年(1)

2011年(2)

2010年(1)

2009年(2)

2008年(9)

2007年(39)

2006年(58)

2005年(38)

2004年(5)

我的朋友

分类: LINUX

2006-11-15 13:25:03


一、MMS Notification 解析


MMS Notification Short Message 结构:


下面供分析的Message来自now.sms.mms.gateway软件收到mms notificationDebug信息。


0891683108100005F04404A13325000460015232953523880605040B8423F0A506246170706C69636174696F6E2F766E642E7761702E6D6D732D6D65737361676500B487AF848C82985A58373268634D416C713741008D9083687474703A2F2F3231382E3230302E3234392E33382F5A58373268634D416C713741008805810302A300891680353535353136303130332F545950453D504C4D4E008A828E010D


0891683108100005F0

Octet(s)

Description

08

Length of the SMSC info

91

international format

683108100005F0

Service center number, +8613800100500

(see Ref 1)



4404A1332500046001523295352388

Octet(s)

Description

44

First octet of this SMS-DELIVER message.

04

Length Of the Sender info

A1

National format

3325

Sender number, 3352

00

TP-PID

04

TP-DCS ( 8 bit data)

60015232953523

TimeStamp: Wed Oct 25 23:59:53 CST 2006

88

TP-UDL

(see Ref 1)



下面是TP-UD部分:


0605040B8423F0

Octet(s)

Description

06

UDHL (user data header length)

05

Information Element identifier:

Application port addressing 16 bit.

04

Information element length

0B84

Destination port

23F0

Originating port

(see Ref 2)



A506246170706C69636174696F6E2F766E642E7761702E6D6D732D6D65737361676500B487
AF84

Octet(s)

Description

A5

Transaction ID

06

PDU Type: Push

24

Length of Content type + Header

6170706C69636174696F6E2F766
E642E7761702E6D6D732D6D65737361676500

Content type: (8 bit encoding of)
application/vnd.wap.mms-message

B4 87

Push Flag: 87

AF84

X-Wap-Application-Id: 84

(see Ref 3)



8C82985A58373268634D416C713741008D9083687474703A2F2F3231382E3230302E3234392E
33382F5A58373268634D416C713741008805810302A300891680353735373136303130332F545
950453D504C4D4E008A828E010D

Octet(s)

Description

8C 82

X-Mms-Message-Type: m-notification-ind

98 5A58373268634D416C71374100

Transaction-ID: ZX72hcMAlq7A

8D 90

MMS-Version: 1.0

83 687474703A2F2F3231382E3230302E32
34392E33382F5A58373268634D416C71374100

Content-Location:

88 05 81 0302A300

Expiry + Length + Relative-token + Delta-secs:

54.8 hour?

89 16 80 353535353136303130332
F545950453D504C4D4E00

From + Length + Address-Present-token:
5555160103/TYPE=PLMN

8A 82

Msg-Class: Info

8E 010D

Msg-Size: 269

(see Ref 4)


到此完整的mms notification msg解析结束。看specification实在是枯燥无味,耗费时间的事情。

这些解析实在是应该由电脑来完成,而非人脑。


二、相关书籍介绍


Multimedia Messaging Service - An Engineering Approach to MMS

6.2.2 Message Notification


        How_to_create_MMS_services

5.2 Building an MMS PDU


三、Refrence


Ref 1: ETSI TS 123 040 Technical realization of SMS

9.1.2.5 Address fields

9.2.2.1 SMS-DELIVER type

       


Ref 2: Wireless Datagram Protocol Specification

6.3 Mapping of WDP for GSM SMS

Appendix B. Port Number Definitions


Ref 3: Wireless Session Protocol Specification

8.2.1 PDU Common Fields

Appendix A Assigned Numbers

8.2.4.1 Push and ConfirmedPush

8.4.2 Header syntax


Ref 4: wap209 MMS Encapsulcation Protocol

7. Binary Encoding of PDU



hppyhjh@tom.com » 20061115

阅读(4916) | 评论(3) | 转发(0) |
0

上一篇:在Linux下操作蓝牙手机

下一篇:小猫钓鱼

给主人留下些什么吧!~~

chinaunix网友2009-04-29 15:04:10

解释的问题好多。。。。。。比如说AF84 X-Wap-Application-Id: 84 ,应该是AF84 X-Wap-Application-Id: 4