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…