Thingy:91 stopped showing NAS debug trace

We have a Thingy:91 (nRF9160) that we use for various LTE-M / NB-IoT network debugging. 

Until recently I was able to see both RRC and NAS messages in both "Cellular Monitor" app and when set to pipe directly to Wireshark. However, since rencently I can no longer see any NAS messages.





Reading various docs (AT command reference and searching Nordics online) on using AT%XMODEMTRACE, I tried several of the documented trace settings. For example, in the manual you say to use: 

AT%XMODEMTRACE=<oper>[,<set_id>

So I tried: 

AT%XMODEMTRACE=1,2

That didn't change anything. 

The manual:

# %XMODEMTRACE=<oper>[,<set_id>[,<bitmap_id>,<bitmap>]]
# <oper>
#    0 – Deactivate traces.
#    1 – Activate predefined trace set.
#    2 – Activate trace bitmap. To be used only on request by Nordic customer support.
#    3 – Read trace bitmap. To be used only on request by Nordic customer support.
# <set_id>
#    1 – Coredump only.
#    2 – Long-Term Evolution (LTE), Internet Protocol (IP), GNSS, and coredump.
#    3 – Reserved for future use.
#    4 – IP only.
#    5 – LTE and IP.

So I tried several others, thinking the bit-map was messed up.
Googling for exotic and novel <operations>, and <bitmaps>, I also tried: 

AT%XMODEMTRACE=1,20
AT%XMODEMTRACE=1,21

They also didn't enable NAS. (I.e. They did seemingly nothing.)

So then I also checked the yet undocumented <bitmaps>:


AT%XMODEMTRACE=3,2,0    # %XMODEMTRACE: "00000000000000000000F0403F0004"
AT%XMODEMTRACE=3,2,1    # %XMODEMTRACE:  "00"
AT%XMODEMTRACE=3,2,2    # %XMODEMTRACE: "9DFFFF00"
AT%XMODEMTRACE=3,2,3    # %XMODEMTRACE: "FDB7F4967E9177B7CFFD4947E77BFEC930BB09DCABD1777F77EFDE75F7DF5BF7BBB71B"
AT%XMODEMTRACE=3,2,4    # %XMODEMTRACE: "0F"



What all those <sets> are representing?

What part is enabling more trace detail for the LTE/NAS/RRC/L1 ?

PS. I was also checking your DevAcademy, and nothing there is mentioning this.

  • Hello,

    can you provide some information about what version of Cellular Monitor and SDK version?

  • Hi Hakan!

    It's kind of weird that my questions are met with a counter question... 

    I'm using the latest tools provided!
    - "Cellular Monitor" v.2.6.0
    - IDK, where to find the SDK version?

    However, the FW that's on the device was compiled and loaded 2+ years ago, on a different machine, so I don't recall what was the SDK then. But, as I said, it was working fine just like before until ~3 weeks ago until I updated all tools. I didn't realize immediately that it might have to do with the updated tool. I suppose maybe they are sending some different initialization commands or strings to the modem?

    It would be more helpful if you could explain how the bitmap works and why the NAS is not mentioned and part of the LTE tarce?

    I have 50k sized binary traces, but when looking at the supposed pcapng equivalent with wireshark there are only 2 lines from AT and RRC commands! 

  • EAB said:

    It's kind of weird that my questions are met with a counter question... 

    I'm using the latest tools provided!
    - "Cellular Monitor" v.2.6.0
    - IDK, where to find the SDK version?

    Whether you find this "weird" is not really my problem :). I need to know what versions are failing so I can reproduce. I will try to reproduce this with Cellular Monitor v2.6.0 and see if I get the same result.



  • I had this at the time.
    I tried to upgrade, but got another error...

    # nrfutil sdk-manager install v3.2.1
    
    Using the global server for downloads. Use '--region cn' for the server in Mainland China.
    [00:05:55] ###### 100% [Download toolchain v3.2.1] Toolchain downloaded
    [00:00:46] ###### 100% [Unpack toolchain v3.2.1] Toolchain unpacked to C:\ncs\tmp\.tmpvJXibY
    [00:00:00] ###### 100% [Install toolchain v3.2.1] Toolchain installed at C:\ncs\toolchains\66cdf9b75e
    [00:16:22] ###### 100% [Download SDK v3.2.1] Download SDK v3.2.1
    [00:00:03] ###### 100% [Calculating SDK checksum] Verified download
    [00:00:50] ###### 100% [Unpack SDK v3.2.1] Unpacked SDK tarball
    Warning: Unable to create symlinks during unpacking. Consider enabling 'Developer Mode' in your system settings to allow symlink creation.
    
    A list of the affected paths has been written to: C:\tmp\nrfutil-sdk-manager-symlinks-k3TZvV.txt



    With messages like that, it's very hard to make anything working. 
    What symlinks are needed?

  • EAB said:
    I tried to upgrade, but got another error...

    It's not an error, it's a warning. And I believe you should not worry too much about it, it is intended behavior;

    https://docs.nordicsemi.com/bundle/nrfutil/page/nrfutil-sdk-manager/CHANGELOG.html#d72e394 

Related