<?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>Bluetooth Beacon Setup on Thingy 91</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58889/bluetooth-beacon-setup-on-thingy-91</link><description>Hello, 
 I am working on an IoT project using the Thingy 91 to send sensor data via Bluetooth to a remote device. Currently, I am trying to set up a simple beacon as shown in the Zephyr samples. I would like to set up the NRF9160 as the host and the NRF52</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Mar 2020 06:37:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58889/bluetooth-beacon-setup-on-thingy-91" /><item><title>RE: Bluetooth Beacon Setup on Thingy 91</title><link>https://devzone.nordicsemi.com/thread/240336?ContentTypeID=1</link><pubDate>Wed, 18 Mar 2020 06:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af678886-f7a6-4de6-b22c-c9991f41a6e4</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Very glad to hear, Nils!&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Have a great day!&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Beacon Setup on Thingy 91</title><link>https://devzone.nordicsemi.com/thread/240259?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 12:54:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:753b3a84-1224-4dd3-a90f-74b2431ca589</guid><dc:creator>Nils Ruf</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Bluetooth is now working properly. The error I posted above was actually due to the change I applied to the code. After turning the Thingy off, switching the debug switch to &amp;quot;NRF52&amp;quot;, turning it back on and finally switching the debug switch back to &amp;quot;NRF91&amp;quot; I got my serial output back.&lt;/p&gt;
