ESPNOW Slower than expected RTT (Round Trip Time)
Posted: Wed Apr 03, 2019 1:14 am
I have been testing RTT times on 2 ESP32 modules & have it down to an average of 6000 micro seconds (6 mili seconds).
Source for TX: https://github.com/leonyuhanov/ESP32_ES ... r/espnowv1
Source for RX: https://github.com/leonyuhanov/ESP32_ES ... r/espnowv2
-The TX Module sends a 250Byte ESPNOW packet to the RX module
-The TX Module waits for a reply from the RX module & calculates the Time (in uS).
The RTT is way to long or I'm missing something... On the ESP8266 RTT for the same size packet is under 1000 micros on average.
On the ESP32 (using the Arduino SDK) RTT is 2ms worse!
I started testing this using the IDF SDK and thought id get better times.
I suspect that on the ESP8266 the send data function does not wait for an ACK from the receiver before returning an OK.
I think on the ESP32 IDF SDK, the espnow send data function returns OK only when an ACK from the receiver has been revived, BUT i have no way to test or prove this
Has anyone had any experience with this?
PS I have opened a case https://github.com/espressif/esp-idf/issues/3238
Source for TX: https://github.com/leonyuhanov/ESP32_ES ... r/espnowv1
Source for RX: https://github.com/leonyuhanov/ESP32_ES ... r/espnowv2
-The TX Module sends a 250Byte ESPNOW packet to the RX module
-The TX Module waits for a reply from the RX module & calculates the Time (in uS).
The RTT is way to long or I'm missing something... On the ESP8266 RTT for the same size packet is under 1000 micros on average.
On the ESP32 (using the Arduino SDK) RTT is 2ms worse!
I started testing this using the IDF SDK and thought id get better times.
I suspect that on the ESP8266 the send data function does not wait for an ACK from the receiver before returning an OK.
I think on the ESP32 IDF SDK, the espnow send data function returns OK only when an ACK from the receiver has been revived, BUT i have no way to test or prove this
Has anyone had any experience with this?
PS I have opened a case https://github.com/espressif/esp-idf/issues/3238