A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.espressif.com/projects/esp-at/en/latest/esp32/AT_Command_Set/user_at_commands.html below:

Website Navigation


User AT Commands - ESP32

User AT Commands

[中文]

Introduction

Important

The default AT firmware supports all the AT commands mentioned on this page. If you don’t need ESP32 to support user commands, you can compile the ESP-AT project by following the steps in Compile ESP-AT Project Locally documentation. In the project configuration during the fifth step, make the following selections:

AT+USERRAM: Operate user’s free RAM Query Command

Function:

Query the current available user’s RAM size.

Command:

Response:

Set Command

Function:

Operate user’s free RAM

Command:

AT+USERRAM=<operation>,<size>[,<offset>]

Response:

+USERRAM:<length>,<data>    // esp-at returns this response only when the operator is ``read``

OK
Parameters Notes Example
// malloc 1 KB user's RAM
AT+USERRAM=1,1024

// write 500 bytes to RAM (offset: 0)
AT+USERRAM=2,500

// read 64 bytes from RAM offset 100
AT+USERRAM=3,64,100

// free the user's RAM
AT+USERRAM=0
AT+USEROTA: Upgrade the Firmware According to the Specified URL

ESP-AT upgrades firmware at runtime by downloading the new firmware from a specific URL.

Set Command

Function:

Upgrade to the firmware version specified by the URL.

Command:

Response:

This response indicates that AT is ready for receiving URL. You should enter the URL, and when the URL length reaches the <url len> value, the system returns:

After AT outputs the above information, the upgrade process starts. If the upgrade process is complete, the system return:

If the parameter is wrong or firmware upgrades fails, the system returns:

Parameters Note Example
AT+USEROTA=36

OK

>
Recv 36 bytes

OK
AT+USERWKMCUCFG: Configure How AT Wakes Up MCU Set Command

Function:

This command configures how AT checks whether MCU is in awake state and how to wake it up.

Command:

AT+USERWKMCUCFG=<enable>,<wake mode>,<wake number>,<wake signal>,<delay time>[,<check mcu awake method>]

Response:

Parameters Notes Example
// Enable wake-up MCU configuration. Before each time the AT sends data to the MCU, it will first use the GPIO18 pin of the Wi-Fi module to wake up the MCU at a high level and hold on the high level for 10 seconds.
AT+USERWKMCUCFG=1,1,18,1,10000,3

// Enable wake-up configuration
AT+USERWKMCUCFG=0
AT+USERMCUSLEEP: MCU Indicates Its Sleep State Set Command

Function:

This command can only be taken effect when the <check mcu wake method> Bit 0 of the AT+USERWKMCUCFG command is configured. It used to inform AT that the current MCU sleep state.

Command:

Response:

Parameters Example
// MCU tells AT that the current MCU is in awake state
AT+USERMCUSLEEP=0
AT+USERDOCS: Query the ESP-AT User Guide for Current Firmware Query Command

Function:

Query the ESP-AT English and Chinese user guide for current running firmware.

Command:

Response:

+USERDOCS:<"en url">
+USERDOCS:<"cn url">

OK
Parameters Example
AT+USERDOCS?
+USERDOCS:"https://docs.espressif.com/projects/esp-at/en/latest/esp32/index.html"
+USERDOCS:"https://docs.espressif.com/projects/esp-at/zh_CN/latest/esp32/index.html"

OK

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4