這是本文件的舊版!


required software

yaourt -S btscanner
pacman -S bluez-utils

discoverable

dbus-send --system --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable
hciconfig hci0 piscan

hide

dbus-send --system --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:off
hciconfig hci0 noscan

scan

hciconfig
hciconfig hci0 up
hcitool scan
l2ping MAC
btscanner
sudo bluetoothctl
agent on
default-agent
pair MAC
connect MAC

TODO:

兩種 scan 的差別 ble compatibility