<?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>Problem communicating via UART in non-blocking mode with higher baud rates</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35866/problem-communicating-via-uart-in-non-blocking-mode-with-higher-baud-rates</link><description>Hi, 
 I am trying to communicate with a Wi-Fi module external to nRF52840 via UART. I am using the nrf_serial_read() API. I have tried different values for UART baud rate from 115200 to 921600 but nothing works in the non-blocking mode(timeout_ms = 0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Aug 2018 11:39:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35866/problem-communicating-via-uart-in-non-blocking-mode-with-higher-baud-rates" /><item><title>RE: Problem communicating via UART in non-blocking mode with higher baud rates</title><link>https://devzone.nordicsemi.com/thread/144515?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 11:39:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29a10a64-0f00-41c7-9ac5-e5fd2489ceff</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;&lt;em&gt;&lt;strong&gt;Or will that still be affected by the +-6% error?&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;Yes. The UART baud rate is derived from the HF clock so&amp;nbsp;your baud rate will have the same inaccuracy that your clock source have&amp;nbsp;&lt;em&gt;plus&lt;/em&gt; the error shown in the table which is a result of how the UART scales down the clock signal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem communicating via UART in non-blocking mode with higher baud rates</title><link>https://devzone.nordicsemi.com/thread/143091?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 19:28:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8606c104-9b53-4988-8ff8-d6178bca7b79</guid><dc:creator>Cecylia</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/martinbl"&gt;MartinBL&lt;/a&gt;&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uart.html?cp=2_1_0_49_9_11#register.BAUDRATE"&gt;in the specification&lt;/a&gt;&amp;nbsp;that you gave, it shows that&amp;nbsp;1M Baud has 0 error. &amp;nbsp;But, if we&amp;nbsp;don&amp;#39;t use an external HF crystal, is it possible to achieve that? Or will that still be affected by the +-6% error?&lt;br /&gt;&lt;br /&gt;We tried with 1M and it seemed to be more reliable for a longer time, but eventually it breaks down and we seemed to have missed some bytes. &amp;nbsp;Is it very likely&amp;nbsp;that it&amp;#39;s caused by this error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem communicating via UART in non-blocking mode with higher baud rates</title><link>https://devzone.nordicsemi.com/thread/139177?ContentTypeID=1</link><pubDate>Fri, 06 Jul 2018 06:07:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c89275b-0139-4a5e-aff0-579af37ce891</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Happy to help.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Do you think there&amp;#39;s a way for me to calibrate the Internal RC of secondary chip with main nordic chip&amp;#39;s clock?&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Unfortunately this is not possible. And note that if you plan to use the radio on your Secondary nRF52840 it will need a HF crystal too. Radio protocols like BLE for example, needs very accurate clock sources (&amp;lt;40 ppm).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem communicating via UART in non-blocking mode with higher baud rates</title><link>https://devzone.nordicsemi.com/thread/139166?ContentTypeID=1</link><pubDate>Thu, 05 Jul 2018 23:01:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d56bcbc0-0a42-43e6-9793-cdf21e145804</guid><dc:creator>Akhil Bhargav Josyabhatla</dc:creator><description>&lt;p&gt;Martin,&lt;br /&gt;Thank you so much for the info, that was really helpful. I have a few more questions regarding calibrating the Internal RC.&lt;br /&gt;&lt;br /&gt;My hardware setup has 2 nRF52840s- 1 Main and 1 Secondary connected via SPI.&amp;nbsp;The&amp;nbsp;Main chip alone has the external crystals connected and Secondary Nordic (Without external crystal) connected to the Zentri module over UART. Here&amp;#39;s a block diagram:&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Untitled-Diagram.png" /&gt;&lt;br /&gt;&lt;br /&gt;Do you think there&amp;#39;s a way for me to calibrate the Internal RC of secondary chip with main nordic chip&amp;#39;s clock? Doing this, I believe will help me to make the communication much more reliable at a baud rate= 921600.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best,&lt;br /&gt;Akhil&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem communicating via UART in non-blocking mode with higher baud rates</title><link>https://devzone.nordicsemi.com/thread/139004?ContentTypeID=1</link><pubDate>Wed, 04 Jul 2018 14:49:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:695cb00f-f3f4-4bd9-87fc-4a805c592137</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;So the&amp;nbsp;Zentri eval board works with all baudrates, but if you connect a module directly to the nRF52 only a few baud rates work?&lt;/p&gt;
&lt;p&gt;It could be that the nRF52 isn&amp;#39;t able to provide an accurate enough baud rate for your module. As you can see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uart.html?cp=2_1_0_49_9_11#register.BAUDRATE"&gt;in the specification&lt;/a&gt;,&amp;nbsp;the baud rate you want isn&amp;#39;t always the baud rate you get.&amp;nbsp;&lt;/p&gt;
&lt;table width="250"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="103"&gt;Desired baud rate&lt;/td&gt;
&lt;td width="83"&gt;Actual baud rate&lt;/td&gt;
&lt;td width="64"&gt;Error&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9600&lt;/td&gt;
&lt;td&gt;9598&lt;/td&gt;
&lt;td&gt;-0.02 %&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;14400&lt;/td&gt;
&lt;td&gt;14414&lt;/td&gt;
&lt;td&gt;0.10 %&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;19200&lt;/td&gt;
&lt;td&gt;19208&lt;/td&gt;
&lt;td&gt;0.04 %&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;28800&lt;/td&gt;
&lt;td&gt;28829&lt;/td&gt;
&lt;td&gt;0.10 %&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;38400&lt;/td&gt;
&lt;td&gt;38462&lt;/td&gt;
&lt;td&gt;0.16 %&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;57600&lt;/td&gt;
&lt;td&gt;57762&lt;/td&gt;
&lt;td&gt;0.28 %&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;76800&lt;/td&gt;
&lt;td&gt;76923&lt;/td&gt;
&lt;td&gt;0.16 %&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;115200&lt;/td&gt;
&lt;td&gt;115942&lt;/td&gt;
&lt;td&gt;0.64 %&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;230400&lt;/td&gt;
&lt;td&gt;231884&lt;/td&gt;
&lt;td&gt;0.64 %&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;250000&lt;/td&gt;
&lt;td&gt;250000&lt;/td&gt;
&lt;td&gt;0.00 %&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;460800&lt;/td&gt;
&lt;td&gt;470588&lt;/td&gt;
&lt;td&gt;&lt;span style="color:#ff0000;"&gt;2.08 %&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;921600&lt;/td&gt;
&lt;td&gt;941176&lt;/td&gt;
&lt;td&gt;&lt;span style="color:#ff0000;"&gt;2.08 %&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;In addition to the errors here, you will have to factor in the accuracy of the HF clock in your nRF52. This is because the digital logic in the UART is driven by the HF clock&amp;nbsp;and the clock accuracy will hence directly affect the baud rate accuracy. Unless you tell it otherwise, the HF clock is generated by the internal RC oscillator (HFINT) with an accuracy that &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/clock.html?cp=2_1_0_18_3_1#unique_1749008215"&gt;could be as bad as +-6 %&lt;/a&gt;. You can try to force the HF clock to utilize the external crystal (HFXO) as a source instead to increase the accuracy (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/clock.html?cp=2_1_0_18_3_1#unique_1749008215"&gt;typ 40 ppm&lt;/a&gt;&amp;nbsp;or less). You can turn on the crystal like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;
while(NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0)
{
    ;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;or with the function&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s112.api.v6.0.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html#ga3e5afb495a1b0307c749cc268df94a74"&gt;sd_clock_hfclk_request()&lt;/a&gt;&amp;nbsp;if you are using a Softdevice and BLE.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I suspect that your Zentri Eval board has&amp;nbsp;an FTDI (UART-to-USB) chip on board with better baud rate accuracy, and maybe that is why they seem to work.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem communicating via UART in non-blocking mode with higher baud rates</title><link>https://devzone.nordicsemi.com/thread/138850?ContentTypeID=1</link><pubDate>Tue, 03 Jul 2018 19:49:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:666b6cc1-bae2-4703-b99e-190d3ad05a6a</guid><dc:creator>Akhil Bhargav Josyabhatla</dc:creator><description>&lt;p&gt;1. Yes, It is a 2 way communication. It&amp;#39;s called command mode on Zentri with an open com port, I send&amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; commands from nRF52840 and&amp;nbsp;receive response from the Zentri AMW007.&lt;br /&gt;2. There are a set of commands associated with Zentri OS that I can send to set the baud rate and also &lt;br /&gt;&amp;nbsp; &amp;nbsp; read it back. Here&amp;#39;s the link to the resource:&amp;nbsp;&lt;br /&gt;3.&amp;nbsp;&lt;a href="https://docs.zentri.com/zentrios/wl/latest/cmd/variables/uart"&gt;docs.zentri.com/.../uart&lt;/a&gt;&lt;br /&gt;4. I have an Zentri Eval board with AMW007. I have tested it by connecting it to a PC and sending the&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; same commands with all available baud rates. It works perfectly fine without any timeout.&lt;br /&gt;&amp;nbsp; &amp;nbsp; Also, The communication doesn&amp;#39;t work if the baud rate is not same. I receive no response at the &lt;br /&gt;&amp;nbsp; &amp;nbsp; Nordic&amp;nbsp;end and which is very much expected for UART communication.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; NOTE: For baud rate 921600, I do not receive complete data even if the timeout is anywhere &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; between 2000 ms and 5000 ms.&lt;br /&gt;&lt;br /&gt;5.&amp;nbsp; I have a diagnostics Shell running for user(CLI) and the code flow is like this:&amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I receive a command from the CLI and forward that command to Zentri module using&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;nrf_serial_write()&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;API and similarly read the data on the bus(response from Zentri) using &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;nrf_serial_read() API.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Here&amp;#39;re the code snippet for TX the command to Zentri and RX the response:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;ret_code_t wlan_serial_tx(void const * p_data, size_t size) &lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; ret_code_t ret;&lt;br /&gt; &lt;br /&gt;&amp;nbsp; &amp;nbsp; ret = nrf_serial_write(&amp;amp;wlan_serial_uart,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;p_data, size, NULL, 500);&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;return ret;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ret_code_t wlan_serial_read(void * p_data, size_t size, size_t* bytes_read, uint32_t ms_wait) &lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; ret_code_t ret;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; if (ms_wait) &lt;br /&gt;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ret = nrf_serial_read(&amp;amp;wlan_serial_uart, p_data, size, bytes_read, ms_wait); &lt;br /&gt;&amp;nbsp; &amp;nbsp;} else {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ret = nrf_serial_read(&amp;amp;wlan_serial_uart, p_data, size, bytes_read, 1000);&lt;br /&gt;&amp;nbsp; &amp;nbsp;}&lt;br /&gt; return ret;&lt;br /&gt;&amp;nbsp;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;void wlan_send_to_zentri(char* command) &lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; ret_code_t ret;&lt;br /&gt;&amp;nbsp; &amp;nbsp;char full_response[ZENTRI_UART_MAX_BYTES] = {0};&lt;br /&gt;&amp;nbsp; &amp;nbsp;size_t strsize, bytes_read;&lt;br /&gt;&amp;nbsp; &amp;nbsp;strsize = strlen(command);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;ret = wlan_serial_tx(command, strsize);&lt;br /&gt;&amp;nbsp; &amp;nbsp;APP_ERROR_CHECK(ret);&lt;br /&gt; &lt;br /&gt;&amp;nbsp; /* Try to read everything */&lt;br /&gt;&amp;nbsp; wlan_serial_read(full_response, ZENTRI_UART_MAX_BYTES, &amp;amp;bytes_read, uart_ms_timeout);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; printf(&amp;quot;\n%s&amp;quot;, full_response);&lt;br /&gt; &lt;br /&gt;&amp;nbsp; /* Flush out the UART */&lt;br /&gt;&amp;nbsp; while(bytes_read) &lt;br /&gt;&amp;nbsp; { &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;wlan_serial_read(full_response, ZENTRI_UART_MAX_BYTES, &amp;amp;bytes_read);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (bytes_read) &lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&amp;quot;%s&amp;quot;, full_response);&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Akhil&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem communicating via UART in non-blocking mode with higher baud rates</title><link>https://devzone.nordicsemi.com/thread/138774?ContentTypeID=1</link><pubDate>Tue, 03 Jul 2018 12:25:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a32c5a53-30bb-446b-93df-2026d280d6a8</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;It sounds strange.&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;This is a two way communication right?&lt;/li&gt;
&lt;li&gt;How do you set the baud rate used by the&amp;nbsp;AMW007? Are you sure that both devices use the same baud rate?&lt;/li&gt;
&lt;li&gt;Do you have a link to some datasheet detailing how you configure the baud rate on the&amp;nbsp;AMW007?&lt;/li&gt;
&lt;li&gt;Maybe the&amp;nbsp;AMW007 is slow to respond and that is why you need a timeout?&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Can&amp;nbsp; you show me more of the code you use to read and write data?&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem communicating via UART in non-blocking mode with higher baud rates</title><link>https://devzone.nordicsemi.com/thread/138622?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 21:37:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9304782c-8689-40ce-a702-ce5329478227</guid><dc:creator>Akhil Bhargav Josyabhatla</dc:creator><description>&lt;p&gt;Hi Martin,&amp;nbsp;&lt;br /&gt;We have scoped the TX and RX and are able to see good signal flow over the lines.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What do you think could be a possible reason causing this problem? Any thoughts?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem communicating via UART in non-blocking mode with higher baud rates</title><link>https://devzone.nordicsemi.com/thread/138597?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 17:39:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3db14a91-3e77-4462-9177-66472e57c206</guid><dc:creator>Akhil Bhargav Josyabhatla</dc:creator><description>&lt;p&gt;I am using Zentri AMW007, a stand-alone Wi-Fi networking module.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I do have an oscilloscope with me. Yes, I&amp;#39;ll try scoping the TX, RX.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem communicating via UART in non-blocking mode with higher baud rates</title><link>https://devzone.nordicsemi.com/thread/138294?ContentTypeID=1</link><pubDate>Fri, 29 Jun 2018 13:32:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d46cb899-d74a-4a3d-9968-5fbc7094e509</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What kind of WiFi module is this?&lt;/p&gt;
&lt;p&gt;Do you have a logic analyzer or an oscilloscope so we can see what goes on on the TX and RX lines?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem communicating via UART in non-blocking mode with higher baud rates</title><link>https://devzone.nordicsemi.com/thread/138156?ContentTypeID=1</link><pubDate>Thu, 28 Jun 2018 14:02:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8811e70a-364c-41b5-8fd5-43e0bd619c19</guid><dc:creator>Akhil Bhargav Josyabhatla</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/martinbl"&gt;MartinBL&lt;/a&gt;,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;got&amp;nbsp;the nrf_serial_read working. I see that the communication is successful but I get framing errors and cannot receive complete data even with 115200 baud rate at timeout = 0.&lt;br /&gt;Same is the case with all other baud rates till 921600.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;But, for baud rate 115200, I see reliable communication without any framing error for timeout = 125ms.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I guess you&amp;#39;re right, the timeout shouldn&amp;#39;t matter but the timeout is playing some role here and I am confused about that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem communicating via UART in non-blocking mode with higher baud rates</title><link>https://devzone.nordicsemi.com/thread/138085?ContentTypeID=1</link><pubDate>Thu, 28 Jun 2018 11:24:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22be9f3f-2070-47fd-b741-424ad6be5828</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;How does it not work?&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Do you check the return code of&amp;nbsp;nrf_serial_read()?&lt;/li&gt;
&lt;li&gt;Does it return an error?&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Do you have a logic analyzer?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I don&amp;#39;t think the timeout should matter. Note though, that you won&amp;#39;t achieve 921600 exactly, &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uarte.html?cp=2_1_0_34_9_10#register.BAUDRATE"&gt;but 941176&lt;/a&gt;,a&amp;nbsp;so you are likely to get framing errors which can be problematic.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>