<?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>The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80168/the-scan-observer-stops-getting-called-after-a-failed-attempt-to-connect-to-a-peripheral-using-whitelist</link><description>Hello All, 
 I have the following issue - a peripheral and a central using nrf52832 with SDK 15.3 and S132 - on the peripheral I advertise with a whitelist - the central scans with UUID filter activated for a specific UUID Now when the central sees the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Nov 2021 13:49:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80168/the-scan-observer-stops-getting-called-after-a-failed-attempt-to-connect-to-a-peripheral-using-whitelist" /><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/339245?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 13:49:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa4507fb-ac9b-4720-8e9d-e46217db2248</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;Ignore my last reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I realize that I made one (possibly critical) change to the code you sent me: I changed the&amp;nbsp;NRF_BLE_SCAN_SCAN_DURATION in sdk_config.h from 0 to 1000.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I noticed that the scan parameters are passed along to the&amp;nbsp;sd_ble_gap_connect(..) function, which means that if you have unlimited scan duration (timeout) you also have unlimited timeout when trying to connect to a device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to change the scan_duration to a non zero number as well?&lt;/p&gt;
&lt;p&gt;Then the connection attempt should time out like I described in my earlier response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please note that when using a scan timeout you need to restart scanning manually once it times out, in case you want scanning to run continuously.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/339238?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 13:29:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd34827f-00c6-49f2-9bc6-717ef59b03fc</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you able to share your latest version of your code with me, so I can test it out here?&lt;/p&gt;
&lt;p&gt;I am basing my test on the code you sent earlier,&amp;nbsp;and with the changes I made I am unable to get it to lock up.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/338744?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 10:19:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1c23029-b84d-4807-ac0f-abb39e10af7d</guid><dc:creator>Skara</dc:creator><description>&lt;p&gt;Hi Torbj&amp;oslash;rn,&lt;br /&gt;&lt;br /&gt;I did place that code in the on_ble_evt function but it never gets called.&lt;br /&gt;&lt;br /&gt;As I&amp;#39;ve written previously, I am logging all events that come. I do log them in the ble_evt_handler function which is the observer for ble events. I also log them in the nrf_sdh_ble_evts_poll function. After the sd_ble_gap_connect that returns success there are no more events coming.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://ibb.co/Wgp2KPg"&gt;https://ibb.co/Wgp2KPg&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In the picture above you can see after I start the scanning device it finds lots of ble devices which do not match the filter. Than I turn on the second board which is advertising only and right after I see the &amp;#39;Connection status: 0&amp;#39; log, I unplug the advertising device. At that point the scanning device is already hanging. There are no more logs coming until I start the advertising device again.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Skara&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/338615?ContentTypeID=1</link><pubDate>Thu, 11 Nov 2021 14:41:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29274dca-a5e7-4cf5-b4f7-c331ef330fa5</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Skara&lt;/p&gt;
&lt;p&gt;Could you try to add the following code to the on_ble_evt(..) function, inside the switch case?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;case BLE_GAP_EVT_TIMEOUT:
    // The issue occurs when the connection times out, in which case scanning hasn&amp;#39;t been started when we think it has
    if (p_ble_evt-&amp;gt;evt.gap_evt.params.timeout.src == BLE_GAP_TIMEOUT_SRC_CONN)
    {
        NRF_LOG_DEBUG(&amp;quot;Connection Request timed out. Restart scanning...&amp;quot;);
        nrf_ble_scan_start(&amp;amp;m_scan);
    }
    break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/338305?ContentTypeID=1</link><pubDate>Wed, 10 Nov 2021 08:32:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1c4402f-4dd9-4d37-ad98-008c328007fc</guid><dc:creator>Skara</dc:creator><description>&lt;p&gt;Hey Torbj&amp;oslash;rn,&lt;br /&gt;&lt;br /&gt;no worries :) Thank you for taking your time, to help solving my issue.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not sure I understand exactly what you mean.&lt;br /&gt;&lt;br /&gt;As I already mentioned, I restart the scanner on CONNECTED/DISCONNECTED events. In my case the application gets stuck somewhere after a connection attempt is being made in the nrf_ble_scan_connect_with_target function, where sd_ble_gap_connect is called and it returns success. There are no more events after that to which I can react.&lt;br /&gt;&lt;br /&gt;I do have NRF_SDH_BLE_LOG_ENABLED and the NRF_LOG_LEVEL set to Debug so I can see all the events coming to that module, but after that sd_ble_gap_connect where my app gets stuck, there are no more events.&lt;br /&gt;&lt;br /&gt;My application restarts the scanner manually after about a minute where I get the NRF_ERROR_INVALID_STATE response but still no events are logged.&lt;br /&gt;&lt;br /&gt;Where and when exactly should I be expecting/handling this BLE_GAP_EVT_TIMEOUT?&lt;br /&gt;&lt;br /&gt;Thank you!&lt;br /&gt;Skara&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/338216?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 14:30:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:675c410d-cdd5-4f2b-96ac-1b30fe1dea55</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Skara&lt;/p&gt;
