Introduction
A btsnoop file is a log of the packets passing between a computer or phone and its Bluetooth controller
(the HCI). Android writes one, usually called btsnoop_hci.log, when the Bluetooth HCI snoop log
developer option is on, and Wireshark opens it. The format
resembles snoop.
Structure
A binary file whose header begins with the 8 bytes 62 74 73 6E 6F 6F 70 00
(btsnoop and a zero byte), followed by a 4-byte version number, 1, and a datalink type that says
how the HCI packets are framed (for example 1001 for plain HCI and 1002 for HCI UART). Packet records
follow.
Not described
Known, not yet covered
- Reference: the layout of the format is not yet described here: the packet record fields and the HCI packets themselves are documented publicly and handled by Wireshark.
- Viewer: the site has no viewer for this format.
Links
Software
- Android – writes the log from its developer options
- Wireshark – network analyser that opens btsnoop files (Windows, macOS, Linux)
Reference
- BT Snoop File Format – Frontline's description of the format
- wiretap/btsnoop.c – Wireshark's reader