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

ble passkey phase

To the kind attention of Nordic support team,

we are doing ble bonding using passkeys.

We noticed that when starting the passkey phase, a ble connection event is generated by the stack. Still it is not a 'normal' connection,

I mean we should avoid to go to sleep in that phase so that passkey is inserted and after that peer manager has got enough time to store and update

ble database. I think we need to find a condition when the connection is 'really' established, because during the passkey phase it is not.

Is there a way you could suggest to find this condition? A peer manager event that could be useful? Manually keeping track of all peer manager database updates?

Otherwise could happen that a ble connection event is arrived, we already set the device to go to sleep. But peer manager hasn't already finished to update everything.

And we risk to wait the next waking up to finish db update, and this can affect the quality of the connection process.

Sorry if I didn't use the right ble terminology, but I hope that my meaning is clear. I d like to use an event that is telling me everything is done to properly establish

a useful connection and peer manager has finished all is work, bonding db has been updated, everything is done.

Best regards

Parents
  • Hello,

    I am not sure I understand exactly what you mean here. What do you mean by really established? Are you talking about when the link is encrypted?

    When the connection is secured, the peer manager event PM_EVT_CONN_SEC_SUCCEEDED will trigger, so perhaps you can use that?

    If that is not what you are asking for, perhaps you can try to explain what it is you are looking for, or what the issue is?

    BR,

    Edvin

Reply
  • Hello,

    I am not sure I understand exactly what you mean here. What do you mean by really established? Are you talking about when the link is encrypted?

    When the connection is secured, the peer manager event PM_EVT_CONN_SEC_SUCCEEDED will trigger, so perhaps you can use that?

    If that is not what you are asking for, perhaps you can try to explain what it is you are looking for, or what the issue is?

    BR,

    Edvin

Children
  • Thank you very much Edvin for your suggestions. Ok PM_EVT_CONN_SEC_SUCCEEDED is great to get the encrypted link notification. We also used peer manager infos so to check if in bonding mode or not. During bonding mode a serious of infos are written in permanent memory in the BLE db. So we monitor that all infos have been written and send a signal when all updates have been done. Your great peer manager is sending an evt every time a piece of information is stored and updated in the BLE database. Maybe, what I was looking for was a unique signal that is telling us: Hello, ALL updates have been completed. Is it clear my meaning? But anyway, thank you for your suggestions and the amazing software you provide,

    best regards

Related