<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Libuarte</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/87825/libuarte</link><description>Hi I want to set up a simple uarte communication between a NRF52832 and a faulhaber mcdc 3002s motion controller using the libuarte. I have max3232 logic converter in between their respective Tx and rx because mcdc 3002s is an RS232 device. 
 I want to</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Thu, 12 May 2022 13:01:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/87825/libuarte" /><item><title>RE: Libuarte</title><link>https://test-devzone.nordicsemi.com/thread/367630?ContentTypeID=1</link><pubDate>Thu, 12 May 2022 13:01:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41cfd02a-9aad-4293-ac6c-34caaac3c3a9</guid><dc:creator>user26071</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What you probably want to do is to trigger the sending using nrf_libuarte_async_tx() like it is used in this example. I don&amp;#39;t know when you want to trigger it. Perhaps you want to start an app_timer and trigger the sending from the timeout handler, or set up a button handler and trigger it from there.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t need to use the queue library at all.&lt;/p&gt;
&lt;p&gt;Then, whenever the other device replies, it will trigger the NRF_LIBUARTE_ASyNC_EVT_RX_DATA event, containing the p_evt-&amp;gt;data.rxtx.p_data, and p_evt-&amp;gt;data.rxtx.length with the reply starting on the ...rxtx.p_data pointer, with the length = ...rxtx.length.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you want an example on how to set up and use the app_timer, I suggest you check out the ble_app_hrs example from SDK\examples\ble_peripheral\ble_app_hrs.&lt;/p&gt;
&lt;p&gt;Note: If you intend to use the libuarte library in an example that uses the softdevice (bluetooth stack), then please be aware that TIMER0 and RTC0 is used by the softdevice, so you need to adjust your NRF_LIBUARTE_ASYNC_DEFINE() in that case.&amp;nbsp; The macro expands to:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define NRF_LIBUARTE_ASYNC_DEFINE(_name, _uarte_idx, _timer0_idx,\
                                  _rtc1_idx, _timer1_idx,\
                                  _rx_buf_size, _rx_buf_cnt) \&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So parameter nr 3 is the timer instance, parameter 4 is the RTC instance and parameter 5 is the other timer instance. Note that the libuarte library is quite resource heavy. Unless you really need it, I would suggest you check out the ble_app_uart example from sdk\examples\ble_peripheral\ble_app_uart. It uses a UART library that is a bit more simple. If you have a reason to use the libuarte library, that is fine, but in case it was the first thing you stumbled upon, I suggest you check it out.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>