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

Multi bonding

Hi,

I'm using SDK11 in "Pheripheral mode"

Is it possible to make BONDing with 2 or more android/ios phones?

(I need only the bonding keys to be saved in the peer manager for later validation.

when i get a "scan request"  i use these keys to find out if the phones were bonded before and belongs to me.

This works perfect on 1 phone , but i need 2 or more).

Can i do it with SDK11 (In Pheripheral mode !) ?

How can i do that?

b.r.

Yuval

Parents
  • Hi,

    The peer manager supports multiple bonds, so it should not be any issues to bond to 2 devices.

    i use these keys to find out if the phones were bonded before and belongs to me

    So you retrieve the mac address of the bonded peers from the peer manager, and compares it to the address in the scan request packet send from the central ? Is that correct ?

    Could you post some code that shows how you are doing that ? After bonding with 2 devices, are you able to get both address from the peer manager ?

  • "So you retrieve the mac address of the bonded peers from the peer manager, and compares it to the address in the scan request packet send from the central ? Is that correct ?"

    - Something like that....The phone is changing it's MAC address every few minutes, therfore i use the IRK with the MAC in order to see if the phone was already bonded and belongs to my unit. 

    As i said, My pheripheral sucseeded with bonding to one phone, but when the unit tries to bond with another phone - it fails !

    Which parameters tells in my pheripheral how many units can be bonded?! 

    What can be the problem?

    Are there any guide lines to debug this situation?

    B.r,

    Yuval.

Reply
  • "So you retrieve the mac address of the bonded peers from the peer manager, and compares it to the address in the scan request packet send from the central ? Is that correct ?"

    - Something like that....The phone is changing it's MAC address every few minutes, therfore i use the IRK with the MAC in order to see if the phone was already bonded and belongs to my unit. 

    As i said, My pheripheral sucseeded with bonding to one phone, but when the unit tries to bond with another phone - it fails !

    Which parameters tells in my pheripheral how many units can be bonded?! 

    What can be the problem?

    Are there any guide lines to debug this situation?

    B.r,

    Yuval.

Children
Related