8.9. RF_SecFlagsPerOnly: Modify the security settings (Peripheral
only mode)
Settings
index
Designation
Permissible
values
Default value
Permissions
Number
of
Bytes
44
See
description
11
read/write
1
This user setting determines the security setting of the peripheral only mode. Please refer
to the setting
for more details.
Since the security modes "Lesc pass key" and "Lesc numeric comparison"
output the LESC key on the UART, it is essential to use the command mode.
In other words, the peripheral only mode does not support the lesc security
modes.
8.9.1. Example 1
Set the security flags to 0x02 to use the just works pairing, using
with settings
index 44
Start signal
Command
Length
Settings index
Parameter
CS
0x02
0x11
0x02 0x00
0x2C
0x02
0x3F
Response
: Successfully modified the setting.
Start signal
Command | 0x40
Length
Status
CS
0x02
0x51
0x01 0x00
0x00
0x52
8.9.2. Example 2
Request the security flags of the module using
with settings index 44
Start signal
Command
Length
Settings index
CS
0x02
0x10
0x01 0x00
0x2C
0x3F
Response
: Successfully read out the value 2, which means that the just works
pairing mode is enabled.
Start signal
Command | 0x40
Length
Status
Parameter
CS
0x02
0x50
0x02 0x00
0x00
0x02
0x52
Proteus-III reference manual version 1.3
© August 2020
www.we-online.com/wireless-connectivity
130