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

Getting multiple PM_EVT_PEER_DATA_UPDATE_SUCCEEDED events

Hello,

I am using peer manager to handle security and bonding. Everythin works fine (bonding witth MITM).

However, when a known peer connects, I am getting 6 (six) PM_EVT_PEER_DATA_UPDATE_SUCCEEDED events. Why is an update neccessary, when a known peer connects and why are six updates neccessary? As I store other information in flash, I have conerns about too many write operations.

This is my debug log:

APP:INFO:Connected to a previously bonded device.
APP:INFO:pm_evt_handler : 13
APP:INFO:pm_evt_handler : 1
APP:INFO:pm_evt_handler : 2
APP:INFO:Connection secured: role: 1, conn_handle: 0x0, procedure: 0.
APP:INFO:pm_evt_handler : 7
:INFO:FDS_EVT_UPDATE result: 0
APP:INFO:pm_evt_handler : 7
APP:INFO:pm_evt_handler : 7
:INFO:FDS_EVT_UPDATE result: 0
APP:INFO:pm_evt_handler : 7
APP:INFO:pm_evt_handler : 7
:INFO:FDS_EVT_UPDATE result: 0
APP:INFO:pm_evt_handler : 7

We are on SDK V13.1.0 by the way.

Cheers

Related