[英]Cannot send USSD GSM Modem
I am working with SMS Application using VB.NET and Serial Ports using GSM modem. 我正在使用VB.NET使用SMS应用程序,以及使用GSM调制解调器使用串行端口。 I checked the following threads on this site but it cannot answer my problem. 我在此站点上检查了以下线程,但无法回答我的问题。 Here's what I've done 这就是我所做的
AT+CUSD?
+CUSD: 1
OK
AT+CUSD=?
+CUSD: (0-2)
OK
AT+CUSD=1,"*102#",15
ERROR
I also changed the message format to PDU and Text but the result stays the same. 我也将消息格式更改为PDU和文本,但结果保持不变。 It always show Error. 它总是显示错误。
Please help. 请帮忙。
First try this : 首先试试这个:
AT+CSCS?
mine is like this
+CSCS: "PCCP437"
OK
To know what kind of encoding is used. 要知道使用哪种编码。 And to know the supported encoding by your modem do this : 要了解调制解调器支持的编码,请执行以下操作:
AT+CSCS=?
+CSCS: ("UCS2","GSM","PCCP437","PCDN","IRA","8859-1","HEX","UTF-8")
OK
It will return valid values for encoding. 它将返回有效值进行编码。 Set it like this : 像这样设置:
AT+CSCS="UCS2"
OK
Now your command will be like this using UCS-2 encoding : 现在,您的命令将使用UCS-2编码如下所示:
AT+CUSD=1,"002A0031003000320023",15
Tell what you find? 告诉你发现什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.