<?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>promblem about GPS rx buffer libuartes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86568/promblem-about-gps-rx-buffer-libuartes</link><description>Hi, I&amp;#39;m developing an application using Libuartes to handle GPS data 1. According my knowledge about Libuartes, It will call the NRF_LIBUARTE_ASYNC_EVT_RX_DATA when the buffer is full (or the incoming data has &amp;quot;\r&amp;quot;,&amp;quot;\n&amp;quot; to indicate TX buffer was completed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Apr 2022 12:16:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86568/promblem-about-gps-rx-buffer-libuartes" /><item><title>RE: promblem about GPS rx buffer libuartes</title><link>https://devzone.nordicsemi.com/thread/364710?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2022 12:16:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d58e24d-36b7-4665-abc7-d4d7b83fd037</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the slow response, I just got back from 2 weeks of vacation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you still having the same issue?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If so I will set aside some time tomorrow to look into your code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: promblem about GPS rx buffer libuartes</title><link>https://devzone.nordicsemi.com/thread/362703?ContentTypeID=1</link><pubDate>Sat, 09 Apr 2022 09:58:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d70d78b1-5353-43ec-986f-e94e2327ad40</guid><dc:creator>Pham Tam</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/main-_2800_2_2900_.txt"&gt;devzone.nordicsemi.com/.../main-_2800_2_2900_.txt&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/015863.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../015863.sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hi, ovrebekk here is main.c (using 2 libuarte, ble, pwm)&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: promblem about GPS rx buffer libuartes</title><link>https://devzone.nordicsemi.com/thread/362290?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 10:25:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d435fd9-e57f-4a74-aeab-f8cdf5748679</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It&amp;#39;s important to be aware that when you are using the SoftDevice and app_timer modules only RTC2 is available for the application, or for the LIBUARTE module. The reason for this is that there are only three RTC modules in the nRF52 devices, and RTC0 is used by the SoftDevice while RTC1 is used by the app_timer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In terms of timers you have 5 in total, and only TIMER0 is used by the SoftDevice, so you should be able to use timers 1, 2, 3 and 4 for LIBUARTE.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Your configuration works because you only use RTC2, TIMER1 and TIMER2, which means there is no conflict between peripherals.&amp;nbsp;&lt;/p&gt;
[quote user="pham_tam"]1. I find that when I set (the 5th parameters) is &amp;quot;1&amp;quot; or &amp;quot;3&amp;quot; I will got this problem ? so Why ?[/quote]
&lt;p&gt;It is hard to say why this problem occurs. If you have set the timeout to 100us, then the libuarte driver should trigger the&amp;nbsp;&lt;span&gt;NRF_LIBUARTE_ASYNC_EVT_RX_DATA&amp;nbsp;event approximately 100us after the last byte was received from the GPS module, and you should not need to wait for the buffer to fill up.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Would you be able to share the source code for the code that configures and uses the libuarte driver when you get this issue so I can have a look at it?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you don&amp;#39;t want to share your code in a public case just let me know, and I can make the case private.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;br /&gt;Torbjørn&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: promblem about GPS rx buffer libuartes</title><link>https://devzone.nordicsemi.com/thread/361991?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 08:40:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b6740b6-8332-4372-90fe-e5fc0287f7b0</guid><dc:creator>Pham Tam</dc:creator><description>&lt;p&gt;During the time that I wait for response I set the&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 1, 2, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3);
NRF_LIBUARTE_ASYNC_DEFINE(libuarte2, 1, 2, NRF_LIBUARTE_PERIPHERAL_NOT_USED, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3); &lt;/pre&gt;&lt;br /&gt;And it work. But I dont understand clearly about that !&lt;br /&gt;&lt;br /&gt;1. I find that when I set (the 5th parameters) is &amp;quot;1&amp;quot; or &amp;quot;3&amp;quot; I will got this problem ? so Why ?&lt;br /&gt;&lt;br /&gt;2. And why I need to use&amp;nbsp;&lt;span&gt;NRF_LIBUARTE_PERIPHERAL_NOT_USED (app_timer) ? How it different from my mistake ?&lt;/span&gt;&lt;/p&gt;
[quote userid="2116" url="~/f/nordic-q-a/86568/promblem-about-gps-rx-buffer-libuartes/361984#361984"]If you set _timer1_idx to&amp;nbsp;NRF_LIBUARTE_PERIPHERAL_NOT_USED (the 5th parameter) then the timeout functionality will not be used, and the _rtc1_idx parameter will be ignored.&amp;nbsp;[/quote]
&lt;p&gt;Can you explain for me more clearly ?&lt;br /&gt;I&amp;#39;m have many confusion about rtc and timer and&amp;nbsp;&lt;span&gt;NRF_LIBUARTE_PERIPHERAL_NOT_USED in libuartes.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Please give me as much information as possible, because waiting for reply is very long.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Thank you very much !&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: promblem about GPS rx buffer libuartes</title><link>https://devzone.nordicsemi.com/thread/361984?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 08:22:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fa16513-0255-4f43-9228-443c5590b8c5</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you set _timer1_idx to&amp;nbsp;NRF_LIBUARTE_PERIPHERAL_NOT_USED (the 5th parameter) then the timeout functionality will not be used, and the _rtc1_idx parameter will be ignored.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In other words you need to provide a second timer to the interface in order to use timeout.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try this and see if it works better for the GPS sensor?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: promblem about GPS rx buffer libuartes</title><link>https://devzone.nordicsemi.com/thread/361635?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 03:02:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:699a3096-7e2f-4050-a64b-46a3a1a32e53</guid><dc:creator>Pham Tam</dc:creator><description>&lt;p&gt;Hi, any reply ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: promblem about GPS rx buffer libuartes</title><link>https://devzone.nordicsemi.com/thread/361455?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 09:58:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4bebd31-8038-4461-8f22-3dce590752a2</guid><dc:creator>Pham Tam</dc:creator><description>&lt;p&gt;Hi I think I found the reason&amp;nbsp;&lt;br /&gt;&lt;br /&gt;1. I use 2 libuarte with configurations&lt;br /&gt;NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 1, 2, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3);&lt;br /&gt;NRF_LIBUARTE_ASYNC_DEFINE(libuarte2, 1, 2, 3, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3);&lt;br /&gt;&lt;br /&gt;libuarte2 used to communicate with GPS and it get this problem&lt;br /&gt;&lt;br /&gt;but I convert the libuarte configuration into ibuarte2, libuarte2 can receive data realtime&lt;br /&gt;&lt;br /&gt;&lt;span&gt;NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 2, 3, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3);&lt;/span&gt;&lt;br /&gt;&lt;span&gt;NRF_LIBUARTE_ASYNC_DEFINE(libuarte2, 1, 1, 2, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;But I got the same&amp;nbsp; problem in libuarte. (It only call event&amp;nbsp;&lt;span&gt;NRF_LIBUARTE_ASYNC_EVT_RX_DATA when the buffer RX full). I apply these configuration for libuarte example and I got the same problem.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt; nrf_libuarte_async_config_t nrf_libuarte_async_config = {
            .tx_pin     = TX_PIN_NUMBER1,
            .rx_pin     = RX_PIN_NUMBER1,
            .baudrate   = NRF_UARTE_BAUDRATE_115200,
            .parity     = NRF_UARTE_PARITY_EXCLUDED,
            .hwfc       = NRF_UARTE_HWFC_DISABLED,
            .timeout_us = 100,
            .int_prio   = APP_IRQ_PRIORITY_LOW_MID &lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know why when I change RTC and Timer 1,2 into 2,3 =&amp;gt; I need to set&amp;nbsp; .int_prio = APP_IRQ_PRIORITY_LOW_MID.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>