<?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>CAF BLE state module build assert when CONFIG_BT_PERIPHERAL and CONFIG_BT_CENTRAL is set</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90310/caf-ble-state-module-build-assert-when-config_bt_peripheral-and-config_bt_central-is-set</link><description>ref. an earlier ticket, 
 I am using ncs 2.0.0 on a custom nRF52840 board 
 When enabling the CAF BLE state module, I get a build assert error due to 
 BUILD_ASSERT(!IS_ENABLED(CONFIG_BT_PERIPHERAL) || (ARRAY_SIZE(active_conn) == 1)); 
 
 If I enable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Dec 2022 12:31:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90310/caf-ble-state-module-build-assert-when-config_bt_peripheral-and-config_bt_central-is-set" /><item><title>RE: CAF BLE state module build assert when CONFIG_BT_PERIPHERAL and CONFIG_BT_CENTRAL is set</title><link>https://devzone.nordicsemi.com/thread/400612?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 12:31:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:026309e0-8e54-4b4a-a2e0-1894b26d312f</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;That&amp;#39;s is great news, thanks for letting us know that the v2.2.0 release solved your issue &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CAF BLE state module build assert when CONFIG_BT_PERIPHERAL and CONFIG_BT_CENTRAL is set</title><link>https://devzone.nordicsemi.com/thread/400480?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 21:32:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed2ce510-6d65-4fa1-bcaa-4c8c8b82f4d5</guid><dc:creator>tellg</dc:creator><description>&lt;p&gt;Now using ncs 2.2.0, which solves my issue :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CAF BLE state module build assert when CONFIG_BT_PERIPHERAL and CONFIG_BT_CENTRAL is set</title><link>https://devzone.nordicsemi.com/thread/388217?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 18:48:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cec0ed8-86c4-4b49-9509-01636a4092c0</guid><dc:creator>tellg</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;I am following this PR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CAF BLE state module build assert when CONFIG_BT_PERIPHERAL and CONFIG_BT_CENTRAL is set</title><link>https://devzone.nordicsemi.com/thread/385656?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2022 08:51:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b6c6358-edb4-432a-b7e1-b5f5f85b260e</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;A PR has been made to fix this, follow it here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/8710/"&gt;https://github.com/nrfconnect/sdk-nrf/pull/8710/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CAF BLE state module build assert when CONFIG_BT_PERIPHERAL and CONFIG_BT_CENTRAL is set</title><link>https://devzone.nordicsemi.com/thread/385073?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 14:35:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0032bafa-8855-443a-a0e8-0845c86fe86d</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Sorry for the delayed answer. It does not seem like it made it into NCS v2.1.0 unfortunately:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.1.0-rc1/subsys/bluetooth/Kconfig.scan#L8"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.1.0-rc1/subsys/bluetooth/Kconfig.scan#L8&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding roadmap question, please ask your RSM.&amp;nbsp;&lt;span&gt;If you don&amp;#39;t know who that is, please send me an PM with your location and I&amp;#39;ll provide the contact information you need.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CAF BLE state module build assert when CONFIG_BT_PERIPHERAL and CONFIG_BT_CENTRAL is set</title><link>https://devzone.nordicsemi.com/thread/383135?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2022 20:14:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96c7dd06-c0d6-438b-b59f-5e7db91534e3</guid><dc:creator>tellg</dc:creator><description>&lt;p&gt;Do you know if this will make it into ncs 2.1.0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CAF BLE state module build assert when CONFIG_BT_PERIPHERAL and CONFIG_BT_CENTRAL is set</title><link>https://devzone.nordicsemi.com/thread/381824?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 15:01:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:052d8301-2ec2-4c8f-8a62-83a9df57bbd0</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Sounds good&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44d.svg" title="Thumbsup"&gt;&amp;#x1f44d;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CAF BLE state module build assert when CONFIG_BT_PERIPHERAL and CONFIG_BT_CENTRAL is set</title><link>https://devzone.nordicsemi.com/thread/381823?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 14:54:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05dd732c-5c8a-42d2-a882-7e1d3cd99e63</guid><dc:creator>tellg</dc:creator><description>&lt;p&gt;Thank you. Will watch what is happening on&amp;nbsp;&lt;a id="" href="https://github.com/nrfconnect/sdk-nrf"&gt;https://github.com/nrfconnect/sdk-nrf&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CAF BLE state module build assert when CONFIG_BT_PERIPHERAL and CONFIG_BT_CENTRAL is set</title><link>https://devzone.nordicsemi.com/thread/381624?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 15:37:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0a24215-ef64-473b-a215-ecbb35a6005a</guid><dc:creator>Simon</dc:creator><description>[quote user="tellg"]&lt;p&gt;&lt;span&gt;What seems to work is to comment out the whole build assert in ble_state.c,&amp;nbsp;&amp;nbsp;ble_state_init()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then I can&amp;nbsp;enable both&amp;nbsp;CONFIG_BT_PERIPHERAL and&amp;nbsp;CONFIG_BT_CENTRAL, and use scan filters.&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;It seems like you&amp;#39;ve found a temporary workaround.&lt;/p&gt;
&lt;p&gt;I have reported internally that the scanning module does not support filtering packets for an observer role, only central. I have reported this internally and will keep you updated on the progress.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CAF BLE state module build assert when CONFIG_BT_PERIPHERAL and CONFIG_BT_CENTRAL is set</title><link>https://devzone.nordicsemi.com/thread/381035?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2022 13:26:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abfe004b-d481-44e8-8226-fdcdd9e4fec6</guid><dc:creator>tellg</dc:creator><description>&lt;p&gt;Any news on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CAF BLE state module build assert when CONFIG_BT_PERIPHERAL and CONFIG_BT_CENTRAL is set</title><link>https://devzone.nordicsemi.com/thread/379107?ContentTypeID=1</link><pubDate>Thu, 28 Jul 2022 11:33:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1c3ea81-fc68-4312-a2c9-a15cefff344f</guid><dc:creator>tellg</dc:creator><description>&lt;p&gt;With your suggested step and &lt;span&gt;CONFIG_BT_CENTRAL&amp;nbsp;not enabled&lt;/span&gt;, I get&amp;nbsp;C:\ncs\v2.0.0\nrf\subsys\bluetooth\scan.c:487: undefined reference to `bt_conn_le_create&amp;#39;&lt;/p&gt;
&lt;p&gt;(even if I call&amp;nbsp;&lt;span&gt;bt_scan_init() with connect_if_match set to false)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What seems to work is to comment out the whole build assert in ble_state.c,&amp;nbsp;&amp;nbsp;ble_state_init()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then I can&amp;nbsp;enable both&amp;nbsp;CONFIG_BT_PERIPHERAL and&amp;nbsp;CONFIG_BT_CENTRAL, and use scan filters.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CAF BLE state module build assert when CONFIG_BT_PERIPHERAL and CONFIG_BT_CENTRAL is set</title><link>https://devzone.nordicsemi.com/thread/378909?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2022 12:34:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cd787d0-a8b0-46be-a882-25d6b826c4c9</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;It seems like the nrf scan library is dependent on CONFIG_BT_CENTRAL unfortunately. Could you try to remove this dependeny, by commenting out &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.0.1/subsys/bluetooth/Kconfig.scan#L8"&gt;this line&lt;/a&gt;? Also when running bt_scan_init(), set param.connect_if_match to false. I&amp;#39;m not sure if this would work, or if there is anything else that needs to be modified.&lt;/p&gt;
&lt;p&gt;Please let me know if you get it to work, and maybe I could try to create a PR to the library. If you don&amp;#39;t get it to work, let me know as well, and I will try to make it work.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>