Complete the following steps:
-
Make sure you have configured application for tracing.
-
Identify the device's serial port for tracing by listing the devices with the
modemdevice trait:nrfutil device list --traits modemNote
When selecting a serial port for the trace, pick the serial port with the highest serial port number.
-
To trace continuously, run the
nrfutil trace lteand specify the input serial port and the output file format:For example, run the following command to save the input from the COM10 serial port tonrfutil trace lte --input-serialport <serial_port> --output-raw <file_name>trace.raw:nrfutil trace lte --input-serialport COM10 --output-raw trace.raw -
When done, stop tracing by pressing CTRL-C. The binary trace file is created in the current directory unless a different path is specified. You can view the file size in bytes while the trace is running.
The raw binary output file contains all traffic to and from the modem. Raw binary files are primarily used as an attachment when assistance is needed from Nordic Semiconductor support. Some of the traffic is proprietary to Nordic Semiconductor and not publicly available.
Note
If tracing into a PcapNG file does not produce any trace, reset the board and try again.