<?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>BLE scan stalls on nRF52840 after several days of successful scan (NCS 2.9.0) (no connections)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119492/ble-scan-stalls-on-nrf52840-after-several-days-of-successful-scan-ncs-2-9-0-no-connections</link><description>We have an nRF52840 device that is required to do continuous BLE scanning in central role to find nearby advertising beacons and is never required to establish a connection with a peripheral. 
 We make use of NCS SDK 2.9.0 and the nRF52840dk for this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 10 May 2025 13:01:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119492/ble-scan-stalls-on-nrf52840-after-several-days-of-successful-scan-ncs-2-9-0-no-connections" /><item><title>RE: BLE scan stalls on nRF52840 after several days of successful scan (NCS 2.9.0) (no connections)</title><link>https://devzone.nordicsemi.com/thread/534743?ContentTypeID=1</link><pubDate>Sat, 10 May 2025 13:01:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:243f8b4a-8772-4d04-b0bd-96089c2b084a</guid><dc:creator>sarbishei</dc:creator><description>&lt;p&gt;Hello Gavin,&lt;/p&gt;
&lt;p&gt;I have had no luck in reproducing the same behavior using the NCS scan_adv sample with PPI trace active for radio scan while deactivating the ble adv mode from the example. My nrf52840dk board after a week or so was simply going frozen with the leds are being OFF as if it lost power completely. Every time this happened I had to power cycle the board manually. This is not the same issue as the device was going completely shutdown, but it has blocked me for running such long duration tests.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For our project, I temporarily added a software workaround for the moment that if for an extended period of time (say 1hr) no beacon is captured by the ble scan, we perform a soft reboot on nrf52. This is not a solution, but we had to add the patch as we were on a deadline to release a version for our client.&lt;/p&gt;
&lt;p&gt;In my spare time I will keep investing this issue, as it is quite important for us and our clients. I will try to put more updates on this thread in the coming days.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan stalls on nRF52840 after several days of successful scan (NCS 2.9.0) (no connections)</title><link>https://devzone.nordicsemi.com/thread/534738?ContentTypeID=1</link><pubDate>Sat, 10 May 2025 08:07:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf5373af-ad9e-4088-9dc4-56bfaced4ed1</guid><dc:creator>Gavin</dc:creator><description>&lt;p&gt;Hi Bro,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;How&amp;#39;s it going now? I encounter the same issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan stalls on nRF52840 after several days of successful scan (NCS 2.9.0) (no connections)</title><link>https://devzone.nordicsemi.com/thread/525820?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 19:16:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57e0b67c-19bd-45d5-a381-7191fdb100e1</guid><dc:creator>sarbishei</dc:creator><description>&lt;p&gt;Thank you for the responses Jakob and Hung. I will use an example in the SDK like scan_adv, while removing the advertisement part (scan only), and attach a PPI to the radio event &amp;quot;NRF_RADIO_EVENT_END&amp;quot;. I will also use PASSIVE_SCAN as done by the example provided by the SDK NCS 2.9.0. We used ACTIVE_SCAN since our target beacon is a legacy BLE device with limited payload size, and the scan response would have been helpful to add some more info to the advertisement packet. For now, we won&amp;#39;t have to add that option. I will track the GPIO pin (corresponding to the radio events) using a logic analyzer. We should be seeing the pin toggle constantly. I would like to keep the JLINK/RTT console active via USB to track logs, so the power measurement will not be precise. I think the PPI and GPIO state already would help a lot to track this issue. I will launch the test and I would probably have to wait for a week or so to see if the blockage takes place or not. I will keep you posted. Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan stalls on nRF52840 after several days of successful scan (NCS 2.9.0) (no connections)</title><link>https://devzone.nordicsemi.com/thread/525749?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 14:10:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0df6e29e-f070-48d7-8e28-3a5d4c030c49</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Omid,&amp;nbsp;&lt;br /&gt;Besides what Jakob suggested, I would suggest to try connect the Radio event (RX_END for example) to a GPIO using a PPI.&amp;nbsp;&lt;br /&gt;This way you can check if the radio is still doing scanning or not. You can also use the PPK2 to check the power consumption to see if the radio is active or not.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Do you see the same issue if you test with a stock sample in the SDK ?&amp;nbsp; or when you test your application with earlier SDK ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scan stalls on nRF52840 after several days of successful scan (NCS 2.9.0) (no connections)</title><link>https://devzone.nordicsemi.com/thread/525663?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 08:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3403789-4cba-437a-add6-445488311031</guid><dc:creator>Jakob Ruhe</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Problems like these can indeed be tricky to find a solution for.&lt;/p&gt;
&lt;p&gt;A &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;Bluetooth Packet Sniffer&lt;/a&gt; is a very valuable tool in this case to understand exactly what your device is doing. The one I shared is a minimum-must-have tool. There are more advanced tools available of course.&lt;/p&gt;
&lt;p&gt;I notice that you are doing Active Scanning. Is there any reason for this? How often do you want your device to send out SCAN_REQ packets?&lt;/p&gt;
&lt;p&gt;You say that you are using a filter. How has that been implemented?&lt;/p&gt;
&lt;p&gt;Try to share a minimal application that can be used to reproduce the issue so that others can try it.&lt;/p&gt;
&lt;p&gt;Can the issue be triggered faster (or not at all) depending on the number of surrounding devices?&lt;/p&gt;
&lt;p&gt;Now that you know there is some problem I think you should try to fix it. That said, a work around which you should consider regardless is to design your system so that you do scheduled reboots every day or so. Some may think this is a very bad idea, and in some systems it is of course not possible. But quite often it can turn out to be a good approach. Sorry for going a bit out of topic but perhaps consider to have a brainstorm session about that and discuss pros and cons.&lt;/p&gt;
&lt;p&gt;Someone with more insight than me can hopefully find something interesting in the logs you have shared. If you share an application I can run it.&lt;/p&gt;
&lt;p&gt;Best of luck!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>