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

查看:33
本文介绍了通过 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 [2008 年 10 月 2 日 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).

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

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.

注意:如果我发出一个空白的 ussd 命令:

Note: If I issue a blank ussd command:

AT+CUSD=1,"",15 

然后我得到了一个 OK(虽然我后来得到了一个响应 +CME ERROR: retry operation)......但是如果我在引号内写任何东西,它会返回一个错误".

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

它现在工作正常.

默认编码为 UCS2,如果有人能分享如何在 putty 中将 ussd 代码转换为 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天全站免登陆