Skip to content

Instantly share code, notes, and snippets.

@mikerr
Last active March 31, 2024 17:18
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mikerr/6387972 to your computer and use it in GitHub Desktop.
Save mikerr/6387972 to your computer and use it in GitHub Desktop.
Bluetooth RSSI signal strength
# install bluetooth tools
sudo apt-get install --no-install-recommends bluetooth
# find MAC address (needs to be discoverable)
hcitool scan
# ping it
sudo l2ping -c 1 12:34:56:78:90
# Connect by MAC
sudo rfcomm connect 0 12:34:56:78:90:00 10 >/dev/null &
# Signal strength: (range -10 ... 40)
hcitool rssi 12:34:56:78:90:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment