SMPP 二进制消息

发布于 2024-11-28 17:48:38 字数 110 浏览 4 评论 0原文

SMPP 中区分文本短信和二进制短信的参数是什么?

我假设这两条消息都编码在 submitSM 对象中。如果没有,请说明 SMPP 二进制消息如何编码到 SMS 中。

What are the parameters which differentiates a text SMS and binary SMS in SMPP?

I assume both the messages are encoded in submitSM object. If not please tell how SMPP binary messages are encoded into a SMS.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

智商已欠费 2024-12-05 17:48:38

检查data_coding参数。

以下是一些值:

 0 0 0 0 0 0 0 0 SMSC Default Alphabet
 0 0 0 0 0 0 0 1 IA5 (CCITT T.50)/ASCII (ANSI X3.4)
 0 0 0 0 0 0 1 0 Octet unspecified (8-bit binary)
 0 0 0 0 0 0 1 1 Latin 1 (ISO-8859-1)
 0 0 0 0 0 1 0 0 Octet unspecified (8-bit binary)
 0 0 0 0 0 1 0 1 JIS (X 0208-1990)
 0 0 0 0 0 1 1 0 Cyrllic (ISO-8859-5)
 0 0 0 0 0 1 1 1 Latin/Hebrew (ISO-8859-8)
 0 0 0 0 1 0 0 0 UCS2 (ISO/IEC-10646)
 0 0 0 0 1 0 0 1 Pictogram Encoding 
 0 0 0 0 1 0 1 0 ISO-2022-JP (Music Codes)
 0 0 0 0 1 0 1 1 reserved
 0 0 0 0 1 1 0 0 reserved
 0 0 0 0 1 1 0 1 Extended Kanji JIS(X 0212-1990)
 0 0 0 0 1 1 1 0 KS C 5601 
 0 0 0 0 1 1 1 1 reserved

在这里您可以看到二进制文件的一些值。
如需完整列表,请查看 SMPP v3.4 规范。


有用的阅读

Check data_coding parameter.

Here are some values:

 0 0 0 0 0 0 0 0 SMSC Default Alphabet
 0 0 0 0 0 0 0 1 IA5 (CCITT T.50)/ASCII (ANSI X3.4)
 0 0 0 0 0 0 1 0 Octet unspecified (8-bit binary)
 0 0 0 0 0 0 1 1 Latin 1 (ISO-8859-1)
 0 0 0 0 0 1 0 0 Octet unspecified (8-bit binary)
 0 0 0 0 0 1 0 1 JIS (X 0208-1990)
 0 0 0 0 0 1 1 0 Cyrllic (ISO-8859-5)
 0 0 0 0 0 1 1 1 Latin/Hebrew (ISO-8859-8)
 0 0 0 0 1 0 0 0 UCS2 (ISO/IEC-10646)
 0 0 0 0 1 0 0 1 Pictogram Encoding 
 0 0 0 0 1 0 1 0 ISO-2022-JP (Music Codes)
 0 0 0 0 1 0 1 1 reserved
 0 0 0 0 1 1 0 0 reserved
 0 0 0 0 1 1 0 1 Extended Kanji JIS(X 0212-1990)
 0 0 0 0 1 1 1 0 KS C 5601 
 0 0 0 0 1 1 1 1 reserved

Here you can see some values for binaries.
For the full list check the SMPP v3.4 specification.


Useful reading

生生不灭 2024-12-05 17:48:38

要添加到上面的 Incognitos 答案中,如果您要发送二进制消息,另一个重要的参数是 esm_class。

两个最常见的值是:

  • 0x00,用于标准文本消息
  • 0x40,设置用户数据标头指示符 (UDHI)

如果设置了 UDHI,则需要在有效负载的开头解析二进制标头,该标头由以下部分组成用户数据头长度 (UDHL) 表示应将多少字节读取为头,后跟二进制头本身。

有关 esm_class 参数的所有可能值,请参阅 SMPP 规范第 5.2.12 节。

To add to Incognitos answer above, the other parameter that's important if you're sending binary messages is the esm_class.

The two most common values are:

  • 0x00 which is used for a standard text message
  • 0x40 which sets the User Data Header Indicator (UDHI)

If the UDHI is set you then need to parse a binary header at the start of the payload, made up of a User Data Header Length (UDHL) saying how many bytes should be read as headers, followed by the binary headers themselves.

See section 5.2.12 of the SMPP spec for all the possible values of the esm_class parameter.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文