在USSD代码的结果中的命令问题 [英] At command problem in the result of an USSD code
本文介绍了在USSD代码的结果中的命令问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< pre>嗨我是AT命令中的一个大玩家,我想知道我的余额使用超级终端音符我将它设置为GSM如下:
AT + CSCS = GSM
OK
我写道:
AT + CUSD = 1,* 222#,15
i得到这个结果:
将预> + CUSD:0 00540061007700660069006B002C00200053006F006C00640065002000320039002C00
35003800440041002C00200043007200E900640069007400200049006E007400650072006E006100
740069006F006E0061006C00200030002C0030003000440041,72
有人可以帮帮我吗?
我尝试过:
我是AT命令中的一个大玩家,我想知道我的余额使用超级终端音符我将它设置为GSM如下:
AT + CSCS =GSM
OK
和我写道:
AT + CUSD = 1,* 222#,15
i得到这个结果:
< pre> + CUSD:0,00540061007700660069006B002C00200053006F006C00640065002000320039002C00
35003800440041002C002000430 07200E900640069007400200049006E007400650072006E006100
740069006F006E0061006C00200030002C0030003000440041,72
有人可以帮我吗?
解决方案
引用的文本是UTF-16字符串的十六进制(文本)
您的结果转换为:
< pre lang =text> Tawfik,Solde 29,58DA,CréditInternational0,00DA
所以你使用的程序都需要解码十六进制,然后解析出来获得你想要的数据
<pre>Hi i'm a biggner in AT command and i want to know my balance using hyperterminal note that i set it to GSM like this : AT+CSCS="GSM" OK and i wrote this : AT+CUSD=1,"*222#",15 i get this result : <pre>+CUSD: 0,"00540061007700660069006B002C00200053006F006C00640065002000320039002C00 35003800440041002C00200043007200E900640069007400200049006E007400650072006E006100 740069006F006E0061006C00200030002C0030003000440041",72
can anybody help me please?
What I have tried:
Hi i'm a biggner in AT command and i want to know my balance using hyperterminal note that i set it to GSM like this : AT+CSCS="GSM" OK and i wrote this : AT+CUSD=1,"*222#",15 i get this result : <pre>+CUSD: 0,"00540061007700660069006B002C00200053006F006C00640065002000320039002C00 35003800440041002C00200043007200E900640069007400200049006E007400650072006E006100 740069006F006E0061006C00200030002C0030003000440041",72
can anybody help me please?
解决方案
The quoted text is the hexadecimal for a UTF-16 string (text)
Your result translates to:
Tawfik, Solde 29,58DA, Crédit International 0,00DA
So whatever program you are using will need to decode the hex, and then parse it out to get the data you want
这篇关于在USSD代码的结果中的命令问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文