<?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>at_cmd_mode AT+CFUN=4 problem on modem_shell firmware</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101846/at_cmd_mode-at-cfun-4-problem-on-modem_shell-firmware</link><description>On modem_shell firmware, after entering into at_cmd_mode (at at_cmd_mode start), any AT command works fine but AT+CFUN=4 (offline) command blocks the terminal and doesn&amp;#39;t respond back with any upcoming at command anymore. Only solution is resetting modem</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Jul 2023 08:07:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101846/at_cmd_mode-at-cfun-4-problem-on-modem_shell-firmware" /><item><title>RE: at_cmd_mode AT+CFUN=4 problem on modem_shell firmware</title><link>https://devzone.nordicsemi.com/thread/438438?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 08:07:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30830403-8114-4e33-9df8-4977865a3112</guid><dc:creator>Oguzhan Turk</dc:creator><description>&lt;p&gt;I found the problem. The problem was using SDK as 2.1.3 but modem firmware as 2023-03-02_8f26142b which has changelog &amp;quot;Updated to nRF Connect SDK 2.3.0&amp;quot;. On Nordic firmware, there is some kind of backward compatibility issue. I downgraded firmware to&amp;nbsp;2022-09-15_7a358cb7 which has changelog &amp;quot;Updated to nRF Connect SDK 2.1.0&amp;quot; and problem solved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: at_cmd_mode AT+CFUN=4 problem on modem_shell firmware</title><link>https://devzone.nordicsemi.com/thread/436944?ContentTypeID=1</link><pubDate>Tue, 18 Jul 2023 09:12:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fff87e2-e887-4595-894b-8a007e7c406d</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="Oguzhan Turk"]I executed&amp;nbsp;&lt;span&gt;AT%XMODEMTRACE=1,2 and it returned OK and then I executed AT+CFUN=4. It stucked again and didn&amp;#39;t produce any extra output for tracing.&lt;/span&gt;[/quote]
&lt;p&gt;Was CONFIG_NRF_MODEM_LIB_TRACE enabled?&lt;/p&gt;
&lt;p&gt;Also, the modem trace is outputted on a separate COM port, it will not add more output from the application itself.&lt;/p&gt;
[quote user="Oguzhan Turk"]I also tried your mosh_mtrace.hex but it didn&amp;#39;t work on my dev board. Instead of proper mosh outputs it put non-human readable characters to the screen like that:[/quote]
&lt;p&gt;What baudrate did you use?&lt;/p&gt;
&lt;p&gt;The .hex file works as expected on my DK.&lt;/p&gt;
&lt;p&gt;The shell interface is sent on one COM port, with a baudrate of 115200. The modem trace is sent on a different COM port, with baudrate 1000000, but it is not human readable anyway. Instead, you should use the Cellular Monitor in nRF Connect for Desktop to receive the trace and save it to disk. Then you can send me the .mtrace file.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1689671489688v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;(note that the COM port will probably be different in your case. The Cellular Monitor should be able to select the correct one automatically)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: at_cmd_mode AT+CFUN=4 problem on modem_shell firmware</title><link>https://devzone.nordicsemi.com/thread/436515?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 13:44:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fe030d2-3c20-4497-b783-6d6abb0c7e3b</guid><dc:creator>Oguzhan Turk</dc:creator><description>&lt;p&gt;By the way, I&amp;#39;m using development kit&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF9160-DK"&gt;www.nordicsemi.com/.../nRF9160-DK&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: at_cmd_mode AT+CFUN=4 problem on modem_shell firmware</title><link>https://devzone.nordicsemi.com/thread/436496?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 13:09:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07fd71a5-2809-477f-b1f8-2eb18ca981a4</guid><dc:creator>Oguzhan Turk</dc:creator><description>&lt;p&gt;I executed&amp;nbsp;&lt;span&gt;AT%XMODEMTRACE=1,2 and it returned OK and then I executed AT+CFUN=4. It stucked again and didn&amp;#39;t produce any extra output for tracing.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I also tried your mosh_mtrace.hex but it didn&amp;#39;t work on my dev board. Instead of proper mosh outputs it put non-human readable characters to the screen like that:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;�!�B�,X�,P(&amp;lt;B^/�������; ,A8$�����8B��&amp;quot;����(R��; ��,X�(�`��P/(R��BbB�(PA �&amp;quot;((�&amp;lt;(!�(�����N&lt;br /&gt; XA�R(�k����hB(̬k��jB��8�� �����&lt;br /&gt; N�(�A8�J(,�N�K&lt;br /&gt; XA8Bb&lt;br /&gt; ���&lt;br /&gt; ��,�3�&lt;br /&gt; HAx� &lt;br /&gt; -A!&lt;br /&gt; B�$-��H@Aj@9Ȓ &lt;br /&gt; B�&lt;br /&gt; .�X�R-� JA8B� #���!# P ���(P ah��P����h,�@�����N�,�����N�R&lt;br /&gt; �n&lt;br /&gt;�@�����n���A���{�����k�-(��&lt;br /&gt; �R̨BH�Ax��R(�HB�R-&lt;br /&gt; XKD���F�D�aHB�#B���;�&lt;br /&gt; Cc$�� ���X��C ����� �x+P��X�@N��ǀB5����H4PB ��H�����B X$�ȃ �����CBSȣ���&lt;br /&gt; �Jh@( �`8�&lt;br /&gt; `ddtdpX����@ !-0ZC&lt;br /&gt; A���I�Zc�R)� �BA��2�(�@A���c��A�bB�`(�B@XAh��@P�BP���B)�#��@A�&lt;br /&gt; �c)��sc(�AP�&lt;br /&gt; Q�&lt;br /&gt;����J�B�(��X�� b�c��(���tlr�� �P��Q�P(��P(�BA�c�2�sc(3��$�!��X�0�0D��E \�D�B`A0�A��T����8��(��������(HB��@��((�`&amp;lt;&amp;lt;C����@� B�#�#Xx� ��؁� ��(P@ �B&lt;br /&gt; $��*&lt;br /&gt; �`� @`�db � �$ �a�`��&amp;#39;�����P�:N!N�N��&lt;br /&gt; ������ L��H���������@��L�����L�H�����H���B�RB��@�����B��(�������L�H��!������Hp@4�&lt;br /&gt; ����� H�H��H���$�&lt;br /&gt; N��&lt;br /&gt; ���偦��@�@���&amp;amp;����F����&amp;amp;��H�@��!����PT 1��������B��N������&lt;/p&gt;
&lt;p&gt;��9���#���@�@��(���&lt;br /&gt; ��N������H�@�����&lt;br /&gt; �J��8����0 H�)��@���&lt;br /&gt; H��&lt;br /&gt; ���@��������L��1�������!���#&amp;quot;��J�N�����&amp;quot;�2D��4����L�H��Z�@��Q&lt;br /&gt; �8@��&lt;br /&gt; ���� J�N��R����#�A����r&amp;lt;@��&lt;br /&gt; ��$��@��&lt;br /&gt; �����8��(����� B�F��������$���H�����&amp;#39;�� �J��@��������dp������X����L��R������(a�0��������(�������B�������@!��Y���PA����)��������&lt;br /&gt;���A��A��A�i&amp;quot;�@�����`��FP���P��a&amp;quot;����d���Ά ������@�N����H���%@�@������P�H��H��R������@�@�!��P��p/RA�ZA{�AA�A(�A&lt;br /&gt; ��a�����΀&amp;amp;Pa�P����� P��i&amp;quot;&amp;amp;&amp;#39;�� Za�F�΀�d��&amp;gt;c��a��a��`Xa�Ra�����V�D����V�������A��X�X���(�J�0�:X@*(��*(1� ��@f�!!�9��XB�ġ0�X�9! ��#&lt;/p&gt;
&lt;p&gt;�&lt;br /&gt; B&amp;lt;88�H�� �&amp;gt;::P�:*ġ6�*��&amp;quot;P&amp;quot;&amp;quot;�&amp;quot;` �d��&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: at_cmd_mode AT+CFUN=4 problem on modem_shell firmware</title><link>https://devzone.nordicsemi.com/thread/436459?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 11:32:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d083d072-d771-4c12-aa37-ef32366242b3</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/oguzhan-turk"&gt;Oguzhan Turk&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;I am not able to reproduce this.&lt;/p&gt;
&lt;p&gt;Could you take a &lt;a href="https://infocenter.nordicsemi.com/topic/ug_trace_collector/UG/trace_collector/intro.html"&gt;modem trace&lt;/a&gt;, so we can see if the problem is on the modem side?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attached a version of the modem shell, built for the nRF9160 DK, with modem tracing enabled.&lt;/p&gt;
&lt;p&gt;Before you send the AT+CFUN=4 command, please send AT%XMODEMTRACE=1,2 to ensure that the modem has tracing enabled.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/mosh_5F00_mtrace.hex"&gt;devzone.nordicsemi.com/.../mosh_5F00_mtrace.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: at_cmd_mode AT+CFUN=4 problem on modem_shell firmware</title><link>https://devzone.nordicsemi.com/thread/436436?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 10:14:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41e3387a-7b6b-4ae4-89a1-04c66b55440e</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Uups, sorry I missed to read your ticket precisely.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not common with that &amp;quot; at_cmd_mode&amp;quot;, so I don&amp;#39;t know what happens there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: at_cmd_mode AT+CFUN=4 problem on modem_shell firmware</title><link>https://devzone.nordicsemi.com/thread/436431?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 09:50:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43e29c98-426b-481c-bcb3-ece289f80240</guid><dc:creator>Oguzhan Turk</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/achimkraus"&gt;Achim Kraus&lt;/a&gt;&amp;nbsp;It always stuck&amp;nbsp;and doesn&amp;#39;t come back even after 60s. Are there any solution or workaround etc?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: at_cmd_mode AT+CFUN=4 problem on modem_shell firmware</title><link>https://devzone.nordicsemi.com/thread/436234?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 11:43:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78e42f58-3d66-422c-a197-14326d6ad2ec</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;If you search this forum, you will find some tickets, which discus what happens.&lt;/p&gt;
&lt;p&gt;The modem tries to &amp;quot;release the network registration&amp;quot;, but in many cases, this ends up in a timeout, which is about 60s.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>