Downloading file with AT+QFDWL="RAM:testfile"

Hi!

I have testfile which is 369200 bytes long. When I try to download it to ESP32 over uart from EG21-G modem, the size seems to be 369235. Taking closer look at it, there is at least this AT+QFDWL=“RAM:testfile” echoed to the beginning of the file. How could I avoid that?

I tried again to read only first packet coming from the RX buffer and it contained this AT-command, but it was total 120 bytes long, so dropping this first packet would not help - it would drop first bytes of the file too.

Partial solution to problem: ATE0 seems to strip the echoed command. Now there is still 11 bytes extra since resulting file is 369211 bytes long. I need to debug further what is that then…

Update. Now it looks normal behavior with ATE0. This first 11 bytes is separate packet which contains “\nCONNECT\n” as expected.

Hi @aapee
So it’s not a problem, is it?

No problem, simply by removing “\nCONNECT\n” from data after downloading it all, it works.