Plz。需要帮助在PDU模式下发送短信 [英] Plz .need help with sending SMS in PDU mode
问题描述
首先我知道这个问题经常是显着的,但我发誓,我尝试了一切使我的应用程序执行所需的过程(我检查了几乎每个代码项目和Google文章)。
我正在使用华为e1552调制解调器,应用程序通常以文本模式发送短信。
当我尝试PDU模式时,调制解调器只发送一切!我真的不知道是什么原因。
i测试一些AT命令如下:
AT + CMGF =?
,回复是:+ CMGF(1,0)
AT + CSCS =?
,回复是:+ CSCS(IRA,GSM,UCS2)
和我使用以下代码
first of all i know that this question is frequently significantly,but i swear that i tried every thing to make my application do the required process (i checked almost every codeproject and Google articles).
i'm using the Huawei e1552 Modem, the application send SMS normally with the text mode.
when i tried the PDU mode the modem just send nothing !!! and i really don't know what is the cause .
i test some AT Commands as below:
"AT+CMGF=?"
and the response is : +CMGF(1,0)
"AT+CSCS=?"
and the response is : +CSCS("IRA","GSM","UCS2")
and i used the following code
Dim sp As New SerialPort
With sp
.PortName = "COM9"
.BaudRate = 9600
.Parity = Parity.None
.StopBits = StopBits.One
.DataBits = 7
.Handshake = Handshake.RequestToSend
.DtrEnable = True
.NewLine = vbCrLf
.Open()
End With
sp.WriteLine("AT" & Chr(34))
sp.WriteLine("AT+CMGF=0" & Chr(34))
sp.WriteLine("AT+CMGW=24")
sp.WriteLine("0891697408929929F011000A9187510930320000AA0CC8F71D14969741F977FD07" & Chr(26))
任何建议都将受到赞赏
any suggestion will be appreciated
推荐答案
bellow是PDU AT命令程序和调制解调器响应也
每件事看起来都不错,但我根本没有收到任何消息!
bellow is the PDU AT commands procedure and the modem response also
every thing seems to look OK , but i receive no message at all !!!
AT+CMGF=?
+CMGF: (0-1)
OK
AT+CMGF=0
OK
AT+CSCS=UCS2
OK
AT+CMGF=21
>
0891697408929929F011000A9187510930320004AA086D6F68616D6D6564 & Chr(26)
+CMGS: 47
OK
这篇关于Plz。需要帮助在PDU模式下发送短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!