Ebyte Electronic Technology Co., Ltd E104-BT01 Usermanual
Copyright ©2012–2019
,
Ebyte Electronic Technology Co., Ltd
9
4.2.3 Wake-up mode
In any case, when inputting the falling edge of pin WKP (P1_2) or serial RX pin, the module will automatically wake
up and enter the working state. It takes 10 ms from the detection of the falling edge to the wake-up of the module. The
transparent transmission function is temporarily disabled until the system wakes up successfully.
Note:
1)
If use the serial port RX pin to wake up, the first frame data received by the RX pin is used to awake the module,
the first frame is invalid data, it is recommended to use 0x00.
4.3 Data indication
After receiving the data, the module sends data through the serial port. In order to ensure that the user MCU can
receive correctly, about 10 ms before the start bit of the first data byte is sent by the serial port of the module, the DATA
(P1_4) pin will output a low level to indicate the data is valid (can be used to wake up the external MCU), until the DATA
pin returns high after the data is sent.
Note:
1)
Indicates that the data output is valid. It can be unable by the command AT+DATDLY. When it is unable, the
serial port output has no delay.
4.4 Bluetooth role
The module can be set to work in the Bluetooth master, slave or observer role, and it is activated by the command
AT+ROLE and be enabled after reset. The slave role can realize Bluetooth broadcast and receive Bluetooth connection
request; the master role can realize broadcast scanning and establish Bluetooth connection; the ob server role can realize
basic Bluetooth scanning, and the broadcast package can be printed out through the serial port.
Note:
1)
Master role, can be dynamically turned on or off the Broadcast scanning by command AT+SCAN. When a valid
broadcast packet is found (the transparent transmission service UUID in the broadcast packet is FFF0), and the
slave MAC address exists in the binding list (you can use the command AT+BOND to turn off the address binding,
and can connect any slaves after turned off), then the master will initiate a Bluetooth connection request, the pin
LINK (P1.5) low level indicates that the connection is successfully established.
2)
Slave role, can be dynamicaly turned on Bluetooth broadcast by command AT+ADVEN. After receiving the
connection request, and the master MAC address exists in the binding list (you can use the command AT+BOND
to turn off the address binding, and can connect any masters after turned off), then the Bluetooth connection will
be completed automatically, the pin LINK (P1.5) low level indicates that the connection is successfully
established.
3)
Observer role, the module will automatically perform broadcast scanning after power-on (At this time, AT+SCAN
configuration will be invalid), and synchronize serial port to send broadcast packet data out, the format is as follows: