<?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 scanning issues with SoftDevice 6.1.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41470/ble-scanning-issues-with-softdevice-6-1-0</link><description>Hi, 
 
 We are currently in a testing phase of our software where we use an nRF52832 for extended advertising and an nRF52840 for scanning that has a scan interval and scan window of 10ms. The scan duration is infinite and we are connectionless. 
 After</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Jan 2019 12:55:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41470/ble-scanning-issues-with-softdevice-6-1-0" /><item><title>RE: BLE scanning issues with SoftDevice 6.1.0</title><link>https://devzone.nordicsemi.com/thread/165972?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 12:55:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a21ba81a-8d7c-44c3-a310-515528c061d1</guid><dc:creator>cxz</dc:creator><description>&lt;p&gt;Ok, thanks! We can mark this as solved then.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scanning issues with SoftDevice 6.1.0</title><link>https://devzone.nordicsemi.com/thread/165970?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 12:48:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a38052f2-9989-4d14-9e62-ee7aef3be497</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Actually BLE protocol has a solution to mitigate this issue as each advertising event would have a random delay (&amp;lt;10ms) to avoid being insync. But this wouldn&amp;#39;t help if we have a gap of&amp;nbsp;50ms of not scanning.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scanning issues with SoftDevice 6.1.0</title><link>https://devzone.nordicsemi.com/thread/165724?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 12:21:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c939737-c77b-4296-8367-876f060cc8a3</guid><dc:creator>cxz</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;My thoughts were something along these lines also, but are we saying that scanning with a 100/50ms interval/window and a 400ms advertising interval, this would &amp;#39;correct&amp;#39; itself over a matter of time? On a related note, doesn&amp;#39;t this also mean that with a duty cycle of 100% 10/10ms this would still happen, but on a tiny and unnoticable level such that clock drift becomes in sync?&lt;br /&gt;&lt;br /&gt;Yes, when we reset the beacons these would show up on the scanner. Sometimes starting/resetting the scanner would result in no packets received. Would this mean that we started it in a non-advertising window?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scanning issues with SoftDevice 6.1.0</title><link>https://devzone.nordicsemi.com/thread/165717?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 11:58:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22e1bcff-7554-48ec-92fc-967c302e9df2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;My suspicion is that due to the duty cycle of 50% and since your scanning interval is an factor of the advertising interval, when the clock is drifting long enough (can take hours), the advertising will only happen in the non-scanning window and then results in that you can&amp;#39;t capture the advertising package.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When the issue occurs, if you reset the beacon(s) would you see the scanner working again ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest to have another beacon advertising with different interval, for example 30ms just to make sure the duty cycle would not be the problem here.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scanning issues with SoftDevice 6.1.0</title><link>https://devzone.nordicsemi.com/thread/165685?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 09:54:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04ccd180-a63b-4461-807f-5b1494ee90d9</guid><dc:creator>cxz</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Sorry for the confusion. Yes, when we switched to 10/10ms and it worked fine. Previously we were not using these defines. As you can see it was NRF_BLE_SCAN_SCAN_INTERVAL and NRF_BLE_SCAN_SCAN_WINDOW.&lt;br /&gt;&lt;br /&gt; In the source code I provided on GitHub it was an example application that was running as expected. But the code I pasted in the comment yesterday was from our actual application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scanning issues with SoftDevice 6.1.0</title><link>https://devzone.nordicsemi.com/thread/165684?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 09:52:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97713d48-f032-47b3-8b19-c05f8c7478be</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Christopher,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you clarify, you mean after you switched to 50/100ms then it worked fine or keeping it at 10/10ms made it work ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the source code you provided (and that I used to test here) it was 10/10ms was used .&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scanning issues with SoftDevice 6.1.0</title><link>https://devzone.nordicsemi.com/thread/165508?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2019 14:27:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15e96b8d-64fe-4499-b1bf-eab22cff8153</guid><dc:creator>cxz</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;With a fresh look at the code after the new year I found that I had missed something subtle:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define SCAN_INTERVAL 0x0010 /**&amp;lt; Determines scan interval in units of 0.625 millisecond. */
