at_cmd_mode AT+CFUN=4 problem on modem_shell firmware

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't respond back with any upcoming at command anymore. Only solution is resetting modem and entering at_cmd_mode again but it's not a proper solution. Why does it stuck on offline command?

By the way, without entering at_cmd_mode, just calling offline command on mosh directly (at AT+CFUN=4) doesn't cause any problem. The problem is only on at_cmd_mode.

  • If you search this forum, you will find some tickets, which discus what happens.

    The modem tries to "release the network registration", but in many cases, this ends up in a timeout, which is about 60s.

  •   It always stuck and doesn't come back even after 60s. Are there any solution or workaround etc?

  • Uups, sorry I missed to read your ticket precisely.

    I'm not common with that " at_cmd_mode", so I don't know what happens there.

  • Hi ,

    I am not able to reproduce this.

    Could you take a modem trace, so we can see if the problem is on the modem side?

    I've attached a version of the modem shell, built for the nRF9160 DK, with modem tracing enabled.

    Before you send the AT+CFUN=4 command, please send AT%XMODEMTRACE=1,2 to ensure that the modem has tracing enabled.

    mosh_mtrace.hex

    Best regards,

    Didrik

  • I executed AT%XMODEMTRACE=1,2 and it returned OK and then I executed AT+CFUN=4. It stucked again and didn't produce any extra output for tracing.

    I also tried your mosh_mtrace.hex but it didn't work on my dev board. Instead of proper mosh outputs it put non-human readable characters to the screen like that:

    �!�B�,X�,P(<B^/�������; ,A8$�����8B��"����(R��; ��,X�(�`��P/(R��BbB�(PA �"((�<(!�(�����N
    XA�R(�k����hB(̬k��jB��8�� �����
    N�(�A8�J(,�N�K
    XA8Bb
    ���
    ��,�3�
    HAx�
    -A!
    B�$-��H@Aj@9Ȓ
    B�
    .�X�R-� JA8B� #���!# P ���(P ah��P����h,�@�����N�,�����N�R
    �n
    �@�����n���A���{�����k�-(��
    �R̨BH�Ax��R(�HB�R-
    XKD���F�D�aHB�#B���;�
    Cc$�� ���X��C ����� �x+P��X�@N��ǀB5����H4PB ��H�����B X$�ȃ �����CBSȣ���
    �Jh@( �`8�
    `ddtdpX����@ !-0ZC
    A���I�Zc�R)� �BA��2�(�@A���c��A�bB�`(�B@XAh��@P�BP���B)�#��@A�
    �c)��sc(�AP�
    Q�
    ����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��@��((�`<<C����@� B�#�#Xx� ��؁� ��(P@ �B
    $��*
    �`� @`�db � �$ �a�`��'�����P�:N!N�N��
    ������ L��H���������@��L�����L�H�����H���B�RB��@�����B��(�������L�H��!������Hp@4�
    ����� H�H��H���$�
    N��
    ���偦��@�@���&����F����&��H�@��!����PT 1��������B��N������

    ��9���#���@�@��(���
    ��N������H�@�����
    �J��8����0 H�)��@���
    H��
    ���@��������L��1�������!���#"��J�N�����"�2D��4����L�H��Z�@��Q
    �8@��
    ���� J�N��R����#�A����r<@��
    ��$��@��
    �����8��(����� B�F��������$���H�����'�� �J��@��������dp������X����L��R������(a�0��������(�������B�������@!��Y���PA����)��������
    ���A��A��A�i"�@�����`��FP���P��a"����d���Ά ������@�N����H���%@�@������P�H��H��R������@�@�!��P��p/RA�ZA{�AA�A(�A
    ��a�����΀&Pa�P����� P��i"&'�� Za�F�΀�d��>c��a��a��`Xa�Ra�����V�D����V�������A��X�X���(�J�0�:X@*(��*(1� ��@f�!!�9��XB�ġ0�X�9! ��#


    B<88�H�� �>::P�:*ġ6�*��"P""�"` �d��

     

Related