您好,我正在使用 GSM STK 为 Airtel sim 充值。卡在最后一点。如何使用 AT 命令确认它, 我使用下面的代码
AT+STGI=25
+STGI:25,0,0,24,"00410069007200740065006C0020004C0069007600650021",7
+STGI:25,1,22,"00450061007300790020004300680061007200670065"
+STGI:25,2,16,"00450061007300790020005600410053"
+STGI:25,3,26,"0045006100730079002000420069006C006C0020005000610079"
+STGI:25,4,20,"005700680061007400730020006E00650077003F"
+STGI:25,5,32,"004C0061006E0064006C0069006E0065002000420069006C006C007000610079"
+STGI:25,6,20,"00410069007200740065006C0020004400540048"
+STGI:25,7,24,"00410069007200740065006C0020004D006F006E00650079"
OK
at+stgr=25,1
OK
+STIN: 24
AT+STGI=24
+STGI:24,0,0,0,22,"00450061007300790020004300680061007200670065",4
+STGI:24,1,16,"00520065006300680061007200670065"
+STGI:24,2,26,"0047004900460054002000520065006300680061007200670065"
+STGI:24,3,30,"00430075007200720065006E0074002000420061006C0061006E00630065"
+STGI:24,4,22,"004300680061006E006700650020004D00500049004E"
OK
AT+STGR=24,1
OK
+STIN: 23
AT+STGR=23,"9840xxxxxx" // Phone Number
OK
+STIN: 23
AT+STGR=23,"10" //Amount
OK
+STIN: 23
AT+STGR=23,"xxxx" // PIN
OK
+STIN: 21
AT+STGI=21
+STGI:21,1,1,118,"0050 006C 0073 0020 0063 006F 006E 0066 0069 0072 006D 0020 0052 0065 0063 0068 0061 0072 0067 0065 0020 006F 0066 0020 0052 0073 002E 0020 0031 0030 0020 0074 006F 0020 004D 006F 0062 0069 006C 0065 0020 004E 0075 006D 0062 0065 0072 003A 0020 0039 0038 0034 0030 0039 0031 0032 0031 0039 0033 "
OK
其十六进制值为 请确认充值卢比。 10 转至手机号码:9840xxxxxx
如何使用AT命令确认。 调制解调器型号:SIMCOM_SIM5215E
提前致谢
上面的代码是正确的。我忘记将天线与调制解调器连接起来。