btsnoop

Crates.iobtsnoop
lib.rsbtsnoop
version0.2.1
sourcesrc
created_at2023-01-28 08:14:15.579502
updated_at2023-10-03 03:48:57.81044
descriptionThis library provides parsing capabilities for btsnoop logs
homepage
repositoryhttps://github.com/mauricelam/btsnoop-rs/
max_upload_size
id770247
size28,134
Maurice Lam (mauricelam)

documentation

https://docs.rs/btsnoop

README

Btsnoop parser library for Rust

Build status Crates.io Docs.rs

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

  • btsnoop can parse files generated by Android and btmon.
  • See the subproject btsnoop-extcap for a Wireshark extcap plugin that can stream the HCI logs live from a rooted Android device.

References

Commit count: 79

cargo fmt