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

Exact sequence of Peer Manager events at time of pairing.

Hi,

I am performing "just pairing" using peer manager ( SDK 11.0 ) in my custom board which uses nrf52 chip.

I am getting this events

  1. PM_EVT_CONN_SEC_START,
  2. PM_EVT_CONN_SEC_SUCCEEDED,
  3. PM_EVT_PEER_DATA_UPDATE_SUCCEEDED - this events i am getting 4 times but sometimes i am not getting this event 4 times.

Please help me to find the correct sequence of pairing procedure and to find the correct sequence when already paired device gets connected.

Parents
  • You should get:

    1. PM_EVT_BONDED_PEER_CONNECTED - A connected peer has been identified as one with which we have a bond.
    2. PM_EVT_CONN_SEC_START - A security procedure has started on a link, initiated either locally or remotely.
    3. PM_EVT_CONN_SEC_SUCCEEDED - A link has been encrypted, either as a result of a call to @ref pm_conn_secure or a result of an action by the peer.

    PM_EVT_PEER_DATA_UPDATE_SUCCEEDED - A piece of peer data was stored, updated, or cleared in flash storage.

  • Hi,

    My application is doing multiple thing at the same time like communication over BLE, data transfer over uart, and few sensor management.

    So while pairing process is going on, if i do uart communication at the same time, i am receiving incomplete uart data. And this only happens when my central is busy doing peer-manager-data-update. So it is very important for me to get exact event that state that peer-manager has completed its work. So that i can start other stuff.

Reply
  • Hi,

    My application is doing multiple thing at the same time like communication over BLE, data transfer over uart, and few sensor management.

    So while pairing process is going on, if i do uart communication at the same time, i am receiving incomplete uart data. And this only happens when my central is busy doing peer-manager-data-update. So it is very important for me to get exact event that state that peer-manager has completed its work. So that i can start other stuff.

Children
No Data
Related