<?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>Zephyr Shell and Host Library AT  library</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89132/zephyr-shell-and-host-library-at-library</link><description>Hi, I want to add CLI in our current firmware. i found a way to do is Zephyr shell. our firmware is based on aws iot sample and nrfconnet sdk1.9.0 after integrating zephyr shell in our firmware. I am unable to send/write any command from shell/serial</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Jun 2022 08:12:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89132/zephyr-shell-and-host-library-at-library" /><item><title>RE: Zephyr Shell and Host Library AT  library</title><link>https://devzone.nordicsemi.com/thread/373596?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2022 08:12:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bea1e6f-d596-4401-bf52-3ebb1f862727</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, the shell has an uninit function:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.0.99-ncs1/include/zephyr/shell/shell.h#L849"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v3.0.99-ncs1/include/zephyr/shell/shell.h#L849&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please note that you&amp;nbsp;possibly want to place the transport (UART in this case) into a powered off state afterwards as well.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s an example on how to place the uart in&amp;nbsp;a suspended state:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.0.0/applications/serial_lte_modem/src/slm_at_host.c#L232"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.0.0/applications/serial_lte_modem/src/slm_at_host.c#L232&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Shell and Host Library AT  library</title><link>https://devzone.nordicsemi.com/thread/373581?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2022 07:03:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ff812af-38fa-442a-b502-7ba59d6ab0ea</guid><dc:creator>Waqar Ahmed</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;Thanks for your response.&lt;/p&gt;
&lt;p&gt;Things are working for me now.&lt;/p&gt;
&lt;p&gt;AT commands are now working.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;is it possible to turn off shell during runtime?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Shell and Host Library AT  library</title><link>https://devzone.nordicsemi.com/thread/373217?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 12:02:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52b42527-e653-4c3f-b0a9-4d1ccd08ee50</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the at host library does not have a init/uninit routine, so you cannot disable and enable this module at runtime.&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll need to integrate a similar &amp;quot;at&amp;quot; command as done in the modem_shell sample, by adding similar logic as in at_shell.c/.h and registering this as a shell command:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.9-branch/samples/nrf9160/modem_shell/src/shell.c#L184"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.9-branch/samples/nrf9160/modem_shell/src/shell.c#L184&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Shell and Host Library AT  library</title><link>https://devzone.nordicsemi.com/thread/373194?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 10:44:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ebb2f8e-17ba-4684-b309-0c38d7c0d7ca</guid><dc:creator>Waqar Ahmed</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;br /&gt;I am using nrfConnect SDK 1.9.0 this complete example is not available in this sdk&amp;nbsp;&lt;a id="" href="https://github.com/nrfconnect/sdk-nrf/tree/v1.9-branch/samples/nrf9160/modem_shell/src/at"&gt;https://github.com/nrfconnect/sdk-nrf/tree/v1.9-branch/samples/nrf9160/modem_shell/src/at&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;is it possible that I can enable or disable library during runtime i.e AT Host library.&lt;br /&gt;because I want to use the CLI for changing&amp;nbsp; different variable values or calling function or looking for current status.&lt;br /&gt;right now i am not using CLI for communication with modem.&lt;br /&gt;what I want to do is I will set different variables at time of production, after that I will enable the AT HOST LIbrary.&lt;br /&gt;&lt;br /&gt;Regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Shell and Host Library AT  library</title><link>https://devzone.nordicsemi.com/thread/373189?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 10:17:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6868de7e-03d5-46ea-a803-85aded46577a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m afraid AT host library has a dependency on a dedicated uart to work.&lt;/p&gt;
&lt;p&gt;In order to &amp;quot;integrate&amp;quot; at_host inside zephyr shell, you need to wrap around the AT cmd handling, ie. add code in your project to do so.&lt;/p&gt;
&lt;p&gt;modem shell has dedicated code integrated for this purpose:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v2.0.0/samples/nrf9160/modem_shell/src/at"&gt;https://github.com/nrfconnect/sdk-nrf/tree/v2.0.0/samples/nrf9160/modem_shell/src/at&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>