Reference Manual

Table Of Contents
the central device requests its host to enter the correct pass key (see
CMD_PASSKEY_IND
).
In this case the pass key of the peripheral has to be entered on central side using the
CMD_PASSKEY_REQ
command. If the entered pass key is correct, the channel will be opened
for data transmission. Otherwise, the connection will be rejected.
Example: Secured connection with security method "StaticPasskey"
1. Power-up the modules and make their UARTs accessible by the host(s) (115200 Baud,
8n1). After the power-up or after reset the following sequence is sent from the module
Info Module A Module B
Response
CMD_GETSTATE_CNF
: Module A
started in
ACTION_IDLE
mode.
02 41 02 00 01 01 41
Response
CMD_GETSTATE_CNF
: Module B
started in
ACTION_IDLE
mode.
02 41 02 00 01 01 41
2. Request the
FS_BTMAC
of both modules.
Info Module A Module B
Request
CMD_GET_REQ
with settings index 4 02 10 01 00 04 17
Response
CMD_GET_CNF
:
FS_BTMAC
of
module A is 0x55 0x00 0x00 0xDA 0x18 0x00
02 50 07 00 00 55 00
00 DA 18 00 C2
Request
CMD_GET_REQ
with settings index 4 02 10 01 00 04 17
Response
CMD_GET_CNF
:
FS_BTMAC
of
module B is 0x11 0x00 0x00 0xDA 0x18 0x00
02 50 07 00 00 11 00
00 DA 18 00 86
3. Configure the parameter
RF_SecFlags
to use "StaticPasskey" pairing method for BT
security.
Info Module A Module B
Perform
CMD_SET_REQ
with settings index 12
and value 0x03 on module A
02 11 02 00 0C 03
1E
Response
CMD_SET_CNF
(Module will restart
to adopt the new value)
02 51 01 00 00 52
Response
CMD_GETSTATE_CNF
02 41 02 00 01 01 41
Perform
CMD_SET_REQ
with settings index 12
and value 0x03 on module B
02 11 02 00 0C 03
1E
Response
CMD_SET_CNF
(Module will restart
to adopt the new value)
02 51 01 00 00 52
Response
CMD_GETSTATE_CNF
02 41 02 00 01 01 41
4. Connect module A to module B via Bluetooth
®
.
Proteus-III reference manual version 0.11 © November 2019
www.we-online.com/wireless-connectivity 36