<?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>Enable connectable advertising and scan role simultaneously using nRF connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65416/enable-connectable-advertising-and-scan-role-simultaneously-using-nrf-connect-sdk</link><description>Hi, 
 I am using NCS v1.3.0 for nRF9160. How to enable both scanner and advertiser roles simultaneously? 
 Currently even I enable both, HCI LE set random address failing with command disallowed error.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Sep 2020 13:26:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65416/enable-connectable-advertising-and-scan-role-simultaneously-using-nrf-connect-sdk" /><item><title>RE: Enable connectable advertising and scan role simultaneously using nRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/269004?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 13:26:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10555f05-fc5d-4a7e-9e7a-3005a6e17730</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Yes, it should.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable connectable advertising and scan role simultaneously using nRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/268993?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 13:06:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94e06479-bc7f-4773-ae6a-d90d9a0a2248</guid><dc:creator>Sridhar Jonnavittula</dc:creator><description>&lt;p&gt;Ok. Is it satisfy both scan and connectable advertising at a time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable connectable advertising and scan role simultaneously using nRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/268985?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 12:52:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4c153ae-0302-4baa-ad06-bdf79156f4cf</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You can make the &amp;quot;peripheral_uart&amp;quot; work on the nRF9160DK (nrf9160dk_nrf9160ns) and the &amp;quot;hci_uart&amp;quot; on the&amp;nbsp;nrf52840 (nrf9160dk_nrf52840) in NCS v1.3.0:&lt;br /&gt;&lt;br /&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;You change the following in&lt;em&gt; ncs/v1.3.0/nrf/samples/bluetooth/peripheral_uart:&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Add the following in prj.conf:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_H4=y
CONFIG_BT_WAIT_NOP=y
CONFIG_MAIN_STACK_SIZE=8192&lt;/pre&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Add the following in CMakeLists.txt &lt;em&gt;(under the line &amp;quot;cmake_minimum_required(VERSION 3.8.2))&lt;/em&gt;&lt;em&gt;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;&lt;pre class="ui-code" data-mode="text"&gt;set(spm_CONF_FILE
    prj.conf
    ${CMAKE_CURRENT_LIST_DIR}/child_secure_partition_manager.conf
)&lt;/pre&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;From lte_ble_gateway&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Add&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span&gt;ncs\v1.3.0\nrf\samples&lt;/span&gt;&lt;/em&gt;&lt;em&gt;\nrf9160\lte_ble_gateway\&lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;child_secure_partition_manager.conf&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;to&amp;nbsp;&lt;span&gt;ncs\v1.3.0\nrf\samples\bluetooth\&lt;/span&gt;&lt;span&gt;peripheral_uart&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Add&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;span&gt;ncs\v1.3.0\nrf\samples&lt;/span&gt;&lt;/em&gt;&lt;em&gt;\nrf9160\lte_ble_gateway\&lt;strong&gt;nrf9160dk_nrf9160ns.overlay&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;to&amp;nbsp;&lt;em&gt;&lt;span&gt;ncs\v1.3.0\nrf\samples\bluetooth\&lt;/span&gt;&lt;span&gt;peripheral_uart&lt;/span&gt;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;&lt;span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span&gt;&lt;strong&gt;note&lt;/strong&gt; that hci_uart should just be programmed to the&amp;nbsp;&lt;/span&gt;&lt;/em&gt;nrf9160_nrf52840 as is. (no modification needed)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable connectable advertising and scan role simultaneously using nRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/268785?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 14:18:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:668a9126-f76f-46d3-8668-374ef208ddec</guid><dc:creator>Sridhar Jonnavittula</dc:creator><description>&lt;p&gt;I have loaded hci_uart into nrf9160dk_nrf52840.&lt;/p&gt;
&lt;p&gt;I have added below in&amp;nbsp;&lt;a title="https://developer.nordicsemi.com/nrf_connect_sdk/doc/latest/zephyr/samples/bluetooth/scan_adv/readme.html" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/scan_adv/README.html"&gt;ncs\zephyr\samples\bluetooth\scan_adv&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;1. child_secure_partition_manager.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SPM_NRF_UARTE2_NS=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;nrf9160dk_nrf9160ns.overlay&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		zephyr,bt-uart=&amp;amp;uart2;
	};
};

&amp;amp;uart2 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	current-speed = &amp;lt;1000000&amp;gt;;
	status = &amp;quot;okay&amp;quot;;
	tx-pin = &amp;lt;18&amp;gt;;
	rx-pin = &amp;lt;17&amp;gt;;
	rts-pin = &amp;lt;21&amp;gt;;
	cts-pin = &amp;lt;19&amp;gt;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have modified prj.conf as&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT=y
CONFIG_BT_BROADCASTER=y
CONFIG_BT_OBSERVER=y
CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_H4=y
CONFIG_BT_WAIT_NOP=y
CONFIG_BT_CENTRAL=y
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_GATT_DM=y
CONFIG_BT_SCAN=y
CONFIG_BT_SCAN_FILTER_ENABLE=y
CONFIG_BT_SCAN_UUID_CNT=2

CONFIG_UART_2_NRF_FLOW_CONTROL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_BT_SMP=y


# Enable the BLE modules from NCS
CONFIG_BT_GATT_NUS_C=y
CONFIG_BT_MAX_CONN=10
CONFIG_BT_MAX_PAIRED=2
CONFIG_BT_ID_MAX=2
CONFIG_BT_PERIPHERAL=y

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In main.c I replaced&amp;nbsp;BT_LE_ADV_NCONN with&amp;nbsp;BT_LE_ADV_CONN and I observed following prints in LTE link monitor&lt;/p&gt;
&lt;pre&gt;Advertising failed to start (err -5)&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;bt_hci_core: opcode 0x0000 pool id 6 pool 0x200205ec != &amp;amp;hci_cmd_pool 0x200205c4&lt;/pre&gt;
&lt;pre class="ctrl-char ESC"&gt;bt_hci_core: ECC HCI commands not available&lt;/pre&gt;
&lt;pre class="ctrl-char ESC"&gt;bt_hci_core: Identity: d8:56:51:0d:97:1b (random)&lt;/pre&gt;
&lt;pre class="ctrl-char ESC"&gt;bt_hci_core: HCI: version 5.2 (0x0b) revision 0x0000, manufacturer 0x05f1&lt;/pre&gt;
&lt;pre class="ctrl-char ESC"&gt;bt_hci_core: LMP: version 5.2 (0x0b) subver 0xffff&lt;/pre&gt;
&lt;pre class="ctrl-char ESC"&gt;bt_hci_core: opcode 0x2005 status 0x0c&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please tell me what I am doing wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable connectable advertising and scan role simultaneously using nRF connect SDK</title><link>https://devzone.nordicsemi.com/thread/268636?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 07:01:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5a72e37-14d4-4bb6-9481-5f11633f8a30</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Please take a look at the sample&amp;nbsp;&lt;a title="https://developer.nordicsemi.com/nrf_connect_sdk/doc/latest/zephyr/samples/bluetooth/scan_adv/readme.html" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/scan_adv/README.html"&gt;ncs\zephyr\samples\bluetooth\scan_adv&lt;/a&gt;&amp;nbsp;and use that as reference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>