Repository navigation
Bluetooth capture: traces without directions, conversation view - #7
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Groundwork for reading the radio over Bluetooth: better captures of RPM's sessions, and a view that makes the protocol easier to decode.
radio sniffreads 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 sniffends 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 analyzegroups 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 Nlists the first N messages.radio probebefore 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.