<?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>Problem with scanning 1Mbps and Coded Phy at the same time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69595/problem-with-scanning-1mbps-and-coded-phy-at-the-same-time</link><description>Hello, 
 we want to support scan for both 1Mbps and Long Range beacons and we are using the S140 6.1.0. 
 This is the configuration for the scan parameters: 
 
 When this is the case, I only see beacons that are advertising on 1MBPS and I cannot see the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Dec 2020 12:35:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69595/problem-with-scanning-1mbps-and-coded-phy-at-the-same-time" /><item><title>RE: Problem with scanning 1Mbps and Coded Phy at the same time</title><link>https://devzone.nordicsemi.com/thread/286039?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 12:35:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16681d9b-09a0-4120-8ce9-d5f4f589575b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update. The sdk_config settings are actaully not applied unless they are referenced by your code. So it appears that 1600/800 is too long to reliably detect the coded PHY advertisments in your case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with scanning 1Mbps and Coded Phy at the same time</title><link>https://devzone.nordicsemi.com/thread/286015?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 11:04:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:942f8368-52dd-4e4c-b45e-36214fa2a8b8</guid><dc:creator>kj_sk995</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I did some testing now and here are the results:&lt;br /&gt;SCAN_INTERVAL 1600&lt;br /&gt;SCAN_WINDOW 800 in main.c&amp;nbsp; and&amp;nbsp;&lt;/p&gt;
&lt;p&gt;NRF_BLE_SCAN_SCAN_INTERVAL 1600&lt;br /&gt; NRF_BLE_SCAN_SCAN_WINDOW 800 in sdk_config.h&amp;nbsp; ---&amp;gt; I cannot see CODED PHY beacons.&lt;/p&gt;
&lt;p&gt;SCAN_INTERVAL 1600&lt;br /&gt;SCAN_WINDOW 800 in main.c&amp;nbsp; and&amp;nbsp;&lt;/p&gt;
&lt;p&gt;NRF_BLE_SCAN_SCAN_INTERVAL 160&lt;br /&gt;NRF_BLE_SCAN_SCAN_WINDOW 80&amp;nbsp;&amp;nbsp;&amp;nbsp; in sdk_config.h&amp;nbsp; ---&amp;gt; I cannot see CODED PHY beacons.&lt;/p&gt;
&lt;p&gt;SCAN_INTERVAL 160&lt;br /&gt;SCAN_WINDOW 80 in main.c&amp;nbsp; and&amp;nbsp;&lt;br /&gt; NRF_BLE_SCAN_SCAN_INTERVAL 1600&lt;br /&gt; NRF_BLE_SCAN_SCAN_WINDOW 800&amp;nbsp; in sdk_config.h&amp;nbsp; ---&amp;gt; I can see CODED PHY beacons.&lt;/p&gt;
&lt;p&gt;SCAN_INTERVAL 160&lt;br /&gt;SCAN_WINDOW 80 in main.c&amp;nbsp; and&amp;nbsp;&lt;br /&gt; NRF_BLE_SCAN_SCAN_INTERVAL 160&lt;br /&gt; NRF_BLE_SCAN_SCAN_WINDOW 80&amp;nbsp; in sdk_config.h&amp;nbsp; ---&amp;gt; I can see CODED PHY beacons.&lt;/p&gt;
&lt;p&gt;I assume that the sdk_config.h configuration takes place if the parameters are omitted in main.c file, right?&lt;/p&gt;
&lt;p&gt;And regarding the results, I can conclude that when SD is switching PHY more frequently, I can see the CODED PHY beacons. (The advertising interval for CODED PHY is 40ms as stated above).&lt;/p&gt;
&lt;p&gt;Are the results okay?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with scanning 1Mbps and Coded Phy at the same time</title><link>https://devzone.nordicsemi.com/thread/286009?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 10:38:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feda21ac-1d90-408d-8d87-2b6315e3e732</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I chose this interval and window size because I thought it was the same as you were using.&amp;nbsp; The code snippet you posted shows that the interval is set to 0x0640, which should be the same as 1600, unless I&amp;#39;m missing something.&lt;/p&gt;
&lt;p&gt;In any case, it still works for me after I repeated the test with the interval and scan window set to 160/80, so I&amp;#39;m a bit suprised it doesn&amp;#39;t work for you. I would have expected the opposite result if anything as a shorter interval will make the Softdevice switch PHYs more frequently.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with scanning 1Mbps and Coded Phy at the same time</title><link>https://devzone.nordicsemi.com/thread/285994?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 09:32:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:261d0c13-fa8e-4b76-b728-d7e8e3aebf96</guid><dc:creator>kj_sk995</dc:creator><description>&lt;p&gt;Hello Vidar,&lt;/p&gt;
&lt;p&gt;Thanks for uploading your projects. I went through the main.c for the scanner and I could not find anything different from my code.&lt;/p&gt;
&lt;p&gt;I checked the sdk_config.h file as well, and there I saw this:&lt;/p&gt;
&lt;p&gt;NRF_BLE_SCAN_SCAN_WINDOW 800&lt;/p&gt;
&lt;p&gt;NRF_BLE_SCAN_SCAN_INTERVAL 1600&lt;/p&gt;
&lt;p&gt;In my sdk_config.h file these were 80 and 160, respectively. I changed them to 800 and 1600 and now I can see both 1MBPS and CODED beacons.&lt;/p&gt;
&lt;p&gt;I define these intervals in the main.c as 80 and 160. Why are these in the sdk_config.h 10 times larger?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with scanning 1Mbps and Coded Phy at the same time</title><link>https://devzone.nordicsemi.com/thread/285978?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 08:53:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81825e41-3c9e-4a33-b2de-7823db569ce3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thanks for confirming, the advertising interval should be ok, espesially as you have several beacons in range. The reason I asked was that I was wondering if there was a chance for the scan window to never overlap with the advertisment event.&lt;/p&gt;
&lt;p&gt;Attached below is the projects I made to test this. Could you go over those and possibly try them to see if it works on your side as well?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Test projects based on nRF5 SDK 15.2.0/s140 v6.1.0 &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_beacon_5F00_adv_5F00_ext.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_beacon_5F00_adv_5F00_ext.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_beacon_5F00_scanner.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_beacon_5F00_scanner.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Excepted log output from the scanner and beacon in SES&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7585.log.PNG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with scanning 1Mbps and Coded Phy at the same time</title><link>https://devzone.nordicsemi.com/thread/285688?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 15:43:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb0ede05-5c66-48b6-b266-d9097515b2fd</guid><dc:creator>kj_sk995</dc:creator><description>&lt;p&gt;Hello Vidar, &lt;br /&gt;the 1M advertising interval is 300ms and I have 9 beacons in range, and for the CODED advertisement I am using Nordic_Blinky example and it is advertising on 40 ms. Could the advertising interval be a problem?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with scanning 1Mbps and Coded Phy at the same time</title><link>https://devzone.nordicsemi.com/thread/285684?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 15:27:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67729e87-cc28-4413-a122-f5ab0362f910</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We have tried to reproduce the setup here with the same scan parameters, but we were unable to reproduce the problem. Both 1M and CODED advertisements were being discovered in our case. Do you have multiple beacons in range, and what is the advertisement interval you use for the beacons?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>