<?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>See RSSI values for all 3 advertising channels like on nRF Sniffer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59889/see-rssi-values-for-all-3-advertising-channels-like-on-nrf-sniffer</link><description>When I use the nRF Sniffer on a 52840 or 52832 with Wireshark I can see the RSSI values for each advertising message for all 3 channels (37, 38, 39). So for each advertising message I have all 3 RSSI values. 
 Now when I program a scanner on the 52840</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Apr 2020 14:25:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59889/see-rssi-values-for-all-3-advertising-channels-like-on-nrf-sniffer" /><item><title>RE: See RSSI values for all 3 advertising channels like on nRF Sniffer</title><link>https://devzone.nordicsemi.com/thread/243710?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 14:25:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:729282be-7fd2-49b7-ba35-e0c6f75e6a1f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Unfortunately, the source code for the firmware is not available. Also, I&amp;#39;m not aware of any similar code examples.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: See RSSI values for all 3 advertising channels like on nRF Sniffer</title><link>https://devzone.nordicsemi.com/thread/243678?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 13:24:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3134068-f9de-4e76-8447-0fae4ab9f2ff</guid><dc:creator>Ludger</dc:creator><description>&lt;p&gt;Is there any source code or any equivalent example available how to implement this? It would be very helpful to have some resource to start from rather than implementing this from scratch.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: See RSSI values for all 3 advertising channels like on nRF Sniffer</title><link>https://devzone.nordicsemi.com/thread/243641?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 12:24:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5550de4d-92a9-40fb-be1e-ceda39c095e6</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The nRF Sniffer uses a custom firmware that controls the RADIO peripheral directly, it does not use any softdevice. Most likely it switches the channel rapidly in order to receive most advertising packets on all channels.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: See RSSI values for all 3 advertising channels like on nRF Sniffer</title><link>https://devzone.nordicsemi.com/thread/243625?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 12:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8be58302-7e6c-4857-9e1c-03493f5ae92f</guid><dc:creator>Ludger</dc:creator><description>&lt;p&gt;Hi J&amp;oslash;rgen, &lt;/p&gt;
&lt;p&gt;thanks for your answer. But my issue is that&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/59889/see-rssi-values-for-all-3-advertising-channels-like-on-nrf-sniffer/243616"]Typically the scanner will only receive the advertising packet on one channel per advertising interval[/quote]
&lt;p&gt;This is the case if I use the S140 or S132 soft device. But I know with the nRF Sniffer firmware I can see all thrree channels / RSSI values for each single advertising. &lt;br /&gt;But I don&amp;#39;t know how it&amp;#39;s done because the source code for the sniffer is not available to check.&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br /&gt;Ludger&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: See RSSI values for all 3 advertising channels like on nRF Sniffer</title><link>https://devzone.nordicsemi.com/thread/243616?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 11:41:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8004dd47-1641-4475-873b-cd3874b27370</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can get both the channel and RSSI from the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.0.1/structble__gap__evt__adv__report__t.html" target="_self"&gt;ble_gap_evt_adv_report_t&lt;/a&gt;&amp;nbsp;struct. I added this in the&amp;nbsp;nrf_ble_scan_on_adv_report in the nrf_scan module to view info from all advertising packets, but you can use similar directly in&amp;nbsp;BLE_GAP_EVT_ADV_REPORT event if you do not use the scanning library:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_LOG_INFO(&amp;quot;CH: %d, RSSI: %d&amp;quot;, p_adv_report-&amp;gt;ch_index, p_adv_report-&amp;gt;rssi);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Typically the scanner will only receive the advertising packet on one channel per advertising interval. The scanner will change the scanning channel each scan window (given that the channel mask is set to scan on multiple/all channels).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: See RSSI values for all 3 advertising channels like on nRF Sniffer</title><link>https://devzone.nordicsemi.com/thread/243552?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 07:40:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cb2b4ac-3eaa-4d03-833b-d069d91c8911</guid><dc:creator>Ludger</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I checked your proposal but as far as I can see in the documentation this does only apply for connections on channel 0...36. Not for advertising on channel 37, 38 and 39.&lt;br /&gt;I also implemented the code inside my ble_evt_handler() and it&amp;#39;s never going to this case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: See RSSI values for all 3 advertising channels like on nRF Sniffer</title><link>https://devzone.nordicsemi.com/thread/243534?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 01:49:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f2d99ed-84c0-4b70-9729-cdf8584868f0</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Try this in ble_evt_handler():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context)
{
    blahblah
    ble_gap_evt_t const * p_gap_evt = &amp;amp;p_ble_evt-&amp;gt;evt.gap_evt;
    static int8_t   rssi_value = 0;
    switch (p_ble_evt-&amp;gt;header.evt_id)
    {
    blahblah
       case BLE_GAP_EVT_RSSI_CHANGED:
            rssi_value =  p_gap_evt-&amp;gt;params.rssi_changed.rssi;
            int16_t channel_rssi =  p_gap_evt-&amp;gt;params.rssi_changed.ch_index;
            NRF_LOG_INFO(&amp;quot;RSSI changed, new: %d, channel: %d&amp;quot;,rssi_value, channel_rssi);
            NRF_LOG_INFO(&amp;quot;;%d;%d;%d&amp;quot;,rssi_value, channel_rssi, p_gap_evt-&amp;gt;params.adv_report.tx_power);
            break;
    }
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I use this&amp;nbsp;(although my own processing not NRF_LOG) and it works well.&amp;nbsp;&lt;em&gt;channel_rssi&lt;/em&gt; is the channel id; I just log all values when received in an array index by &lt;em&gt;channel_rssi&lt;/em&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>