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.
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.
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,