<?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>Beacon using seperate host and controller</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68286/beacon-using-seperate-host-and-controller</link><description>Hi, I am using nRF Connect SDK 14.0 with nRF9160 DK. 
 I want to use nRF52840 as a controller and nRF9160 as host. To achieve this, I flashed hci_uart sample on nRF52840 and it started running fine. Then flashed beacon example to nRF9160 but it fails</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Nov 2020 06:51:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68286/beacon-using-seperate-host-and-controller" /><item><title>RE: Beacon using seperate host and controller</title><link>https://devzone.nordicsemi.com/thread/281436?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 06:51:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:049bfa9c-81e9-4fc6-96a6-00b87bb572fd</guid><dc:creator>safaoral</dc:creator><description>&lt;p&gt;Thanks Heidi it is working now&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Beacon using seperate host and controller</title><link>https://devzone.nordicsemi.com/thread/281339?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 14:00:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:008f1a77-8877-4281-9788-dcedc10bcc62</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi again!&lt;/p&gt;
&lt;p&gt;So, I was able to get past the driver error by doing these modifications.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In beacon/boards I added an overlay file &amp;quot;nrf9160dk_nrf9160ns.overlay&amp;quot; that I took from the LTE BLE Gateway sample (&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/master/samples/nrf9160/lte_ble_gateway/boards/nrf9160dk_nrf9160ns.overlay"&gt;nrf/samples/nrf9160/lte_ble_gateway/boards/nrf9160dk_nrf9160ns.overlay&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and I added these configurations to the prj.conf file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_H4=y
CONFIG_BT_HCI=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=1

  
CONFIG_NRF_SW_LPUART=y
CONFIG_NRF_SW_LPUART_INT_DRIVEN=y

CONFIG_UART_2_ASYNC=y
CONFIG_UART_2_INTERRUPT_DRIVEN=n
CONFIG_UART_2_NRF_HW_ASYNC=y
CONFIG_UART_2_NRF_HW_ASYNC_TIMER=2&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;They are taken from the prj.conf file and boards/nrf9160dk_nrf9160ns.conf file in the LTE Sensor gateway sample. It&amp;#39;s possible that not all of them are necessary.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To set up UART2 as non-secure, add the following configuration to a file called &amp;quot;child_secure_partition_manager.conf&amp;quot;.&amp;nbsp;&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;&lt;/p&gt;
&lt;p&gt;Then add this to the CMakeLists.txt file, right under&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;cmake_minimum_required&lt;/em&gt;.&lt;/p&gt;
&lt;p&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;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Beacon using seperate host and controller</title><link>https://devzone.nordicsemi.com/thread/280188?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2020 16:46:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fe5ac07-4d6a-4fda-a8d5-5b9f34753009</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi! That&amp;#39;s interesting. I am seeing the same error as you, that the driver isn&amp;#39;t registered. I am currently looking into it and asking some of the developers, and I&amp;#39;ll update you when I have more information.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Beacon using seperate host and controller</title><link>https://devzone.nordicsemi.com/thread/279767?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 14:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fa53dda-978a-494a-800e-6ff29625c420</guid><dc:creator>safaoral</dc:creator><description>&lt;p&gt;&lt;span&gt;CONFIG_BT_H4 and&amp;nbsp;CONFIG_SERIAL&amp;nbsp;were already in the active state. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I could not find any configuration about UART hardware flow, but RTS and CTS were defined in either of the boards .dts files. And since I can see reading outputs nRF52840 using LTE Sensor Gateway example which includes&amp;nbsp;hci_lpuart and lte_ble_gateway samples, I assumed&amp;nbsp;RTS and CTS are connected on hardware level.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I added&amp;nbsp;CONFIG_BT_WAIT_NOP but it still gives the same error.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Beacon using seperate host and controller</title><link>https://devzone.nordicsemi.com/thread/279743?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 13:41:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3282b0d8-1f16-4a7f-8fe1-5ec0e0d50591</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You will need to modify the Beacon example to use a separate device as the Bluetooth Controller.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You at least need the configuration CONFIG_BT_H4, which specifies the Bluetooth HCI Driver you&amp;#39;re using. This will require the&amp;nbsp;UART&amp;nbsp;&lt;span&gt;hardware flow control lines to be available, so check that as well. CONFIG_SERIAL will need to be enabled as well.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Optionally CONFIG_BT_WAIT_NOP if you want to be notified when the Controller is initialized.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let me know how it goes.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>