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

Device Manager (peripheral) SDK6

Hi guys,

i'm just porting my app from SDK5.2+SDv6.0.0 to SDK6.0+SDv7.0.0 and stuck with the device manager. There rises some questions, and i hope someone can help me.

  • what i want just bonding (without saving any context), after initialising (pstorage_init, dm_init and dm_register) and dispatching the (dm_ble_evt_handler(p_ble_evt); the bonding should be working or do i have to call sd_ble_gap_sec_info_reply and sd_ble_gap_sec_params_reply a second time in my application?

  • after a successful bonding of 2 devices, i get a whitelist with addr_count == 2 but if i create it with the given api-function, it returns two identical address of the first bonded device.

  • I saw, there are lot of DebugLog commands in the device_manager. After undefine resp. defining the Macros, what else i have todo to log? Is printf already directed to the UART?

Thanks a lot in advance!

Kind regards, Leo

Parents
  • Hi Leo,

    Log clearly does not look encouraging. One thing I observe is suspicious search for devices twice on connection. I have no immediate answer on why this happens.

    In order to understand the problem further, I request you to try two things: a. After disconnection of second device, is it possible for you to reset the nrf51 and provide the logs on initialization? b. I see that of two masters connection first one distributes and IRK while the other one does not. Is it possible for you to change the order of the 2 masters connecting..? Meaning, connect first the master that does not distribute IRK and then the one that does. The order should not be a problem, but want to rule this out.

    Thanks!

    Regards, Krishna

  • (sry for the answer conversion, i pressed the wrong link). The double search is just an additional log-output before the search, so i can see what devices are in the table. Sorry for the modified log-file. I will produce the new one without those lines.

Reply Children
No Data
Related