本文介绍了如何在PDU模式下通过GSM调制解调器发送SMS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以PDU模式发送SMS.我已经检查了调制解调器的规格,它支持PDU模式.

I want to send SMSs in PDU mode. I have checked the spec for my modem, and it supports PDU mode.

我已经开发了PDU编码器和解码器,但是现在我不知道如何将数据发送到调制解调器.我尝试了以下AT命令:

I have developed a PDU encoder and decoder, but now I do not know how to send data to my modem. I tried these AT commands:

AT

AT+CMGF=0

发送这些命令后,我发送了PDU数据,如下所示:

after sending these commands I sent the PDU data like this:

AT+CMGW="16079189390500410011000C918939050000000000AA02E834"

我已经使用此在线工具检查了此PDU的正确性:

I have checked the correctness of this PDU using this online tool :

http://www.twit88.com/home/utility/sms-pdu-encode-decode

但是通过AT命令发送后,调制解调器挂起.

but after sending it via the AT command, the modem hangs.

这是发送SMS PDU的正确方法吗?我在Google上搜索,找不到有用的信息.

Is this the right way to send SMS PDUs?I searched on Google and can not find useful information.

推荐答案

首先,要在调制解调器处于pdu模式时发送短信,必须发送以下命令:AT + CMGS =<长度>. < CR> ;,其中length是(PDU二进制字符串的长度-2)/2.当出现>"符号时,您必须发送pdu和ctrl + z字符(char.ConvertFromUtf32(26)).

First of all, to send sms when modem is in pdu mode, you must send these commands:AT+CMGS=<length> <CR>, where length is (length of PDU binary string - 2) / 2.When '>' symbol appears you must send your pdu and ctrl+z character (char.ConvertFromUtf32(26)).

以下是一些有用的资源: http://www.developershome.com/sms/ SMS教程 http://www.diafaan. com/sms-tutorials/gsm-modem-tutorial/online-sms-deliver-pdu-decoder/另一个在线pdu解码器(但我认为您的链接更好) http://www.fccps.cz/img.asp?attid=24590 AT命令指南(适用于Wavecom,但没有区别)

Here are some resources that may be useful:http://www.developershome.com/sms/ SMS Tutorialhttp://www.diafaan.com/sms-tutorials/gsm-modem-tutorial/online-sms-deliver-pdu-decoder/ another online pdu decoder (but your link is better in my opinion)http://www.fccps.cz/img.asp?attid=24590 AT commands guide (for wavecom, but there is no difference)

最后的建议-使用任何telnet客户端连接并测试调制解调器,并查看其响应方式

Last advice - use any telnet client to connect and test your modem and see how it responds

这篇关于如何在PDU模式下通过GSM调制解调器发送SMS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-03 16:29