<?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>Continuously package send on UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47218/continuously-package-send-on-uart</link><description>Dear , 
 
 I am using nrf 9160 DK, 
 and trying to send a package of data to UART. 
 For example my package is: &amp;quot;LONGITUDEx:10.123456,LATITUDE:59.012324,UTC:20190513095612&amp;quot; 
 I tried to use: uart_fifo_fill(struct device *dev, const u8_t *tx_data, int</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 May 2019 22:32:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47218/continuously-package-send-on-uart" /><item><title>RE: Continuously package send on UART</title><link>https://devzone.nordicsemi.com/thread/187373?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 22:32:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36366a22-90c4-4f73-88ba-2724777a0607</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="77638" url="~/f/nordic-q-a/47218/continuously-package-send-on-uart"]But I got the problem, the package is too long ( longer than u8_t ?!), so i just send 32bytes [/quote]
&lt;p&gt;32 bytes is the default configured value of the UART RAM buffer. You can increase it by setting&amp;nbsp;&lt;span&gt;CONFIG_UART_2_NRF_TX_BUFFER_SIZE to a higher value in your prj.conf file. E.g.:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_UART_2_NRF_TX_BUFFER_SIZE=100&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; See &lt;a href="https://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_UART_2_NRF_TX_BUFFER_SIZE.html"&gt;this page&lt;/a&gt;. (TXD.MAXCNT on nRF9160 is&amp;nbsp;0x1FFF, see &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/uarte.html?cp=2_0_0_5_18_8_47#register.TXD.MAXCNT"&gt;this page&lt;/a&gt;)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>