I want to pair a few smartphones with DA14586, and save informationa about paired devices. Further DA14586 has to check RSSI with them, via systick timer.
Please help, which examples or tutorial should I look?
There is not any example of tutorial in order to get the RSSI values when you are connected with a peer device. Let me describe you what you can do in order to get the RSSI values. It might be little bit tricky. So, when the device is in connected state, you should issue GAPC_GET_INFO_CMD with GAPC_GET_CON_RSSI operation in order to request the RSSI values. Since you have sent the GAPC_GET_INFO_CMD into the BLE stack, you will get a GAPC_CON_RSSI_IND, so you will have to handle this message. The values will be returned to rssi member of the struct gapc_con_rssi_ind.
Maybe I explained my idea no so clear. I don't want to measure rssi when device is connected to the DA14586. I want to pair the device once and safe device name or mac address in DA14586 memory. After that I want from DA14586 to measure RSSI from stored devices.
To be honest, again I am not able to understand what you are trying to accomplish. The ble_app_security example stores the bonding data in the SPI flash, so could you please let me know if want a similar functionality? Where do you want to save the device name or mac address? In the internal SPI flash of DA14586? The DA14586 will be acting as a central or as a peripheral?
iam using da14586 as peripheral.I want to store previously paired device name or mac address in flash.please help
Can you please provide more inputs? Which SDK/example are you using? Do you have a custom application? In addition, if I am able to understand correctly, you want to store the central’s BD address/device name. Is that correct? If yes, the central is another DA14585 or a mobile application?
Since this forum thread is a bit old, I would suggest you create a new one and post your question.
We are using 6.0.10 sdk version. we are using mobile application as central and da14586 as peripheral.
Please check out the DA14585/DA14586 Scan Tracking peripheral SW Example from our support website. All our SW examples don’t contain SDK, so please read SW Example: DA1458x Example Setup guide. This example shows how a peripheral device can track if it is scanned and which central device performs the scanning procedure. The scan device needs to scan in active mode since the peripheral device will track if it is scanned using the scan request that the central will issue to get the scan response data from the peripheral.