差異處
這裏顯示兩個版本的差異處。
| 兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
| bluetooth [2016/10/10 01:32] – 127.0.0.1 | bluetooth [2016/10/28 01:59] (目前版本) – jz | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| + | ====== required software ====== | ||
| < | < | ||
| yaourt -S btscanner | yaourt -S btscanner | ||
| 行 4: | 行 5: | ||
| </ | </ | ||
| + | ====== discoverable ====== | ||
| + | < | ||
| + | dbus-send --system --dest=org.bluez / | ||
| + | hciconfig hci0 piscan | ||
| + | </ | ||
| + | |||
| + | ====== hide ====== | ||
| + | < | ||
| + | dbus-send --system --dest=org.bluez / | ||
| + | hciconfig hci0 noscan | ||
| + | </ | ||
| + | |||
| + | ====== scan ====== | ||
| < | < | ||
| hciconfig | hciconfig | ||
| 行 11: | 行 25: | ||
| btscanner | btscanner | ||
| </ | </ | ||
| - | |||
| - | ====== discoverable ====== | ||
| < | < | ||
| - | dbus-send --system --dest=org.bluez / | + | sudo bluetoothctl |
| - | hciconfig hci0 piscan | + | agent on |
| + | default-agent | ||
| + | pair MAC | ||
| + | connect MAC | ||
| </ | </ | ||
| - | ====== hide ====== | + | TODO: |
| + | 兩種 scan 的差別 | ||
| + | ble compatibility | ||
| + | ====== RSSI ====== | ||
| < | < | ||
| - | dbus-send --system --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:off | + | hcitool rssi AA: |
| - | hciconfig | + | </ |
| + | |||
| + | |||
| + | ===== Beacon ===== | ||
| + | Advertised speed | ||
| + | < | ||
| + | sudo hciconfig hci0 up | ||
| + | sudo hcitool | ||
| + | sudo hcitool | ||
| + | sudo hcitool -i hci0 cmd 0x08 0x000a 01 | ||
| </ | </ | ||
| 參考 | 參考 | ||
| - | https:// | + | * https:// |
| + | * http:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * http:// | ||