<?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>Shell NUS issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74610/shell-nus-issue</link><description>Dear Nordic, 
 We&amp;#39;ve faced with the issue on Zephyr Shell NUS module. 
 
 
 
 
 
 The captured reaction is just on &amp;#39;Enter&amp;#39; press in terminal. It seems it has some kind of loopback inside, but why? The other side is ble_uart_c example at nRF52840DK. (edited</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Jun 2021 12:53:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74610/shell-nus-issue" /><item><title>RE: Shell NUS issue</title><link>https://devzone.nordicsemi.com/thread/316484?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 12:53:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d9a5452-8ae5-49dc-b0b8-f9f9b0bae058</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Dmitry Kr"]Finally we&amp;#39;ve made that, the shell works over BT NUS connection. [/quote]
&lt;p&gt;Great!&lt;/p&gt;
[quote user="Dmitry Kr"]1. Speed up NUS transport over BT connection.[/quote]
&lt;p&gt;&amp;nbsp;Lower the connection interval(latency). For higher throughput try&amp;nbsp;&lt;span&gt;CONFIG_BT_CTLR_DATA_LENGTH_MAX=251&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The&amp;nbsp;throughput sample show-cases the configuration for max&amp;nbsp;throughput:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/master/samples/bluetooth/throughput"&gt;https://github.com/nrfconnect/sdk-nrf/tree/master/samples/bluetooth/throughput&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="Dmitry Kr"]2. Make it possible to transfer special symbols (up-arrow, down-arrow, Tab and so on)[/quote]
&lt;p&gt;&lt;span&gt;&lt;/span&gt;Please create a new case for this:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/support/add"&gt;https://devzone.nordicsemi.com/support/add&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If the original issue in this case(case id 269127) is resolved, then I suggest closing this case(269127).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shell NUS issue</title><link>https://devzone.nordicsemi.com/thread/316113?ContentTypeID=1</link><pubDate>Fri, 18 Jun 2021 17:46:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50dd868a-9b5e-4461-adf0-07d990a0951f</guid><dc:creator>Dmitry Kr</dc:creator><description>&lt;p&gt;Dear Sigurd,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Finally we&amp;#39;ve made that, the shell works over BT NUS connection. We&amp;#39;ve checked it with nRF52840DK running BT UART CENTRAL example.&lt;/p&gt;
&lt;p&gt;Could you please advice if we have&amp;nbsp;ability to:&lt;/p&gt;
&lt;p&gt;1. Speed up NUS transport over BT connection.&lt;/p&gt;
&lt;p&gt;2. Make it possible to transfer special symbols (up-arrow, down-arrow, Tab and so on) - it works but after pressing &amp;#39;Enter&amp;#39; key. E.g. to get command list it should be pressed Tab then Enter. Is there any setting in Shell NUS or NUS layer to send the byte(s) not only after&amp;nbsp;receiving &amp;#39;Enter&amp;#39; chars, but after some timeout too?&lt;/p&gt;
&lt;p&gt;Do you have any suggestions on that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shell NUS issue</title><link>https://devzone.nordicsemi.com/thread/310250?ContentTypeID=1</link><pubDate>Tue, 18 May 2021 17:41:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffd4089a-4da8-4681-bca8-e1e6830a31bd</guid><dc:creator>Dmitry Kr</dc:creator><description>&lt;p&gt;Dear Sigurd,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve found it works with two devboards (52840 + 5340) one running central_uart and another running shell_bt_nus examples. This issue definately related to some middleware modules of Zephyr that we enable on our board (e.g. USB or others). We&amp;#39;ll check that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shell NUS issue</title><link>https://devzone.nordicsemi.com/thread/309298?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 15:04:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0650c493-6466-49b8-829f-c525fa6c859b</guid><dc:creator>Dmitry Kr</dc:creator><description>&lt;p&gt;Not yet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please don&amp;#39;t close the ticket until we report (hope this week).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shell NUS issue</title><link>https://devzone.nordicsemi.com/thread/308513?ContentTypeID=1</link><pubDate>Thu, 06 May 2021 10:55:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:309292bc-1e59-4113-ae37-b316d3bf6480</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Ok, so the issue you described initially in this case has&amp;nbsp;now been solved?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shell NUS issue</title><link>https://devzone.nordicsemi.com/thread/308406?ContentTypeID=1</link><pubDate>Wed, 05 May 2021 17:44:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:501b7d68-f1d2-4014-bff2-318eebd802fb</guid><dc:creator>Dmitry Kr</dc:creator><description>&lt;p&gt;I&amp;#39;ve added this check and shell enable function call to connection handler, as metioned in shell_bt_nus example, as it can be seen on the first screenshot. It works, bt_nus$ prompt appears.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shell NUS issue</title><link>https://devzone.nordicsemi.com/thread/308405?ContentTypeID=1</link><pubDate>Wed, 05 May 2021 16:57:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86ecd367-e82d-4829-b651-7b761f0722b0</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Dmitry Kr"]2) No, I can&amp;#39;t run&amp;nbsp;it with our board definition files, I&amp;#39;ll try this example.[/quote]
&lt;p&gt;&amp;nbsp;Ok. Note that we have this issue mentioned in the &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/known_issues.html#bluetooth-le"&gt;known-issues section&lt;/a&gt; that might be relevant as well:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NCSDK-8321: NUS shell transport sample does not display the initial shell prompt uart:~$ on the remote terminal.
Also few logs with sending errors are displayed on the terminal connected directly to the DK. This issue is caused by the shell being enabled before turning on the notifications for the NUS service by the remote peer.

