cancel
Showing results for 
Search instead for 
Did you mean: 

BlueNRG-MS Central Peripheral Pairing Problem

Muhammad Waseem Abbas
Associate II
Posted on March 31, 2017 at 10:32

Hi All,

I am running BLE central and peripheral profile applications on Mentor Graphics Nucleus RTOS using two STM32 MCUs interfaced with BlueNRG-MS modules. BlueNRG-MS firmware version is 7.2a, STSW-BLUENRG-DK version is 2.01 and profile libraries have been used from OSXSmartConnPS package (V1.5.0). 

The problem is that when I try to connect master and slave using any method for Temporary Key Calculation, the pairing fails and packets are not encrypted when seen from Wireshark logs while the same applications pair successfully when run in bare metal environment using NUCLEO-L476RG and 

X-NUCLEO-IDB04A1 BlueNRG expansion board. The Wireshark logs for both the cases are attached. Any help in this regard will be highly appreciated.

Security parameters on central and peripheral sides used for pairing are as following:

:::PERIPHERAL SECURITY SETTINGS:::

ioCapability = NO_INPUT_NO_OUTPUT;

mitm_mode = MITM_PROTECTION_REQUIRED;

bonding_mode = BONDING;

OOB_Data_Present = OOB_AUTH_DATA_ABSENT;

Use_Fixed_Pin = USE_FIXED_PIN_FOR_PAIRING;

encryptionKeySizeMin = 8;

encryptionKeySizeMax = 16;

Fixed_Pin = 111111;

initiateSecurity = SLAVE_INITIATE_SECURITY;

:::CENTRAL SECURITY SETTINGS:::

IO_CAPABILITY = KEYBOARD_DISPLAY

MITM_MODE = MITM_PROTECTION_REQUIRED

OOB_ENABLE = OOB_AUTH_DATA_ABSENT

USE_FIXED_PIN = USE_FIXED_PIN_FOR_PAIRING

FIXED_PIN = 111111

BONDING_MODE = BONDING

#bluenrg-ms #bluenrg-pairing #bluenrg
1 REPLY 1
Andrea Palmieri
ST Employee
Posted on April 03, 2017 at 11:05

Hi Muhammad,

could you update the BlueNRG-MS FW to 7.2c and check again? You can do this using this

https://developer.mbed.org/teams/ST/code/BlueNRG-MS-Stack-Updater/

or version 2.0.2 of

http://www.st.com/content/st_com/en/products/embedded-software/evaluation-tool-software/stsw-bluenrg-dk.html

package. You should also update the profiles application using version 1.6.0 of

http://www.st.com/content/st_com/en/products/embedded-software/open-rf/osxsmartconnps.html

.

Regards