<?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 reception end</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7648/uart-reception-end</link><description>Is there a way to know that there is no more data being received via UART? 
 One solution is, of course, to start a timer every time a byte is received via uart_evt_handler-&amp;gt;APP_UART_DATA so if it expires we know that nothing was received during the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jun 2015 06:27:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7648/uart-reception-end" /><item><title>RE: UART reception end</title><link>https://devzone.nordicsemi.com/thread/27260?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2015 06:27:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26765173-96b4-4e04-a6c6-1c703b6d617e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;what do you mean by that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART reception end</title><link>https://devzone.nordicsemi.com/thread/27259?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2015 09:24:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:441f5d16-7968-4254-810c-a1cedf58ff1d</guid><dc:creator>andrey</dc:creator><description>&lt;p&gt;But that API wouldn&amp;#39;t allow for full-duplex UART, would it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART reception end</title><link>https://devzone.nordicsemi.com/thread/27258?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2015 19:58:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93605e0c-e9d8-47d4-92d3-11438de324f3</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It will be blocking while there is data in RX buffers, if that blocking nature does not complicate your design, it is actually good for receive thoughput.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART reception end</title><link>https://devzone.nordicsemi.com/thread/27257?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2015 16:22:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfd77da8-4849-407f-b98f-e9b327388856</guid><dc:creator>andrey</dc:creator><description>&lt;p&gt;You understood the question correctly and the answer is valid. It&amp;#39;s just that I haven&amp;#39;t considered using the API for receiving data because of it&amp;#39;s blocking nature.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART reception end</title><link>https://devzone.nordicsemi.com/thread/27256?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2015 16:14:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:292f4cf4-c557-44f5-9121-1c5f33fbe478</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Why not just use app_uart_get API? if there is nothing in RX buffer then NRF_ERROR_NOT_FOUND will be returned and the driver will be configured to generate an event on data reception.
This seems to be fairly enough functionality needed. We will anyhow wont be able to tell when the other side will send more data or if it is finished. So maybe use timers to timeout if you do not get the receive event within the configured time.
Did I miss something in your question?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>