NINA-B1 BLE pairing security

0 votes
17 views
Hi,

Im following the "4.10Pair two NINA-B1 using Out-of-Band security mode" use case example of the "NINA-B1_GettingStarted" document.

After setting out of band security on both BLE devices (AT+UBTSM=6,0) and reseting them (AT&W; AT+CPWROFF), I generate a random OOB Temporary Key on the peripheral device (AT+UBTOTK=0), but the central device can still pair to the peripheral without entering the key with a common pairing command (AT+UDCP=sps://<peripheral_dev_address>p).

Moreover, if I try to pair using the command described on the document adding the key (code bellow) the pairing is refused.

AT+UBTOTK=1,9DFE34516760448268A6BAE99965F29C

OK
AT+UBTB=<peripheral_dev_address>p,1

OK

+UUBTACLC:0,0,<peripheral_dev_address>p

+UUBTB:<peripheral_dev_address>p,0

+UUBTACLD:0

Can anyone help solving this? Thanks.

Aitor
asked Feb 13 by chertu

1 Answer

0 votes
Looking at the guide there is a specific order for peripheral and central devices for this operation.  Are you sure you are doing it exactly the same?  Key is generated on peripheral, then central is configured and key is entered.

Suggest starting over following steps in the guide as they are described.
answered Feb 13 by grumpy Senior Principal Expert