Capturing HCI packets

nRF Util

tags
nRF Util

To read HCI packets from a serial port, use the following command (replace <serial_port> with the serial port of your device):

nrfutil ble-sniffer hci --serialport <serial_port>

The hci subcommand captures HCI packets read from the serial port and prints them to the terminal. It also stores them in a generated PCAP file located in the current working directory.