<?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>Extended advertising and central role compatibility</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83388/extended-advertising-and-central-role-compatibility</link><description>Hi all, 
 We are developing an application using nRF52840 device and the idea is to enable the device with peripheral and central roles. 
 We would like to set two advertising sets, first one for legacy advertising on 1M PHY and a second one, extended</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Jan 2022 16:00:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83388/extended-advertising-and-central-role-compatibility" /><item><title>RE: Extended advertising and central role compatibility</title><link>https://devzone.nordicsemi.com/thread/346269?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 16:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22ef6ab2-3f17-4781-a403-4a3ee919da81</guid><dc:creator>AritzM</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;That is correct. I have two boards running the same code and I enable/disable advertising with a couple of buttons.&lt;/p&gt;
&lt;p&gt;I have done several tests by changing advertising and scanning intervals and I can confirm that advertising packets on both 1M and Coded PHY are being detected. I guess there is a compromise with the scanning and advertising intervals.&lt;/p&gt;
&lt;p&gt;I am happy to close this ticket Hung.&lt;/p&gt;
&lt;p&gt;Thank you very much for your time and support.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising and central role compatibility</title><link>https://devzone.nordicsemi.com/thread/346268?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 14:13:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e907b5bc-aff5-4bf2-827f-21ddb5d6f138</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Artisz,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just to clarify, issue with scanning, do you have the issue if you don&amp;#39;t do advertising on device A and only do scanning ? Have you tried to reduce the advertising interval on device A ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I assume you have verified that device B was actually doing some advertising (using a phone for example).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising and central role compatibility</title><link>https://devzone.nordicsemi.com/thread/346267?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 13:04:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf66963f-d55d-4c03-abe8-be3c0649305d</guid><dc:creator>AritzM</dc:creator><description>&lt;p&gt;Hi Hung,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you very much for your reply.&lt;/p&gt;
&lt;p&gt;I have done a couple of tests and that fixes the first error I had. I can enable now&amp;nbsp;both advertising sets in 1M and coded PHY at the same time.&lt;/p&gt;
&lt;p&gt;However, unfortunately I am still seeing the second error: device A&amp;nbsp;&lt;span&gt;scanning&amp;nbsp;does not detect Coded PHY advertising packets from device B if advertising is enabled on device A.&lt;br /&gt;&lt;br /&gt;Could you please double check that error with the R&amp;amp;D team?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising and central role compatibility</title><link>https://devzone.nordicsemi.com/thread/346266?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 12:35:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55fefce2-120c-455f-97cf-ce5b3de1c45a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Aritz,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have received a tip from the R&amp;amp;D team. You should be able to fix the issue by configure:&amp;nbsp;&lt;br /&gt;CONFIG_SDC_SLAVE_COUNT=2 or more.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;This by default is 1 and it only allows one slave connection. (I assume this is ignored when &lt;span&gt;CONFIG_BT_CENTRAL&amp;nbsp;=n)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising and central role compatibility</title><link>https://devzone.nordicsemi.com/thread/346265?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 08:59:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30fb96b9-6415-4ee4-beeb-50d2dbcd4902</guid><dc:creator>AritzM</dc:creator><description>&lt;p&gt;Morning Hung,&lt;/p&gt;
&lt;p&gt;Do&amp;nbsp; you have any updates on this ticket please?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising and central role compatibility</title><link>https://devzone.nordicsemi.com/thread/346264?ContentTypeID=1</link><pubDate>Thu, 30 Dec 2021 13:24:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2832df6-a9a0-42f7-8605-1bab32bce22e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Artiz,&amp;nbsp;&lt;br /&gt;Thanks for the code. I have reproduced the issue here. I have sent the question to our Bluetooth team and will keep you updated if I have an answer from them.&amp;nbsp;&lt;br /&gt;Happy New Year !&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hung&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising and central role compatibility</title><link>https://devzone.nordicsemi.com/thread/346263?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 17:21:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58345cce-d930-4505-9b12-bfb009cb229c</guid><dc:creator>AritzM</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;I am finishing for today and 2021 year. I will be back to work the 3rd of January.&lt;/p&gt;
&lt;p&gt;Thanks for your time.&lt;/p&gt;
&lt;p&gt;Happy New year!&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising and central role compatibility</title><link>https://devzone.nordicsemi.com/thread/346262?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 16:26:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01bdce25-c30d-4dc1-8eda-d12211ff6fb7</guid><dc:creator>AritzM</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Apologies my network connection is not very good today and I am having problems to upload the whole &amp;quot;build&amp;quot; folder.&lt;/p&gt;
&lt;p&gt;I have uploaded just the code and settings files.&lt;/p&gt;
&lt;p&gt;If you send me an email address, I could send you the whole project.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising and central role compatibility</title><link>https://devzone.nordicsemi.com/thread/346261?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 16:11:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d151b47-033f-4553-b789-4bc965ee5b3a</guid><dc:creator>AritzM</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/reactec_5F00_test_5F00_nrf52840.rar"&gt;devzone.nordicsemi.com/.../reactec_5F00_test_5F00_nrf52840.rar&lt;/a&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;I managed to reproduce the two errors I am seeing in our custom board with a nRF52840 evaluation board.&lt;/p&gt;
&lt;p&gt;1. When enabling the second advertising set, bt_le_ext_adv_start() function is giving BT_HCI_ERR_CONN_LIMIT_EXCEEDED error and advertising is not started.&lt;/p&gt;
&lt;p&gt;2. When enabling one only set of advertising (either legacy advertising or extended one in Coded/&amp;quot;M PHY), the scanning code stops working on Coded/2M PHY, it does not detect advertising packets.&lt;/p&gt;
&lt;p&gt;Please find attached the whole project folder.&amp;nbsp;&amp;nbsp;Please copy it into &amp;quot;ncs\v1.8.0\nrf\samples\bluetooth&amp;quot; folder.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1640275927494v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising and central role compatibility</title><link>https://devzone.nordicsemi.com/thread/346260?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 12:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:692882cb-19d7-491a-bc55-7678583b84f4</guid><dc:creator>AritzM</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thanks for your response.&lt;/p&gt;
&lt;p&gt;I have double checked&amp;nbsp;&lt;span&gt;CONFIG_BT_MAX_CONN&amp;nbsp;in autoconfig.h file and it is set to 10 as well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;At the moment I am working with a custom board, let me build the project to run in the nRF52840-DK board and I will send the whole project to you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please find attached autoconf.h file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1184.autoconf.h"&gt;devzone.nordicsemi.com/.../1184.autoconf.h&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended advertising and central role compatibility</title><link>https://devzone.nordicsemi.com/thread/346259?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 12:32:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:261ae146-6f40-4ff5-9886-428f6406b025</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Aritz,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you double check in autoconfig.h that&amp;#39;s generated by compiling, to see if&amp;nbsp;CONFIG_BT_MAX_CONN is set to 10 or something else?&lt;br /&gt;I suspect that there could be the chance that the BLE controller was not configured to support more than 2 connections.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you send the full project so we can compile and test here ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>