<?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>SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90884/scan_req-and-scan_rsp-logging</link><description>Hello, I have a question about the scan request event. 
 I checked the logs of BLE_GAP_EVT_SCAN_REQ_REPORT. If this event is received, does Softdevice recognize the packet as SCAN_REQ properly and surely send back SCAN_RSP? If there are any problems in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Dec 2022 08:40:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90884/scan_req-and-scan_rsp-logging" /><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/401191?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 08:40:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30257149-d7c7-451a-b872-912bca448750</guid><dc:creator>Felipe1</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for your comments and I am grateful for your support.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Toru&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/401184?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 08:13:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:746403c8-211d-4294-af96-ae48d5c3285c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Toru,&lt;/p&gt;
&lt;p&gt;Yes, everything appears to be as expected now.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/401142?ContentTypeID=1</link><pubDate>Sun, 18 Dec 2022 00:26:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57821901-ff67-4eb4-b41a-c4073b940d06</guid><dc:creator>Felipe1</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I retested it using nrf_gpio_pin_toggle() for mapping BLE_GAP_EVT_SCAN_REQ_REPORT into channel 0 and CRC error into channel 1.&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/ppk_2D00_20221206T145525-_2800_0_2D00_6sec-no-scan_2900_.png" /&gt;&lt;/p&gt;
&lt;p&gt;In my testing, the following 3 patterns were recorded.&lt;/p&gt;
&lt;p&gt;1. BLE_GAP_EVT_SCAN_REQ_REPORT (SCAN_REQ is received and then SCAN_RSP is sent)&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/ppk_2D00_20221206T152058-_2800_5ok_2900_.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;2. CRC error (Received packet is discarded due to CRC error)&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/ppk_2D00_20221206T142547.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;3. No packet is received&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:165px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x330/__key/communityserver-discussions-components-files/4/ppk_2D00_20221206T142201.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Besides these, there were 2 more patterns.&lt;/p&gt;
&lt;p&gt;4.&amp;nbsp;SCAN_REQ is received for the 1st ADV_IND, and the SCAN_RSP is sent.&amp;nbsp;One packet is received after SCAN_RSP, and then CRC error occurs.&lt;/p&gt;
&lt;p&gt;&lt;img style="height:auto;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x0/__key/communityserver-discussions-components-files/4/ppk_2D00_20221206T141823.png" /&gt;&lt;/p&gt;
&lt;p&gt;5.&amp;nbsp;One packet is received after the 1st ADV_IND and then CRC error occurs.&amp;nbsp;SCAN_REQ is received after the 3rd ADV_IND and then SCAN_RSP is sent.&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/ppk_2D00_20221205T144157-_2800_crc-err-scan-rsp_2900_.png" /&gt;&lt;/p&gt;
&lt;p&gt;Seeing the above, the wave patterns are categorized by these cases, and each case can be explained as a normal behavior. If it makes sense, I will close this discussion.&amp;nbsp; Thank you.&amp;nbsp; -Toru&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/397983?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 23:28:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37dc5e21-4418-429a-80b0-ff0000f591a3</guid><dc:creator>Felipe1</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;For the quick testing, the above pattern 1 and 2 waveforms have been changed by&amp;nbsp;&lt;span&gt;setting&amp;nbsp;&lt;/span&gt;&lt;span&gt;NRF_LOG_ENABLED to &amp;#39;0&amp;#39; in sdk_config.h.&amp;nbsp; The ~8mA current part has gone.&amp;nbsp; I will go through the data and check if there are any other patterns like 4.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Toru&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/397797?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 08:44:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d079b745-9f2a-42b4-b12b-dd90058b8ce5</guid><dc:creator>Felipe1</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for your comments.&amp;nbsp; I will follow your advice and let you know the result.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Toru&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/397793?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 08:33:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00737bb6-29fc-4ec3-a063-883bf4fc9974</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Toru,&lt;/p&gt;
&lt;p&gt;Thanks for confirming. This means the CPU is executing code from the application and not in the Softdevice when&amp;nbsp;the outputs are toggled.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you haven&amp;#39;t already, please comment out the&amp;nbsp;leds_init() and&amp;nbsp;buttons_init() calls in main()&amp;nbsp;and&amp;nbsp;turn off logging by setting&amp;nbsp;&lt;span&gt;NRF_LOG_ENABLED to &amp;#39;0&amp;#39; in sdk_config.h&lt;/span&gt;. The&amp;nbsp;LED indication&amp;nbsp;relies on app timer interrupts to toggle the output, so that might be what we are seeing in the waveform. That, or it could be an UART interrupt from the log processing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/397736?ContentTypeID=1</link><pubDate>Sat, 26 Nov 2022 02:16:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f3fdd66-ebe5-4dfd-9ef3-aacca0aa69b6</guid><dc:creator>Felipe1</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for your Info. For the BLE_GAP_EVT_SCAN_REQ_REPORT event detection, I am using the Softdevice SoC event handler just like the other BLE events like connected, disconnected, and others. For CRC error event detection, I referred to your snippet and I am using the software interrupt with the help of PPI. For both cases, I am calling bsp_board_led_on and then bsp_board_led_off, which will call nrf_gpio_pin_clear and nrf_gpio_pin_set internally.&lt;/p&gt;
&lt;p&gt;These are my code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context)
{
    ret_code_t err_code;

    switch (p_ble_evt-&amp;gt;header.evt_id)
    {
    ....
            case BLE_GAP_EVT_SCAN_REQ_REPORT:
            // SCAN_REQ received event.
            bsp_board_led_on(SCANRSP_LED);
            NRF_LOG_INFO(&amp;quot;SCAN_REQ&amp;quot;);

            ble_gap_evt_scan_req_report_t * p_scan_req_report_t = (ble_gap_evt_scan_req_report_t *)&amp;amp;p_ble_evt-&amp;gt;evt.gap_evt.params.scan_req_report;
                  NRF_LOG_INFO(&amp;quot;Peer Address = 0x%02x:%02x:%02x:%02x:%02x:%02x&amp;quot;,    \
                                p_scan_req_report_t-&amp;gt;peer_addr.addr[5],     \
                                p_scan_req_report_t-&amp;gt;peer_addr.addr[4],     \
                                p_scan_req_report_t-&amp;gt;peer_addr.addr[3],     \
                                p_scan_req_report_t-&amp;gt;peer_addr.addr[2],     \
                                p_scan_req_report_t-&amp;gt;peer_addr.addr[1],     \
                                p_scan_req_report_t-&amp;gt;peer_addr.addr[0]);
                  NRF_LOG_INFO(&amp;quot;RSSI value = %d dBm&amp;quot;, p_scan_req_report_t-&amp;gt;rssi);
            bsp_board_led_off(SCANRSP_LED);
            break;

        default:
            // No implementation needed.
            break;
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#if MONITOR_RADIO_CRC_MATCH

void SWI3_IRQHandler(void)
{
    bsp_board_led_on(LEDBUTTON_LED);
    /* Clear event register */
    NRF_EGU3-&amp;gt;EVENTS_TRIGGERED[0] = 0;
    // NRF_LOG_INFO(&amp;quot;Packet received with CRC ok&amp;quot;);
    NRF_LOG_INFO(&amp;quot;Packet received with CRC error&amp;quot;);
    bsp_board_led_off(LEDBUTTON_LED);
}

void monitor_radio_crc_match(void)
{
    /* 6 is the default int. priority used in SDK drivers */
    NVIC_SetPriority(SWI3_IRQn, 6);
    NVIC_EnableIRQ(SWI3_IRQn);

    NRF_EGU3-&amp;gt;INTENSET = EGU_INTEN_TRIGGERED0_Msk;

    // NRF_PPI-&amp;gt;CH[0].EEP = (uint32_t) &amp;amp;NRF_RADIO-&amp;gt;EVENTS_CRCOK;
    NRF_PPI-&amp;gt;CH[0].EEP = (uint32_t) &amp;amp;NRF_RADIO-&amp;gt;EVENTS_CRCERROR;
    NRF_PPI-&amp;gt;CH[0].TEP = (uint32_t) &amp;amp;NRF_EGU3-&amp;gt;TASKS_TRIGGER[0];

    NRF_PPI-&amp;gt;CHENSET = PPI_CHENSET_CH0_Msk;
}
#endif //MONITOR_RADIO_CRC_MATCH&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Toru&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/397581?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 09:48:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:938c7e86-0374-4efa-aa24-47497ef54e0b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks Toru. Yes, that answered my question. Still, it is not clear to me why the CPU is seemingly running after the advertisement event in the case where you did not receive the&amp;nbsp;scan request.&lt;/p&gt;
&lt;p&gt;Are the output pins shown in shown in your screenshots toggled in SW or in HW with the help of PPI?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/397531?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 06:22:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4750b6a0-65d5-49dc-b400-69878abae646</guid><dc:creator>Felipe1</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for your comments.&amp;nbsp; No, the app is slightly modified ble_app_blinky only.&amp;nbsp; Do I miss anything in your question?&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Toru&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/397455?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2022 14:05:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8db3646a-c6fd-4308-8867-a589a3c48b6c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Toru,&lt;/p&gt;
&lt;p&gt;Do you have any application interrupts enabled when you run this test (apart from the SW interrupt used for monitoring the CRC error event?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669298517100v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/397075?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 08:42:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27c87810-3f45-4d4e-be9c-3c8f6e04a2d3</guid><dc:creator>Felipe1</dc:creator><description>&lt;p&gt;Hi Vidar and Nordic Semi support, I could not reply to you sooner.&lt;br /&gt;I could not use a shielded box, but I got Nordic PPK2 and tested some more cases.&lt;br /&gt;I&amp;#39;ve got a new question. Sorry for my lengthy post, but any comments would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;[Test purpose]&lt;br /&gt;To understand the relationship between the current waves of scan request and scan response and the softdevice procedure.&lt;/p&gt;
&lt;p&gt;[Environment]&lt;br /&gt;nRF52 DK (solder bridge SB9 has been cut)&lt;br /&gt;nRF5 SDK 17.1.0 ble_app_blinky (pca10040/S132) modified like these:&lt;br /&gt; to set TX power to 4dBm to differenciate TX and RX current waves.&lt;br /&gt; to turn on/off LED4 en BLE_GAP_EVT_SCAN_REQ_REPORT is received.&lt;br /&gt; to turn on/off LED3 when CRC error is received.&lt;br /&gt;Nordic PPK2 (digital port D0 is connected to P0.20 (LED4), D1 is to P0.19 (LED3))&lt;br /&gt;nRF Connect for Desktop - Power Profiler (Ampere Meter)&lt;br /&gt;nRF Connect for Mobile + Android Smart Phone (Clicking &amp;quot;SCAN&amp;quot; during the current measurement in order to enforce the active scan)&lt;/p&gt;
&lt;p&gt;[Result 1]&lt;br /&gt;This is nRF52832 current wave, including D0 (BLE_GAP_EVT_SCAN_REQ_REPORT) and D1 (CRC error).&lt;br /&gt;In case the smart phone is nearby (RSSI is high), some CRC errors were seen (e.g. 12 times in 30 sec).&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/PPK2-30s-near.png" /&gt;&lt;/p&gt;
&lt;p&gt;In case the smart phone is far (RSSI is low), more CRC errors were seen (e.g. 61 times in 30 sec).&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/PPK2-far.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;[Result 2]&lt;br /&gt;Looking into the above &amp;quot;far&amp;quot; current graphs, the following 4 patterns were seen.&lt;br /&gt;1. BLE_GAP_EVT_SCAN_REQ_REPORT is received. SCAN_RSP is sent, and then post procedure is done (~8mA current consumption continues).&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/6557.P1.png" /&gt;&lt;/p&gt;
&lt;p&gt;2. CRC error is received, then the post procedure is done (~8mA current consumption).&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/4403.P2.png" /&gt;&lt;/p&gt;
&lt;p&gt;3. No event is received. ~8mA current consumption is not seen. No packet was received during this advertisement.&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/2350.P3.png" /&gt;&lt;/p&gt;
&lt;p&gt;4. Like case 3, no event is received.&amp;nbsp; But ~8mA current consumption is seen.&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/4478.P4.png" /&gt;&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/PPK2-30s-far.png" /&gt;&lt;/p&gt;
&lt;p&gt;[Question]&lt;br /&gt;Pattern 1, 2, and 3 are understandable. But I cannot understand pattern 4. Why ~8mA consumes even though packet is not received regardless of CRC?&lt;/p&gt;
&lt;p&gt;Thank you.&amp;nbsp; Toru&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/382374?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2022 06:22:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dcdabfb-0a98-41ca-a8bc-a130af54ef80</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The CRC will only be computed if you receive the whole packet first. So it may also be that the RADIO is not receiving the preamble for the scan request and therefore not checking the crc either.&amp;nbsp; Do you have a shielded room our enclosure you could test your device in to eliminate noise or interference from other devices?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/382116?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 23:46:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04faf129-8243-457c-89df-7046ac86e513</guid><dc:creator>Felipe1</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for your suggestion.&amp;nbsp; I tested it in my environment and it shows CRC match messages like this :&lt;/p&gt;
&lt;p&gt;[00:00:00.000,000] &amp;lt;info&amp;gt; app: Packet received with CRC ok&lt;br /&gt;[00:00:00.000,000] &amp;lt;info&amp;gt; app: SCAN_REQ&lt;br /&gt;[00:00:00.000,000] &amp;lt;info&amp;gt; app: Peer Address = 0x6A:C1:0E:B3:30:36&lt;br /&gt;[00:00:00.000,000] &amp;lt;info&amp;gt; app: RSSI value = -56 dBm&lt;br /&gt;[00:00:00.000,000] &amp;lt;info&amp;gt; app: Packet received with CRC ok&lt;br /&gt;[00:00:00.000,000] &amp;lt;info&amp;gt; app: SCAN_REQ&lt;br /&gt;[00:00:00.000,000] &amp;lt;info&amp;gt; app: Peer Address = 0x6A:C1:0E:B3:30:36&lt;br /&gt;[00:00:00.000,000] &amp;lt;info&amp;gt; app: RSSI value = -56 dBm&lt;/p&gt;
&lt;p&gt;(Please ignore the timestamp)&lt;/p&gt;
&lt;p&gt;But how can I find the CRC mismatch?&amp;nbsp; Should I tried to use &amp;quot;&amp;amp;NRF_RADIO-&amp;gt;EVENTS_CRCERROR&amp;quot; instead?&lt;/p&gt;
&lt;p&gt;I tried it but I have not seen the repro yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/381896?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 07:23:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dfd9d61-6e75-4c8d-9a78-c911978552a5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Based on the DRGN-15484 description, I would only expect reception to potentially improve in v7.3.0 if you are advertising with a timeout. I still believe the most likely explanation to the missed response is that the scan request failed to be received by the nRF. To confirm this, you could try to monitor the RADIO crc match event (EVENTS_CRCOK) as done in the snippet below.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define MONITOR_RADIO_CRC_MATCH 1

#if MONITOR_RADIO_CRC_MATCH

void SWI3_IRQHandler(void)
{
    /* Clear event register */
    NRF_EGU3-&amp;gt;EVENTS_TRIGGERED[0] = 0;
    NRF_LOG_INFO(&amp;quot;Packet received with CRC ok&amp;quot;);
}

void monitor_radio_crc_match(void)
{
    /* 6 is the default int. priority used in SDK drivers */
    NVIC_SetPriority(SWI3_IRQn, 6);
    NVIC_EnableIRQ(SWI3_IRQn);

    NRF_EGU3-&amp;gt;INTENSET = EGU_INTEN_TRIGGERED0_Msk;

    NRF_PPI-&amp;gt;CH[0].EEP = (uint32_t) &amp;amp;NRF_RADIO-&amp;gt;EVENTS_CRCOK;
    NRF_PPI-&amp;gt;CH[0].TEP = (uint32_t) &amp;amp;NRF_EGU3-&amp;gt;TASKS_TRIGGER[0];

    NRF_PPI-&amp;gt;CHENSET = PPI_CHENSET_CH0_Msk;
}
#endif //MONITOR_RADIO_CRC_MATCH


/**@brief Application main function.
 */
int main(void)
{
    ...
    ble_stack_init();
#if MONITOR_RADIO_CRC_MATCH
    monitor_radio_crc_match();
#endif //MONITOR_RADIO_CRC_MATCH
    ...&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/381884?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 06:20:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e5a0ac0-1b4b-4f9f-9499-6ca7e8824663</guid><dc:creator>ShibuyaT</dc:creator><description>&lt;p&gt;Hi Vidar&lt;/p&gt;
&lt;p&gt;Thank you for reply.&lt;/p&gt;
&lt;p&gt;I am colleague of Toru. I asked him to contact you.&lt;/p&gt;
&lt;p&gt;I took two images about this phenomenon.&lt;/p&gt;
&lt;p&gt;There are snapshots of power consumption wave form.&lt;/p&gt;
&lt;p&gt;X axis is time(ms) and Y axis power consumption(mA)&lt;/p&gt;
&lt;p&gt;AS you can see, OK file shows Advertise-&amp;gt;SCAN_REQ-&amp;gt;SCAN_RSEP.&lt;/p&gt;
&lt;p&gt;On the other hand, NG file show Advertise-&amp;gt;SCAN_REQ.&lt;/p&gt;
&lt;p&gt;Our nRF52832 does not respond SCAN_RSEP.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Advertise interval is 40ms.&lt;/p&gt;
&lt;p&gt;The phenomenon is happened about once or twice per 1second.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;First I used softdevice version 7.0.1.&lt;/p&gt;
&lt;p&gt;Then we found s132_nrf52_7.3.0 improve missing scan request reception.&lt;/p&gt;
&lt;p&gt;So we update softdevice from 7.0.1 to 7.3.0.&lt;/p&gt;
&lt;p&gt;However the result is the same.&lt;/p&gt;
&lt;p&gt;Do you have any suggestion?&lt;/p&gt;
&lt;p&gt;For example I might miss some improvement information/errata,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;or I can get debug? how to debug?&lt;/p&gt;
&lt;p&gt;If you can indicate me to put some debug coed and help you to analyze, please let me know.&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/OK_5F00_scan_5F00_response.png" /&gt;&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/No_5F00_scan_5F00_response.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/381494?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 08:32:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10dd2c19-f317-4cb4-b563-ae7882a04081</guid><dc:creator>Felipe1</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp; Thank you for your Info.&amp;nbsp; Understood.&amp;nbsp; I will get more Info and then ask you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Toru&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/381479?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 07:58:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9846ba29-ea6f-4a0c-b50c-d06445cf1921</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Toru,&lt;/p&gt;
&lt;p&gt;Thanks for making me aware of this bug. Based on the bug description, this should only occur on the last adv. event if you are advertising with a timeout, so I&amp;#39;m not sure if it is relevant to your case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/381435?ContentTypeID=1</link><pubDate>Sat, 13 Aug 2022 07:44:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3df79ec5-939b-452c-894e-f792f852baa3</guid><dc:creator>Felipe1</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for your comments.&amp;nbsp; As you wrote, the sniffer Info cannot exclude those possibilities.&amp;nbsp; Therefore I was trying to look into the device itself.&amp;nbsp; (Softdevice should work as expected, but seeing the release note of v7.3.0, DRGN-15484 would be related to SCAN_RSP.)&lt;/p&gt;
&lt;p&gt;But I will stop this approach and check it in another way.&lt;/p&gt;
&lt;p&gt;Thank you again for your support,&lt;/p&gt;
&lt;p&gt;Toru&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/381371?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2022 13:08:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bd3c2b0-a717-4ef0-a832-746d662dbe1b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Toru,&lt;/p&gt;
&lt;p&gt;No problem &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt; The Softdevice will always send the SCAN_RSP after receiving SCAN_REQ unless there is an undiscovered bug in the stack. I think the more likely explanation is that either 1. the scan request was only received by the sniffer, but not the nRF 2. the sniffer missed the scan response packet.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/381254?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2022 02:27:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83255c27-683f-4950-b884-f00fe0877cd7</guid><dc:creator>Felipe1</dc:creator><description>&lt;p&gt;Hi Vidar, Thank you so much for your answer.&lt;/p&gt;
&lt;p&gt;I understand the first two answers.&amp;nbsp; For the third one, regardless of ACK, I wanted to know the logging mechanism to confirm that Softdevice completes the SCAN_RSP sending procedure.&lt;/p&gt;
&lt;p&gt;Seeing a sniffer log below, SCAN_RSP is missing after some of SCAN_REQ packets.&amp;nbsp; But the sniffer might have missed the packet and the peripheral device might have worked well.&amp;nbsp; So, the sniffer log is not helpful.&amp;nbsp;&amp;nbsp;I will collect more Info, and I may ask some more questions related to this.&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/720_2D00_1.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Toru (Felipe1)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SCAN_REQ and SCAN_RSP logging</title><link>https://devzone.nordicsemi.com/thread/381211?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2022 13:32:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33d0dea9-b224-43bf-8b13-9dbb1be74889</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]If this event is received, does Softdevice recognize the packet as SCAN_REQ properly and surely send back SCAN_RSP?[/quote]
&lt;p&gt;Yes, that is correct.&lt;/p&gt;
[quote user=""]If there are any problems in receiving a SCAN_REQ packet (e.g. CRC error), can I see any logs/messages?[/quote]
&lt;p&gt;You will only receive the event if the scan request was received properly. The same goes for any other BLE packet. Packets with CRC errors are not processed by the stack. &lt;/p&gt;
[quote user=""]Or if there are any problems in sending a SCAN_RSP packet, can I see any logs/messages as well?[/quote]
&lt;p&gt;A scan response packet will not be acknowledged by the scanner, so there is no way for the advertiser to know if the response was received or not. In other words, if the scanner failed to receive the scan response, then it will have to send new SCAN_REQ.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>