3 unstable releases
| 0.2.1 | Oct 3, 2023 |
|---|---|
| 0.2.0 | Feb 10, 2023 |
| 0.1.0 | Jan 28, 2023 |
#137 in #bluetooth
52 downloads per month
Used in btsnoop-extcap
14KB
171 lines
Btsnoop parser library for Rust
This library provides parsing capaibilities for btsnoop logs.
[dependencies]
btsnoop = "0.2.1"
Example
use btsnoop::parse_btsnoop_file;
let btsnoop_bytes: &[u8] = include_bytes!("btsnoop_hci.log");
let file: btsnoop::File = parse_btsnoop_file(btsnoop_bytes).unwrap();
for packet in file.packets {
println!("Packet={:x?}", packet.packet_data);
}
File sources
btsnoopcan parse files generated by Android andbtmon.- See the subproject
btsnoop-extcapfor a Wireshark extcap plugin that can stream the HCI logs live from a rooted Android device.
References
Dependencies
~1–1.7MB
~33K SLoC