How to Update Factory Parameters
This document describes how to update the default factory parameter configuration for ESP-AT by recompiling the firmware. The factory parameter configuration includes some Wi-Fi configurations, UART configurations, and module configurations.
Note
If you want to update factory parameters at runtime using AT commands without recompiling the firmware, please refer to AT+SYSMFG command examples.
Factory Parameter Configuration
The default factory parameters are configured in the source file customized_partitions/raw_data/factory_param/factory_param_data.csv, as shown below:
Function
Current Configuration
Related AT Commands
Version Information
version (version number of the factory parameter structure, currently version 4, used to identify parameter format and compatibility)
Wi-Fi Configuration
max_tx_power (Wi-Fi maximum transmission power for ESP32-C5, see ESP32-C5 Transmit Power for the setting range)
country_code (country code)
start_channel (starting Wi-Fi channel)
channel_num (total number of Wi-Fi channels)
All AT commands requiring Wi-Fi functionality
UART Configuration
uart_port (UART port used for sending AT commands and receiving AT responses)
uart_baudrate (UART baud rate)
uart_tx_pin (UART TX pin)
uart_rx_pin (UART RX pin)
uart_cts_pin (UART CTS pin)
uart_rts_pin (UART RTS pin)
All AT commands requiring UART functionality
System Store Mode
sys_store (default system store mode)
0: Do not automatically store configuration changes to flash
1: Automatically store configuration changes to flash (default)
Module Name
module_name
Please modify the factory parameters configurations according to your own needs and generate mfg_nvs.bin file.
Generate mfg_nvs.bin
Please refer to Generate mfg_nvs.bin document to generate the mfg_nvs.bin file with the factory parameters configurations.
Download mfg_nvs.bin
Please refer to Download mfg_nvs.bin document.