
!
3. Basic AT Commands
3.2.8. AT+UART_CUR—Current UART Configuration; Not Saved in the Flash
Command
Query Command:
AT+UART_CUR?
Set Command:
AT+UART_CUR=<baudrate>,<databits>,<stop
bits>,<parity>,<flow control>
Response
+UART_CUR:<baudrate>,<databits>,<stopbits>,<pari
ty>,<flow control>
OK
OK
Note
Command
AT+UART_CUR?
will return the actual value of
UART configuration parameters, which may have
allowable errors compared with the set value because of
the clock division.
For example, if the UART baud rate is set as 115200,
the baud rate returned by using command
AT+UART_CUR?
could be 115273.
-
Parameters
•
<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 NOT be saved in the flash.
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_CUR=115200,8,1,0,3
Espressif
!
/
!
11 58
2017.05