#define SCAN_WINDOW 0x0010 /**&amp;lt; Determines scan window in units of 0.625 millisecond. */
#define SCAN_DURATION 0x0000 /**&amp;lt; Duration of the scanning in units of 10 milliseconds. If set to 0x0000, scanning continues until it is explicitly disabled. */

static ble_gap_scan_params_t m_scan_param =
{
.active = 0,
.interval = NRF_BLE_SCAN_SCAN_INTERVAL,
.window = NRF_BLE_SCAN_SCAN_WINDOW,
.filter_policy = BLE_GAP_SCAN_FP_ACCEPT_ALL, 
.timeout = SCAN_DURATION,
.scan_phys = BLE_GAP_PHY_1MBPS,
.extended = 1,
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I had set the scan interval and window to be 10ms, but it would never use these values. It would use the SDK values: 160 and 80, corresponding to 100ms and 50ms. Our application seems to run fine so far now that I have changed the params to use the defines, however I wonder if you have any insight as to how this could affect the receiver using the old values? Our transmitter was transmitting at 400ms:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define INTERVAL MSEC_TO_UNITS(400, UNIT_0_625_MS)

ble_advertising_init_t init;
init.config.ble_adv_fast_interval = INTERVAL;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scanning issues with SoftDevice 6.1.0</title><link>https://devzone.nordicsemi.com/thread/164449?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 08:47:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90d63403-e948-4fe4-a0b0-8184f5fd9c31</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Christopher,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have been running the test (PCA10056 DK for scanning, PCA10040 for advertising ) overnight and they still working fine. I would suggest to test again in a different environment and/or different DK boards for reference.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scanning issues with SoftDevice 6.1.0</title><link>https://devzone.nordicsemi.com/thread/163230?ContentTypeID=1</link><pubDate>Sat, 29 Dec 2018 06:32:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04badabf-d5e1-4cde-9c60-b914f1cddb23</guid><dc:creator>cxz</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;With our application it was reproducible all the time and it varies from minutes to hours. Sometimes when starting 2 scanning nRF52840 DK, 1 would immediately not be receiving. I can test further when back from holidays as well.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scanning issues with SoftDevice 6.1.0</title><link>https://devzone.nordicsemi.com/thread/163228?ContentTypeID=1</link><pubDate>Sat, 29 Dec 2018 03:31:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:138450e9-3ef6-49b5-a11f-6179a7784dc5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Christopher,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Glad that we met before :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And I&amp;#39;m sorry for the late response it was due to the holiday. I have been running your example here for a few hours (4-5hours) and it still can scan and printout the advertising packets. How often do you see the issue ? Was it reproducible all the times ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scanning issues with SoftDevice 6.1.0</title><link>https://devzone.nordicsemi.com/thread/162890?ContentTypeID=1</link><pubDate>Fri, 21 Dec 2018 21:52:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9da90106-0556-4023-8638-3bf4b53c697e</guid><dc:creator>cxz</dc:creator><description>&lt;div&gt;Hi Hung,&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Was nice to see you at the Nordic Tech Tour in Lund.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Another engineer was able to verify with the RSCS examples and I also saw the same behaviour a while ago but ignored the problem at that time and restarted the application.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;We have made 2 peripheral and central examples here based off 2 other&lt;/div&gt;
&lt;div&gt;GitHub projects:&lt;/div&gt;
&lt;div&gt;&lt;a href="https://github.com/czee/NRF52840-Beacon_Scanner"&gt;github.com/.../NRF52840-Beacon_Scanner&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href="https://github.com/czee/MOTAM-Beacons"&gt;https://github.com/czee/MOTAM-Beacons&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;The SES file will automatically load SoftDevice v6.1.1.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I haven&amp;#39;t been able to see the same behaviour in these stripped down examples, but then again I have not run them for a particularly long time. When we see this issue occur, our application does not enter any&lt;/div&gt;
&lt;div&gt;breakpoint in the ble_evt_handler for the BLE_GAP_EVT_ADV_REPORT event.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Thanks.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scanning issues with SoftDevice 6.1.0</title><link>https://devzone.nordicsemi.com/thread/162479?ContentTypeID=1</link><pubDate>Wed, 19 Dec 2018 11:16:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e293098-97bd-4924-9e98-1ab1d4e3c1ce</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sigurd is on vacation for 3 weeks. I will try to&amp;nbsp;help with your&amp;nbsp;case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you reproduce the issue with a minimum firmware so we can test here ?&amp;nbsp;&lt;br /&gt;Do you see the same problem when you test with our central example, for example the ble_app_uart_c ? or ble_app_hrs_c ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scanning issues with SoftDevice 6.1.0</title><link>https://devzone.nordicsemi.com/thread/162124?ContentTypeID=1</link><pubDate>Mon, 17 Dec 2018 15:14:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34adc660-106d-4c57-b231-8a77d1e67e22</guid><dc:creator>cxz</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We are not getting asserts or error messages printed over UART since we are using our own protocol. The JLink RTT viewer shows normal NRF_LOG_INFO output (none in the case of no received packets).&lt;/p&gt;
&lt;p&gt;The nRF52832 was with our own hardware, but we have verified that it happens on the nRF52832 DK with the RSCS example.&lt;/p&gt;
&lt;p&gt;Do you know if there is a planned date when the sniffer will support extended advertising?&lt;/p&gt;
&lt;p&gt;Yes we tried SoftDevice v6.1.1 on an earlier prototype of our hardware with the nRF52832 and using a DK with the nRF52832 with our application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scanning issues with SoftDevice 6.1.0</title><link>https://devzone.nordicsemi.com/thread/161925?ContentTypeID=1</link><pubDate>Fri, 14 Dec 2018 16:35:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:955f3e7d-019a-49d1-8f2c-43f74bb7af89</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you getting any asserts or error messages printed over the UART, on either scanner or advertiser?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You mentioned that you are using 2 nRF52840-DK, is the nRF52832 also a Nordic DK?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="73213" url="~/f/nordic-q-a/41470/ble-scanning-issues-with-softdevice-6-1-0"]Is there a regulatory limit on how long it is possible to transmit on a specific channel?[/quote]
&lt;p&gt;No, you should be able to advertise for an unlimited amount of time. (set APP_ADV_DURATION to 0)&lt;/p&gt;
[quote userid="73213" url="~/f/nordic-q-a/41470/ble-scanning-issues-with-softdevice-6-1-0"]And does the nRF sniffer v2 beta 3 support BT5 completely?[/quote]
&lt;p&gt;I don&amp;#39;t think it currently supports extended advertising.&lt;/p&gt;
[quote userid="73213" url="~/f/nordic-q-a/41470/ble-scanning-issues-with-softdevice-6-1-0"]We would also like to know what scanning issues were fixed in SoftDevice 6.1.1?[/quote]
&lt;p&gt;Looking at the release notes, an issue where the SoftDevice could assert when receiving long packets during extended scanning was fixed in v6.1.1. Could you test with the&amp;nbsp;&lt;span&gt;&amp;nbsp;v6.1.1&amp;nbsp;on the nRF52832 also?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scanning issues with SoftDevice 6.1.0</title><link>https://devzone.nordicsemi.com/thread/161219?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 13:42:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c410db8-9210-41eb-94d0-42e00233affe</guid><dc:creator>cxz</dc:creator><description>&lt;p&gt;Yes, we&amp;#39;re sure. It&amp;#39;s in continous scanning with the main thread writing to UART.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE scanning issues with SoftDevice 6.1.0</title><link>https://devzone.nordicsemi.com/thread/161217?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 13:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:313f48fa-df92-420b-82ac-963c94d0a8a8</guid><dc:creator>gsegment</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you sure that scanning process wasn&amp;#39;t interrupted or stopped by software?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>