<?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 UART: UART_ASYNC_API Rx block while reading large data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117544/nrf9160-uart-uart_async_api-rx-block-while-reading-large-data</link><description>Hi, everyone. 
 I am testing reading/writing data between n52840 and n9160 through UART with buf_len=1(byte by byte) based on Zephyr&amp;#39;s UART_ASYNC_API provided in ncs v2.6.1. 
 When the data length is small, everything works as expected, which is great</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Dec 2024 23:51:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117544/nrf9160-uart-uart_async_api-rx-block-while-reading-large-data" /><item><title>RE: nRF9160 UART: UART_ASYNC_API Rx block while reading large data</title><link>https://devzone.nordicsemi.com/thread/516398?ContentTypeID=1</link><pubDate>Fri, 27 Dec 2024 23:51:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:754b6269-d031-4984-b233-016e9832239f</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It looks like some implementation issue in your project.&lt;/p&gt;
&lt;p&gt;Those 512 bytes contain end of line characters or not?&lt;/p&gt;
&lt;p&gt;Can you test first with receiving 2 bytes rather than 512 bytes.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]However, when I&amp;#39;m trying to read a large amount of data from the n9160, such as 512 bytes (ends with &amp;quot;\r\n&amp;quot;) * 100,[/quote]
&lt;p&gt;What buffer size did you use in this case.&lt;/p&gt;
&lt;p&gt;As you have said that you can read first 512 and also 2048 bytes of data, looks like some issue with you end of line. Maybe you can share more details (code and testing snippets for both cases when len=1 and len=some other number, preferably 2)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>