<?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>High rate serial logging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37425/high-rate-serial-logging</link><description>Hi, 
 I&amp;#39;m trying to log data over a serial connection using the DK52. 
 The data is coming from a sensor at about 2KHz at a size of 30 bytes per sample, so 60KBps. 
 I&amp;#39;ve set the Baudrate to 912600 and enabled HWFC. Using NRF_LOG_RAW_INFO to print the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Aug 2018 08:51:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37425/high-rate-serial-logging" /><item><title>RE: High rate serial logging</title><link>https://devzone.nordicsemi.com/thread/144458?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 08:51:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f37f3d0b-f243-4177-985d-124cc0c66747</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I assume that a problem may be that it is difficult in hardware to generate an accurate 912600baud from the internal clock (not easily to divide), likely the baud rate will be off (with a few %), though this should potentially corrupt bytes, not skip bytes. In any case it would be better if you could use 10000000baud, this should be accurate.&lt;/p&gt;
&lt;p&gt;I tried the \examples\temperature from SDKv15 by setting it to to max baudrate (1M) in sdk_config.h, and removed the&amp;nbsp;nrf_delay_ms(500) in the while loop. I also manually started the HFCLK to have an accurate clock by:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED = 0;
    NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;
    while(NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0);
    NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED = 0;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This seems to print at least the following in a loop without any issue:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-487019faae7142b8ae74f67c984cbece/pastedimage1534409401649v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Maybe you can test it for comparison?&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><item><title>RE: High rate serial logging</title><link>https://devzone.nordicsemi.com/thread/144439?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 08:11:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54f17a4a-d3e8-4326-9c29-66d9b95b9f29</guid><dc:creator>ohtap</dc:creator><description>&lt;p&gt;The same behavior appears when HWFC is disabled.&lt;/p&gt;
&lt;p&gt;Channel 1 for CTS, channel 2 for TX, 3 for RTS.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Serial_5F00_channel_5F00_capture_5F00_TX_5F00_RTS_5F00_CTS.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High rate serial logging</title><link>https://devzone.nordicsemi.com/thread/144418?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 07:17:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6edf2603-21bd-4009-b9be-167437c21cb2</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Can you try to disable&amp;nbsp;HWFC and/or also record the RTC/CTS lines?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High rate serial logging</title><link>https://devzone.nordicsemi.com/thread/144364?ContentTypeID=1</link><pubDate>Wed, 15 Aug 2018 15:11:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf21c489-be3f-46ed-bfd0-d29526e909e8</guid><dc:creator>ohtap</dc:creator><description>&lt;p&gt;I&amp;#39;m attaching screenshots in various zoom levels.&amp;nbsp;There are periods with gaps where the channel is &amp;quot;static&amp;quot; but should contain data transmissions.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/serial_5F00_channel_5F00_capture_5F00_100x_5F00_240_5F00_bytes_5F00_zoom1.PNG" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/serial_5F00_channel_5F00_capture_5F00_100x_5F00_240_5F00_bytes.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/serial_5F00_channel_5F00_capture_5F00_100x_5F00_240_5F00_bytes_5F00_zoom2.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High rate serial logging</title><link>https://devzone.nordicsemi.com/thread/144324?ContentTypeID=1</link><pubDate>Wed, 15 Aug 2018 12:24:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3e4dcd8-cde5-4a37-bd07-d3819937fcbc</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Is there any way you can share with me a screenshot of what it looks like when it fails on the logic analyzer? I want to see if bytes are skipped, corrupted etc.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High rate serial logging</title><link>https://devzone.nordicsemi.com/thread/144297?ContentTypeID=1</link><pubDate>Wed, 15 Aug 2018 11:04:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab5dd03b-1706-46e8-8728-f5f47f5777fd</guid><dc:creator>ohtap</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve connected Pin 6 (TX) to a logic analyzer.&lt;/p&gt;
&lt;p&gt;When not transmitting the channel is clean without any noticeable noise.&lt;/p&gt;
&lt;p&gt;The first 240 characters are always printed correctly on the terminal.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I suspect this has something to do with bad configuration on my part...&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve integrated this as part&amp;nbsp;of the &lt;span&gt;ATT_MTU Throughput &lt;/span&gt;example , so I&amp;#39;m relying mostly on the configuration used in the example, with the Baudrate set now at 1M on both the sdk_config.h and on the terminal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High rate serial logging</title><link>https://devzone.nordicsemi.com/thread/144209?ContentTypeID=1</link><pubDate>Tue, 14 Aug 2018 14:15:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1665ce56-6f38-4703-bf02-0e57b7bb8d4e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you looked at a logic analyzer trace when transmitting 240bytes only?&lt;/p&gt;
&lt;p&gt;This can identify if the problem is the USB to UART bridge (you may try a FTDI chip if possible) or if the problem is the UART driver on the nRF52.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>