sms-pdu sms-deliver

发布时间 2023-12-03 21:59:51作者: 十七-2020
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是否包含head字段
TP-SRI TP-Status-Report-Indication O b
TP-OA TP-Originating-Address M 2-12o 短信号码
TP-PID TP-Protocol-Identifier M o
TP-DCS TP-Data-Coding-Scheme M o 短信编码方式等信息
TP-SCTS TP-Service-Centre-Time-Stamp M 7o 短信时间
TP-UDL TP-User-Data-Length M I head的长度
TP-UD TP-User-Data O 3) 短信内容

Provision: Manadatory(M) or Optional(D)
Representation: Integer (I), bit (b), 2 bits (2b), Octet (o), 7 octets (7o), 2-12 octets (2-12o).

TP-MTI

标记短信类型, 占2bit,pdu第一字节的bit0和bit1

bit1 bit0 Message type

0 0 SMS-DELIVER (in the direction SC to MS)  
0 0 SMS-DELIVER REPORT (in the direction MS to SC)  
1 0 SMS-STATUS-REPORT (in the direction SC to MS)  
1 0 SMS-COMMAND (in the direction MS to SC)  
0 1 SMS-SUBMIT (in the direction MS to SC)  
0 1 SMS-SUBMIT-REPORT (in the direction SC to MS)  
1 1 Reserved

SC: service centre
MS: mobile station

TP-MMS

占1bit,pdu第一字节的bit2, 包含在SMS-DELIVER和SMS-STATUS-REPORT,有两个值

  • 0: 有更多的消息
  • 1: 没有消息

TP-LP

可选值

TP-RP

1bit,pdu的bit 7

  • 0: 没有TP-Reply-Path参数
  • 1: 有TP-Reply-Path参数

TP-UDHI

pdu第一字节的bit6

  • 0: 只是一个普通的短消息
  • 1: TP-UD字段中包含head字段

TP-SRI

pdu第一字节的bit 5

  • 0: 不需要回报状态
  • 1: 需要回报状态

TP-OA

号码字段

TP-PID

短信种类pid

TP-DCS

  • bit 0 bit 1
    • 00 class0: 直接显示到用户终端
    • 01 class1: 短消息存储在sim卡上
    • 10 class2: 短消息必须存储在SIM卡上禁止直接传输到终端
    • 11 class3: 短消息存储在用户设备上
  • bit2 bit 3: 制定短信内容采用的编码方式
    • 00: gsm
    • 01: 8bit
    • 10: UCS2
  • bit 4: 制定消息类别
    • 0: 没有指定
    • 1: 已指定
  • bit 5: 文本是否压缩
    • 0: 压缩
    • 1: GSM标准压缩
  • bit 6 bit 7: 一般设置为00

TP-SCTS

sca转发短信时间戳

TP-UDL

用户数据长度

TP-UD

短信内容区域