Skip to content

Instantly share code, notes, and snippets.

@nomicode
Forked from mikerr/btSignal.sh
Created March 31, 2024 17:18
Show Gist options
  • Save nomicode/7e8dd660d5b223ab18a03e340b5a7440 to your computer and use it in GitHub Desktop.
Save nomicode/7e8dd660d5b223ab18a03e340b5a7440 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