How to get the output of AT command into a string in java?

前端 未结 1 1979
终归单人心
终归单人心 2020-12-10 09:48

I am trying to read the result of an AT command (command executed to do various operation to a GSM modem from console). I have seen and successfully tested using the Java Ou

相关标签:
1条回答
  • 2020-12-10 10:16

    You must restructure the flow in your program so that it starts by sending the AT command line, and then read back and parse the every single response line given back from the modem until you get a final result code. See this answer for the general outline.

    Properly parsing AT command responses is not that complicated, have a look at the source code for atinout for an example.

    0 讨论(0)
提交回复
热议问题