This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Obtaining the identity of connected party in BLE cc2541

Other Parts Discussed in Thread: CC2541, CC2640

I have an application where I am designing a device based on Simple Peripheral Profile.

I need to implement a pairing mechanism in which I can add and remove parties to authorized users list.

Is there an available mechanism for this?

If not how do I get connected parties identity info so I can save it in flash?

Thanks,

 

  • Hi Ozgur,

    I suggest looking at the GAP Bond Manager. Although you are using CC2541, there is a good explanation in the CC2640 BLE SW Developer's Guide (SWRU393). The description applies to CC254x.

    Best wishes
  • Thanks for the reply.

    I was using

    "

    // get the connected parties id
              GAPRole_GetParameter(GAPROLE_CONN_BD_ADDR, connected_party);

    "

     

    to get the address of connected device, but I noticed everytime I reset my Iphone, it changes this address. I need to be able to remember the device, how do I get something like a MAC# that is permanently belong to the device I am connected to?

     

    Thanks,

  • Hi Ozgur,

    The iOS device (and now Android 5.x) are using Random Addresses. See this link: smartstoreprivacy.org/.../about-mobile-location-analytics-technology

    If you are bonding, then the iOS will only then share it's public BD_ADDR. You cannot use the Auto Sync to Whilelist feature with these devices as they will re-connect with a Private Resolvable Address.

    Please search the forum for "iOS Whitelist" for more details.

    Best wishes