&lt;p&gt;The failing Bluetooth initialization could be fixed by adding the configuration option &lt;strong&gt;CONFIG_BT_PERIPHERAL=y&amp;nbsp;&lt;/strong&gt;to my prj.conf. After that, advertising and even connection management was working properly without hanging.&lt;/p&gt;
&lt;p&gt;Thank you very much for your help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Nils&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Beacon Setup on Thingy 91</title><link>https://devzone.nordicsemi.com/thread/240184?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 09:14:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4ae3f61-58ef-4843-9641-f4bbdb21d7e1</guid><dc:creator>Nils Ruf</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Unfortunately, since I have flashed the HCI-UART bridge example onto the NRF52, I&amp;nbsp;have not been able to connect to the serial interface any more so I do not get any application output. Is there another way to obtain this information?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I did one change to simplify debugging as shown below:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;void ble_init(void)
{
	int err;

	printk(&amp;quot;Initializing Bluetooth..\n&amp;quot;);
	err = bt_enable(NULL);
	if (err) {
		printk(&amp;quot;Bluetooth init failed (err %d)\n&amp;quot;, err);
		return;
	}
	ble_ready(err);
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Previously, the &lt;strong&gt;ble_ready&lt;/strong&gt; function was passed as a callback to &lt;strong&gt;bt_enable&lt;/strong&gt;. The ble_ready function should be called asynchronously after BLE initialization. This is however, not the case, so&amp;nbsp;I tried it this way which leads to the error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If I pass the ble_ready function as a callback to bt_enable no error is thrown in the main thread but the device cannot be seen by a BLE scanner (I am trying to use the Thingy as a beacon).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Nils&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Beacon Setup on Thingy 91</title><link>https://devzone.nordicsemi.com/thread/240174?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 08:44:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7643adae-6e55-4ed1-9c72-e10becad4a12</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Nils,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you please provide full output from your debug/application?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Error -11 is according to errno.h:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define EAGAIN 11       /* No more contexts */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;For &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kernel/synchronization/semaphores.html?highlight=k_sem_take#_CPPv410k_sem_takeP5k_sem5s32_t"&gt;k_sem_take&lt;/a&gt;&amp;nbsp;this means &amp;quot;&lt;span&gt;Waiting period timed out&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Have you edited anything in the code? What are you trying to connect?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Beacon Setup on Thingy 91</title><link>https://devzone.nordicsemi.com/thread/239951?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 10:41:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:641e2305-4532-4219-b3bb-fffacbb7efc9</guid><dc:creator>Nils Ruf</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I have verified that I have added each patch and I also ran &amp;#39;west update&amp;#39; (which I forgot). The samples are compiling properly now however, HCI still does not work. During the BLE initialization I get the error &amp;quot;&lt;strong&gt;k_sem_take failed with err -11&lt;/strong&gt;&amp;quot;. After that the system hangs. The corresponding stack trace is shown below.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1584354965035v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Nils&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Beacon Setup on Thingy 91</title><link>https://devzone.nordicsemi.com/thread/239335?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2020 13:21:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6534ce1-23da-4261-b2b3-db46032e023b</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Have you remembered to run &amp;quot;west update&amp;quot; after &amp;quot;git checkout v1.1.0&amp;quot;. Please verify that you have added each patch, needed for the provided sample to run.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Beacon Setup on Thingy 91</title><link>https://devzone.nordicsemi.com/thread/238907?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 15:42:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fc5839a-6a1a-47c9-9442-caa3611a6e9c</guid><dc:creator>Nils Ruf</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thank you for your fast answer. I was using the latest version of NCS. After switching back to v1.1.0 I got the following CMake error during the build process for the LTE/BLE sample:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[main] Configuring folder: _lte_ble_gateway 
[proc] Executing command: &amp;quot;C:\Program Files\CMake\bin\cmake.EXE&amp;quot; --no-warn-unused-cli -DBOARD:STRING=nrf9160_pca20035ns -DBOARD_DIR:STRING=C:/_PROJECTS/nordic/nrf/boards/arm/nrf9160_pca20035 -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -Hc:/_PROJECTS/nordic/_nrf9160_apps/_lte_ble_gateway -Bc:/_PROJECTS/nordic/_nrf9160_apps/_lte_ble_gateway/build -G Ninja
[cmake] Not searching for unused variables given on the command line.
[cmake] -- Zephyr version: 2.1.99
[cmake] -- Found PythonInterp: C:/Program Files/Python37/python.exe (found suitable version &amp;quot;3.7.5&amp;quot;, minimum required is &amp;quot;3.6&amp;quot;) 
[cmake] -- Selected BOARD nrf9160_pca20035ns
[cmake] -- Found west: C:/Program Files/Python37/Scripts/west.exe (found suitable version &amp;quot;0.6.3&amp;quot;, minimum required is &amp;quot;0.6.0&amp;quot;)
[cmake] -- Loading C:/_PROJECTS/nordic/nrf/boards/arm/nrf9160_pca20035/nrf9160_pca20035ns.dts as base
[cmake] -- Overlaying C:/_PROJECTS/nordic/_nrf9160_apps/_lte_ble_gateway/nrf9160_pca20035ns.overlay
[cmake] Devicetree configuration written to C:/_PROJECTS/nordic/_nrf9160_apps/_lte_ble_gateway/build/zephyr/include/generated/devicetree.conf
[cmake] warning: &amp;#39;title:&amp;#39; in C:/_PROJECTS/nordic/nrf/cmake/../dts/bindings\sensor\rohm,bh1749.yaml is deprecated and will be removed (and was never used). Just put a &amp;#39;description:&amp;#39; that describes the device instead. Use other bindings as a reference, and note that all bindings were updated recently. Think about what information would be useful to other people (e.g. explanations of acronyms, or datasheet links), and put that in as well. The description text shows up as a comment in the generated header. See yaml-multiline.info for how to deal with multiple lines. You probably want &amp;#39;description: |&amp;#39;.
[cmake] warning: &amp;#39;title:&amp;#39; in C:/_PROJECTS/nordic/nrf/cmake/../dts/bindings\sensor\rohm,bh1749.yaml is deprecated and will be removed (and was never used). Just put a &amp;#39;description:&amp;#39; that describes the device instead. Use other bindings as a reference, and note that all bindings were updated recently. Think about what information would be useful to other people (e.g. explanations of acronyms, or datasheet links), and put that in as well. The description text shows up as a comment in the generated header. See yaml-multiline.info for how to deal with multiple lines. You probably want &amp;#39;description: |&amp;#39;.
[cmake] Parsing C:/_PROJECTS/nordic/_nrf9160_apps/_lte_ble_gateway/Kconfig
[cmake] C:/_PROJECTS/nordic/bootloader/mcuboot/zephyr/Kconfig:37: WARNING: dt_int_val is deprecated.
[cmake] C:/_PROJECTS/nordic/zephyr/scripts/kconfig/kconfig.py: C:/_PROJECTS/nordic/nrf/boards/arm/nrf9160_pca20035/Kconfig.defconfig:53: error: couldn&amp;#39;t parse &amp;#39;default $(dt_chosen_reg_size,$(DT_CHOSEN_Z_CODE_PARTITION))&amp;#39;: macro expanded to blank string
[cmake] CMake Error at C:/_PROJECTS/nordic/zephyr/cmake/kconfig.cmake:216 (message):
[cmake]   command failed with return code: 1
[cmake] Call Stack (most recent call first):
[cmake]   C:/_PROJECTS/nordic/zephyr/cmake/app/boilerplate.cmake:461 (include)
[cmake]   CMakeLists.txt:21 (include)
[cmake] 
[cmake] 
[cmake] -- Configuring incomplete, errors occurred!&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The build of the HCI/UART bridge also failed with the following CMake error:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[main] Configuring folder: _hci_uart_with_usb_uart_bridge_nrf52 
[proc] Executing command: &amp;quot;C:\Program Files\CMake\bin\cmake.EXE&amp;quot; --no-warn-unused-cli -DBOARD:STRING=nrf52840_pca20035 -DBOARD_DIR:STRING=C:/_PROJECTS/nordic/nrf/boards/arm/nrf52840_pca20035 -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -Hc:/_PROJECTS/nordic/_nrf9160_apps/_hci_uart_with_usb_uart_bridge_nrf52 -Bc:/_PROJECTS/nordic/_nrf9160_apps/_hci_uart_with_usb_uart_bridge_nrf52/build -G Ninja
[cmake] Not searching for unused variables given on the command line.
[cmake] -- Zephyr version: 2.1.99
[cmake] -- Selected BOARD nrf52840_pca20035
[cmake] -- Found west: C:/Program Files/Python37/Scripts/west.exe (found suitable version &amp;quot;0.6.3&amp;quot;, minimum required is &amp;quot;0.6.0&amp;quot;)
[cmake] -- Loading C:/_PROJECTS/nordic/nrf/boards/arm/nrf52840_pca20035/nrf52840_pca20035.dts as base
[cmake] -- Overlaying C:/_PROJECTS/nordic/_nrf9160_apps/_hci_uart_with_usb_uart_bridge_nrf52/nrf52840_pca20035.overlay
[cmake] Devicetree configuration written to C:/_PROJECTS/nordic/_nrf9160_apps/_hci_uart_with_usb_uart_bridge_nrf52/build/zephyr/include/generated/devicetree.conf
[cmake] Parsing C:/_PROJECTS/nordic/zephyr/Kconfig
[cmake] C:/_PROJECTS/nordic/bootloader/mcuboot/zephyr/Kconfig:37: WARNING: dt_int_val is deprecated.
[cmake] Loaded configuration &amp;#39;C:/_PROJECTS/nordic/nrf/boards/arm/nrf52840_pca20035/nrf52840_pca20035_defconfig&amp;#39;
[cmake] Merged configuration &amp;#39;nrf52840_pca20035.conf&amp;#39;
[cmake] 
[cmake] error: SOC_FAMILY_NRF (defined at C:/_PROJECTS/nordic/zephyr/soc/arm\nordic_nrf\Kconfig:6) is
[cmake] assigned in a configuration file, but is not directly user-configurable (has no prompt). It gets its
[cmake] value indirectly from other symbols. See
[cmake] http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_SOC_FAMILY_NRF.html and/or look up
[cmake] SOC_FAMILY_NRF in the menuconfig/guiconfig interface. The Application Development Primer, Setting
[cmake] Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
[cmake] too.
[cmake] 
[cmake] CMake Error at C:/_PROJECTS/nordic/zephyr/cmake/kconfig.cmake:216 (message):
[cmake]   command failed with return code: 1
[cmake] Call Stack (most recent call first):
[cmake]   C:/_PROJECTS/nordic/zephyr/cmake/app/boilerplate.cmake:461 (include)
[cmake]   CMakeLists.txt:15 (include)
[cmake] 
[cmake] 
[cmake] -- Configuring incomplete, errors occurred!&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do I have to use an older version of Zephyr for this example to work?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Nils&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Beacon Setup on Thingy 91</title><link>https://devzone.nordicsemi.com/thread/238869?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 14:23:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd85ee34-db55-4456-a590-e1d72199d1ae</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Nils,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What tag version of NCS are you working on?&amp;nbsp;Please make sure you are on tag v1.1.0 for the provided sample in the post to work. Have you applied both patches provided in the &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-86605d6dcf014cdc9e378e1b0dd0c3bc/lte_5F00_gateway_5F00_thingy91_5F00_v1.1.0_5F00_R2.zip"&gt;.zip file&lt;/a&gt;? Can you please provide some more logs showing the error?&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>