通过USSD检查余额时出错 [英] Error on checking balance via USSD

查看:168
本文介绍了通过USSD检查余额时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试通过AT命令从3g调制解调器检查我的余额,并且似乎卡住了.

I've been trying to check my balance from by 3g modem via AT commands and seem to be stuck.

设备信息如下:

制造商:高通公司
型号:M6281
修订:SSD_M6281A-0.0.1 1 [Oct 02 2008 07:00:00]

Manufacturer: QUALCOMM INCORPORATED
Model: M6281
Revision: SSD_M6281A-0.0.1 1 [Oct 02 2008 07:00:00]

调制解调器具有USSD功能(在工厂安装的仪表板中已发布且也存在).

The modem has USSD capability (advertised and also present in the factory installed dashboard).

我正在通过腻子连接到COM4串行端口,这是我的调制解调器应用程序端口.所有AT命令都工作正常,但通过腻子发布以下内容时出现错误:

I am connecting via putty to COM4 serial port which is my modems application port. All AT commands are working fine but I am getting an error on issuing the following via putty:

AT+CUSD=1,"*111#",15

这将返回一个简单的错误". * 111#是我的运营商的余额检查代码.我怀疑某个地方存在格式化错误,但我不知道在哪里.

This returns a simple "ERROR". *111# is my carrier's balance check code. I suspect that there is a formatting error somewhere but I can't figure out where.

注意:如果我发出空白的usd命令:

Note: If I issue a blank ussd command:

AT+CUSD=1,"",15 

然后我就可以了(尽管稍后我会收到响应+ CME ERROR:重试操作)...但是,如果我在引号内写了任何东西,它将返回"ERROR".

then I get an OK (although I later get a response +CME ERROR: retry operation) ... If I write anything within the quotation marks however, it returns an "ERROR".

推荐答案

好,我终于找到了解决此问题的方法.显然在编码中存在问题.这是我所做的:

Ok, I finally found the way to fix this. Apparently there was a problem in the encoding. Here is what I did:

AT+CSCS="GSM" // change character set to GSM
AT+CUSD=1,"*111#",15 // Issued balance check ussd code

现在可以正常工作了.

It now works fine.

默认编码为UCS2,如果有人可以分享如何将腻子中的usdd代码转换为UCS2编码,我将不胜感激.

The default encoding was UCS2, I'd appreciate if someone can share how to convert ussd codes to UCS2 encoding in putty.

这篇关于通过USSD检查余额时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