SMS over LTE

2020-03-11  本文已影响0人  自信的马甲

1 MO SMS

image-20200311195153050.png

2 MT SMS

image-20200311195047675.png

3 SM-TL

短消息传输层(SM-TL)负责给短消息应用层(SM-AL)提供服务。

SM-TL可能包含下列PDU:

3.1 SMS-DELIVER

Abbr. Reference P R Description
TP-MTI TP-Message-Type-Indicator M 2b 消息类型
TP-MMS TP-More-Messages-to-Send M b 是否有很多的要发送的消息
TP-LP TP-Loop-Prevention O b 禁止转发或自动生成消息的参数
TP-RP TP-Reply-Path M b 回复路径存在
TP-UDHI TP-User-Data-Header-Indicator O b TP-UD是否包含头域
TP-SRI TP-Status-Report-Indication O b 指示SME是否需要状态报告
TP-OA TP-Originating-Address M 2-12o SME的地址
TP-PID TP-Protocol-Identifier M o 如果有的话,表示上层协议
TP-DCS TP-Data-Coding-Scheme M o TP-User-Data使用的编码方式
TP-SCTS TP-Service-Centre-Time-Stamp M 7o SC接收SMS的时间
TP-UDL TP-User-Data-Length M I 指示TP-User-Data的长度
TP-UD TP-User-Data O 依赖于TP-DCS

Integer (I), bit (b), 2 bits (2b), Octet (o), 7 octets (7o), 2-12 octets (2-12o).

3.2 SMS-SUBMIT

Abbr. Reference P R Description
TP-MTI TP-Message-Type-Indicator M 2b 消息类型
TP-RD TP-Reject-Duplicates M b SC是否保留SMS-SUBMIT参数
TP-VPF TP-Validity-Period-Format M 2b 指示TP-VP是否存在
TP-RP TP-Reply-Path M b 回复路径请求的参数
TP-UDHI TP-User-Data-Header-Indicator O b 指示TP-UD是否包含头域
TP-SRR TP-Status-Report-Request O b 指示MS是否正在请求状态报告的参数
TP-MR TP-Message-Reference M I 标识SMS-SUBMIT的参数
TP-DA TP-Destination-Address M 2-12o 目的地SME的地址
TP-PID TP-Protocol-Identifier M o 指示上层协议
TP-DCS TP-Data-Coding-Scheme M o TP-UD使用的编码
TP-VP TP-Validity-Period O o/7o 消息不再有效的时间的参数。
TP-UDL TP-User-Data-Length M I TP-UD的长度
TP-UD TP-User-Data O 依赖于TP-DCS

Integer (I), bit (b), 2 bits (2b), Octet (o), 7 octets (7o), 2-12 octets (2-12o).

其他几个PDU参考TS23040,这里不详细描述了。

4 TP-DCS

bits7...4 bits3...0
00xx Bit 5 = 0,表示文本没有压缩
Bit 5 = 1,表示文本被压缩了,压缩算法参考TS23042
Bit 4 = 0,表示Bit1和0为保留位,没有消息类型
Bit 4 = 1,表示Bit1和0表示消息类型。
BIt1 Bit0 消息类型
0 0 class 0
0 1 class 1 ME特定
1 0 class 2 (U)sim特定消息
1 1 class 3 TE特定

Bit3 Bit2 字符集
0 0 0 GSM 7 bit default alphabet
0 1 8 bit data
1 0 UCS2(16bit)
1 1 保留

由于目前看来TP-DCS比较多的使用表中的第一种类型,这里其他的情况就没有列出,详细可以参考TS12038-4

