<?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 rx idle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57962/uart-rx-idle</link><description>Is exist any way to detect IDLE RX line on UART? 
 I try to use RXTO but this is seted each time when 1 byte comes. 
 everytime, it changed size of data which will be readed.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Apr 2020 07:04:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57962/uart-rx-idle" /><item><title>RE: uart rx idle</title><link>https://devzone.nordicsemi.com/thread/246680?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 07:04:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91101393-da6d-4ba6-80bd-77791feb3967</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;You welcome &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart rx idle</title><link>https://devzone.nordicsemi.com/thread/246341?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 17:35:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9caa9a1c-7955-470f-a935-105c2c43aeaa</guid><dc:creator>František</dc:creator><description>&lt;p&gt;Thank you for information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart rx idle</title><link>https://devzone.nordicsemi.com/thread/246300?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 14:25:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95846433-78d9-461d-935b-e10f985943b8</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am a bit unsure I understand the question correctly. In general you should expect to get a timeout after the last bytes of the transaction has been received, as there will be no more data coming over the UART.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to ensure that you receive the entire message in one callback you should make sure the RX buffer is larger than the maximum packet size you expect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Otherwise you simply have to buffer the data in the application, and wait until all the bytes are received before processing the data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart rx idle</title><link>https://devzone.nordicsemi.com/thread/245431?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 07:22:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c10f2315-e104-4aad-8d96-6e62cd9a7847</guid><dc:creator>František</dc:creator><description>&lt;p&gt;I am using library serial and there is too timeout. Which is&amp;nbsp;good practice to use uart when I will read more then one byte?&lt;/p&gt;
&lt;p&gt;I used serial uarte, I used DMA, I try used timer. When data start comes timer started and in response handler reed out data. but in this case I often&amp;nbsp;reed out timeout.&lt;/p&gt;
&lt;p&gt;It is better read every byte in one period of cycle and add it to buffer and wait for timeout?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart rx idle</title><link>https://devzone.nordicsemi.com/thread/239143?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 13:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e709818-39f2-4869-83a8-3a49bca3386a</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Good luck &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart rx idle</title><link>https://devzone.nordicsemi.com/thread/238863?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 14:15:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cb7f22b-dedf-47db-b2df-599e6d704e7e</guid><dc:creator>František</dc:creator><description>&lt;p&gt;Thank you &lt;span&gt;Torbj&amp;oslash;rn&lt;/span&gt;,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will try it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart rx idle</title><link>https://devzone.nordicsemi.com/thread/238772?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 10:35:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87e2bb42-6946-4e14-942b-b86be5bdb666</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Which UART library are you using?&lt;/p&gt;
&lt;p&gt;If you use the nrf_libuarte_async.c library then you can define a timeout period in microseconds,&amp;nbsp;and once there is no UART activity for this period you will get an interrupt.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Still, keep in mind that UART is asynchronous, so depending on the UART device you are communicating with there might still be some more data coming.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart rx idle</title><link>https://devzone.nordicsemi.com/thread/238636?ContentTypeID=1</link><pubDate>Sat, 07 Mar 2020 12:09:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d4b6404-1210-471f-a360-455b49803595</guid><dc:creator>František</dc:creator><description>&lt;p&gt;No, I want to know that all receiving data already comed.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uart rx idle</title><link>https://devzone.nordicsemi.com/thread/235223?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 14:13:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6d979e8-1f8e-4987-bf47-9a5039143ce3</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You mean you just want to check if the RX line is high or not?&lt;/p&gt;
&lt;p&gt;You should be able to read the input state of the pin even when it is used by the UART interface, for instance by calling nrf_gpio_pin_read(n).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>