trace can be used to collect UART traces from an nRF91 SiP. The trace can be used to analyze the communication between the device and the LTE network.
To use tracing, the nRF9160 DK must have modem trace enabled.
For example, you can use the following command to collect trace data from a serialport COM10 to a raw file raw-file.bin:
nrfutil trace lte --input-serialport COM10 --output-raw raw-file.bin
Passing the --input-serialport option with the serial port name makes trace use the default serial port settings
(1000000 baudrate, 8 data bits, no parity, 1 stop bit, or in short hand conventional format 1000000/8/N/1).