<?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>UART communication between nRF52 and nRF91 on nRF9160 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77102/uart-communication-between-nrf52-and-nrf91-on-nrf9160-dk</link><description>Good morning everyone, 
 I have questions regarding the initialization of UART communication between nRF52 and nRF91 on nRF91 DK. 
 Device HW/SW setup: 
 nRF52 DK: Bluetooth Peripheral UART example 
 nRF91 DK, nRF52840: Bluetooth Central UART example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Jul 2021 17:11:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77102/uart-communication-between-nrf52-and-nrf91-on-nrf9160-dk" /><item><title>RE: UART communication between nRF52 and nRF91 on nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/318853?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2021 17:11:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:945fa958-9c4e-4c2a-9af0-96bdd0e968d6</guid><dc:creator>dtquang89</dc:creator><description>&lt;p&gt;Dear Simon,&lt;/p&gt;
&lt;p&gt;Thank you for the suggestion. I have adjusted the UART configuration the same way in lte_ble_gateway sample and now it works for&amp;nbsp;my case.&lt;/p&gt;
&lt;p&gt;What I have changed:&lt;/p&gt;
&lt;p&gt;For nRF52840: hci_lpuart sample&lt;/p&gt;
&lt;p&gt;For nRF9160: ble + mqtt&lt;/p&gt;
&lt;p&gt;Thanks for your support.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Quang&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART communication between nRF52 and nRF91 on nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/318679?ContentTypeID=1</link><pubDate>Mon, 05 Jul 2021 15:28:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b52ae57f-ba2b-401d-b77d-29e20dbd7d67</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Please check out the sample &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v1.6.0/samples/nrf9160/lte_ble_gateway"&gt;lte_ble_gateway&lt;/a&gt; to see how to communicate between the nRF52840 and the nRF9160 on the nRF9160DK.&lt;/p&gt;
&lt;p&gt;After NCS v1.4.0, the sample was modified to use the low power UART driver, so the sample &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v1.6.0/samples/bluetooth/hci_lpuart"&gt;hci_puart&lt;/a&gt; has to get programmed onto the nRF52840. Follow the instructions in&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrf/samples/nrf9160/lte_ble_gateway/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrf/samples/nrf9160/lte_ble_gateway/README.html&lt;/a&gt;&amp;nbsp;to get it working.&amp;nbsp;&lt;/p&gt;
[quote user=""]And now the BLE central example got an error at uart_init(), with error code 134 . The error was at uart_callback_set() function.&amp;nbsp;I cannot interpret this error, if you have some idea about&amp;nbsp;this error, that could be great.[/quote]
&lt;p&gt;Try using uart2, like the&amp;nbsp;lte_ble_gateway sample:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.6.0/samples/nrf9160/lte_ble_gateway/boards/nrf9160dk_nrf9160ns.overlay#L13"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.6.0/samples/nrf9160/lte_ble_gateway/boards/nrf9160dk_nrf9160ns.overlay#L13&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>