Home > other >  The AT command programming for bosses
The AT command programming for bosses

Time:11-02

Hello, everyone, now I have a problem on the AT command, want to seek advice, hope glad ha, I want to use the AT commands through the serial port and a communication equipment, is intended to send a the AT command after waiting for the result, but the device will have some voluntarily report to the AT command, so that I'll have to open a thread to read these active reporting instructions, then there is a question arises: this could elevate the active while reading the results after sending command data reading is gone, you have met the similar problem? How to solve

CodePudding user response:

Return for the AT command will not report and take the initiative to the content of the same, when considering these they order agreement

CodePudding user response:

In addition to pay attention to the differences the AT command as the upstairs said, for this kind of response/or need resend's instructions, using the callback function, set the timer (timeout and timeout retransmission times), the registered callback function corresponding to receive instructions, if received the reply, then cancel order send content in the callback, it time to resend order,,,,

CodePudding user response:

All read using a single thread, to distinguish what is the nature of the data, after reading to do processing respectively

CodePudding user response:

refer to the second floor liuyinggui163 response:
in addition to pay attention to the differences the AT command as the upstairs said, for this kind of response/or need resend's instructions, using the callback function, set the timer (timeout and timeout retransmission times), the registered callback function corresponding to receive instructions, if received the reply, then cancel order send content in the callback, it time to resend order,,,,

Thank you thank you thank you! The benefit bandit shallow,

CodePudding user response:

reference worldy reply: 3/f
all read using a single thread, to distinguish what is the nature of the data, after reading to do processing respectively

A thread, voluntarily report data: what happened

CodePudding user response:

According to a leading do different data processing
  • Related