<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Finding RSSI value after connection continously</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45707/finding-rssi-value-after-connection-continously</link><description>Hey 
 I am working on ble_app_blinky central and peripheral, I want to calculate the RSSI of peripheral after connection with central. I am able to calculate the RSSI value while it is scanning, 
 When I am trying to print the rssi in rtt from ble_event_handler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Apr 2019 06:33:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45707/finding-rssi-value-after-connection-continously" /><item><title>RE: Finding RSSI value after connection continously</title><link>https://devzone.nordicsemi.com/thread/180148?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 06:33:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c74c4f8-e8a6-4989-8885-40f01273aefc</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Sumanth&lt;/p&gt;
&lt;p&gt;Yes, increasing the interval of an operation/adding operations will increase the current consumption somewhat (not by a huge amount). However to reduce the current consumption on your nRF chip, &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/1657/how-to-minimize-current-consumption-for-ble-application-on-nrf51822#post-id-5187"&gt;this post&lt;/a&gt; describes just about every way to do so. If possible I would look at enabling the DCDC converter, as that usually helps alot in current consumption reduction.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Finding RSSI value after connection continously</title><link>https://devzone.nordicsemi.com/thread/179996?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 12:34:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37306f93-651c-489a-8ed2-870723b7caf7</guid><dc:creator>P Sumanth</dc:creator><description>&lt;p&gt;Thanks Simonr i am able to get RSSI for every updated value, Now I have to read up to 5 RSSI values on interval basis, i,e for every 300 ms i have to read RSSI upto 5 values and get an average, This should be repeated continuously, Do it consume more power, if yes how can i reduce it?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;sumanth&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Finding RSSI value after connection continously</title><link>https://devzone.nordicsemi.com/thread/179991?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 12:25:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73d8802a-ce09-4834-b5e1-a024e43fb31d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Sumanth&lt;/p&gt;
&lt;p&gt;You have to call sd_ble_gap_rssi_start() initially so that the SoftDevice will start to report the RSSI. Depending on the parameters, you will get an event (BLE_GAP_EVT_RSSI_CHANGED) every time the RSSI change. Then you should be able to use the sd_ble_gap_rssi_get() event when the RSSI_CHANGED event occurs. Something similar to this should do.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// On the connection event

uint32_t err_code;  
m_conn_handle  = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle;  
err_code = sd_ble_gap_rssi_start(m_conn_handle, 10, 0);   
APP_ERROR_CHECK(err_code); 


//On the RSSI_CHANGED event

uint32_t err_code;  
int8_t rssi;  
err_code = sd_ble_gap_rssi_get(m_conn_handle, &amp;amp;rssi);  
APP_ERROR_CHECK(err_code);
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then you should be able to log the RSSI values.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>