<?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>Establish communication between nrf52840 and nrf9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89105/establish-communication-between-nrf52840-and-nrf9160</link><description>Hello, 
 
 we are currently developing an MQTT Bridge Application. We plan to use a nrf52840 in combination with the nrf9160 as our Bridge which is going to send its data it received via MQTT to another nrf5280 via secure BLE. So far we figured out how</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Jun 2022 12:05:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89105/establish-communication-between-nrf52840-and-nrf9160" /><item><title>RE: Establish communication between nrf52840 and nrf9160</title><link>https://devzone.nordicsemi.com/thread/373219?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 12:05:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b69f6e3-a97a-4c2a-98c2-947aee12654d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I guess you have stumbled upon a lot of cases where we refer to the peripheral_uart and the central_uart samples, and you want to do this without the need to use UART? Really, you should only need to comment out the uart_init functions (and callback), and you can use the&amp;nbsp;&lt;span&gt;bt_nus_send() function without relying on the UART.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You don&amp;#39;t need to use the peripheral/central uart samples either. I guess you just want something that you can send data between the peripheral and the central. To see how to do that, you can have a look at &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/ncs-ble-tutorial-part-1-custom-service-in-peripheral-role"&gt;this blog post&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now, as for the nRF52840 that you have connected to your nRF9160, the nRF52840 needs to be programmed with the HCI controller, and the application needs to be running on the nRF91. This way, all the times where the nRF91 needs to do something bluetooth-related, it will just send the messages over HCI to the nRF52, acting as the Host Controller.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>