EFR32BG22
Shenzhen RF-star Technology Co., Ltd.
Page 66 of 93
Parameter 2
: Device BLE function switch (0: disable. 1: enable)
Parameter 3
: Device serial port wake-up function switch (0: disable. 1: enable)
Remark: After the serial port function is disabled, set the
CTS
pin at a high level first and then set it
low to
wake up the serial port.
Also, it can be enabled by sending a command “AT+SLEEP=1 (BLE
function needs to be enabled).
If the serial port wake-up function is enabled, you can wake up the module by sending a
wake-up
character
through the serial port during sleep. To wake up the module, the wake-up character must
be
less than or equal to 3 bytes
, and at least 1 byte.
Use parameter 2 to disable the BLE function. If the device is under connection, all connections with
the device will be disconnected and the broadcast will be disabled. If the device is under
broadcasting, the broadcast will be disabled.
When the device is in the master role (in the master and master-slave mode), and the currently
connected device is enabled the automatic reconnection function, the device will not automatically
reconnect after disabling the BLE function. When the BLE function is turned on again, the device
will resume automatic reconnection.
Disable the BLE function will not prohibit the use of the AT command of the corresponding role, but
just let the module's Bluetooth enter the idle status and keep it, and any BLE-related operations are
valid.
AT+SLEEP?
Function
Query the current sleep mode of the device.
Example
AT+SLEEP?
Return Value
AT+SLEEP=1,1,0
OK
Remark
Parameter 1
: Enable the device serial port function.
Parameter 2
: Enable the device BLE function.
Parameter 3
: Disable the device serial port wake-up function (by default).
AT+SLEEP=
Function
Set the device sleep mode.
Example
AT+SLEEP=
Return Value
AT+SLEEP=0, 0, 0
OK
Summary of Contents for EFR32BG22
Page 71: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 70 of 93...
Page 75: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 74 of 93...
Page 76: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 75 of 93...
Page 77: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 76 of 93...
Page 91: ...EFR32BG22 www szrfstar com V1 6 Jun 2022 Shenzhen RF star Technology Co Ltd Page 90 of 93 CE...