<?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>nRF9160 receives garbage data on UART sometimes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80249/nrf9160-receives-garbage-data-on-uart-sometimes</link><description>Hello, 
 I closed below case by mistake. 
 nRF9160 receives garbage data on UART sometimes - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com) 
 
 As per your query I am using nRF9160 DK for testing. 
 I have modified &amp;quot;http_application_uodate</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Oct 2021 10:25:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80249/nrf9160-receives-garbage-data-on-uart-sometimes" /><item><title>RE: nRF9160 receives garbage data on UART sometimes</title><link>https://devzone.nordicsemi.com/thread/332977?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 10:25:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22473282-8cc1-48ec-9339-4d67d3bd6cf2</guid><dc:creator>Smitesh Mali</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Issue is resolved.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Pin 0.28 and 0.29 were defined in overlay file for SPI.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It was creating issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;UART works properly after removing it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Smitesh Mali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 receives garbage data on UART sometimes</title><link>https://devzone.nordicsemi.com/thread/332887?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 16:02:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b83b911-6666-440d-9f2e-57edd7d41c46</guid><dc:creator>Smitesh Mali</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I debugged the issue further by enabling error interrupt for UART&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uart_irq_err_enable(_uartPc);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I received &amp;quot;UART_BREAK&amp;quot; (0x08) error when I get&amp;nbsp;&lt;span&gt;&amp;quot;&amp;ordf;*SIM=?\n&amp;quot; (wrong data).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Interestingly, I am getting error when I receive expected data too which is&amp;nbsp;&lt;span&gt;&amp;quot;UUT*SIM=?\n&amp;quot;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But at that time error is different. It is &amp;quot;UART_ERROR_FRAMING&amp;quot; (0x04) error.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I get this error after complete data from PC is received.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you tell me in what case &amp;quot;UART_BREAK&amp;quot; error can come ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As per the comment in &amp;quot;uart.h&amp;quot; it comes in below case.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;/**&lt;br /&gt; * @brief Break interrupt&lt;br /&gt; *&lt;br /&gt; * A break interrupt was received. This happens when the serial input&lt;br /&gt; * is held at a logic &amp;#39;0&amp;#39; state for longer than the sum of&lt;br /&gt; * start time + data bits + parity + stop bits.&lt;br /&gt; */&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Smitesh Mali&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 receives garbage data on UART sometimes</title><link>https://devzone.nordicsemi.com/thread/332720?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 05:21:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:961cd861-f940-486f-a792-db704daafaa5</guid><dc:creator>Smitesh Mali</dc:creator><description>&lt;p&gt;I am using UART 0 to receive data from PC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 receives garbage data on UART sometimes</title><link>https://devzone.nordicsemi.com/thread/332715?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 04:22:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dcada83-62cd-4e25-aedd-e4b3da779b1c</guid><dc:creator>Smitesh Mali</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Below is the interrupt routine which waits for &amp;quot;UUT*SIM=?\n&amp;quot; command from terminal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void UHi_PcUartCb(const struct device *x, void* data)
{
    uart_irq_update(x);
    int data_length = 0;

    if (uart_irq_rx_ready(x)) {
            data_length = uart_fifo_read(x, &amp;amp;_uartPcRxChar, 1);

    }

    if (_pcCmdRxFlg)
    {
        return;
    }

    _uartPcBuf[_pcRxCntr] = _uartPcRxChar;

    if (_uartPcBuf[_pcRxCntr] == &amp;#39;\n&amp;#39;)
    {
        _pcCmdRxFlg = true;
        return;
    }

    _pcRxCntr++;

}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When &amp;quot;\n&amp;quot; is receive data will be processed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But sometimes data received is &amp;quot;&amp;ordf;*SIM=?\n&amp;quot; instead of&amp;nbsp;&lt;span&gt;&amp;quot;UUT*SIM=?\n&amp;quot;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/80249/nrf9160-receives-garbage-data-on-uart-sometimes/332267#332267"]What terminal are you using to connect to the COM port?[/quote]
&lt;p&gt;I am using &amp;quot;Docklight&amp;quot; utility in PC to communicate with com port.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/80249/nrf9160-receives-garbage-data-on-uart-sometimes/332267#332267"]Have you tried with the nRF Connect for Desktop - LTE Link Monitor?[/quote]
&lt;p&gt;No, I haven&amp;#39;t tried it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Smitesh Mali&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 receives garbage data on UART sometimes</title><link>https://devzone.nordicsemi.com/thread/332267?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 09:05:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99dfe781-fd64-4ac3-bcaa-97887134c211</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you please elaborate on what you have modified on the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.0/nrf/samples/nrf9160/http_update/application_update/README.html"&gt;nRF9160: HTTP application update&lt;/a&gt;&amp;nbsp;sample? What terminal are you using to connect to the COM port? Have you tried with the nRF Connect for Desktop - LTE Link Monitor?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>