AT+CUSD 不适用于调制解调器华为 e3131a [英] AT+CUSD Not Working on modem Huawei e3131a

查看:28
本文介绍了AT+CUSD 不适用于调制解调器华为 e3131a的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试发送命令以在 huawei e3131a 调制解调器上获得平衡,但无论我使用什么配置(GSM、IRA、UCS2),我总是收到Ok"作为答案.我还尝试将操作员代码 (#123#) 更改为多种格式,例如 Hex PDU Simple String,但无法获得平衡.这是我发送的命令:AT+CUSD=1,"#123#",15.在此先感谢您的帮助.

I am trying to send at commands to get balance on huawei e3131a modem but i always receive "Ok" as answer no matter the configuration i use (GSM, IRA, UCS2). I also tried to change the operator code (#123#) to many formats like Hex PDU Simple String but no way to get the balance. Here is the command i sent : AT+CUSD=1,"#123#",15. Thanks in advance for the help.

注意:我正在使用 Putty 发送命令.

NB: I am using Putty to send commands.

推荐答案

我终于找到了发送 USSD At 命令的方法.

某些 3G 调制解调器不支持纯文本甚至十六进制格式.所以要发送命令,我必须通过执行以下操作将调制解调器设置为 IRA 形式:

Some 3G Modem doesn't support plain text or even hexadecimal form. So to send commands I have to set the modem to IRA form by doing:

AT+CSCS="IRA"

在我将允许我获得余额的命令(对我来说:#123#)转换为 gsm7bit 形式之后.

After I convert the command that permits me to get balance (for me : #123#) to gsm7bit form.

最后通过以下方式发送命令:

Finally sending the command by doing:

AT+CUSD=1,"A3986C3602",15

第一次返回OK,5秒后返回gsm7bit形式的响应.它完全返回:

It will return OK the first time and 5 seconds after, it returns the response in gsm7bit form. It exactly returns:

<代码> + CUSD:1, 4379999CA683CEECB738CCD68162351CCDC81ABFDB707AB92E07C9CB6374587E2E8362351CCD080A83C66FF7FCDD6E97E5A0B03DECA683D86510CCF682E55E3258ECE6A286E1653D080682BFEB7210BB0C2297E9E1345B470ED3CB207219640FB3D3E434BD0C2AD341EDB79B1E76D341E432688C0EC7EB65D0F8DD86D3CB75B92B5A4FD3E965B92E06",15

要获得纯文本格式,只需复制并转换为字符串即可.

And to get it in plain text just copy and convert to string.

谢谢大家!!

这篇关于AT+CUSD 不适用于调制解调器华为 e3131a的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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