I am using the FreeRTOS Cellular Interface to read files stored in the Flash memory of a Quectel BG96 modem. Specifically, I am trying to use the AT+QFREAD command to read these files. However, I need more detailed information on how to handle the responses and implement this correctly.
When using the AT+QFREAD command, the modem responds with the following format:
AT+QFREAD=1,1024
\r\n
CONNECT 1024
\r\n
(Binary Data)
\r\n
OK
\r\n
How should I handle this response in the FreeRTOS Cellular Interface? Specifically, how should I handle the CONNECT token and the binary data?
The pktDataPrefixCallback callback function is required to indicate the data start address and data length, along with returning CELLULAR_PKT_STATUS_SIZE_MISMATCH until required raw data bytes are received.
You can refer a similar thread here for more data.