This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Sample RSSI code of nrf51422

Hi,

Where can I get sample RSSI code of nrf51422? Thanks a lot in advance.

  • Hi Xinhua, I am terribly sorry for a late response.

    If you use the Radio directly (without ANT) you can sample the signal strength by triggering a RSSISTART task and readout the RSSISAMPLE register.

    If you use ANT you can

    /* Enable RSSI level for received messages */ sd_ant_lib_config_set(ANT_LIB_CONFIG_MESG_OUT_INC_RSSI);

    Then each time you receive a payload, byte 13 in event_message_buffer will contain the RSSI value, when reading out the event by: /* Fetch the event */ return_value = sd_ant_event_get(&ant_channel, &event, event_message_buffer);

Related