Last active
March 31, 2024 17:18
-
-
Save mikerr/6387972 to your computer and use it in GitHub Desktop.
Bluetooth RSSI signal strength
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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