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

Proximity testing nRF51422

hi, 

I’m new to nRF5x BLE devices. 

I need to create a code for a project where i’m using a nRF51-DK device. So, I’m trying to demonstrate that the further the nRF51-DK is from the phone the less number of LEDs that light up, while closer the devices, the more LEDs light up. 

Parents
  • The "Received Signal Strength Indicator" (RSSI) level will give a rough estimate of the distance between the phone and the nRF51-DK. The further away the phone is, the lower the RSSI value will be.

    Initially you will need to call sd_ble_gap_rssi_start(..), which will start to report the signal strength to the application. Whenever the RSSI value changes, a new event is reported.

    In order to get the the RSSI value, the function sd_ble_gap_rssi_get(..) needs to be called, which will get the signal strength for the last connection event.

    The mentioned functions are part of the Generic Access Profile, and can be found here (for softdevice S130)

    Best Regards Simon Iversen

  • Thank you for you response Simon,

    Is this the same approach I would take if I wanted to get the RSSI before they are connected?

Reply Children
Related