<?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>Thingy91 connections between 9160 and 52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53279/thingy91-connections-between-9160-and-52840</link><description>I would like to program the 52840 with the HCI_UART sample to use it for Bluetooth scanning. I did this and lost the USB serial out. I now understand that on the Thingy91, the &amp;#39;840 is used as a board controller and that serial communication is relayed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Dec 2019 13:26:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53279/thingy91-connections-between-9160-and-52840" /><item><title>RE: Thingy91 connections between 9160 and 52840</title><link>https://devzone.nordicsemi.com/thread/225899?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 13:26:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f734678-8912-4b95-8bd8-63794fe6672f</guid><dc:creator>Sigurd</dc:creator><description>[quote userid="81294" url="~/f/nordic-q-a/53279/thingy91-connections-between-9160-and-52840/225741"]Has there been any development on combining the HCI_UART and the UART / USB bridge on the 52840?[/quote]
&lt;p&gt;In the zip file found &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/52689/nrf9160-lte-sensor-gateway-on-thingy-91/225659#225659"&gt;in this post&lt;/a&gt;, I have merged the two samples into a &amp;quot;&lt;span&gt;hci_uart_with_usb_uart_bridge&amp;quot; sample.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 connections between 9160 and 52840</title><link>https://devzone.nordicsemi.com/thread/225891?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 13:16:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eb94569-ff11-4325-90d0-838477f4847f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Please see this thread:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/52689/nrf9160-lte-sensor-gateway-on-thingy-91/217018#217018"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/52689/nrf9160-lte-sensor-gateway-on-thingy-91/217018#217018&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you have a debugger, you can set CONFIG_USE_SEGGER_RTT=y in your prj.conf to get print outs over RTT.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 connections between 9160 and 52840</title><link>https://devzone.nordicsemi.com/thread/225741?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2019 17:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:262743d2-1060-4f98-895b-3897337f090c</guid><dc:creator>AndrewR</dc:creator><description>&lt;p&gt;Has there been any development on combining the HCI_UART and the UART / USB bridge on the 52840? Ive built an loaded the HCI UART files but have no idea if it is working as my serial debug no longer works with HCI loaded. This seems really critical for BLE development on the 9160. Any update would be appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 connections between 9160 and 52840</title><link>https://devzone.nordicsemi.com/thread/215691?ContentTypeID=1</link><pubDate>Fri, 18 Oct 2019 11:32:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:759dd789-f1bd-4566-8ad7-d681fcdbac7d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="dboling"]It&amp;#39;s sad that this very powerful bluetooth chip on the Thingy doesn&amp;#39;t have&amp;nbsp;any better example other than the usb bridge. I know it&amp;#39;s early days, but it&amp;#39;s a powerful chip and I&amp;#39;d like to take advantage of it.&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;The examples, as of now, is limited, but I will ofcourse give this feedback to the R&amp;amp;D team working on thingy:91.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;PS: RTS/CTS can be declared as &amp;quot;0xFFFFFFFF&amp;quot; so that the uart driver interprets them as unused. Flow control isn&amp;#39;t enabled between the two nRF&amp;#39;s, so they can safely be used.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 connections between 9160 and 52840</title><link>https://devzone.nordicsemi.com/thread/215620?ContentTypeID=1</link><pubDate>Fri, 18 Oct 2019 02:58:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7701885-8c0e-4cb9-8a24-28da0532e5a5</guid><dc:creator>dboling</dc:creator><description>&lt;p&gt;Thanks for the response. Spent the day&amp;nbsp;trying to combine the USB bridge with the HCI_UART code. I was able to rebuild the original usb-bridge code and make it work. I was even able to spin that code onto a separate thread so that the primary thread could run the HCI_UART code.&lt;/p&gt;
&lt;p&gt;First roadblock was finding a spare pin for the needed interrupt. I decided to&amp;nbsp;repurpose the UART0 CTS pin since there&amp;#39;s no need to receive any debug data into the 9160.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I attempted to port the .dts and kconfig files from the 52840_PCA10090 folder to the 52840_PCA20035 board folder. In the end, the reset doesn&amp;#39;t seem to be working correctly.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s sad that this very powerful bluetooth chip on the Thingy doesn&amp;#39;t have&amp;nbsp;any better example other than the usb bridge. I know it&amp;#39;s early days, but it&amp;#39;s a powerful chip and I&amp;#39;d like to take advantage of it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your help. I&amp;#39;ll continue to work with the Thingy codebase.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 connections between 9160 and 52840</title><link>https://devzone.nordicsemi.com/thread/215426?ContentTypeID=1</link><pubDate>Thu, 17 Oct 2019 08:12:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42d2294f-234b-4e20-83b3-d71272be648e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That is defined at the top of the common device tree:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/boards/arm/nrf9160_pca20035/nrf9160_pca20035_common.dts#L12"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/boards/arm/nrf9160_pca20035/nrf9160_pca20035_common.dts#L12&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/boards/arm/nrf52840_pca20035/nrf52840_pca20035.dts#L15"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/boards/arm/nrf52840_pca20035/nrf52840_pca20035.dts#L15&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can override device tree by creating an overlay file, like done here (this one sets the bt-uart interface, but the concept is equal for the console):&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/samples/nrf9160/lte_ble_gateway/nrf9160_pca10090ns.overlay#L3"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/samples/nrf9160/lte_ble_gateway/nrf9160_pca10090ns.overlay#L3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The device tree is touched on in this blog post, if you want to know more about it:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/nrf-connect-sdk-tutorial"&gt;https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/nrf-connect-sdk-tutorial&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;(here&amp;#39;s also part 2 of the ncs tutorial:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/nrf-connect-sdk-tutorial---part-2"&gt;https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/nrf-connect-sdk-tutorial---part-2&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 connections between 9160 and 52840</title><link>https://devzone.nordicsemi.com/thread/215350?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2019 14:22:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbe87843-c384-4d26-ba7b-cf4ac8bb6118</guid><dc:creator>dboling</dc:creator><description>&lt;p&gt;A question that would save me lots of digging through the code.&amp;nbsp; Where is the debug output UART&amp;nbsp;defined?&amp;nbsp; That is, where in the code is it set to UART0 vs UART1 or somewhere else?&amp;nbsp; Thanks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 connections between 9160 and 52840</title><link>https://devzone.nordicsemi.com/thread/215245?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2019 10:24:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b07f2470-524a-4065-b180-4af659ae2f5f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is the sample that does the usb-to-uart bridging on the nRF52840 located on the thingy:91:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/tree/master/samples/usb/usb_uart_bridge"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/tree/master/samples/usb/usb_uart_bridge&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This one is connected via the pins labeled &amp;quot;MCU_IF0&amp;quot; to &amp;quot;MCU_IF7&amp;quot;, and you can use the dts file to see how its mapped between nRF91 and nRF52840:&lt;/p&gt;
&lt;p&gt;nRF52840:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/boards/arm/nrf52840_pca20035/nrf52840_pca20035.dts#L39"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/boards/arm/nrf52840_pca20035/nrf52840_pca20035.dts#L39&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;nRF9160:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/boards/arm/nrf9160_pca20035/nrf9160_pca20035_common.dts#L164"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/boards/arm/nrf9160_pca20035/nrf9160_pca20035_common.dts#L164&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Both are physically connected, but usually only UART0 is active (debug out etc.)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Towards integrating the HCI_UART into the nrf9160 side, you have the ble_lte_gateway sample, but on the nRF52840 side, you need to manually combine the hci_uart and the usb_uart bridge (where you disable one of the UARTs, as its going to be used by HCI). Unfortunately, we do not have any example showing exactly this scenario.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>