<?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 example acting weird</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60432/uart-example-acting-weird</link><description>Hi! 
 I&amp;#39;ve been playing around with the SDK and nrf9160 dk for a week now, and it&amp;#39;s a lot of fun. 
 In the beginning the UART example worked perfectly, and I managed to add a second UART which also worked. Now, after playing around with mqtt, trying to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Apr 2020 16:32:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60432/uart-example-acting-weird" /><item><title>RE: UART example acting weird</title><link>https://devzone.nordicsemi.com/thread/245899?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 16:32:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f615767-4096-4dfa-b8f9-1b8af4984a9b</guid><dc:creator>molviken</dc:creator><description>&lt;p&gt;Okay, good to know! Thank you very much for the help! Now remains to merge with mqtt, wish me luck.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART example acting weird</title><link>https://devzone.nordicsemi.com/thread/245845?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 13:12:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fbf8f91-e697-4f45-8a17-511a958a8c03</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;A quick chat with one of our developers revealed the issue.&lt;/p&gt;
&lt;p&gt;The Link Monitor was made to communicate with the modem, so it expects the communication to follow a certain protocol. I.e. it expects any input to be answered with a properly formatted &amp;quot;OK&amp;quot; or &amp;quot;ERROR&amp;quot; line.&lt;/p&gt;
&lt;p&gt;The application can output whatever it wants, and that output will appear as blue text in the Link Monitor.&lt;/p&gt;
&lt;p&gt;However, it can only send &amp;quot;AT commands&amp;quot;*, which will appear as yellow text.&lt;/p&gt;
&lt;p&gt;The properly formatted responses will be colored white.&lt;/p&gt;
&lt;p&gt;As a quick test, I changed the output in the callback to &amp;quot;OK\r\n&amp;quot;, at which point the Link Monitor worked as expected**.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;* Technically, you can send whatever you want, as long as you get a response similar to what an AT command would get.&lt;/p&gt;
&lt;p&gt;** The application will print one &amp;quot;OK\r\n&amp;quot; per character. The first one will be taken as the response (white), while the rest will be takes as generic output from the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART example acting weird</title><link>https://devzone.nordicsemi.com/thread/245836?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 12:40:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccbc907d-fc2d-4faf-9804-cd908f9ce1f2</guid><dc:creator>molviken</dc:creator><description>&lt;p&gt;That worked like a charm. Guess ill continue to use RealTerm/Termite instead of link monitor from now on.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART example acting weird</title><link>https://devzone.nordicsemi.com/thread/245832?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 12:07:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe5ac233-b8d1-4d78-a646-50682aaf72ef</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Could you try to use a different serial terminal than the Link Monitor?&lt;/p&gt;
&lt;p&gt;When I use &lt;a href="https://www.compuphase.com/software_termite.htm"&gt;Termite&lt;/a&gt;, everything works as expected, but when I use the Link Monitor, it varies how much is printed out. Sometimes, I only get &amp;quot;UART loopback star1&amp;quot;, other times I get all expected output, though I am not able to send any input.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll look into why the Link Monitor is not working as expected.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>