This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Changing DEVICE_MANAGER_MAX_BONDS in device_manager_cnfg.h

Custom Board with MCU NordicSemi nRF51822-QFAA

  • Softdevice S110 7.1

  • IAR for ARM 7.1

  • SDK 7.2 using a merged service (HID keyboard example + NUS example + HRS example)

  • Testing with iPhone 5S, 6 and iPad air (iOS 8.1.3)

    / Nexus 5 and Galaxy Note 3 (Android 4.4.2).

/******************************************************************************************************************/

I want to change DEVICE_MANAGER_MAX_BONDS.

/**
* @brief Maximum bonds that Device Manager should manage.
*
* @details Maximum bonds that Device Manager should manage.
*          Minimum value : 1
*          Maximum value : 254.
*          Dependencies  : None.
* @note In case of GAP Peripheral role, the Device Manager will accept bonding procedure 
*       requests from peers even if this limit is reached, but bonding information will not 
*       be stored. In such cases, application will be notified with DM_DEVICE_CONTEXT_FULL 
*       as event result at the completion of the security procedure.
*/
#define DEVICE_MANAGER_MAX_BONDS         7

As you see, there are no dependencies. So I changed the number to 80.

However, the program fell into assert_error loop before connecting to any centrals.

image description

After the pointer passes here, it returns err_code 7 (NRF_ERROR_INVALID_PARAM).

If I keep use 7 as MAX_BONDS, it is fine though.

What could be the problem?

Regards, Mango922

Parents Reply Children
No Data
Related