Workaround: Enable the shell after turning on the NUS notifications or block it until turning on the notifications.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shell NUS issue</title><link>https://devzone.nordicsemi.com/thread/308330?ContentTypeID=1</link><pubDate>Wed, 05 May 2021 11:17:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74983026-43e4-47db-94ff-0258104e576b</guid><dc:creator>Dmitry Kr</dc:creator><description>&lt;p&gt;1) No. I&amp;#39;ve added that to our application.&lt;/p&gt;
&lt;p&gt;2) No, I can&amp;#39;t run&amp;nbsp;it with our board definition files, I&amp;#39;ll try this example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shell NUS issue</title><link>https://devzone.nordicsemi.com/thread/308183?ContentTypeID=1</link><pubDate>Tue, 04 May 2021 12:52:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:547e7887-9ed9-4c59-95e3-6ab9528a0149</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Dmitry Kr"]I&amp;#39;ve just added shell_bt_nus_init()&amp;nbsp; and shell_bt_nus_enable() [/quote]
&lt;p&gt;1) You added this to the peripheral_uart sample?&lt;/p&gt;
&lt;p&gt;2) does it work with the&amp;nbsp;shell_bt_nus sample?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shell NUS issue</title><link>https://devzone.nordicsemi.com/thread/307706?ContentTypeID=1</link><pubDate>Fri, 30 Apr 2021 15:10:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12f136fe-608b-44fb-a09f-bcc0299f2f46</guid><dc:creator>Dmitry Kr</dc:creator><description>&lt;p&gt;1) No. I&amp;#39;ve just added shell_bt_nus_init()&amp;nbsp; and shell_bt_nus_enable() calls as in the example. It&amp;#39;s hard to port the example to our board, and I have only one DK right now - and it&amp;#39;s running ble_uart_c. I have few dongles, but there is no examples how to run NUS client on dongle.&lt;/p&gt;
&lt;p&gt;2) NCS 1.5.1. When I tried 1.5.0 there was the same result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shell NUS issue</title><link>https://devzone.nordicsemi.com/thread/307703?ContentTypeID=1</link><pubDate>Fri, 30 Apr 2021 14:50:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:976af151-ac08-4d43-8463-4d5c70a304e9</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;1) What sample are you using ?&amp;nbsp;&lt;span&gt;Is it &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/master/samples/bluetooth/shell_bt_nus"&gt;shell_bt_nus &lt;/a&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2) What version of NCS are you using ? NCS v1.5.0?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shell NUS issue</title><link>https://devzone.nordicsemi.com/thread/307694?ContentTypeID=1</link><pubDate>Fri, 30 Apr 2021 14:13:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cb5fb0c-eb34-4b66-bcbf-486daa6b5f4c</guid><dc:creator>Dmitry Kr</dc:creator><description>&lt;p&gt;Dear Sigurd,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried:&lt;/p&gt;
&lt;p&gt;1. changing both RX and TX Shell NUS ring buffer sizes up to 4096 bytes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. turning off shell echo and disabling log output to shell.&lt;/p&gt;
&lt;p&gt;3. turning off colorization.&lt;/p&gt;
&lt;p&gt;No positive outcome on the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Shell NUS issue</title><link>https://devzone.nordicsemi.com/thread/307666?ContentTypeID=1</link><pubDate>Fri, 30 Apr 2021 12:30:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f3ae2d0-4e74-4120-89ba-ef4a0c8ca6c0</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Try setting&amp;nbsp;CONFIG_SHELL_BT_NUS_RX_RING_BUFFER_SIZE to 256&lt;/p&gt;
&lt;p&gt;I recommend using Putty terminal.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrf/gs_testing.html?highlight=putty#how-to-connect-with-putty"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrf/gs_testing.html?highlight=putty#how-to-connect-with-putty&lt;/a&gt;&lt;/p&gt;
[quote user=""]P.S. Do you have ready to use HEX with BLE_UART_C example compiled for nRF52840&lt;span style="text-decoration:underline;"&gt;Dongle&lt;/span&gt; with UART-over-USB emulation?[/quote]
&lt;p&gt;No, I don&amp;#39;t think so.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>