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.

CC2652R7: How to access ID address of the BLE peripherals getting detecting at the central device.

Part Number: CC2652R7
Other Parts Discussed in Thread: SYSCONFIG

I want to detect a particular BLE peripheral device and my central device is working on the simple_central project example. As you can see in the image I have attached there are 2 addresses assigned to the peripheral device and I want to make use of ID address of the device as RP Address keeps on changing.

In the GapScan_Evt_AdvRpt_t structure inside the SimpleCentral_processAppMsg() function, the device address I am getting is the RP Address. How do I access the ID address of the device.

  • Hello Garvit,

    I am sending this to the relevant expert, thanks for reaching out.

    Kind Regards,

    Rogelio

  • Hi Garvit,

    In the simple_central.c file you can see how we get both addresses (Id and RP), see the picture below, the first one is for ID (pPkt->devAddr), the second one is for RP (rpa).

    Hope this help a little,

    Regards,

  • Hello Guillaume,

    I want to access the ID address of the peripheral device. The snippet you shared is giving the ID address of the central device I think.

    Thanks,

    Garvit

  • My apologies, I've been confused with your picture. 
    The peripheral device address (the Id one) is not shared in advertisement data, you need to connect to the device to get it. So you can filter devices with their id addresses as long as you're not connected to them.

    regards,

  • So is there no way to get the ID address information in advertisement packets of peripheral? and if not how can I make RP addresses static for a peripheral?

    My aim is to set a counter for the peripheral device and monitor how many times it was detected/ able to transfer packets successfully to central device and since the RP address keeps on changing, I am not able to track it for longer duration. 

  • If you advertise privately no, this is the purpose of this kind of advertisement.

    You can see if direct advertisement should be useful in your case, or either choose a random Static address from your peripheral in sysconfig as shown below:

    Go to to your sysconfig file > BLE > General Configuration and Address Mode

    regards,

  • On changing these parameter I am not able to detect the simple peripheral device on my central device. Also it is not visible to other BLE scanner apps.

    Do I need to make some changes to the central/scanner BLE device to see the device ? 

    I am working with non connectable and scannable mode in peripheral device.

    Thanks

  • Hi Garvit,

    You need to entered a supported address, you should try one of them:

    1.CA:00:00:00:00:CA

    2.CB:00:00:00:00:CB

    3.CC:00:00:00:00:CC

    4.CD:00:00:00:00:CD

    5.CE:00:00:00:00:CE

    regards,

  • Thanks Guillaume.