Cancel an AT command response

I have created a program to extract data from various AT commands, such as AT+QENG=“servingcell” or AT+QSCAN. Sometimes, some of these commands take even over a minute to respond. To handle this, I implemented a timeout of 40 seconds, if no response is received within this time, the next command is sent.

The issue I’m facing is that, although the new command is sent, it doesn’t receive a response until the previous command has finished responding. Ideally, when the timeout is triggered, the ongoing command should be canceled so that the new one is processed immediately.

Is there a way to force the cancellation of an AT command response?

hello, could you tell us your current firmware version? thanks~

Hi, my current firmware version is: RM520NGLAAR01A08M4G
Thank you very much

loop @silvia to support this issue

Dear @Carlos_CM
Sorry about this.
Currently, we don’t have AT command to cancel.AT+QSCAN need more time to get response due to it is searching.

Hello Silvia, thank you very much for your reply. I wasn’t looking for a command to cancel exactly the AT+QSCAN, but I understand that there is no AT command that can pause a running one. Could there be any other way to do it? Thank you very much!