<?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 measurement on a specific channel</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73169/rssi-measurement-on-a-specific-channel</link><description>Hey all 
 
 I&amp;#39;m working on a BLE device using a nRf52840 SOC and for some tests now I&amp;#39;ve to measure the RSSI on a specific BLE channel (e.g. ch 37). What I&amp;#39;ve done so far to measure the RSSI is following. 
 
 This seems to work fine to take a RSSI sample</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Mar 2021 14:13:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73169/rssi-measurement-on-a-specific-channel" /><item><title>RE: RSSI measurement on a specific channel</title><link>https://devzone.nordicsemi.com/thread/301937?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 14:13:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89553958-576a-4c37-ae56-1d690264481e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;That depends on your project settings, but by default,&amp;nbsp;&lt;span&gt;nrf_radio_frequency_set is used to set the radio frequency in MHz.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI measurement on a specific channel</title><link>https://devzone.nordicsemi.com/thread/301835?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 09:40:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05e792e5-3a2d-456b-b37e-3b8d19fb6e26</guid><dc:creator>M. David.</dc:creator><description>&lt;p&gt;What I&amp;#39;ve seen from the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fgroup__nrf__radio__hal.html&amp;amp;anchor=ga9f3dcc1fb197d906ef0491936d56ba88"&gt;nrf_radio_frequency_set&lt;/a&gt; function, it sets the RF_RADIO-&amp;gt;FREQUENCY register to a delta value of the provided frequency minus 2400.&lt;/p&gt;
&lt;p&gt;If I provide 2480 for Channel 39 the register is set to 80.&lt;/p&gt;
&lt;p&gt;Would this mean if I want to set the register directly, I&amp;#39;d have to write&amp;nbsp; the following values to the register to set it to channel&amp;nbsp; 39 or channel 37?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;RF_RADIO-&amp;gt;FREQUENCY = 80u; //Channel 39
RF_RADIO-&amp;gt;FREQUENCY = 2u;  //Channel 37&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI measurement on a specific channel</title><link>https://devzone.nordicsemi.com/thread/301799?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 07:19:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fc617be-d8e8-49f3-844f-667fbe099e23</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Please note that the frequency for channels 37, 38, and 39 are not 2437, 2438, and 2439. The BLE system operates on 40 channels from 2402 to 2480 each being 2MHz wide. The advertising channels are strategically placed at these values to avoid interference from each other and other devices operating in the same spectrum.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1616656423596v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I would suggest using the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fgroup__nrf__radio__hal.html&amp;amp;anchor=ga9f3dcc1fb197d906ef0491936d56ba88"&gt;nrf_radio_frequency_set &lt;/a&gt;if you&amp;#39;d like to advertise on one specific frequency, but writing straight to the registers should work as well. The frequency for channel 37 would be 2402MHz.&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: RSSI measurement on a specific channel</title><link>https://devzone.nordicsemi.com/thread/301723?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 14:58:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce78a167-64fa-44b9-8b34-a76b5eda2dd7</guid><dc:creator>M. David.</dc:creator><description>&lt;p&gt;Hi Simon&lt;/p&gt;
&lt;p&gt;thank you for your response..&lt;/p&gt;
&lt;p&gt;The DTM example I&amp;#39;ve already been looking at, however its hard to deceipher what command in the end is provided to the dtm_cmd(...) function.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if you had a look at the code I&amp;#39;ve provided in the original question, but there I can nowhere see where to set the channle/frequency. Could you point me a bit to a closer location in the DTM example where to look at?&lt;/p&gt;
&lt;p&gt;My goal is to read the RSSI value of channel 37.&lt;/p&gt;
&lt;p&gt;Another approach I&amp;#39;ve tried was, using the radio_test example as a basis, but there it seems not to be possible to measure an RSSI value.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;EDIT:&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve just found out that you can also set the radio frequency like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NRF_RADIO-&amp;gt;FREQUENCY = 2400 + 39;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So in order to measure the RSSI on channel 39, would this do the trick? By setting the frequency before enabling the radio?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI measurement on a specific channel</title><link>https://devzone.nordicsemi.com/thread/301689?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 13:27:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:270481be-8241-4a4f-82e5-ec1a54459428</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Samuel&lt;/p&gt;
&lt;p&gt;Yes, it should be possible to get the RSSI &lt;strong&gt;only&lt;/strong&gt; from one specific channel, but you would have to implement the logic to do so where you only request the RSSI from I.E. Channel 37 and not theother channels.&lt;/p&gt;
&lt;p&gt;If you check out the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_dtm_serial.html"&gt;DTM example&lt;/a&gt;&amp;nbsp;we have as well as the &lt;a href="https://github.com/NordicSemiconductor/pc-nrfconnect-dtm"&gt;DTM app in nRFConnect for Desktop&lt;/a&gt;, you can see that it has handled this in the central application where you either set it to retrieve the RSSI value of either a selected &amp;quot;sweep&amp;quot; of channels or just a single one.&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>