GSM SMS TPDU (GSM 03.40) SMS-SUBMIT
    0... .... = TP-RP: TP Reply Path parameter is not set in this SMS SUBMIT/DELIVER
    .0.. .... = TP-UDHI: The TP UD field contains only the short message
    ..0. .... = TP-SRR: A status report is not requested
    ...0 0... = TP-VPF: TP-VP field not present (0)
    .... .1.. = TP-RD: Instruct SC to reject duplicates
    .... ..01 = TP-MTI: SMS-SUBMIT (1)
    TP-MR: 72
    TP-Destination-Address - (0905296570)
        Length: 10 address digits
        1... .... = Extension: No extension
        .000 .... = Type of number: Unknown (0)
        .... 0001 = Numbering plan: ISDN/telephone (E.164/E.163) (1)
        TP-DA Digits: 0905296570
    TP-PID: 0
        00.. .... = Defines formatting for subsequent bits: 0x0
        ..0. .... = Telematic interworking: no telematic interworking, but SME-to-SME protocol
        ...0 0000 = The SM-AL protocol being used between the SME and the MS: 0
    TP-DCS: 8
        00.. .... = Coding Group Bits: General Data Coding indication (0)
        ..0. .... = Text: Not compressed
        ...0 .... = Message Class: Reserved, no message class
        .... 10.. = Character Set: UCS2 (16 bit)/UTF-16 (0x2)
        .... ..00 = Message Class: Class 0 (0x0)
    TP-User-Data-Length: (6) depends on Data-Coding-Scheme
    TP-User-Data
        SMS text: 101

这段消息可知,发送消息给0905296570,发送的消息是101,编码方式是UCS2。

5 TP-UDHI

指示TP-UD是否包含头域,一般情况下当消息比较长,被分段传输时,会用到这个字段。

GSM SMS TPDU (GSM 03.40) SMS-DELIVER
    0... .... = TP-RP: TP Reply Path parameter is not set in this SMS SUBMIT/DELIVER
    //UDHI=1
    .1.. .... = TP-UDHI: The beginning of the TP UD field contains a Header in addition to the short message
    ..1. .... = TP-SRI: A status report shall be returned to the SME
    .... 0... = TP-LP: The message has not been forwarded and is not a spawned message
    .... .0.. = TP-MMS: More messages are waiting for the MS in this SC
    .... ..00 = TP-MTI: SMS-DELIVER (0)
    TP-Originating-Address - (10086)
        Length: 5 address digits
        1... .... = Extension: No extension
        .010 .... = Type of number: National (2)
        .... 0001 = Numbering plan: ISDN/telephone (E.164/E.163) (1)
        TP-OA Digits: 10086
    TP-PID: 0
        00.. .... = Defines formatting for subsequent bits: 0x0
        ..0. .... = Telematic interworking: no telematic interworking, but SME-to-SME protocol
        ...0 0000 = The SM-AL protocol being used between the SME and the MS: 0
    TP-DCS: 8
        00.. .... = Coding Group Bits: General Data Coding indication (0)
        ..0. .... = Text: Not compressed
        ...0 .... = Message Class: Reserved, no message class
        .... 10.. = Character Set: UCS2 (16 bit)/UTF-16 (0x2)
        .... ..00 = Message Class: Class 0 (0x0)
    TP-Service-Centre-Time-Stamp
        Year: 20
        Month: 3
        Day: 10
        Hour: 18
        Minutes: 47
        Seconds: 18
        Timezone: GMT + 8 hours 0 minutes
    TP-User-Data-Length: (139) depends on Data-Coding-Scheme
    TP-User-Data
        User-Data Header
            User Data Header Length: 6
            IE: Concatenated short message, 16-bit reference number (SMS Control)
                Information Element Identifier: 0x08
                Length: 4
                Message identifier: 7013
                Message parts: 3
                Message part number: 1
        SMS text: 

SMS-DELIVER是接收到的消息,TP-UDHI=0, 所以在TP-UD中包含了User-Data Header。Header中主要包括:

如果SMS被分为了几段发送,等UE接收到所有的消息之后,根据Header中的信息进行组合,然后上报给AP部分进行显示出来。

TS23040

TS23038

smstool

上一篇下一篇

猜你喜欢

热点阅读