<?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>Using CLI in a non-blocking configuration?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45389/using-cli-in-a-non-blocking-configuration</link><description>I&amp;#39;ve been using the CLI and also piping NRF_Log thru the same backend. In my application there are alot of time critical operations. I&amp;#39;ve noticed with some GPIO toggling for timing debugging that the CLI module is blocking the CPU for long segments of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 May 2019 08:37:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45389/using-cli-in-a-non-blocking-configuration" /><item><title>RE: Using CLI in a non-blocking configuration?</title><link>https://devzone.nordicsemi.com/thread/184792?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 08:37:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abdb964a-2f2c-48c2-8bbc-01f5409c7175</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Could you check how much time you are spending in&amp;nbsp;&lt;span&gt;nrf_cli_process() function?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are you printing logs with CLI when this happens?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What priority settings are you using?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using CLI in a non-blocking configuration?</title><link>https://devzone.nordicsemi.com/thread/183591?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2019 17:28:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d32fe92-2062-4c7f-b2a9-c282b606706c</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;In parallel to the CLI I have a thread which is sampling the ADC.&amp;nbsp; I&amp;#39;m noticing the ADC thread is blocked by the CLI (despite proper priority settings).&amp;nbsp; I toggle the GPIO every 100 samples of ADC arriving.&amp;nbsp; This timing is based on a TIMER and PPI.&amp;nbsp; The timing is perfect when only using NRF_LOG.&amp;nbsp; But when I was NRF_CLI the ADC timing is blocked and jittering&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using CLI in a non-blocking configuration?</title><link>https://devzone.nordicsemi.com/thread/183546?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2019 14:41:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59fe6bad-7bc5-4d1c-83e3-c2c40ef4f13b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not seeing this kind of long block times, when I toggle on entering/exiting&amp;nbsp;&lt;span&gt;nrf_cli_process(). Where have you added the GPIO toggling? Maybe you can add an example that shows the issue ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using CLI in a non-blocking configuration?</title><link>https://devzone.nordicsemi.com/thread/182782?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2019 22:34:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b692be5-2b7c-41f2-ba64-0c3b390da8dc</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;Any update on what could be causing these long block times in the CLI module?&amp;nbsp; For now I&amp;#39;ve had to completely disable CLI as a feature in our feature.&amp;nbsp; We still use NRF_LOG for device status over UART&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using CLI in a non-blocking configuration?</title><link>https://devzone.nordicsemi.com/thread/179604?ContentTypeID=1</link><pubDate>Mon, 01 Apr 2019 19:15:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b96b91cb-75e7-4996-908f-3a19f5f639a5</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;I observe about 20-80msec block times while the CLI is enabled.&amp;nbsp; This goes away when the CLI is disabled and I&amp;#39;m only using NRF_Log.&amp;nbsp; This indicates to me that the issue lies somewhere in the Rx side of the CLI&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using CLI in a non-blocking configuration?</title><link>https://devzone.nordicsemi.com/thread/179447?ContentTypeID=1</link><pubDate>Mon, 01 Apr 2019 10:35:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46cb17ae-9634-4ec4-ade5-ee616ab1c029</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please specify exactly what you think lasts a long time. We will then be able to offer more solutions.&lt;/p&gt;
&lt;p&gt;I guess that the matter concerns the function: nrf_cli_process ?&lt;br /&gt;The most time is spent on this function when CLI has to print out logs at the same time and receives and sends data related to command handling.&lt;br /&gt;Printing logs requires deleting and reprinting messages on the screen.&lt;br /&gt;Please write what time of service you are observing and what would be satisfactory for you?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using CLI in a non-blocking configuration?</title><link>https://devzone.nordicsemi.com/thread/179423?ContentTypeID=1</link><pubDate>Mon, 01 Apr 2019 09:08:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:093d430b-8e46-403e-8ed5-ebf896e5094a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;There are a few ways to decrease time needed for processing CLI, but CLI&amp;nbsp;needs a lot of time for processing, so don&amp;#39;t expect major&amp;nbsp;improvement.&amp;nbsp;The less features that are enabled, the faster the&amp;nbsp;&lt;span&gt;processing&amp;nbsp;will be.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Things that could decrease the&amp;nbsp;processing&amp;nbsp;time:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1)&amp;nbsp;&amp;nbsp;Disable colors - it will decrease number of transferred bytes&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2)&amp;nbsp;Increase NRF_CLI_PRINTF_BUFF_SIZE -&amp;gt; Higher value will decrease number of uart peripheral accesses&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using CLI in a non-blocking configuration?</title><link>https://devzone.nordicsemi.com/thread/179300?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 16:49:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:998fffb3-6f39-42cb-b0d9-8f1fa5fe4461</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;SDK 15.2,&amp;nbsp; and yes Logging is deferred.&amp;nbsp; Logging has no issues, its the CLI that is cause huge blocking times&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using CLI in a non-blocking configuration?</title><link>https://devzone.nordicsemi.com/thread/179289?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 15:36:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c229f266-dca3-4e4a-8b81-be8d3f61ade1</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What SDK version is this ?&lt;/p&gt;
&lt;p&gt;Is&amp;nbsp;NRF_LOG_DEFERRED in sdk_config.h set to 1 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>