sms - 解释短信UDH header 08 07 01 03 00 03 08 02 02?

标签 sms gsm pdu smspdu

我已阅读 concatenated-sms 的 udh 详细信息

但那些例子就像

05 00 03 A6 02 01


06 08 04 F4 2E 02 01

但我收到了带有此 header 的短信
08 07 01 03 00 03 08 02 02

我知道第一个八位字节 08 是标题长度

第 2 个八位字节信息元素标识符是 (07),即 udh 源指示符?

谁能解释 udh 源指示符和所有其他八位字节的含义?

最佳答案

通常这个包含 UDH-Source-Indicator 的 UDH 包含在 SMS STATUS REPORT 中。也可能是发送 SMSC 将 UDH 元素也注入(inject)到 UDH 中。

摘自 3GPP 规范 23.040(短消息服务 (SMS) 的技术实现)

The facility is used to separate the UDH of the original message, a UDH created by the SMSC, and a UDH provided by the original receiving entity. The Source Indicator is placed in front of the content inserted by the source. The indicated content (one or more Information-Elements) ends at the next UDH-Source-Indicator, or at the end of the UDH. The Separator is intended to be used especially in Status Reports, but can also be used by the SMSC to add information into Short Message (for example Message waiting). The default content for a UDH in a SMS-DELIVERY is the headers inserted by the sending device, and the default content for a UDH in a SMS-STATUS-REPORT is the headers copied from the SMS-DELIVERY-REPORT.



手动解码 UDH 表明 UDH 中实际上包含两个信息元素(您基本上可以拥有一个由许多元素组成的 UDH,如连接信息、声音/图形信息等)。
08 - UDHL     - 8 octets

## Informational Element #1

07 - IEI      - UDH Source Indicator
01 - IEIL     - 1 octet
03 - <LF> character

## Informational Element #2

00 - IEI - Concat
03 - IEIL - 3 octets
99 - Concat reference number                - 153
02 - Total Parts: There are two parts       - 2
02 - Part number: This is the second part   - 2

请查看上面提到的 3GPP 规范。更具体地说,第 9.2.3.24 节 TP 用户数据 (TP UD)。在这里,它用图表解释了 UDH 是如何构建的。

总结一下,您需要浏览信息元素。在这种情况下,只需跳过从 SMSC 注入(inject)的此类信息元素。

关于sms - 解释短信UDH header 08 07 01 03 00 03 08 02 02?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26683540/

相关文章:

java - 我如何使用短信调用我的页面?

java - 如何在 Okta Java SDK 中发送短信质询

smartcard - SIM卡入门

gsm - 使用 AT 命令通过 GSM 模块中的 UART 传输音频和 3G 数据

delphi - 当我对 SMS PDU(GSM 7 位)用户数据进行编码/解码时,是否需要先添加 UDH?

android - Android 上的 CDMA PDU 解析

php - 来自 Web 应用程序的短信

ios4 - 使用核心电话发送短信?

java - Spring boot 1.4.x 和自定义 CharsetProvider

java - Java 中是否有任何可用的 SMS Pdu 解析器?