<?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>How to measure RSSI with NRF51822?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2888/how-to-measure-rssi-with-nrf51822</link><description>Hello! 
 I would like to measure RSSI for different channels so as to decide which channel is the least noisy one (and more particularly, which ones are already used). I cannot make it work, so I am asking you for help. 
 My code: 
 for(i=0; i&amp;lt;20;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 17 May 2015 09:37:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2888/how-to-measure-rssi-with-nrf51822" /><item><title>RE: How to measure RSSI with NRF51822?</title><link>https://devzone.nordicsemi.com/thread/11011?ContentTypeID=1</link><pubDate>Sun, 17 May 2015 09:37:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4642e75-fa03-4a01-a1c6-4749b48644be</guid><dc:creator>Erol CIRACI</dc:creator><description>&lt;p&gt;my code...&lt;/p&gt;
&lt;p&gt;void radio_init()
{&lt;/p&gt;
&lt;p&gt;radio_configure();&lt;/p&gt;
&lt;p&gt;NRF_RADIO-&amp;gt;SHORTS |= RADIO_SHORTS_ADDRESS_RSSISTART_Msk; //RSSI enable	&lt;/p&gt;
&lt;p&gt;NRF_RADIO-&amp;gt;EVENTS_READY = 0U;
NRF_RADIO-&amp;gt;TASKS_RXEN   = 1; // Enable radio and wait for ready.&lt;/p&gt;
&lt;p&gt;while (NRF_RADIO-&amp;gt;EVENTS_READY == 0U) { }		&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;uint8_t radio_rssi_get (void)
{&lt;/p&gt;
&lt;p&gt;uint8_t sample;&lt;/p&gt;
&lt;p&gt;NRF_RADIO-&amp;gt;EVENTS_RSSIEND = 0;
NRF_RADIO-&amp;gt;TASKS_RSSISTART = 1U;	&lt;/p&gt;
&lt;p&gt;while (NRF_RADIO-&amp;gt;EVENTS_RSSIEND == 0) { }
sample = (NRF_RADIO-&amp;gt;RSSISAMPLE &amp;amp; RADIO_RSSISAMPLE_RSSISAMPLE_Msk);&lt;/p&gt;
&lt;p&gt;NRF_RADIO-&amp;gt;EVENTS_RSSIEND = 0;&lt;/p&gt;
&lt;p&gt;return sample;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;void main()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint8_t rssi = 0; 

NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED = 0;
NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART    = 1;
  
while (NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0) {} 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;radio_init();&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;while(true) 
{
    rssi = radio_rssi_get();
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure RSSI with NRF51822?</title><link>https://devzone.nordicsemi.com/thread/11010?ContentTypeID=1</link><pubDate>Tue, 24 Jun 2014 14:53:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58d6a6e4-8f6a-4d05-98a5-c06c30763a58</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I am sorry for misreading your question.
Most likely, the RSSI of 90 is correct (actual value -90 dBm). However, note that the RSSI is only valid from -50 to -80 dBm with the resolution and accuracy given in the PS.&lt;/p&gt;
&lt;p&gt;If you check the array, there will most likely be one or two samples that differ from the 0x5A value, especially if you change the RF channel in between every 20 samples.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure RSSI with NRF51822?</title><link>https://devzone.nordicsemi.com/thread/11009?ContentTypeID=1</link><pubDate>Tue, 24 Jun 2014 13:06:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9908adf-af93-4d12-a73f-55b8bfa234ef</guid><dc:creator>Nicolas</dc:creator><description>&lt;p&gt;The problem is that there is no address match because I don&amp;#39;t wait for any answer, I just want to measure if there is already something on this carrier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to measure RSSI with NRF51822?</title><link>https://devzone.nordicsemi.com/thread/11008?ContentTypeID=1</link><pubDate>Tue, 24 Jun 2014 11:21:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bab4f5b9-bcd0-43f4-9965-ec71d2dd5089</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Try starting the TASKS_RSSISTART when you get an address match.
I&amp;#39;ve posted an example that shows how to use the RSSI here, maybe that can help you out:
&lt;a href="https://devzone.nordicsemi.com/question/7476/how-to-get-rssi/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>