<?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 reads one byte at a time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47684/nrf9160-uart-reads-one-byte-at-a-time</link><description>Hi, 
 I&amp;#39;m trying to receive large packets on uart, but is seems to read one byte at a time . 
 uart_fifo_read() always returns 1 
 why is that? 
 can it be changed ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 May 2019 08:54:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47684/nrf9160-uart-reads-one-byte-at-a-time" /><item><title>RE: nrf9160 uart reads one byte at a time</title><link>https://devzone.nordicsemi.com/thread/189239?ContentTypeID=1</link><pubDate>Mon, 27 May 2019 08:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ccb603a-df22-4ac3-8fa2-003a1425bbb2</guid><dc:creator>Hakon</dc:creator><description>[quote user=""]why is that?[/quote]
&lt;p&gt;&amp;nbsp;Because that&amp;#39;s the way it is coded. It indeed always returns one because it always reads one byte at a time.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]can it be changed ?&amp;nbsp;[/quote]
&lt;p&gt;There is an api you can use, found &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/tree/master/tests/drivers/uart/uart_async_api"&gt;here&lt;/a&gt;. There is an example that can read more than one byte at a time, by using DMA.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>