ESP-AT usage with 1 UART connection

felipe
Posts: 11
Joined: Mon Jan 18, 2021 5:13 pm

ESP-AT usage with 1 UART connection

Postby felipe » Wed Jan 19, 2022 7:17 am

Hi!

Is it possible to use ESP-AT with only 1 UART connection?

For example, we will flash the ESP32-U4WDH with the UART0, and then use this UART to send AT commands. When we want to upgrade ESP32 firmware, we can use BOOT pins to force it into bootloader and then flash it with UART0.

We need a solution that supports WiFi and BLE over a single serial connection to the host MCU.

Kind regards,
Filip

ESP_Sun
Posts: 291
Joined: Thu Dec 30, 2021 9:52 am

Re: ESP-AT usage with 1 UART connection

Postby ESP_Sun » Wed Jan 19, 2022 11:53 am

It is possible to use ESP-AT using only UART0 connection. You can change the AT command port (UART1) to UART0:
Method 1: Please refer to https://docs.espressif.com/projects/esp ... -port-pins, then if you want to upgrade the ESP32 firmware, you can use AT+USEROTA command OTA to upgrade ESP32 firmware.
Method 2: You can modify factory_param.bin through the https://github.com/espressif/esp-at/blo ... ools/at.py (You can view the relevant configuration through python tools/at.py -h and python tools/at.py modify_bin -h. ) file to replace factory_param.bin in the AT firmware. Afterwards, if you want to upgrade the ESP32 firmware, you can use AT+CIUPDATE or AT+USEROTA command to perform OTA upgrade.
Regarding the upgrade method you mentioned, use the BOOT pin to force into the bootloader,and then flash it with UART0. You can read the official technical manual of ESP32-U4WDH first. If you need technical support, you can consult the ESP-IDF team.

Who is online

Users browsing this forum: No registered users and 38 guests