AWS IoT connection time
Posted: Wed Dec 13, 2017 11:46 am
Hi
We're building an application where the ESP32 comes out of deep sleep and needs to connect to AWS IoT. Speed is important here. Waking up and connecting to Wifi and getting an IP is taking about 2.5 seconds (which I'm assuming is as good as we're going to get). The main issue is that connecting to AWS IoT is then taking a further 3.5-4 seconds (with nothing else running), which is pretty slow. I'm aware that the handshake is probably taking a fair bit of that time and we might be limited, but I expected it to be quicker. In another part of the app we're establishing a DTLS connection and whilst I appreciate that's over UDP, the handshake is done much much quicker.
It could be that AWS is just slow, but are there any things I can look for an optimise within the ESP? I've tried configuring Wifi throughput and lWIP (with no improvement) and I'm going to look at ECC certs over RSA, but it's just too slow for our purposes.
Thanks
Simon
We're building an application where the ESP32 comes out of deep sleep and needs to connect to AWS IoT. Speed is important here. Waking up and connecting to Wifi and getting an IP is taking about 2.5 seconds (which I'm assuming is as good as we're going to get). The main issue is that connecting to AWS IoT is then taking a further 3.5-4 seconds (with nothing else running), which is pretty slow. I'm aware that the handshake is probably taking a fair bit of that time and we might be limited, but I expected it to be quicker. In another part of the app we're establishing a DTLS connection and whilst I appreciate that's over UDP, the handshake is done much much quicker.
It could be that AWS is just slow, but are there any things I can look for an optimise within the ESP? I've tried configuring Wifi throughput and lWIP (with no improvement) and I'm going to look at ECC certs over RSA, but it's just too slow for our purposes.
Thanks
Simon