AT指令-USSD [英] AT command - USSD
问题描述
我正在使用minicom(适用于Linux的串行端口软件)与我的GSM调制解调器进行交互, 实际上,现在我正在尝试将我的移动提供商的一项服务与AT-Command结合使用.
I'm using minicom (serial port software for linux) for interacting with my GSM modem, actually now I'm trying to use one of my mobile-provider's services with AT-Command.
我在这里说,我想看看我的余额:
here I say, I wanna see my balance:
AT+CUSD=1,*555*87*1234#
OK
+CUSD: 1,"this service will deduct you 5cent from your balance, to continue please enter 1",15
所以,我在这里发送了"1",但是什么也没发生,会话也就关闭了.
so, here I sent "1", but nothing happened and session get closed.
AT+CUSD=1,1
OK
什么都没有发生,但是会话关闭了.
nothing happen, but session closed.
使用普通电话,输入1后,我会得到我当前的余额.
With normal phone, after entering 1, I will get my current balance.
请帮助我.
推荐答案
命令的格式为AT+CUSD=[<n>[,<str>[,<dcs>]]]
,第二个参数<str>
是一个字符串,应使用双引号引起来.例如
The format of the command is AT+CUSD=[<n>[,<str>[,<dcs>]]]
, and the second parameter, <str>
, is a string that should be enclosed in double quotes. E.g.
AT+CUSD=1,"*555*87*1234#"
AT+CUSD=1,"1"
有关AT+CUSD
和AT+CUSD
的更多详细信息,请参见 27.007 . V.250 用于常规AT命令处理.
See 27.007 for more details about AT+CUSD
and V.250 for general AT command handling.
如果您的电话对AT+CUSD=1,1
给出的OK
响应确实很差,则应该给出ERROR
. V.250清晰可见:
If your phone gives an OK
response to AT+CUSD=1,1
that is really bad, it should have given ERROR
. V.250 is crystal clear on this:
字符串常量 应该在开头和结尾处都用双引号字符
String constants shall be bounded at the beginning and end by the double-quote character
这篇关于AT指令-USSD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!