<?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>RSSI values</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49019/rssi-values</link><description>i m getting constant RSSI values 32 even if i move far or near 
 this is the same example code in ble_peripherals 
 I HAVE UPDATED MY CODE (i have printed the RSSI values inside the case statement ) STILL I M GETTING RSSI VALUES AS 4 (constant not changing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Jun 2019 08:05:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49019/rssi-values" /><item><title>RE: RSSI values</title><link>https://devzone.nordicsemi.com/thread/195040?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 08:05:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eadbeb20-655a-4f8e-a588-e21613a42436</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;See below.&lt;/p&gt;
&lt;p&gt;And don&amp;#39;t forget to verify the answers in your threads when the questions are resolved:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0027._5F00_Verify_2D00_answer_2D00_nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI values</title><link>https://devzone.nordicsemi.com/thread/195038?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 08:03:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:775f4a21-0edc-49f5-b1da-24875286be80</guid><dc:creator>GANESHA</dc:creator><description>&lt;p&gt;Sir can u help how to proceed now&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI values</title><link>https://devzone.nordicsemi.com/thread/195037?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 08:03:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88252415-9457-4c91-8550-180e36898c22</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The whole point of standards like BLE is that they are &lt;em&gt;&lt;strong&gt;Standard&lt;/strong&gt; &lt;/em&gt;- so things don&amp;#39;t depend on what particular chip(s) you&amp;#39;re using.&lt;/p&gt;
&lt;p&gt;Your peripheral neither knows nor cares what the Central is- it is just a Central.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI values</title><link>https://devzone.nordicsemi.com/thread/195036?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 08:01:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:052cf728-9394-4461-a9a3-1be1d4948276</guid><dc:creator>awneil</dc:creator><description>[quote userid="80825" url="~/f/nordic-q-a/49019/rssi-values/195032"]my code is for peripheral[/quote]
&lt;p&gt;So it can&amp;#39;t possibly work.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The&amp;nbsp;&lt;/span&gt;&lt;span&gt;code which&amp;nbsp;&lt;/span&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/sunil-vignesh"&gt;Sunil vignesh&lt;/a&gt;&lt;span&gt;&amp;nbsp;suggested is for a Peripheral&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI values</title><link>https://devzone.nordicsemi.com/thread/195032?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 07:54:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba410b40-338f-402b-bb04-427603e517c3</guid><dc:creator>GANESHA</dc:creator><description>&lt;p&gt;No sir my code is for peripheral , What to change in the ble_peripheral_app_blinky code to get the rssi value using mobile and nrf52840 dk&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI values</title><link>https://devzone.nordicsemi.com/thread/195019?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 07:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79f5a9b2-ee38-4076-a0a1-40f6bab19134</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;An Advertising Report is only ever going to happen in a &lt;strong&gt;Central&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Your code is for a &lt;strong&gt;Central&lt;/strong&gt; - isn&amp;#39;t it?&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span&gt;code which&amp;nbsp;&lt;/span&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/sunil-vignesh"&gt;Sunil vignesh&lt;/a&gt;&lt;span&gt;&amp;nbsp;suggested is for a Peripheral ...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/49006/regarding-ble_central-examples-and-ble_peripheral-example/194770#194770"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/49006/regarding-ble_central-examples-and-ble_peripheral-example/194770#194770&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI values</title><link>https://devzone.nordicsemi.com/thread/195018?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 07:36:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:719ef011-b7b9-4a84-b380-9c89e9a89077</guid><dc:creator>GANESHA</dc:creator><description>&lt;p&gt;the code Sunil vignesh suggested uses 2 nrf52800 and i m using only 1&lt;/p&gt;
&lt;p&gt;1 nrf52800 and my mobile which is acting as advertiser&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI values</title><link>https://devzone.nordicsemi.com/thread/195015?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 07:34:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4f18b72-d901-4f42-9138-e5cbbf793f49</guid><dc:creator>awneil</dc:creator><description>[quote userid="80825" url="~/f/nordic-q-a/49019/rssi-values/195006"]is this correct[/quote]
&lt;p&gt;In isolation, it&amp;#39;s OK - but the way you&amp;#39;ve included it with the rest of your code is wrong&lt;/p&gt;
&lt;p&gt;See:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/49019/rssi-values/195012#195012"&gt;devzone.nordicsemi.com/.../195012&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI values</title><link>https://devzone.nordicsemi.com/thread/195014?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 07:34:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cf73a83-e99e-498d-adc1-7c88f3e0981d</guid><dc:creator>GANESHA</dc:creator><description>&lt;p&gt;if i m putting break its not printing RSSI Values&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI values</title><link>https://devzone.nordicsemi.com/thread/195012?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 07:32:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb5cf5d4-edd0-466f-b08d-8c3f33d38781</guid><dc:creator>awneil</dc:creator><description>[quote userid="80825" url="~/f/nordic-q-a/49019/rssi-values"]I HAVE UPDATED MY CODE[/quote]
&lt;p&gt;That&amp;#39;s really unhelpful!&lt;/p&gt;
&lt;p&gt;It means that answers which referred to the code as originally posted no longer make sense!&lt;/p&gt;
&lt;p&gt;Please don&amp;#39;t do that.&lt;/p&gt;
&lt;p&gt;But your updeated code&amp;nbsp;has no &amp;#39;break&amp;#39; at the ends of the &amp;#39;Connected&amp;#39; and &amp;#39;Advertising Report&amp;#39; events&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    switch (p_ble_evt-&amp;gt;header.evt_id)
    {
        case BLE_GAP_EVT_CONNECTED:
            NRF_LOG_INFO(&amp;quot;Connected&amp;quot;);
            bsp_board_led_on(CONNECTED_LED);
            bsp_board_led_off(ADVERTISING_LED);
            m_conn_handle = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle;
            err_code = nrf_ble_qwr_conn_handle_assign(&amp;amp;m_qwr, m_conn_handle);
            APP_ERROR_CHECK(err_code);
            err_code = app_button_enable();
            APP_ERROR_CHECK(err_code);
            
            /* *************** NEED A &amp;#39;break&amp;#39; HERE ! *************** */
        
         case BLE_GAP_EVT_ADV_REPORT:
            
              NRF_LOG_INFO(&amp;quot;RSSI: %d&amp;quot;, p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.rssi);
              NRF_LOG_INFO(&amp;quot;POWER: %d&amp;quot;, p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.tx_power);
            
            /* *************** NEED A &amp;#39;break&amp;#39; HERE ! *************** */
            &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have you looked at the code which &lt;a href="https://devzone.nordicsemi.com/members/sunil-vignesh"&gt;Sunil vignesh&lt;/a&gt; suggested?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI values</title><link>https://devzone.nordicsemi.com/thread/195006?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 07:09:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86dfff29-e345-4261-abba-f83ac82b384f</guid><dc:creator>GANESHA</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt; case BLE_GAP_EVT_ADV_REPORT:
            
              NRF_LOG_INFO(&amp;quot;RSSI: %d&amp;quot;, p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.rssi);
              NRF_LOG_INFO(&amp;quot;POWER: %d&amp;quot;, p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.tx_power);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;is this correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI values</title><link>https://devzone.nordicsemi.com/thread/194991?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 05:51:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:809745bf-5cc9-4a16-b7e5-f9eae9428edf</guid><dc:creator>GANESHA</dc:creator><description>&lt;p&gt;still i m getting value as 4 even if i m going far.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI values</title><link>https://devzone.nordicsemi.com/thread/194871?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 12:07:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f34404d3-f81c-49e0-9e50-c404849591dd</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You could have just updated your original post - istead of starting a whole new thread!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/49017/rssi-value"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/49017/rssi-value&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You are doing your processing outside the &amp;#39;switch&amp;#39;, but the fields you are using are only valid when the even is an Advertising Report!&lt;/p&gt;
&lt;p&gt;Therefore you need to put your code in&amp;nbsp; a &amp;#39;case&amp;#39; in your &amp;#39;switch&amp;#39; for the advertising report.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI values</title><link>https://devzone.nordicsemi.com/thread/194856?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 11:35:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b63691d-d252-43bf-ae86-342fddae3df2</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;Hi Ganesha,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;You can please view this link&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30608/rssi-vial-serial-communication"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/30608/rssi-vial-serial-communication&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>