I'm trying to find out the best way to configure the USART for interfacing with a GSM module.
I used to configure the USART with interrupt mode and fill a buffer, expecting an start character and end character in the received data.
Now I find that sometimes the GSM module send several data that doesn't work with my method. For example, if I send AT+CREG?, the module response is something like
I started to think that interrupt mode is not the best way to process received data.
According to your experience, what is the best way to receive and process ?