Chengdu Ebyte Electronic Technology Co., Ltd.
E104-BT20 User Manual
_________________________________________________________________________________________________
Copyright ©2012–2020, Chengdu Ebyte Electronic Technology Co., Ltd.
8
Connection mode
Specify the Bluetooth address connection mode
LED drive polarity
Low level
GPIO pins
Suspended
6.2 AT command Details:
Command format
1. The "AT +" instruction is based on the ASCII character set, and the instruction has a strict format.
< >
: The actual instruction does not include these two characters, it is only used to indicate the enclosed, and must be
included in the instruction.
2. AT instruction format
<AT + CMD>, <op>, <param1, param2, param3, ...>, <CR> <LF>
<AT + CMD>
:
AT +
: command message prefix;
CMD
: command string
<op>
Instruction operation character,
=:
Set operation;
?:
Represents a query operation
<param-n>
: parameter list of setting operations, all separated by commas
<CR> <LF>
: terminator, which means carriage return and line feed, ASCII codes are 0x0a and 0x0d
3. Response message
Query operation
<+ CMD:> <param1, param2, param3 ...> <CR> <LF> <OK> <CR> <LF>
+
: Response message prefix
CMD
: command string
(NOTE: The interval symbol between the parameters does not change according to the instruction. The returned Bluetooth
address is separated by a colon ’:’)
Setting operation
<OK> <CR> <LF> —success
,
<FAIL> —failure
Incorrect command input response format:
<+ ERROR (error code index number)> <CR> <LF>
<CR> <LF>
: terminator, which means carriage return and line feed, ASCII codes are 0x0d and 0x0a
4. The letter in <AT + CMD> command is not case sensitive.
6.2.1 Test Command
Command
Answer
Parameter
AT
OK
None
6.2.2 Module Resetting
Command
Answer
Parameter
AT+RESET
OK
None
NOTE: Before sending this command, please pay attention to the MOD pin status. If MOD is low, it will enter the
normal configuration mode, otherwise, it will enter the power-on configuration mode.