<?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 implementation mesh light switch client nRF52 to nRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45620/uart-implementation-mesh-light-switch-client-nrf52-to-nrf9160</link><description>Hello, 
 I am trying to send data from my light switch mesh client (nRF52840) to my gateway, the nRF9160 using UART. I added the UART functionality to the light switch client. 
 I use the app_uart_put function in the app_generic_onoff_client_status_cb</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Apr 2019 13:26:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45620/uart-implementation-mesh-light-switch-client-nrf52-to-nrf9160" /><item><title>RE: UART implementation mesh light switch client nRF52 to nRF9160</title><link>https://devzone.nordicsemi.com/thread/179785?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2019 13:26:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6928a4d-088e-4008-9610-d7e62b519a6a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you tried to connect something else (than the nRF91) to the UART to see whether the UART message is actually sent from the nRF52? If you set it up to use&amp;nbsp; pin 6(TX) and 8(RX), you should be able to monitor the UART in an UART terminal on a computer, if you test with an nRF52840 DK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could it be that there is a trigger character that the nRF91 is looking for that is sent when you have p_in-&amp;gt;present_on_off = 0, but not when it is 1? I.e. &amp;quot;\r\n&amp;quot; ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>