+IPD return wrong number of bytes
Posted: Mon Oct 03, 2022 7:24 am
Hi!
I'm having a problem with +IPD command. It shows wrong number of bytes to read. My ESP32 chip connected to MCU with UART
I'm trying to download a file about 20-30kB size. When I do that I receive:
+IPD,<ID>,<N>,<ip addr>,<port>:<N + M data bytes>
+IPD,<ID>,<N>,<ip addr>,<port>:<N + L data bytes>
...
+IPD,<ID>,<K>,<ip addr>,<port>:<K data bytes>
i.e. I receive more bytes, than I expect to. Usually N is 2920 and M/L is about 1500..2000 (didn't counted)
Same +IPD works fine on ESP8266:
+IPD,<ID>,<1460>,<ip addr>,<port>:<1460 data bytes>
+IPD,<ID>,<1460>,<ip addr>,<port>:<1460 data bytes>
...
+IPD,<ID>,<N>,<ip addr>,<port>:<N data bytes>
I'm using latest ESP-AT firmware from https://github.com/espressif/esp-at.git, master branch, commit e2fe74c8bbc40b9e5ba6c47ecdf871eda9673b23
I'm having a problem with +IPD command. It shows wrong number of bytes to read. My ESP32 chip connected to MCU with UART
I'm trying to download a file about 20-30kB size. When I do that I receive:
+IPD,<ID>,<N>,<ip addr>,<port>:<N + M data bytes>
+IPD,<ID>,<N>,<ip addr>,<port>:<N + L data bytes>
...
+IPD,<ID>,<K>,<ip addr>,<port>:<K data bytes>
i.e. I receive more bytes, than I expect to. Usually N is 2920 and M/L is about 1500..2000 (didn't counted)
Same +IPD works fine on ESP8266:
+IPD,<ID>,<1460>,<ip addr>,<port>:<1460 data bytes>
+IPD,<ID>,<1460>,<ip addr>,<port>:<1460 data bytes>
...
+IPD,<ID>,<N>,<ip addr>,<port>:<N data bytes>
I'm using latest ESP-AT firmware from https://github.com/espressif/esp-at.git, master branch, commit e2fe74c8bbc40b9e5ba6c47ecdf871eda9673b23