ESP32-AT socket connection errors #esp32


Federico GC
 

Hi all,
I'm using an ESP32-WROOM-S2 as WiFi modem through its AT commands interface and I'm facing a lot of issues using UDP/TCP sockets.
I have a worker thread that publish messages over sockets (TCP or UPD) and after a while (a couple of minutes) the ESP32 starts sending ERROR messages on each query and in the log UART I'm seeing messages like:
"ALREADY CONNECTED"
I tried using sockets directly and with the net context interface and it ends up in the same issue and the board stops sending messages over the network.
I also tried with the net shell command net udp send after a couple of messages it starts failing.

Any clue?
Thanks


Jonathan Beri
 

I haven't tried this myself but make sure you check which release of the esp32-at your device is running. It also seems that the ESP32-S2 is no longer supported:

  • ESP32-S2 Series
    • ESP32-C2 is recommended to use instead
    • ESP-AT will not release the major version for ESP32-S2.
    • ESP-AT no longer adds new features to ESP32-S2.
    • v2.1.0.0_esp32s2 is the last version of ESP-AT for ESP32-S2, corresponding to branch release/v2.1.0.0_esp32s2, corresponding to documentation https://docs.espressif.com/projects/esp-at/en/release-v2.1.0.0_esp32s2.
    • ESP-AT will regularly update release/v2.2.0.0_esp32 branch for ESP32-S2. Update includes vital bugfix and security repair.
 


Federico GC
 

Hi Jonathan,
I'm using the latest release version ESP32-WROOM-32-V2.4.0.0. I'll continue investigating the issue.
Do you know if there's support for NRF24L01 devices to use them as WiFi modems over SPI?

Thanks,
Federico


Jonathan Beri
 

Hmm...the NRF24L01 is a proprietary 2.4Ghz radio but doesn't implement wi-fi as far as I know.


Federico GC
 

I used it in the past to do some smart devices at home but programming the nrf24 micro with Arduino IDE (maybe 8 years ago) instead of using it as a modem, maybe that's the difference.
I'll keep working on the ESP32 issue.

Thanks Jonathan

El lun, 12 dic 2022 a las 12:23, Jonathan Beri (<jberi@...>) escribió:
Hmm...the NRF24L01 is a proprietary 2.4Ghz radio but doesn't implement wi-fi as far as I know.