AT + CUSD无法在调制解调器Huawei e3131a上工作 [英] AT+CUSD Not Working on modem Huawei e3131a

查看:236
本文介绍了AT + CUSD无法在调制解调器Huawei e3131a上工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图发送命令以在华为e3131a调制解调器上取得平衡,但是无论我使用的配置如何(GSM,IRA,UCS2),我总是收到"Ok"作为答复.我还尝试将操作员代码(#123#)更改为多种格式,例如十六进制PDU简单字符串,但无法达到平衡. 这是我发送的命令: 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

第一次并在5秒后返回OK,它将以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无法在调制解调器Huawei e3131a上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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