简体   繁体   English

编码/解码PDU 7位septets GSM长消息

[英]Encoding/Decoding PDU 7bit septets GSM long messages

I'm looking for Encoding/Decoding algorithm. 我正在寻找编码/解码算法。 I have tried this: http://codeproblem.hamaraquetta.com/articles/languages/81-net-framework/76-encoding-sms-in-pdu-format-in-net?showall=&start=1 我已经尝试过: http : //codeproblem.hamaraquetta.com/articles/languages/81-net-framework/76-encoding-sms-in-pdu-format-in-net?showall=&start=1

and no luck. 也没有运气 :( :(

Here is what I'm trying 这是我正在尝试的

This is the text: 这是文本:

This is a long text message greater than 160 characters. You can encode it to PDU format using the SMS-PDU lib for .NET, It also supports UCS-2 encoding, and special characters like { [ ] } are also supported. Its quite simple to use in your code.

From this text there should 2 messages encoded to septets and after I should be able to submit the message. 从此文本中,应该有2条编码为septets消息,之后我应该能够提交该消息。

This is the result i get: 这是我得到的结果:
Part 1: 第1部分:

0041000C917952205197720000A00500033F0201A8E8F41C949E83C220F6DB7D06D1CB783AA85D9ECFC3E732E82C2F87E96539888E0EBB41311B0C344687E5E131BD2C9FBB40D9771D340EBB4165F7F84D2E83D27410FD0D8212AB20F35BDE0ED341F579DA7D06D1D165D0B4396D418955103B2D0699DF7290CB59A4B240493A28CC9EBF41F33A1CFE96D3E7A0EA70DA9281CAEEF19B9C769F59


Part 2: 第2部分:

0041000C917952205197720000690500033F020240613719348797C7E9301B344687E5E131BD2C9F83D8E97519B44181363CD0C607DAA4406179191466CFDFA0791D0E7FCBE965B20B94A4CF41F17A9A5E06CDD36D38BB0CA2BF41F57919947683F2EFBA1C347E93CB2E

this is doesn't work. 这是行不通的。

How do I solve this? 我该如何解决?

Btw: this is the phonenumber i know it's important. 顺便说一句:这是我知道的重要电话号码。 +972502157927 +972502157927

Library works completely correctly. 库完全正常工作。 ComposeLongSms() returns a string array of PDUs and you should send("submit" as you said) all these PDUs to your GSM modem like separate SMSes. ComposeLongSms()返回PDU的字符串数组,您应该像单独的SMS一样将所有这些PDU发送(如您所说的“提交”)到GSM调制解调器。 Any concatenating won't work, you can notice that each PDU starts with the same part, which contains encoded additional information for outgoing SMS. 任何串联都将不起作用,您会注意到每个PDU都以相同的部分开头,其中包含传出SMS的编码附加信息。 You can verify your PDUs here 您可以在此处验证PDU

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM