<?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 equation and it&amp;#39;s variables</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96638/rssi-equation-and-it-s-variables</link><description>Hello, 
 I would like to understand more about a topic which has been covered here many times. Since I haven&amp;#39;t found an answer I wanted to dig a bit deeper than the RSSI vs distance and discuss how does the SD calculate RSSI in detail? 
 I have a case</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Feb 2023 07:26:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96638/rssi-equation-and-it-s-variables" /><item><title>RE: RSSI equation and it's variables</title><link>https://devzone.nordicsemi.com/thread/412155?ContentTypeID=1</link><pubDate>Mon, 27 Feb 2023 07:26:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:257e501f-9342-45bc-b3ef-354dfd444d67</guid><dc:creator>PB</dc:creator><description>&lt;p&gt;Hello, Thank you for the answer. I&amp;nbsp;am aware of these effects and that other radios like WiFi will also get detected by RSSI detector on some channels. What I am trying to understand is how RSSI is calculated for CH 37-39 so that I see the same signal on 1 and 10-20m distances in one environment and what could cause such effect. Reflections wouldn&amp;#39;t make the signal so strong on big distance or even if it would it would fluctuate more but it&amp;#39;s steady ~65dBm on 1m and on 10m in some settings.&lt;/p&gt;
&lt;p&gt;nRF52840 is slightly more responsive so the value change a bit more with distance but still not as you&amp;#39;d expect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could this be related to low ambient temperature which is +/- 0&amp;deg;C given that it&amp;#39;s winter and the space is not heated?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI equation and it's variables</title><link>https://devzone.nordicsemi.com/thread/411968?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 13:00:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8196dbf8-85c2-403f-89d2-f8d15426d58d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The RSSI detector will measure the energy in the channel but some energy from the adjacent channel will also we part of this. It doesn&amp;#39;t distinguish between different modulation. So all energy that falls in the channel will be measured.&amp;nbsp;&lt;/span&gt;&lt;span&gt;It can also fluctuate a lot if you have reflections of the received signal.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI equation and it's variables</title><link>https://devzone.nordicsemi.com/thread/410890?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 13:09:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7c7e34f-8b4f-4209-9c0f-828845ccfc1f</guid><dc:creator>PB</dc:creator><description>&lt;ol&gt;
&lt;li&gt;SD&amp;nbsp;s132_nrf52_7.2.0 and nrf5_sdk_17.1.0_ddde560&lt;/li&gt;
&lt;li&gt;52832-AAE1&lt;/li&gt;
&lt;li&gt;I established a connection not in the actual environment but in my dev setup where RSSI behaves normally. Indeed RSSI difference can be observed. In the attached screenshot first range from the vertical line is not connected, second is when i kept a idle BLE connection to the device.&amp;nbsp;Short interruption was caused by script which measured the RSSI and not the actual device&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-from-2023_2D00_02_2D00_20-14_2D00_58_2D00_27.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Update 2023-02-21:&lt;/p&gt;
&lt;p&gt;We did some checks starting with RSSI viewer and comparison between office (works ok) and target site (has problems). Clearly the target site has strong WiFi but it&amp;#39;s not advertising channels so it should not&amp;nbsp;affect the RSSI on channels 37-39?&lt;/p&gt;
&lt;p&gt;Target:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/8524.target.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Office:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/office.png" /&gt;&lt;/p&gt;
&lt;p&gt;Also when connected with BLE on target site there was no significant RSSI difference in advertisements.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI equation and it's variables</title><link>https://devzone.nordicsemi.com/thread/410867?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 12:23:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89c498a1-e5e2-4ada-aa20-e8df1f42e043</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;1) What SDK and SoftDevice version are you using?&lt;/p&gt;
&lt;p&gt;2) What revision of the nRF52832 is this?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3) Do you see the same results if you are in a BLE connection with the device?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI equation and it's variables</title><link>https://devzone.nordicsemi.com/thread/410150?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 16:01:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fba5a9e6-b0d7-46a5-89f9-d5e10ade769b</guid><dc:creator>PB</dc:creator><description>&lt;p&gt;We rely on the data passed along BLE_GAP_EVT_ADV_REPORT. It is attached by:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NRF_SDH_BLE_OBSERVER(m_ble_observer, APP_BLE_OBSERVER_PRIO, _u_ble_evt_handler, NULL);

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Later RSSI is taken from ble_evt_t const * const p_ble_evt in the following way:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void _u_ble_evt_handler(ble_evt_t const * const p_ble_evt)
{
ble_gap_evt_t const *p_gap_evt = &amp;amp;p_ble_evt-&amp;gt;evt.gap_evt;
ble_gap_evt_adv_report_t const *p_adv_report = &amp;amp;p_gap_evt-&amp;gt;params.adv_report;
ble_data_t const *adv_data = &amp;amp;p_adv_report-&amp;gt;data;
ble_gap_addr_t const *peer_addr = &amp;amp;p_adv_report-&amp;gt;peer_addr;
int8_t const *rssi = &amp;amp;p_adv_report-&amp;gt;rssi;
//...
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Scan is started by&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;sd_ble_gap_scan_start(&amp;amp;u_device_settings.scan_params, &amp;amp;_m_scan_buffer);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and stopped by:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;sd_ble_gap_scan_stop()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It has been working very well for long time. It&amp;#39;s just a single site in which the signals are behaving in such a way and the screenshot with&amp;nbsp;emitting carriers on specific channels was closest we were able to replicate the behaviour. There are no strong WiFi APs, BLE jammers and such so to our knowledge external factors are not the reaon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI equation and it's variables</title><link>https://devzone.nordicsemi.com/thread/410126?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 14:42:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac0e5f02-ae07-47a9-86e1-e801d7bfa4a9</guid><dc:creator>Sigurd</dc:creator><description>[quote user=""]nRF52832 scanning chip[/quote]
&lt;p&gt;&lt;br /&gt;Do you see the same results if you are in a BLE connection? And are using&amp;nbsp;sd_ble_gap_rssi_start /&amp;nbsp;&lt;span&gt;sd_ble_gap_rssi_get to get the RSSI?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=5_7_3_1_2_1_3_35#gac369253b7f5ce0fc0093a6133faa791f"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=5_7_3_1_2_1_3_35#gac369253b7f5ce0fc0093a6133faa791f&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI equation and it's variables</title><link>https://devzone.nordicsemi.com/thread/410100?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 13:44:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:260105a5-e38c-4574-8168-fb3b11e57da9</guid><dc:creator>PB</dc:creator><description>&lt;p&gt;Thank you for your reply Sigurd. We have checked the&amp;nbsp;that the RSSI is from correct devices and it is correct and consistent. But only in single site so we are wondering how the RADIO peripheral establishes RSSI&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI equation and it's variables</title><link>https://devzone.nordicsemi.com/thread/410061?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 12:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b758b7f2-9958-4854-9fd2-449895266c17</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Since I haven&amp;#39;t found an answer I&amp;nbsp;wanted to dig a bit deeper than the RSSI vs distance and discuss how does the SD calculate RSSI in detail?&amp;nbsp;[/quote]
&lt;p&gt;The SD does not do any calculation on the RSSI. It just gives you the RSSI from the RADIO&amp;nbsp;peripheral.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fradio.html&amp;amp;cp=5_2_0_22_9&amp;amp;anchor=rssi"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fradio.html&amp;amp;cp=5_2_0_22_9&amp;amp;anchor=rssi&lt;/a&gt;&lt;/p&gt;
[quote user=""]I have a case of different RSSI readings in different environments which is totally normal. The tricky thing is that our&amp;nbsp;RSSI is the same value on 12m as it is few cm away from nRF52832 scanning chip. And it&amp;#39;s roughly -62! That&amp;#39;s not just&amp;nbsp;on&amp;nbsp;nRF52832/52840 but phones also&amp;nbsp;exhibit this behaviour.[/quote]
&lt;p&gt;Are you sure that you are reading the RSSI from the correct device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>