#bluetooth #rfcomm #buds

galaxy_buds_rs

The Galaxy Buds rfcomm protocol reverse engineered

11 releases

0.2.10 Aug 6, 2021
0.2.9 Jan 17, 2021
0.2.9-1 Aug 6, 2021
0.2.7 Dec 30, 2020

#943 in Hardware support


Used in earbuds

GPL-3.0 license

44KB
1K SLoC

GalaxyBuds-rs

crates PRs

A reverse engineered rust wrapper for the GalaxyBuds bluetooth protocol. Can be used to communicate with your earbuds using rust. You can find a cli tool controlling your Earbuds on linux here

To use:

Add this to your Cargo.toml

galaxy_buds_rs = "0.2.1"

Or if you have cargo edit:

cargo add galaxy_buds_rs

Features

Receiving

  • Status update
  • Extended status update
  • Get all debug data
  • Touch updated
  • Voice wakeup listening update
  • Touchpad tap action
  • Version info

Sending

  • Un/Lock touchpad
  • Set noisereduction
  • Set Equalizer
  • Adjust sound sync
  • Mute earbud
  • Find my earbuds
  • Prepare voice notification (notifications TTS)
  • Set touchpad option
  • Update time

Examples

Receive

Set the address value in examples/receive.rs to your Buds' mac address and run following:

cargo --example receive

Send

Set the address value in examples/send.rs to your Buds' mac address and run following:

cargo --example send

Dependencies

~6–15MB
~212K SLoC