
!
3. Basic AT Commands
3.2.9. AT+UART_DEF—Default UART Configuration; Saved in the Flash
Command
Query Command:
AT+UART_DEF?
Set Command:
AT+UART_DEF=<baudrate>,<databits>,<stopbits>
,<parity>,<flow control>
Response
+UART_DEF:<baudrate>,<databits>,<stopbits>,<
parity>,<flow control>
OK
OK
Parameter
•
<baudrate>
: UART baud rate
•
<databits>
: data bits
‣
5
: 5-bit data
‣
6
: 6-bit data
‣
7
: 7-bit data
‣
8
: 8-bit data
•
<stopbits>
: stop bits
‣
1
: 1-bit stop bit
‣
2
: 1.5-bit stop bit
‣
3
: 2-bit stop bit
•
<parity>
: parity bit
‣
0
: None
‣
1
: Odd
‣
2
: Even
•
<flow control>
: flow control
‣
0
: flow control is not enabled
‣
1
: enable RTS
‣
2
: enable CTS
‣
3
: enable both RTS and CTS
Notes
1. The configuration changes will be saved in the user parameter area in the flash, and will still be valid
when the chip is powered on again.
2. The use of flow control requires the support of hardware:
‣
MTCK is UART0 CTS
‣
MTDO is UART0 RTS
3. The range of baud rates supported: 110~115200*40.
Example
AT+UART_DEF=115200,8,1,0,3
Espressif
!
/
!
12 58
2017.05