Skip to content

Bluetooth capture: traces without directions, conversation view - #7

Merged
TheAbider merged 3 commits into
masterfrom
sniff-hardening
Oct 28, 2026
Merged

TheAbider merged 3 commits into
masterfrom
sniff-hardening

Conversation

@TheAbider

@TheAbider TheAbider commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Groundwork for reading the radio over Bluetooth: better captures of RPM's sessions, and a view that makes the protocol easier to decode.

  • radio sniff reads traces with no direction header (link type 187) as well as 201. It works out each direction from the L2CAP connection setup, or else from RFCOMM's command/response bit.
  • radio sniff ends with a report of what the trace held: packets, link types, ACL data, RFCOMM frames and serial channels. When it finds no serial data it says why: nothing from the sniffer, no data packets, or no RFCOMM frames (Full Packet Logging off?).
  • radio analyze groups chunks into messages: chunks going the same way less than 50 ms apart are one message. It counts messages and lists their common sizes and first bytes. --transcript N lists the first N messages.
  • Bluetooth notes: check the setup with radio probe before recording RPM. local/ is ignored (developer scratch).

Tests: 5695 pass. Every new test was mutation-checked: 8 mutants for the sniff changes and 10 for the transcript, all caught.

Which pcap link type Microsoft's Bluetooth Virtual Sniffer writes is not
documented. Without a direction header (link type 187) the decoder now
takes directions from the L2CAP connection setup (the side asking for
the RFCOMM channel is the PC) or, without it, from RFCOMM's
command/response bit, and a channel the radio opened is handled too.
sniff ends with a report of what the trace held (packets per link type,
ACL data, RFCOMM frames, serial channels) and, when it found no serial
data, the likely reason, so a test run shows whether the setup works
before a real session.
CONTRIBUTING said local/ is gitignored, and it was not. The Bluetooth
notes describe sniff's report and a setup check that needs no RPM: open
the radio's port with radio probe while sniff runs.
Chunks going the same way less than 50 ms apart are one message, since
a serial read returns whatever has arrived. The report counts messages
and lists their common sizes and first bytes; --transcript N lists the
first N messages with time, direction, length and first bytes.
@TheAbider
TheAbider merged commit e3a489b into master Oct 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant