Measure RSSI of paired devices

something-big-is-coming.jpg

4 posts / 0 new
Last post
azimin
Offline
Last seen: 4 months 5 days ago
Joined: 2018-12-12 12:11
Measure RSSI of paired devices

Hello,

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?

Thanks.

Keywords: 
Device: 
PM_Dialog
Offline
Last seen: 17 min 43 sec ago
Staff
Joined: 2018-02-08 11:03
Hi azimin,

Hi azimin,

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.

Thanks, PM_Dialog

azimin
Offline
Last seen: 4 months 5 days ago
Joined: 2018-12-12 12:11
Hi,

Hi,

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.

PM_Dialog
Offline
Last seen: 17 min 43 sec ago
Staff
Joined: 2018-02-08 11:03
Hi azimin,

Hi azimin,

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?

Thanks, PM_Dialog