无法在调制解调器上接收Flash(Class 0)SMS
我正在使用SIM800调制解调器(Dinstar)进行AT命令,在STK 发送简短消息之后,我无法获得STK命令的响应。
使用手机时,该过程如下:
- 启动STK应用程序
- 通过STK菜单导航到我想要
- 输入数据(电话号码,金额)的
- 选项确认选择 然后,手机显示(加载...),然后5秒钟后,STK应用显示一条消息,告知用户操作是否成功。
我的问题是在使用调制解调器时,我看不到消息通知用户操作是否成功。 以下是每个结果与每个结果一起使用的AT命令:
at+stktrs=00,01
OK
+STKPCI: 0,SELECT ITEM,2,526563686172676520636C69656E74
+STKPCI: 0,ITEM,1,01,526563686172676520636C61737369717565
+STKPCI: 0,ITEM,2,02,4175747265207363056E6172696F206465207265636861726765
at+stktrs=00,01
OK
+STKPCI: 1,TIMER MANAGEMENT,01
+STKPCI: 0,GET INPUT,4,04456E7472657A206C6520636F646520636F6E666964656E7469656C203A0D0A362063686966667265732028302D3929,06,06
at+stktrs=00,01313131313131
OK
+STKPCI: 1,TIMER MANAGEMENT,01,00,01,00
+STKPCI: 0,GET INPUT,0,04456E7472657A206C65206E756D05726F2064652074056C0570686F6E6520636C69656E74203A0D0A31302063686966667265732028302D3929,0A,0C
at+stktrs=00,0130363535353535353535
OK
+STKPCI: 0,GET INPUT,0,04456E7472657A206C65206D6F6E74616E74206465206C61207265636861726765203A0D0A28302D3929,01,05
at+stktrs=00,0135
OK
+STKPCI: 0,DISPLAY TEXT,129,04566F756C657A2D766F757320767261696D656E7420726563686172676572206C6520636C69656E7420363535353535353535207F2068617574657572206465202064697268616D73203F
at
OK
at+stktrs=00
OK
+STKPCI: 1,SEND SHORT MESSAGE,5472616974656D656E7420656E20636F7572732E2E2E,0,0101038154F5000410E18B8FBAC72115E05B54866E5C667593
at+stksms=0
OK
+STKPCI: 2
+STKPCI: 0,PLAY TONE
此后,即使在很长一段时间后也没有从调制解调器发送。 +STKPCI在我看来发送简短消息发送了简短的消息。我也不知道什么 0101038154F5000410E18B8FBAC72115E05B54866E5C667593 是指在文档中,这应该是SMS TPDU,但我无法解码/parse/parse IT。我需要能够发送STK SMS,而无需一遍又一遍地浏览菜单。
仅供参考,我正在通过TCP插座而不是串行连接连接到调制解调器,我正在使用的调制解调器是Dinstar UC2000-VE。
编辑:使用AT命令 AT+STKSMS = 0 ,我能够在手机上接收总结,但是网关侧没有显示任何内容。当我使用手机时,我能够在音调说明操作是否成功后看到确认消息。
编辑2:我正在添加另一个简单的示例,该示例不需要用户输入,而是机密代码:获取用户平衡,同样的问题执行我可以看到加载...消息...消息,但是在使用手机时什么也没有返回加载后,我可以看到我的平衡。 Here are the AT commands executed:
at+stktrs=00,03
OK
+STKPCI: 1,"D00C810301270282028182240101"
+STKPCI: 0,"D03F8103012304820281828D3004456E7472657A206C6520636F646520636F6E666964656E7469656C203A0D0A362063686966667265732028302D392991020606"
at+stktrs=00,01313131313131
OK
+STKPCI: 1,"D0118103012700820281822401012503000100"
+STKPCI: 1,"D03C81030113008202818305165472616974656D656E7420656E20636F7572732E2E2E0B190101038154F5000410ED69EC90113BCA7F71B9E5ED07BB7935"
This string D03C81030113008202818305165472616974656D656E7420656E20636F7572732E2E2E0B190101038154F5000410ED69EC90113BCA7F71B9E5ED07BB7935 shows the Loading message but nothing is received after.
I am experiencing with AT commands using a sim800 modem (Dinstar), I am unable to get the response of the STK command after STK send short message.
When using my phone, the process goes as follows:
- Start the STK app
- Navigate through the STK menu to the option I want
- Input data (phone number, amount)
- Confirm the choice
The phone then shows (Loading...), then after 5 seconds, the STK app shows a message informing the user if the operation was successful or not.
My problem is while using the modem, I am not able to see the message informing the user if the operation was successful or not.
Here are the AT commands used with the result of each one:
at+stktrs=00,01
OK
+STKPCI: 0,SELECT ITEM,2,526563686172676520636C69656E74
+STKPCI: 0,ITEM,1,01,526563686172676520636C61737369717565
+STKPCI: 0,ITEM,2,02,4175747265207363056E6172696F206465207265636861726765
at+stktrs=00,01
OK
+STKPCI: 1,TIMER MANAGEMENT,01
+STKPCI: 0,GET INPUT,4,04456E7472657A206C6520636F646520636F6E666964656E7469656C203A0D0A362063686966667265732028302D3929,06,06
at+stktrs=00,01313131313131
OK
+STKPCI: 1,TIMER MANAGEMENT,01,00,01,00
+STKPCI: 0,GET INPUT,0,04456E7472657A206C65206E756D05726F2064652074056C0570686F6E6520636C69656E74203A0D0A31302063686966667265732028302D3929,0A,0C
at+stktrs=00,0130363535353535353535
OK
+STKPCI: 0,GET INPUT,0,04456E7472657A206C65206D6F6E74616E74206465206C61207265636861726765203A0D0A28302D3929,01,05
at+stktrs=00,0135
OK
+STKPCI: 0,DISPLAY TEXT,129,04566F756C657A2D766F757320767261696D656E7420726563686172676572206C6520636C69656E7420363535353535353535207F2068617574657572206465202064697268616D73203F
at
OK
at+stktrs=00
OK
+STKPCI: 1,SEND SHORT MESSAGE,5472616974656D656E7420656E20636F7572732E2E2E,0,0101038154F5000410E18B8FBAC72115E05B54866E5C667593
at+stksms=0
OK
+STKPCI: 2
+STKPCI: 0,PLAY TONE
After this, nothing is sent from the modem even after a long time.
the +STKPCI SEND SHORT MESSAGE in my opinion sends the Short message. I also do not know what 0101038154F5000410E18B8FBAC72115E05B54866E5C667593 means, in the docs, this should be the SMS tpdu but I am not able to decode/parse it. I need to be able to send the STK SMS without browsing through the menu over and over again.
FYI, I am connecting to the modem via a TCP socket and not a serial connection, the modem I'm using is a Dinstar UC2000-VE.
EDIT: After using the at command AT+STKSMS=0, I am able to receive the topup on my phone, but nothing is shown on the gateway side. When I am using the phone, I am able to see a confirmation message after the tone stating if the operation was successful or not.
EDIT 2: I am adding another simple example which requires no user input but the confidential code: getting user balance, same problem the request is executed I am able to see the loading... message but nothing is returned after, while using the phone I am able to see my balance after the loading... message. Here are the AT commands executed:
at+stktrs=00,03
OK
+STKPCI: 1,"D00C810301270282028182240101"
+STKPCI: 0,"D03F8103012304820281828D3004456E7472657A206C6520636F646520636F6E666964656E7469656C203A0D0A362063686966667265732028302D392991020606"
at+stktrs=00,01313131313131
OK
+STKPCI: 1,"D0118103012700820281822401012503000100"
+STKPCI: 1,"D03C81030113008202818305165472616974656D656E7420656E20636F7572732E2E2E0B190101038154F5000410ED69EC90113BCA7F71B9E5ED07BB7935"
This string D03C81030113008202818305165472616974656D656E7420656E20636F7572732E2E2E0B190101038154F5000410ED69EC90113BCA7F71B9E5ED07BB7935 shows the Loading message but nothing is received after.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
彻底研究了这一点。我找到了一种按预期工作的解决方案,但有些怪异。
在发送STK短消息并接收播放音调STKPCI
发送AT+STKTRS = 10后,似乎获得了显示文本STKPCI,根据手册,STKTRS '10'=主动sim会终止。
现在看起来像这样:
显示文本是操作的结果,但是我不太明白为什么发送 +stkpci:2之后我需要关闭会话,这是根据手册含义< em> 2没有其他命令(会话结束)
After thoroughly looking into this. I found a solution that is working as expected but a little bit weird.
After sending the STK short message and receiving the play tone STKPCI
Sending an AT+STKTRS=10 seems to get the DISPLAY TEXT STKPCI, according to the manual, STKTRS '10' = Proactive SIM session terminated by the user.
Now it looks something like this:
The display text is the result of the operation, but I don't quite understand why do I need to close the session after the +STKPCI:2 is sent, which according to the manual means 2 No other command (end of session)