hci

nRF Util

tags
nRF Util

nRF Sniffer for Bluetooth LE supports reading Host Controller Interface (HCI) packets for nRF Connect SDK applications.

See Logging HCI packets for more information about how to set up HCI and use it with Wireshark.

After you set up HCI, you can also read HCI packets from a serial port using the following pattern (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 that is located in the current working directory. You can inspect this PCAP file with Wireshark. This PCAP file follows the same naming scheme as the PCAP file for the sniff subcommand.