Chengdu Ebyte Electronic Technology Co., Ltd
Copyright ©2012–2019
,
Chengdu Ebyte Electronic Technology Co., Ltd
9
6.
Print status information when the master connection status changes. See 6.3 for Status Print.
4.1.1.1 Master connecting method
4.1.1.1.1 Condition filtering
The device can be configured to filter by MAC address bonding and service UUID.
UUID filtering is filtered according to the content configured by AT+UUIDSVR. The filtering condition cannot be closed. If
MAC address filtering is not enabled, the MAC matches, it is automatically connected to the slave once service UUID is matched.
If the user needs MAC address filtering, MAC address filtering needs to be enabled through AT+BOND=1, and the MAC address
is added to the master through AT+BONDMAC. After the master scans to the slave, if it is the same as the binding list MAC address
and the service UUID, it automatically connects to the slave device.
If the master is configured as a manual connection, MAC address binding filtering will be ignored, but svruuid is consistent.
4.1.1.1.2 Automatic connection
If configured to connect automatically, the slave is automatically connected after the condition filter is met.
If configured to connect manually, turn on scanning. The master will scan the device with the service UUID matched and output
through the UART (the data format is as shown in Figure below, the master outputs the scan result data format). The user connects to
the specified slave device using AT+CONN.
RSSI(Signal quality)
MAC
1byte
6byte
4.1.2 Slave
1.
AT+ROLE=0 choose role as slave.
2.
AT+ADV=1 configure normal advertising mode.
3.
The broadcast switch is configured to be enabled. Once power on, it automatically enters the broadcast state. Otherwise,
the
broadcast device cannot be found.
4.
After receiving the master connection request, establish a Bluetooth connection to stop the Bluetooth broadcast and enter
the data transparent transmission mode.
5.
Check 5.5 for advertising configuration.
4.1.3 Observer
1.
AT+ROLE=2 choose role as observer
(
Reset to be valid
)
.
2.
After receiving the broadcast, print out the entire contents of the broadcast package through the serial port.
3.
It cannot connect any device.
Format
:
LEN
MAC
RSSI
Advdata
1 byte
6 bytes
1 byte
Within 31 bytes
Notes
:
LEN is sum of MAC, RSSI and advertising data length.
4.
Scanning window, gap and parameter should be the same.
5.
AT command is valid during this time.