This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Multiple connect are initiated to a peripheral from different ANdroid phones. Need to connect the peripheral to a phone based on thre rssi value

Dear Sir,

I am trying to implement the following scenario. I am working on nrf52832 with SDK15 and soft device 6.0.0.

I have a peipheral device which is advertising for 2 minutes. Then go to sleep and wake up after 5 mins.

There will be multiple phones trying to connect to this device.

On the peripheral side I should check the rssi from each phone and connect to the phone with highest rssi value. ()

Initially I could do with scan report request report.

Since there will be too many devices scanning , I need to face a large number of phones and need to select one from them. So I thought to limit the case to only those phones trying to connect to the peripheral. How to select the phone with highest rssi from all those phones trying to connect to the peripheral

Please give me some guidance on how to proceed ?

Thanking you in advance.

with regards,

Geetha

Parents Reply
  • Hello,

    Thank you.

    So either we can get rssi from scan response( but there is no surety that the device  whose rssi we received will try for a connection , right?).

    Or we can get rssi value after establishing the connection ( using sd_ble_gap_rssi_start(),sd_ble_gap_rssi_get and sd_ble_gap_rssi_stop()), Am I correct?

    Will you please shed some light on the above queries?

    with regards,

    Geetha

Children
Related