短信的种类

loading 分享 2026-8-31 下载文档

短消息的种类

在我们手机的基本网络功能测试中,主要包括语音呼叫、短消息、网页浏览等等,今天主要谈谈短消息这一功能模块。

在我们平时的使用以及测试中,碰到过很多种类的消息,比如短消息、彩信、Push消息、广播消息、USSD……

今天我们来简单罗列一下短消息的种类,它们基本上都承载于GSM,当然有些也可以承载于GPRS, 可以这样来划分:

1. Normal SMS

即普通类型的短消息,也是我们平时发送和接收最多的。可以被正常保存在手机或者SIM卡里面的普通文字短消息, 通过抓空口消息我们可以清楚的知道本条短消息的类型.

MOD_L1->MOD_AS

|

L1_AS_SAP

|

FN:

762420

|

T=442242

|

MSG_ID_LAPDM_RR_DATA_IND | BS => MS //手机端接收的短消息 Channel_Type=SDCCH //短消息传输信道 >l3sms tif=0 ti=1 N(SD)=0 CP_DATA : RP-DATA BS->MS (RP-MTI=1)

RP-Message Reference = 0 RP-Originator Address:

Type of Number = International number

ISDN/telephony Numbering plan (Rec. E.164/E.163) Num SC = 8613800210500 // 短消息中心

RP-Destination Address: length = 0

== RP-User Data: ===== SMS-DELIVER: (TP-MTI=0)

TP-MMS=1: No More messages are waiting for the MS in this SC

TP-SRI=0: A status report will not be returned to the SME //短消息状态报告(deliver report),没有

TP-UDHI=0: TP-UD field contains only the Short Message

TP-RP =0: TP-Reply-Path parameter is not set in this SMS-DELIVER // 回复路径(reply path), 不需要 TP-OA:

Type of Number = International number

ISDN/telephone Numbering plan (Rec. E.164/E.163) -- If it's a normal message : Length = 13 semi-octet(s)

Num = 8613817803555 // 接收终端号码

TP-PID=00h: No interworking, but SME-to-SME protocol TP-DCS=00h:

// TP-PID 和 TP-DCS 这两个参数组合起来,可以判断本条是一普通的短消息.

The text is uncompressed Alphabet = Default Alphabet

TP-SCTS:

November 28th 06

15h 13m 35s Time Zone: GMT + 8h0m (23h=32) // 短消息到达消

息中心的时间戳

TP-UDL = 24 (18h) // 短消息长度, 24 bytes

