Bit no.
Description
2 : 0
Security mode configuration. Depending on its value, different modes are chosen
when setting up a secure connection. In firmware version 2.1.0 and newer the
peripheral decides which is the minimum security level to access its data.
0x0
No security
Data is transmitted without authentication and
encryption.
0x2
Just works
level 1.2
Each time a connection is established, new random
keys are exchanged in advance to use them for data
encryption. This mode uses the "just works" method.
0x3
Static pass
key level 1.3
For authentication, the
is used. If
the peripheral uses this method, the central device
must enter the correct passkey to finalize the
connection.
0x4
Lesc numeric
comparison
level 1.4
For authentication, the peripheral and central device
output a pass key. The central and peripheral device
must confirm the pass key to finalize the connection
in case both keys coincide. Otherwise reject it to
cancel the connection. The pass key is generated
using the LESC method (low energy elliptic curve).
0x5
Lesc pass key
level 1.4
For authentication, the peripheral outputs a passkey.
The central device must enter this pass key to finalize
the connection. The pass key is generated using the
LESC method (low energy elliptic curve).
others
Reserved
3
SECFLAGS_BONDING_ENABLE
: If this Bit is set, bonding is enabled when using one of the
pairing methods. Bonding data of up to 32 devices will be stored in the flash.
7 : 4
Reserved
Table 18: Security configuration flags
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.8.1. Example 1
Set the security flags to 0x0B, to use the static passkey pairing and with bonding enabled,
using
with settings index 12
Start signal
Command
Length
Settings index
Parameter
CS
0x02
0x11
0x02 0x00
0x0C
0x0B
0x16
Response
: Successfully modified the setting.
Proteus-III reference manual version 1.3
© August 2020
www.we-online.com/wireless-connectivity
128