Operation Guide
© 2022 Shanghai RaymonIoT Technology Co., Ltd.
X-C13SG_REV1.6_Operation Guide
X-C13SG
Shanghai RaymonIoT Technology Co., Ltd.
12
l Command Message
AT+<CMD>[op][para-1,para-2,para-3,para-4…]<CR>
n AT+: Prefix of command message;
n CMD: Command string;
n [op]: Symbol of command operator,
u “=”: The command requires parameters input;
u “NULL”: Query the current command parameters setting;
n [para-n]: Parameters input for setting if required;
n <CR>:”Enter” Key, it’s 0x0a or 0x0d in Hex;
l Notes:
<CR>, <LF> and <CRLF> are three different command ends. The HEX value of each is:
<CR>=0x0d, <LF>=0x0a, <CRLF>=0x0d 0x0a. Please pay attention to their differnces especially when
using different UART tools. Some tools will only send <CR>, some will send <CRLF> when input
“Enter” key, so we suggest that:
1,All command use HEX format;
2,Choose a right UART tools, can control these end characters.
n Response Message +<RSP>[op] [para-1,para-2,para-3,para-4…]<CR><LF><CR><LF>
n +: Prefix of response message;
n RSP: Response string;
u “ok”: Success
u “ERR”: Failure
n [op]: =
n [para-n]: Parameters if query command or Error code when error happened;
n <CR>: HEX 0x0d;
n <LF>: HEX 0x0a;
l Error Code
Error Code
Description
-1
Invalid Command Format
-2
Invalid Command
-3
Invalid Operation Symbol