
Copyright ©2012–2022
,
Chengdu Ebyte Electronic Technology Co.,Ltd
8
5.2 Power supply mode
There are low power consumption mode: low power consumption mode and wake-up mode.
5.2.1 Low power consumption mode
The so-called low power consumption mode means that the BLE function continues to run after the module enters
this mode, and peripherals other than the wake-up pin of the module are turned off in this mode. If you need lower power
consumption, you can turn off advertising and scan through AT commands, disconnect all connections, and set a longer
advertising gap, scan gap, and connection gap.
Enter low power consumption:
1. AT command "AT+SLEEP" immediately enters low power consumption mode;
2. AT command "AT+ONSLEEP=1" power on immediately enters low power consumption;
3. Enter low power consumption through the rising edge of pin WKP;
After the module enters the low power consumption mode, it outputs "STA: sleep" through the serial port
(LOGMSG does not turn off the output).
Note: In the low-power mode, the serial port output is valid , but input is not available.
5.2.2 Wake-up mode
The so-called wake-up mode means that the peripherals required by the module are in a normal working state in
this mode. After the module wakes up, it outputs the status "STA: wakeup".
Wake-up method:
1. Wake up immediately through the falling edge of WKP pin;
2. The serial port RX pin wakes up: The serial port RX falling edge, and the low level remains at 50us and above,
wake up immediately.
5.3 Data transmission mode
There are data transparent transmission and format transmission.
5.3.1 Data transparent transmission
The so-called data transparent transmission means that the data received by the serial port is sent to the other
device through BLE without any processing, and the data received by BLE is sent through the serial port without
any processing.
Command setting: "AT+TRANMD"
5.3.2 Format transmission
The so-called format transmission refers to: the data sent to the module through the serial port and the data sent to
the serial port from the module must conform to the defined format for transmission.
The serial port sends
"
AT+TRANMD=0
"
to the device to switch it to format transmission. The data format is as
Slave No.
Valid data
1byte
Max: 243bytes
0~1