Skip to content

Commit 9af2ede

Browse files
committed
Merge branch 'docs/update_at_docs' into 'master'
docs: Updated a series of AT docs See merge request application/esp-at!1959
2 parents 91871fd + 42ec801 commit 9af2ede

20 files changed

Lines changed: 2221 additions & 1863 deletions

docs/en/AT_Binary_Lists/esp_at_binaries.rst

Lines changed: 1026 additions & 16 deletions
Large diffs are not rendered by default.

docs/en/AT_Command_Examples/TCP-IP_AT_Examples.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ Below is an example showing how an SSL server is established when {IDF_TARGET_NA
12601260
12611261
OK
12621262
1263-
UART Wi-Fi passthrough transmission when the {IDF_TARGET_NAME} works as a TCP client in single connection
1263+
Network passthrough transmission when the {IDF_TARGET_NAME} works as a TCP client in single connection
12641264
---------------------------------------------------------------------------------------------------
12651265

12661266
#. Set the Wi-Fi mode to station.
@@ -1340,7 +1340,7 @@ UART Wi-Fi passthrough transmission when the {IDF_TARGET_NAME} works as a TCP cl
13401340
13411341
OK
13421342
1343-
#. Enable the UART Wi-Fi :term:`Passthrough Receiving Mode`.
1343+
#. Enable the Network :term:`Passthrough Receiving Mode`.
13441344

13451345
Command:
13461346

@@ -1354,7 +1354,7 @@ UART Wi-Fi passthrough transmission when the {IDF_TARGET_NAME} works as a TCP cl
13541354
13551355
OK
13561356
1357-
#. Enter the UART Wi-Fi :term:`Passthrough Mode` and send data.
1357+
#. Enter the Network :term:`Passthrough Mode` and send data.
13581358

13591359
Command:
13601360

@@ -1372,13 +1372,13 @@ UART Wi-Fi passthrough transmission when the {IDF_TARGET_NAME} works as a TCP cl
13721372
13731373
#. Stop sending data.
13741374

1375-
When receiving a packet that contains only ``+++``, the UART Wi-Fi passthrough transmission process will be stopped. Then please wait at least 1 second before sending the next AT command. Please note that if you input ``+++`` directly by typing, the ``+++`` may not be recognized as three consecutive ``+`` because of the prolonged typing duration. For more details, please refer to :ref:`[Passthrough Mode Only] +++ <cmd-PLUS>`.
1375+
When receiving a packet that contains only ``+++``, the Network passthrough transmission process will be stopped. Then please wait at least 1 second before sending the next AT command. Please note that if you input ``+++`` directly by typing, the ``+++`` may not be recognized as three consecutive ``+`` because of the prolonged typing duration. For more details, please refer to :ref:`[Passthrough Mode Only] +++ <cmd-PLUS>`.
13761376

13771377
.. Important::
13781378

13791379
The aim of ending the packet with ``+++`` is to exit :term:`Passthrough Mode` and to accept normal AT commands, while TCP still remains connected. However, you can also use command ``AT+CIPSEND`` to go back into :term:`Passthrough Mode`.
13801380

1381-
#. Exit the UART Wi-Fi :term:`Passthrough Receiving Mode`.
1381+
#. Exit the Network :term:`Passthrough Receiving Mode`.
13821382

13831383
Command:
13841384

@@ -1408,7 +1408,7 @@ UART Wi-Fi passthrough transmission when the {IDF_TARGET_NAME} works as a TCP cl
14081408
14091409
OK
14101410
1411-
UART Wi-Fi passthrough transmission when the {IDF_TARGET_NAME} works as a TCP server
1411+
Network passthrough transmission when the {IDF_TARGET_NAME} works as a TCP server
14121412
------------------------------------------------------------------------------------
14131413

14141414
#. Set the Wi-Fi mode to station.
@@ -1534,7 +1534,7 @@ UART Wi-Fi passthrough transmission when the {IDF_TARGET_NAME} works as a TCP se
15341534
15351535
0,CONNECT
15361536
1537-
#. Enable the UART Wi-Fi :term:`Passthrough Receiving Mode`.
1537+
#. Enable the Network :term:`Passthrough Receiving Mode`.
15381538

15391539
Command:
15401540

@@ -1548,7 +1548,7 @@ UART Wi-Fi passthrough transmission when the {IDF_TARGET_NAME} works as a TCP se
15481548
15491549
OK
15501550
1551-
#. Enter the UART Wi-Fi :term:`Passthrough Mode` and send data.
1551+
#. Enter the Network :term:`Passthrough Mode` and send data.
15521552

15531553
Command:
15541554

@@ -1566,13 +1566,13 @@ UART Wi-Fi passthrough transmission when the {IDF_TARGET_NAME} works as a TCP se
15661566
15671567
#. Stop sending data.
15681568

1569-
When receiving a packet that contains only ``+++``, the UART Wi-Fi passthrough transmission process will be stopped. Then please wait at least 1 second before sending the next AT command. Please note that if you input ``+++`` directly by typing, the ``+++`` may not be recognized as three consecutive ``+`` because of the prolonged typing duration. For more details, please refer to :ref:`[Passthrough Mode Only] +++ <cmd-PLUS>`.
1569+
When receiving a packet that contains only ``+++``, the Network passthrough transmission process will be stopped. Then please wait at least 1 second before sending the next AT command. Please note that if you input ``+++`` directly by typing, the ``+++`` may not be recognized as three consecutive ``+`` because of the prolonged typing duration. For more details, please refer to :ref:`[Passthrough Mode Only] +++ <cmd-PLUS>`.
15701570

15711571
.. Important::
15721572

15731573
The aim of ending the packet with ``+++`` is to exit :term:`Passthrough Mode` and to accept normal AT commands, while TCP still remains connected. However, you can also use command ``AT+CIPSEND`` to go back into :term:`Passthrough Mode`.
15741574

1575-
#. Exit the UART Wi-Fi :term:`Passthrough Receiving Mode`.
1575+
#. Exit the Network :term:`Passthrough Receiving Mode`.
15761576

15771577
Command:
15781578

@@ -1602,7 +1602,7 @@ UART Wi-Fi passthrough transmission when the {IDF_TARGET_NAME} works as a TCP se
16021602
16031603
OK
16041604
1605-
UART Wi-Fi passthrough transmission when the {IDF_TARGET_NAME} works as a softAP in UDP transparent transmission
1605+
Network passthrough transmission when the {IDF_TARGET_NAME} works as a softAP in UDP transparent transmission
16061606
---------------------------------------------------------------------------------------------------------
16071607

16081608
#. Set the Wi-Fi mode to softAP.
@@ -1660,7 +1660,7 @@ UART Wi-Fi passthrough transmission when the {IDF_TARGET_NAME} works as a softAP
16601660
16611661
OK
16621662
1663-
#. Enter the UART Wi-Fi :term:`Passthrough Receiving Mode`.
1663+
#. Enter the Network :term:`Passthrough Receiving Mode`.
16641664

16651665
Command:
16661666

@@ -1674,7 +1674,7 @@ UART Wi-Fi passthrough transmission when the {IDF_TARGET_NAME} works as a softAP
16741674
16751675
OK
16761676
1677-
#. Enter the UART Wi-Fi :term:`Passthrough Mode` and send data.
1677+
#. Enter the Network :term:`Passthrough Mode` and send data.
16781678

16791679
Command:
16801680

@@ -1692,13 +1692,13 @@ UART Wi-Fi passthrough transmission when the {IDF_TARGET_NAME} works as a softAP
16921692
16931693
#. Stop sending data.
16941694

1695-
When receiving a packet that contains only ``+++``, the UART Wi-Fi passthrough transmission process will be stopped. Then please wait at least 1 second before sending the next AT command. Please note that if you input ``+++`` directly by typing, the ``+++`` may not be recognized as three consecutive ``+`` because of the prolonged typing duration. For more details, please refer to :ref:`[Passthrough Mode Only] +++ <cmd-PLUS>`.
1695+
When receiving a packet that contains only ``+++``, the Network passthrough transmission process will be stopped. Then please wait at least 1 second before sending the next AT command. Please note that if you input ``+++`` directly by typing, the ``+++`` may not be recognized as three consecutive ``+`` because of the prolonged typing duration. For more details, please refer to :ref:`[Passthrough Mode Only] +++ <cmd-PLUS>`.
16961696

16971697
.. Important::
16981698

16991699
The aim of ending the packet with ``+++`` is to exit :term:`Passthrough Mode` and to accept normal AT commands, while TCP still remains connected. However, you can also use command ``AT+CIPSEND`` to go back into :term:`Passthrough Mode`.
17001700

1701-
#. Exit the UART Wi-Fi :term:`Passthrough Receiving Mode`.
1701+
#. Exit the Network :term:`Passthrough Receiving Mode`.
17021702

17031703
Command:
17041704

docs/en/AT_Command_Set/Basic_AT_Commands.rst

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,9 @@ Example
427427
// Set to enter TCP server passthrough mode on power-up, listening on port 1002
428428
AT+SAVETRANSLINK=3,1002,"TCP",2
429429

430+
// Restart the module
431+
AT+RST
432+
430433
// PC connects to esp-ap-001 and uses a TCP client tool to connect to {IDF_TARGET_NAME}'s port 1002
431434
nc 192.168.4.1 1002
432435

@@ -876,8 +879,16 @@ Query Command
876879
Parameters
877880
^^^^^^^^^^
878881

879-
- **<remaining RAM size>**: current remaining heap size. Unit: byte.
880-
- **<minimum heap size>**: minimum available heap size in the runtime. Unit: byte. When the parameter's value is less than or close to 10 KB, the Wi-Fi and BLE functions of {IDF_TARGET_NAME} may be affected.
882+
- **<remaining RAM size>**: Current available heap size. Unit: byte. When there is a memory leak, this value will gradually decrease.
883+
- **<minimum heap size>**: Minimum available heap size recorded since the {IDF_TARGET_NAME} was powered on. Unit: byte. When this value is less than or close to 10 KB, the Wi-Fi and BLE functions of {IDF_TARGET_NAME} may be affected. This value only updates when a new, lower minimum is detected; it never increases.
884+
885+
Note
886+
^^^^
887+
888+
- When ``<minimum heap size>`` is less than or close to 10 KB, or you see logs like ``alloc failed, size:<requested_size>, caps:<requested_caps>`` on the :term:`AT log port`, consider optimizing memory:
889+
890+
- Disable unnecessary AT features under ``python build.py menuconfig`` > ``Component config`` > ``AT``.
891+
- Refer to the `Minimizing RAM Usage <https://docs.espressif.com/projects/esp-idf/en/latest/{IDF_TARGET_PATH_NAME}/api-guides/performance/ram-usage.html>`_ documentation for relevant methods.
881892

882893
Example
883894
^^^^^^^^
@@ -971,17 +982,17 @@ Parameter
971982

972983
- **<state>**:
973984

974-
- Bit0: Prompt information when quitting Wi-Fi :term:`Passthrough Mode`, Bluetooth LE SPP and Bluetooth SPP.
985+
- Bit0: Prompt information when quitting Network :term:`Passthrough Mode`, Bluetooth LE SPP and Bluetooth SPP.
975986

976-
- 0: Print no prompt information when quitting Wi-Fi :term:`Passthrough Mode`, Bluetooth LE SPP and Bluetooth SPP.
977-
- 1: Print ``+QUITT`` when quitting Wi-Fi :term:`Passthrough Mode`, Bluetooth LE SPP and Bluetooth SPP.
987+
- 0: Print no prompt information when quitting Network :term:`Passthrough Mode`, Bluetooth LE SPP and Bluetooth SPP.
988+
- 1: Print ``+QUITT`` when quitting Network :term:`Passthrough Mode`, Bluetooth LE SPP and Bluetooth SPP.
978989

979990
- Bit1: Connection prompt information type.
980991

981992
- 0: Use simple prompt information, such as ``XX,CONNECT``.
982993
- 1: Use detailed prompt information, such as ``+LINK_CONN:status_type,link_id,ip_type,terminal_type,remote_ip,remote_port,local_port``.
983994

984-
- Bit2: Connection status prompt information for Wi-Fi :term:`Passthrough Mode`, Bluetooth LE SPP and Bluetooth SPP.
995+
- Bit2: Connection status prompt information for Network :term:`Passthrough Mode`, Bluetooth LE SPP and Bluetooth SPP.
985996

986997
- 0: Print no prompt information.
987998
- 1: Print one of the following prompt information when Wi-Fi, socket, Bluetooth LE or Bluetooth status is changed:
@@ -1010,15 +1021,15 @@ Notes
10101021
^^^^^
10111022

10121023
- The configuration changes will be saved in the NVS partition if ``AT+SYSSTORE=1``.
1013-
- If you set Bit0 to 1, it will prompt "+QUITT" when you quit Wi-Fi :term:`Passthrough Mode`.
1024+
- If you set Bit0 to 1, it will prompt "+QUITT" when you quit :term:`Passthrough Mode`.
10141025
- If you set Bit1 to 1, it will impact the information of command :ref:`AT+CIPSTART <cmd-START>` and :ref:`AT+CIPSERVER <cmd-SERVER>`. It will supply "+LINK_CONN:status_type,link_id,ip_type,terminal_type,remote_ip,remote_port,local_port" instead of "XX,CONNECT".
10151026

10161027
Example
10171028
^^^^^^^^
10181029

10191030
::
10201031

1021-
// print no prompt info when quitting Wi-Fi passthrough mode
1032+
// print no prompt info when quitting passthrough mode
10221033
// print detailed connection prompt info
10231034
// print no prompt info when the connection status is changed
10241035
AT+SYSMSG=2
@@ -1850,6 +1861,10 @@ Query the address and version of the current running firmware and the rollback f
18501861
Execute Command
18511862
^^^^^^^^^^^^^^^
18521863

1864+
**Function:**
1865+
1866+
Roll back to the previous firmware.
1867+
18531868
**Command:**
18541869

18551870
::
@@ -1873,11 +1888,12 @@ Parameters
18731888
Note
18741889
^^^^^
18751890

1876-
.. only:: esp32c2
1877-
1878-
- **{IDF_TARGET_CFG_PREFIX}-4MB AT firmware supports this command, but {IDF_TARGET_CFG_PREFIX}-2MB AT firmware does not due to the compressed OTA firmware**.
1891+
.. list::
18791892

1880-
- This command will not upgrade via OTA. It only rolls back to the firmware which is in the other OTA partition.
1893+
- When performing a firmware rollback, {IDF_TARGET_NAME} first verifies the integrity of the target firmware. The rollback proceeds only if verification succeeds; otherwise, an error is returned.
1894+
:esp32c2: - For {IDF_TARGET_NAME}-2MB AT firmware, the compressed OTA partition stores a firmware image that, after decompression, is identical to the currently running firmware. Therefore, a true firmware switch cannot be performed.
1895+
:esp32c5 or esp32c61: - For {IDF_TARGET_NAME}-4MB AT firmware, the compressed OTA partition stores a firmware image that, after decompression, is identical to the currently running firmware. Therefore, a true firmware switch cannot be performed.
1896+
:esp32c2 or esp32c3 or esp32c6 or esp32 or esp32s2: - The rollback function operates independently of the OTA upgrade process and can directly switch execution to the firmware version stored in the other OTA partition.
18811897

18821898
.. _cmd-SETTIME:
18831899

docs/en/AT_Command_Set/MQTT_AT_Commands.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Introduction
2828
------------
2929

3030
.. important::
31+
- Currently, AT firmware for {IDF_TARGET_NAME} series supports `MQTT Version 3.1.1 <https://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html>`_.
3132
- The default AT firmware supports all the AT commands mentioned on this page. If you don't need {IDF_TARGET_NAME} to support MQTT commands, you can compile the ESP-AT project by following the steps in :doc:`Compile ESP-AT Project Locally <../Compile_and_Develop/How_to_clone_project_and_compile_it>` documentation. In the project configuration during the fifth step, make the following selections:
3233

3334
- Disable ``Component config`` > ``AT`` > ``AT MQTT command support``

0 commit comments

Comments
 (0)