&lt;p&gt;My deepest apologies. It has been some busy months here, and I forgot to follow up on your case. Thanks a lot for the reminder.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Debugging this further it seems the problem&amp;nbsp;is related to the missed handling of the&amp;nbsp;BLE_GAP_EVT_TIMEOUT event.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried to track if any BLE events were sent after the occurrence of the &amp;quot;Are we scanning or not&amp;quot; situation, and found that the only BLE event I could see was the BLE_GAP_EVT_TIMEOUT event.&amp;nbsp;&lt;br /&gt;This event signals that the connection attempt failed, but is not being picked up by any of the event handlers in the application, or by the scan module.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The scan module only responds to this event when the timeout source is&amp;nbsp;BLE_GAP_TIMEOUT_SRC_SCAN, but in this case the source is&amp;nbsp;BLE_GAP_TIMEOUT_SRC_CONN because it is a connection that times out.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In your main file I notice that there is some log output if the event is passed to the&amp;nbsp;on_ble_central_evt(..) function, but since the role is set to&amp;nbsp;BLE_GAP_ROLE_INVALID the event will not be forwarded here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to start scanning manually if the&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_TIMEOUT&amp;nbsp;event occurs with source set to&amp;nbsp;BLE_GAP_TIMEOUT_SRC_CONN&amp;nbsp;and role set to&amp;nbsp;BLE_GAP_ROLE_INVALID?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I believe this should solve the issue.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;br /&gt;Torbjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/337914?ContentTypeID=1</link><pubDate>Mon, 08 Nov 2021 12:48:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58ea5f53-ea1e-486c-9584-9cf9163e79a5</guid><dc:creator>Skara</dc:creator><description>&lt;p&gt;Hi Torbj&amp;oslash;rn,&lt;/p&gt;
&lt;p&gt;were you able to find anything new regarding this issue?&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;Sakra&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/335468?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 11:31:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48012cfe-4299-4ab9-a0b4-5dad3ea5a141</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Skara&lt;/p&gt;
&lt;p&gt;In my case I was running an app_timer that would try to start scanning at 5 second intervals. This would recover the stack after the issue occurred, but obviously this&amp;nbsp;is not&amp;nbsp;an ideal workaround.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It could be interesting to try and set a flag&amp;nbsp;when the issue occurs, and check this flag in main. Once the flag is set you try to start scanning again from main context.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will have to spend some more time with this, and will try to get you an update early next week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/335331?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 13:44:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd71e257-8b61-48c6-be04-e38d20bc9049</guid><dc:creator>Skara</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;indeed I do see the &amp;quot;Are we scanning or not?&amp;quot; output when the device ends up in this state. Do you know why is the device entering this invalid state and how can I recover in that case? &lt;br /&gt;&lt;br /&gt;Detecting this state might be a bit of a problem in my application though. I do start the scanner every time I get&amp;nbsp; a BLE_GAP_EVT_CONNECTED or BLE_GAP_EVT_DISCONNECTED event. Since the stack is stuck and no events are sent out, the scanner will not be restarted. &lt;br /&gt;&lt;br /&gt;In my tests I use a timer that restarts the scanner upon timeout and that is when I see the &amp;quot;Are we scanning or not?&amp;quot; message.&lt;/p&gt;
&lt;p&gt;By the way I have the same behavior when using SDK12.3 on the central.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thank you again for your help.&lt;br /&gt;Skara&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/335098?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 12:34:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cf7ee50-3852-4de3-8fca-917ff9502e77</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;Thanks a lot for the patience. After spending more time with this I believe I have tracked the issue down to the nrf_ble_scan_start() function, which is set up to ignore the NRF_ERROR_INVALID_STATE error when calling sd_ble_gap_scan_start(..) to restart the scan.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I made the following small modification to the nrf_ble_scan_start() function (to log when INVALID_STATE is returned), and notice that before the stack ends up in the &amp;#39;stuck&amp;#39; state I see the &amp;quot;Are we scanning or not??&amp;quot; message printed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ret_code_t nrf_ble_scan_start(nrf_ble_scan_t const * const p_scan_ctx)
{
    VERIFY_PARAM_NOT_NULL(p_scan_ctx);

    ret_code_t err_code;
    scan_evt_t scan_evt;

    memset(&amp;amp;scan_evt, 0, sizeof(scan_evt));

    nrf_ble_scan_stop();

    // If the whitelist is used and the event handler is not NULL, send the whitelist request to the main application.
    if (is_whitelist_used(p_scan_ctx))
    {
        if (p_scan_ctx-&amp;gt;evt_handler != NULL)
        {
            scan_evt.scan_evt_id = NRF_BLE_SCAN_EVT_WHITELIST_REQUEST;
            p_scan_ctx-&amp;gt;evt_handler(&amp;amp;scan_evt);
        }
    }

    // Start the scanning.
    err_code = sd_ble_gap_scan_start(&amp;amp;p_scan_ctx-&amp;gt;scan_params, &amp;amp;p_scan_ctx-&amp;gt;scan_buffer);

    // It is okay to ignore this error, because the scan stopped earlier.
    if ((err_code != NRF_ERROR_INVALID_STATE) &amp;amp;&amp;amp; (err_code != NRF_SUCCESS))
    {
        NRF_LOG_ERROR(&amp;quot;sd_ble_gap_scan_start returned 0x%x&amp;quot;, err_code);
        return (err_code);
    }
    else if(err_code == NRF_ERROR_INVALID_STATE)
    {
        NRF_LOG_INFO(&amp;quot;Are we scanning or not????&amp;quot;);
    }
    NRF_LOG_DEBUG(&amp;quot;Scanning&amp;quot;);

    return NRF_SUCCESS;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Could you try to make the same change on your end, make sure that logging is enabled for the scan module, and see if you also get this message when the problem occurs?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/333555?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 14:17:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0514f46b-79ec-48cd-8da4-82ca5b4eb000</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Skara&lt;/p&gt;
&lt;p&gt;Thanks for the added details. I have been able to reproduce the issue now. It seems the SoftDevice is somehow getting stuck when trying to connect to the device, but I haven&amp;#39;t been able to find a way to solve it yet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will have to look more into this and get back to you later.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/333095?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 14:22:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd16d226-90da-47ac-8db3-2ab7bf793b48</guid><dc:creator>Skara</dc:creator><description>&lt;p&gt;Hi Torbj&amp;oslash;rn,&lt;br /&gt;&lt;br /&gt;the whitelist is only activated/applied if there are already bonded peers. So before starting the central I used the mobile nrf connect app to bond to the peripheral. Than just restart the peripheral and power the central on and you should be able to reproduce it.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Skara&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/333056?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 12:48:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9429418-b327-4dd0-9599-3561e400d9bb</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Skara&lt;/p&gt;
&lt;p&gt;How is the whitelist set in your test?&lt;/p&gt;
&lt;p&gt;I added some logging every time the set_whitelist() function is run, and see that it never finds any peers to add to the list.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In my test the two devices will just enter into an infinite connecting-&amp;gt; starting pairing-&amp;gt; timing out on passkey confirmation -&amp;gt; disconnecting -&amp;gt; reconnecting loop.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As soon as I turn off the peripheral the scanner proceeds to pick up other advertise packets.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe I also need to run one of your other peripherals to reproduce the issue?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/332551?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 09:49:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cab46f23-66bc-4465-9c20-55e0fcb0074f</guid><dc:creator>Skara</dc:creator><description>&lt;p&gt;Hey Torbj&amp;oslash;rn,&lt;/p&gt;
&lt;p&gt;in my actual application I will have multiple different peripherals to which the central will try to connect to as soon as it sees any of them.&lt;br /&gt;&lt;br /&gt;In this trace I filtered only the packets of the peripheral that the central is trying to connect to. The trace was made in a very noisy environment with more than 20 advertising BLE devices of which only one advertises the filtered UUID.&lt;br /&gt;&lt;br /&gt;As I&amp;#39;ve written in my initial post, I did add a logging call in the observer function nrf_ble_scan_on_adv_report() which prints the addresses of the peripherals from which packets were received. Before powering on the peripheral, this log is coming continuously showing the addresses of many different devices. After the failed pair/bond and powering off the peripheral no log is to be seen as the observer function is never called again.&lt;br /&gt;&lt;br /&gt;Best&lt;br /&gt;Skara&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/332509?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 08:20:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9b90954-0d5e-46a3-acac-8c4c98baebef</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Skara&lt;/p&gt;
&lt;p&gt;What are these other devices that you are trying to connect to?&lt;/p&gt;
&lt;p&gt;Shouldn&amp;#39;t they also show up in the sniffer trace, if they are advertising at the same time as the whitelist peripheral?&lt;/p&gt;
&lt;p&gt;I can take a look at your code, but it would be good to know a bit more about the various devices you are using in your test.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/332284?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 09:48:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c1f9077-0125-4e6b-ab89-33f72530e76e</guid><dc:creator>Skara</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I did not stop the trace but switched the peripheral device off. &lt;br /&gt;&lt;br /&gt;The problem is that at that point the central seems to be stuck somewhere and since the observer never gets called again it can not initiate connections to other devices. The observer only gets called again if I turn the same peripheral back on and it starts advertising again.&lt;/p&gt;
&lt;p&gt;Here are the slightly modified ble_central_and_peripheral projects that I use to reproduce it. &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_multirole_5F00_lesc.tar.gz"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_multirole_5F00_lesc.tar.gz&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Cheers&lt;br /&gt;Skara&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/332277?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 09:30:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba161f34-4893-41c4-8846-f1c11ee36a19</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Skara&lt;/p&gt;
&lt;p&gt;Thanks for sharing the trace.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t really spot anything problematic there. The central tries to connect three times, and fails each time (because of the whitelist I assume).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After the third connection attempt there is no more activity in the trace. Is this because you stopped the trace, or was there no more activity over the air?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/332124?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 11:36:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85b93dc3-d75b-4621-86f4-04c54979b22e</guid><dc:creator>Skara</dc:creator><description>&lt;p&gt;Hi Torbj&amp;oslash;rn,&lt;/p&gt;
&lt;p&gt;sure, here is the capture of multiple connection attempts.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/connect_5F00_non_5F00_whitelisted_5F00_device.pcapng"&gt;devzone.nordicsemi.com/.../connect_5F00_non_5F00_whitelisted_5F00_device.pcapng&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The scan observer stops getting called after a failed attempt to connect to a peripheral using whitelist.</title><link>https://devzone.nordicsemi.com/thread/332106?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 10:38:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:094f14fc-a4af-4550-8eca-d950ec107228</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Skara&lt;/p&gt;
&lt;p&gt;Any chance you could provide a sniffer trace when this issue occurs?&lt;/p&gt;
&lt;p&gt;Assuming you have an nRF52DK to spare you can run that as a sniffer, using the &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;nRF Sniffer application&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>