The application discloses an AT instruction
analysis method, a terminal and a computer readable medium, and relates to the field of
electronic communication. The method comprises the following steps: reading an instruction line from a
circular buffer queue ring_buf; under the premise that the instruction line data is correct, querying and calling an element matched with the data line in a URC table, executing a function corresponding to the element, releasing a second
semaphore resp_notice, and completing the analysis of the AT instruction; when the URC table does not store the element matched with the data line, querying whether the last line of a string of a
processing result fed back after the execution of the AT instruction by a
data transmission module is a correct identifier OK or a failure or error identifier, if the correct identifier OK, marking a response state resp_status as successful and releasing the resp_notice
semaphore, and completing the analysis of the AT instruction; if the failure or error identifier, marking the response state resp_status as a failure and releasing the resp_notice
semaphore, and completing the analysis of the AT instruction. The application realizes the analysis of AT instructions of different
data transmission modules.