# 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:

  • Firmware sn: The unique identifier used to manage firmware by MXCHIP, Defined in<at_ project>/CMakeLists.txt
  • Firmware CRC: CRC of Application partition in Flash calculated in real time
  • Driver version: Driver version
  • Firmware version: Version, the format is <major>.< minor>

#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:

  • index: instruction number
  • name: Instruction name
  • "EXE": Supports executing instructions
  • "QUERY": Supports Query instructions
  • "SET": Supports setting instructions, which always support testing instructions at the same time

#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:

  • <status>:Error code prompt status

    • 0:Disable
    • 1:Enable

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

  • 0:Disable
  • 1:Enable

Set Command:

AT+SYSSTORE=<store_mode>

Response:

OK

Parameter:

<store_mode>:Parameter Storage mode

  • 0:Command configuration not stored in flash
  • 1:Commandconfiguration stored in flash(default)

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:

  • <baudrate>: UART baud rate, MX1510 series module support range from 1200 to 2000000

  • <databits>: Data bits

    • 5: 5 bit data bits
    • 6: 6 bit data bits
    • 7: 7 bit data bits
    • 8: 8 bit data bits
  • <stopbits>: Stop bits

    • 1: 1 bit stop bit
    • 2: 1.5 bit stop bit
    • 3: 2 bit stop bit
  • <party>: Check bit

    • 0: None
    • 1: Odd
    • 2: Even
  • Flow control

    • 0: Do not enable flow control
    • 1: Enable RTS
    • 2: Enable CTS
    • 3: Enable both RTS and CTS simultaneously

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
Last Updated: 11/29/2023, 1:52:34 PM