Reference Manual

Table Of Contents
8.9 RF_SecFlagsPerOnly: Modify the security settings (Peripheral only
mode)
Settings
index
Designation
Permissible
values
Default value
Permissions
Number
of
Bytes
44
RF_SecFlagsPerOnly
See
description
11
read/write
1
This user setting determines the security setting of the peripheral only mode. Please refer
to the setting
RF_SecFlags
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
CMD_SET_REQ
with settings
index 44
Start signal Command Length Settings index
Parameter
CS
0x02 0x11 0x02 0x00 0x2C
0x02
0x3F
Response
CMD_SET_CNF
: 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
CMD_GET_REQ
with settings index 44
Start signal Command Length Settings index CS
0x02 0x10 0x01 0x00 0x2C 0x3F
Response
CMD_GET_CNF
: 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 0.11 © November 2019
www.we-online.com/wireless-connectivity 126