The correct way to enable trace for cellular monitor to work on SLM running in nRF9160

Hi,

I've create an v2.4.0 SLM application in VS Code by copy from sample, and I am trying to enable trace function for cellular monitor tool app, in order to LOG the packets with wireshark.

I've checked the "nRF91 modem tracing with UART backend using snippets" page and tried the recommend snippet:

-D<image_name>_SNIPPET="nrf91-modem-trace-uart" [...]

However I couldn't figure out what should the correct image name be, so I also asked the DevZone AI for help twice and it replies trying:

-Dslm_SNIPPET=""nrf91-modem-trace-uart" [...]"

and

-Dmodem_shell_SNIPPET=""nrf91-modem-trace-uart

Is this the correct snippet I should be using?

I've tested both but still failed to monitoring with Cellular Monitor tool app.

Here is the trace file and log file(log also pasted in the end): SLM

trace and log.rar

According to the screenshot,

1st problem is that app couldn't get any information to dashboard.

2nd is 9160 will reply +CME ERROR: 13 after AT+CPIN?. (But if I type AT+CPIN? again in terminal it works fine).

And below is the log from terminal:
Ready
> AT+CFUN=1
OK
> AT%XCONNSTAT=1
OK
> AT%XCONNSTAT?
%XCONNSTAT: 0,0,0,0,0,0
OK
> AT+CMEE=1
OK
> AT%XSIM=1
OK
> AT+CEREG=5
OK
> AT%MDMEV=1
OK
> AT%CESQ=1
OK
> AT+CGSN=1
+CGSN: "351516172688145"
OK
> AT+CGMM
nRF9160-SICA
OK
> AT+CEMODE?
+CEMODE: 0
OK
> AT+CMEE?
+CMEE: 1
OK
> AT+CNEC?
+CNEC: 0
OK
> AT+CGEREP?
+CGEREP: 0,0
OK
> AT+CIND=1,1,1
OK
> AT+COPS=3,2
OK
> AT+CGDCONT?
OK
> AT+CGACT?
OK
> AT+CESQ
+CESQ: 99,99,255,255,255,255
OK
> AT%XSIM?
%XSIM: 0
OK
> AT+CPIN?
+CME ERROR: 13
> AT+CIMI
+CME ERROR: 0
> AT+CNEC=24
OK
> AT+CEER
OK
> AT+CGEREP=1
OK
> AT%XPOFWARN=1,30
OK
> AT%XVBATLVL=1
OK
> AT+CGMI
Nordic Semiconductor ASA
OK
> AT+CGMR
mfw_nrf9160_1.3.5
OK
> AT+CGSN
351516172688145
OK
> AT%XMODEMUUID
%XMODEMUUID: dc8e7aff-5331-409e-be02-5529dffa5537
OK
> AT%XDATAPRFL?
%XDATAPRFL: 2
OK
> AT+CEREG?
+CEREG: 5,4
OK
> AT+CFUN?
+CFUN: 1
OK
> AT%CESQ=1
OK
> AT+CSCON=1
OK
> AT+CSCON?
+CSCON: 1,0
OK
> AT+CPAS
+CPAS: 0
OK
> AT+CEDRXRDP
+CEDRXRDP: 0
OK
> AT%XTIME=1
OK
> AT%CONEVAL
%CONEVAL: 1
OK
> AT%XCBAND=?
%XCBAND: (1,2,3,4,5,8,12,13,17,19,20,25,26,28,66)
OK
> AT%XCBAND
%XCBAND: 0
OK
> AT%HWVERSION
%HWVERSION: nRF9160 SICA B1A
OK
> AT%XMODEMTRACE=1,2
OK
> AT%XSYSTEMMODE?
%XSYSTEMMODE: 1,1,1,0
OK
> AT%XICCID
%XICCID: 89886920047006113348
OK
> AT%XEMPR?
%XEMPR:
OK
> AT+CGDCONT?
OK
> AT+COPS?
+COPS: 0
OK
> AT%XMONITOR
%XMONITOR: 4
OK
> AT+CPINR="SIM PIN"
+CPINR: "SIM PIN",3
OK
%XSIM: 1
> AT+CPINR="SIM PIN2"
+CPINR: "SIM PIN2",3
OK
> AT+CPINR="SIM PUK"
+CPINR: "SIM PUK",10
OK
> AT+CPINR="SIM PUK2"
+CPINR: "SIM PUK2",10
OK
> AT%XSIM?
%XSIM: 1
OK
%CESQ: 47,2,26,3
+CEREG: 2,"D1C4","04CA3D6F",9
+CSCON: 1
+CGEV: ME PDN ACT 0
%MDMEV: SEARCH STATUS 2
+CEREG: 1,"D1C4","04CA3D6F",9,,,"11100000","11100000"
+CIND: "service",1
%XTIME: "23","42117040808323","00"
+CGEV: IPV6 0
%CESQ: 44,2,21,3
+CSCON: 0
+CSCON: 1
%CESQ: 47,2,26,3
+CSCON: 0
%CESQ: 47,2,20,2
%CESQ: 48,2,27,3
> AT+CPIN?             (Hand send from terminal)
+CPIN: READY
OK
> AT+CIMI                (Hand send from terminal)
466924700611334
OK

Related