Measure RSSI of paired devices

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
8 posts / 0 new
Last post
azimin
Offline
Last seen:3 months 1 week 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:11 hours 35 min ago
Staff
Joined:2018-02-08 11:03
Hi azimin,

Hi azimin,

没有任何教程的例子以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:3 months 1 week 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:11 hours 35 min 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

mindatelematics
Offline
Last seen:1 year 2 weeks ago
Joined:2019-07-29 07:56
hi,

hi,

iam using da14586 as peripheral.I want to store previously paired device name or mac address in flash.please help

PM_Dialog
Offline
Last seen:11 hours 35 min ago
Staff
Joined:2018-02-08 11:03
Hi mindatelematics,

Hi mindatelematics,

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.

Thanks, PM_Dialog

mindatelematics
Offline
Last seen:1 year 2 weeks ago
Joined:2019-07-29 07:56
We are using 6.0.10 sdk

Hi,

We are using 6.0.10 sdk version. we are using mobile application as central and da14586 as peripheral.

PM_Dialog
Offline
Last seen:11 hours 35 min ago
Staff
Joined:2018-02-08 11:03
Hi mindatelematics,

Hi mindatelematics,

Please check out theDA14585/DA14586 Scan Tracking peripheralSW Example from our support website. All our SW examples don’t contain SDK, so please readSW Example: DA1458x Example Setupguide. 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.

Thanks, PM_Dialog