# Basic Command
#AT
Function: Test AT system startup.
Execute Command: | AT+MEMFREE? |
Response: | OK |
#AT+RST
Function: Restart Module.
Execute Command: | AT+RST |
Response: | OK |
#AT+GMR
Funciton: View version information
Execute Command: | AT+GMR |
Response: | <Firmware sn> <Firmware crc> <Driver version> <Firmware version> OK |
Parameter: |
|
#AT+ECHO
Function: Set whether the AT command echo function is enabled.
Execute Command: | AT+ECHO=<enable> |
Response: | OK |
Parameter: | enable: 0-OFF,1-ON。The default is ON. |
#AT+CMD
Function:View supported AT command.
Query Command: | AT+CMD? |
Response: | +CMD:<index>,<"name">[,<"EXE">,<"QUERY">,<"SET">] OK |
Parameter: |
|
#AT+SYSLOG
Function: Enable or disable AT error code.
Query Command: | AT+SYSLOG? |
Response: | +SYSLOG:<status> OK |
Set Command: | AT+SYSLOG=<status> |
Response: | OK |
Parameter: |
|
Demo:
// Enable AT error code prompt
AT+SYSLOG=1
OK
AT+FAKE
ERR CODE:0x01090000
ERROR
// Disable AT error code prompt
AT+SYSLOG=0
OK
AT+FAKE
// No prompt`ERR CODE:0x01090000`
ERROR
#AT+SYSSTORE
Function: Set Parameter Storage Method.
Query Command: | AT+SYSSTORE? |
Response: | +SYSSTORE:<store_mode> OK |
Parameter: | <status>:Error code prompt status
|
Set Command: | AT+SYSSTORE=<store_mode> |
Response: | OK |
Parameter: | <store_mode>:Parameter Storage mode
|
Explaination:
- This command only affects the setting of the command, not the Query Command, because the Query Command is always called from RAM.
- This command will affect all settings Command:
#AT+RESTORE
Function: Restore factory settings.
Execute Command: | AT+RESTORE |
Response: | OK |
Explaination:
- This command will erase all parameters saved to flash and restore them to the default parameters.
- Running this command will restart the device.
#AT+UART_CUR
Funtion: Configure UART current temporary configuration without saving to flash.
Query Command: | AT+UART_CUR? |
Response: | +UART_CUR:<baudrate>,<databits>,<stopbits>,<parity>,<flow control> OK |
Set Command: | AT+UART_CUR=[<baudrate>,<databits>,<stopbits>,<Parity>,<flow control>] |
Response: | OK |
Parameter: |
|
Explaination:
- The Query Command returns the actual value of the UART configuration parameter, which may differ slightly from the set value due to clock division.
- This setting is not saved to flash.
- To use the hardware flow control function, it is necessary to connect the CTS/RTS pins of the device. Currently, the MX1510 series module does not support flow control.
Demo:
AT+UART_DEFFuntion: Configure the current temporary configuration of UART and save it to flash.Query Command:AT+UART_DEF?Response:+UART_DEF:,,,,OKSet Command:AT+UART_DEF=[,,,,]Response:OKParameter:Please refer to Command: AT+UART_CURDescription:This setting is saved to the KV partition of flash. Still valid when the device is powered on againThe Query instruction reads the parameters saved in the KV partition, which may be different from the current serial port parametersDemo:AT+UART_DEF=115200,8,1,0,3