TP-UD (SMS Message): (\短消息编码方式 Text : sms[SP]test:[SP]send[SP]with[SP]GPRS // 短消息文本内容

2. Class SMS a. Class 0 b. Class 1 c. Class 2 d. Class 3

2.1 Class 0: 自动显示在手机终端上,无论手机或者SIM的容量是否已满,但是不能自动保存在手机或者SIM卡上。(可以称作 闪信,现在也有些手机终端也会提供手动保存的功能。) MOD_L1->MOD_AS | L1_AS_SAP | MSG_ID_LAPDM_RR_DATA_IND | BS => MS Channel_Type=SDCCH

>l3sms tif=0 ti=1 N(SD)=0 CP_DATA : RP-DATA BS->MS (RP-MTI=1) RP-Message Reference = 0 RP-Originator Address:

Type of Number = International number

ISDN/telephony Numbering plan (Rec. E.164/E.163) Num SC = 8613800210500 RP-Destination Address: length = 0

== RP-User Data: ===== SMS-DELIVER: (TP-MTI=0)

TP-MMS=1: No More messages are waiting for the MS in this SC TP-SRI=0: A status report will not be returned to the SME TP-UDHI=0: TP-UD field contains only the Short Message

TP-RP =0: TP-Reply-Path parameter is not set in this SMS-DELIVER TP-OA:

Type of Number = International number

ISDN/telephone Numbering plan (Rec. E.164/E.163) -- If it's a normal message : Length = 13 semi-octet(s) Num = 8613817803555

TP-PID=00h: No interworking, but SME-to-SME protocol TP-DCS=10h:

The text is uncompressed Message Class = Class 0 Alphabet = Default Alphabet

TP-SCTS:

November 28th 06

15h 17m 05s Time Zone: GMT + 8h0m (23h=32)

FN:

808002

|

T=487824

|

TP-UDL = 11 (0Bh)

TP-UD (SMS Message): (\ Texte : sms[SP]class[SP]0

2.2 Class 1: 保存的方式和Normal SMS一样,由用户手动设置决定手机或者SIM卡. TP-PID=00h: No interworking, but SME-to-SME protocol TP-DCS=11h:

The text is uncompressed

Message Class = Class 1 (Default meaning: ME-specific) Alphabet = Default Alphabet

2.3 Class 2: 默认保存在SIM卡上,当SIM卡慢应该提示一些协议错误等提示信息,但是现在许多手机终端厂商做成优先保存在SIM卡,当SIM卡满后,自动保存到手机中. TP-PID=00h: No interworking, but SME-to-SME protocol TP-DCS=12h:

The text is uncompressed

Message Class = Class 2 SIM-specific message Alphabet = Default Alphabet

2.4 Class 3: 直接保存到PC上,如果手机和PC没有连接,按照Class 1执行. TP-PID=00h: No interworking, but SME-to-SME protocol TP-DCS=13h:

The text is uncompressed

Message Class = Class 3 (Default meaning: TE-specific) Alphabet = Default Alphabet

3. Replace SMS a. Replace type 1 b. Replace type 2 c. Replace type 3 d. Replace type 4 e. Replace type 5 f. Replace type 6 g. Replace type 7

3.1 Replace这种类型的短消息,主要特点是当TP-PID和TP-DCS一样的时候,可以将之前的短消息内容更新至最新收到的. 至于Replace 1~7 只是表示7种类型,没有什么特殊的含义。需要提的一点是Replace SMS主要由TP-PID来决定,但可以和TP-DCS配合使用.

MOD_L1->MOD_AS

|

L1_AS_SAP

|

FN:

791282

|

T=471104

|

MSG_ID_LAPDM_RR_DATA_IND | BS => MS Channel_Type=SDCCH

>l3sms tif=0 ti=1 N(SD)=0 CP_DATA : RP-DATA BS->MS (RP-MTI=1)

RP-Message Reference = 0 RP-Originator Address:

Type of Number = International number

ISDN/telephony Numbering plan (Rec. E.164/E.163) Num SC = 8613800210500 RP-Destination Address: length = 0

== RP-User Data: ===== SMS-DELIVER: (TP-MTI=0)

TP-MMS=1: No More messages are waiting for the MS in this SC TP-SRI=0: A status report will not be returned to the SME TP-UDHI=0: TP-UD field contains only the Short Message

TP-RP =0: TP-Reply-Path parameter is not set in this SMS-DELIVER TP-OA:

Type of Number = International number

ISDN/telephone Numbering plan (Rec. E.164/E.163) -- If it's a normal message : Length = 13 semi-octet(s) Num = 8613817803555

TP-PID=42h: Replace Short Message Type 2 TP-DCS=00h:

// 可以判断这是一条Normal SMS类型的Replace 2 短消息. The text is uncompressed Alphabet = Default Alphabet TP-SCTS:

November 28th 06

15h 15m 48s Time Zone: GMT + 8h0m (23h=32) TP-UDL = 14 (0Eh)

TP-UD (SMS Message): (\ Text : test[SP]replace[SP]2

4. Message type 0

这种类型的短消息,终端用户是感觉不到的,因为它是不会在上层显示给用户看到的,在手机后端收到后要立即删除掉,只是表示手机支持本类型消息的能力而已.

5. WAP Push Message

这种类型的消息我们实际应用中碰到还是很多的,比如我们将彩信设置成手动接收或者彩信自动接收失败,会收到一条有彩信在彩信中心的短消息通知;还有就是某个网站会主动推送一条Push Message给手机终端,某某地方有打折信息、好的图书…;Push Mail邮件接收服务,当邮箱账户内一旦有新邮件到达,可以采用的一种方案是先推送一条Push Message给手机终端给予提示.

所以这些消息中,有两个主要的共性: 一是通过短消息途径传送;二是消息体中包含URL链接.

下面我们看一个彩信的Notification (wap push message)消息: MOD_L1->MOD_AS | L1_AS_SAP | FN: 2044199 MSG_ID_LAPDM_RR_DATA_IND | BS => MS Channel_Type=SDCCH

>l3sms tif=0 ti=1 N(SD)=0 CP_DATA : RP-DATA BS->MS (RP-MTI=1) RP-Message Reference = 0

|

T=1020595

|


短信的种类.doc 将本文的Word文档下载到电脑
搜索更多关于: 短信的种类 的文档
相关推荐
相关阅读