Chengdu Ebyte Electronic Technology Co., Ltd.
E104-BT20 User Manual
_________________________________________________________________________________________________
Copyright ©2012–2020, Chengdu Ebyte Electronic Technology Co., Ltd.
10
6.2.7 Inquiry/Setting-Bluetooth Role
Command
Answer
Parameter
AT+ROLE?
OK
param: The values are as follows
0—Slave default
1—Master
2—Slave-Loop
AT+ ROLE =<param>
+ ROLE :<param>OK
The above commands will take effect after restarting.
Module role description:
Slave—Passive connection;
Slave-Loop—Passive connection, receiving data from the peer Bluetooth master device and returning the data to the peer
Bluetooth master device as is;
Master role (Master) —In the specified Bluetooth address connection mode, the Bluetooth address that is bound is automatically
connected; the Bluetooth address in the pairing list is automatically connected to realize the transparent transmission of data between
the master and slave Bluetooth devices.
6.2.8 Inquiry/Set-Serial Port Parameters
Command
Answer
Parameter
AT+UART?
OK
param1: baud rate (bits / s)
The values are as follows
(decimal):
2400, 4800, 9600, 19200, 38400,
57600, 115200, 230400, 460800,
921600
param2: stop bit
0—1 bit
2 to 2
param3: check digit
0—No parity
1—even parity
AT+ UART =<param>
+ UART :< param1>,
< param2>,< param3>
OK