<?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>Uart based user interface: Shell?, McuMgr?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104027/uart-based-user-interface-shell-mcumgr</link><description>I have a device that needs to do the following: 
 
 Communicate with a program running on a computer. 
 Send sensor data over UART when polled by the host computer. 
 Accept commands from a host computer (update setting, turn on led ...etc.) 
 Perform</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Oct 2023 03:48:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104027/uart-based-user-interface-shell-mcumgr" /><item><title>RE: Uart based user interface: Shell?, McuMgr?</title><link>https://devzone.nordicsemi.com/thread/450719?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2023 03:48:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9ae3ff0-9054-4083-9ca9-52fef4a8a87a</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thanks for sharing the details of your new approach here. I hope now you can successfully support firmware updates and exchange sensor data.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uart based user interface: Shell?, McuMgr?</title><link>https://devzone.nordicsemi.com/thread/450080?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2023 13:41:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c98eccff-89c9-42f9-83f9-4824c7fcd57e</guid><dc:creator>sheldon_b</dc:creator><description>&lt;p&gt;I ultimately decided the overhead and complexity of running MCUMGR wasn&amp;#39;t worth the trouble. I used the following approach:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Using the app event manager, I created an event and module for a console. This console uses a UART (but could very easily be USB or BLE) to communicate with a HOST using a message-response exchange protocol. I could have gone a few different directions with the transport, but ultimately decided to use line delimited JSON strings (This part is less important because the transport was abstracted away from the console and can be changed to anything).&lt;/li&gt;
&lt;li&gt;For firmware updates, the host sends a series of JSON strings that are ack&amp;#39;d by the console module.
&lt;ul&gt;
&lt;li&gt;A DFU start message&lt;/li&gt;
&lt;li&gt;A sequence of DFU file fragments&lt;/li&gt;
&lt;li&gt;A DFU end message.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;The console used the dfu_target api from &amp;lt;dfu/dfu_target.h&amp;gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I then wrote a host side library that allowed me to communicate with the client. While it was a little more work upfront (honestly not too bad), I have a good understanding of how the protocol works and I don&amp;#39;t have manage another dependency.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uart based user interface: Shell?, McuMgr?</title><link>https://devzone.nordicsemi.com/thread/447941?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 12:22:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c23d99b-014a-48be-9032-feca61352539</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I think with the overlay configuration I pointed out, the MCUGR will not take full control of the interface. But I haven&amp;#39;t tested this here; for that, I need some more time. But I recommend you give it a try, like what is mentioned &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu#:~:text=Another%20option%20is%20to%20use%20the%20configs%20from%20smp_svr/overlay%2Dserial%2Dconsole.config%20to%C2%A0enable%20the%20UART%20console%20with%20mcumgr%20pass%20through.%C2%A0"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uart based user interface: Shell?, McuMgr?</title><link>https://devzone.nordicsemi.com/thread/447521?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 13:42:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdce2a34-8595-4371-b0c7-2948ce444f61</guid><dc:creator>sheldon_b</dc:creator><description>&lt;p&gt;There is a lot of content out there for accomplishing DFU over serial. The problem is that MCUMGR takes full control of the physical interface (UART) which inhibits your ability to use the interface for other things (Like exchanging sensor data). I&amp;#39;m trying to figure out how to support firmware updates AND exchanging sensor information/sending commands back and forth.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Uart based user interface: Shell?, McuMgr?</title><link>https://devzone.nordicsemi.com/thread/447514?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 13:33:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1d9fac8-31d2-4d27-9dd4-44cfbe9f2843</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Take a look at&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu#mcetoc_1h90kbduu3"&gt;this blog&amp;nbsp;&lt;/a&gt;from my colleague, where he is implementing &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu#mcetoc_1h90kbduu3:~:text=the%20next%20reset.-,Serial%20DFU,Modify%20the%20Hello%20World%20sample,-1.%C2%A0In"&gt;serial MCUGR SMP transport&lt;/a&gt;. In this sample, he has implemented an &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.6.99-ncs1-1/samples/subsys/mgmt/mcumgr/smp_svr/overlay-serial-console.conf"&gt;overlay file configuration&lt;/a&gt; for enabling UART consoles with mcumgr passthrough.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>