<?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>Fast ble_app_uart_c using nRF52 DK.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60001/fast-ble_app_uart_c-using-nrf52-dk</link><description>Hi all, 
 I&amp;#39;m using nRF52 DK. 
 I&amp;#39;m developing a program based on &amp;#39;ble_app_uart_c&amp;#39; example with custom UUID. 
 When I type command using UART, central device send signal to peripheral. 
 Then, peripheral device starts to send data to central device continuously</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Apr 2020 14:36:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60001/fast-ble_app_uart_c-using-nrf52-dk" /><item><title>RE: Fast ble_app_uart_c using nRF52 DK.</title><link>https://devzone.nordicsemi.com/thread/244110?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2020 14:36:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77b20eb2-58e6-4f40-97be-49b8ae34ecb5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;the 1M doesn&amp;#39;t matter if you are using RTT. The baudrate is only for UART.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are printing too much, the logger will not be able to print everything either way. You can try to turn off deferred logging by setting&amp;nbsp;NRF_LOG_DEFERRED to 0.&lt;/p&gt;
&lt;p&gt;If that still doesn&amp;#39;t work, then you must look into using UART directly, or consider another transport, such as SPI/USB (the nRF52832 doesn&amp;#39;t have USB, and most computers don&amp;#39;t have SPI).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Deferred logging makes the logger print at the moment that you call NRF_LOG_... but if you are receiving data too fast, you will still not be able to log everything. It all comes down to how fast you can transfer each byte.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fast ble_app_uart_c using nRF52 DK.</title><link>https://devzone.nordicsemi.com/thread/244093?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2020 13:35:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7855e04f-b603-4291-9983-d5c0a832b940</guid><dc:creator>juulee</dc:creator><description>&lt;p&gt;thanks for reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Actually, I&amp;#39;m struggling with that problem.&lt;/p&gt;
&lt;p&gt;I set baudrate 1M, but RTT_ENABLED is set as 1.&lt;/p&gt;
&lt;p&gt;I add UART_ENABLED as 1 and erased RTT_ENABLED, but it made an error.&amp;nbsp;I remember that it has&amp;nbsp;occured in app_uart_fifo.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So to see my log, I used this 2 ways:&lt;/p&gt;
&lt;p&gt;1. use nrf_log_info and use debugger in segger_embedded_studio.&lt;/p&gt;
&lt;p&gt;2. use printf and use putty (in this case, I set baudrate 1M and could see data, but they were not enough.)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can I ask how to do the last solution?: skip the logger module and use UART directly.&lt;/p&gt;
&lt;p&gt;Any method is OK if it can send data through serial with enough speed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fast ble_app_uart_c using nRF52 DK.</title><link>https://devzone.nordicsemi.com/thread/244080?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2020 12:44:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:027d6e26-509d-4338-ae53-92e1347f0b66</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I assume you have managed to get a decent throughput since the bottlenect is the UART. UART isn&amp;#39;t particularly known for being a high speed protocol, but you can of course try to increase the baudrate.&amp;nbsp;By the way, do you use the UART backend or the RTT backend for your NRF_LOG? I guess the question is, how do you see the log data? Do you use Segger RTT Viewer, Segger Embedded Studio debug session or a UART terminal? The reason I ask is that you are using the ble_app_uart_c, and this doesn&amp;#39;t have the UART backend for NRF_LOG by default. Did you add it?&lt;/p&gt;
&lt;p&gt;Which of these are defined as 1 in your sdk_config.h:&lt;/p&gt;
&lt;p&gt;NRF_LOG_BACKEND_UART_ENABLED&lt;br /&gt;NRF_LOG_BACKEND_RTT_ENABLED&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you use RTT, then there is no way to speed it up. If you are using UART you can try to increase the baudrate by setting&amp;nbsp;NRF_LOG_BACKEND_UART_BAUDRATE to&amp;nbsp;268435456 (corresponding to&amp;nbsp;1000000 baud).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If that is still too slow, I guess I wold try to skip the logger module, and use the UART directly to skip the overhead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>