• Bluez memo
  • /etc/init.d/bluetooth stop
  • rm -rf /var/lib/bluetooth/* # to start with clean files
  • /etc/init.d/bluetooth start
  • push reset button on bluetooth mouse, makes it visible

  • hcitool scan
  • BTADDR=00:..... # bluetooth address as seen by hcitool
  • bluez-simple-agent hci0 $BTADDR # asks for PIN, 0000 works for me
  • bluez-test-device trusted $BTADDR yes
  • bluez-test-input connect $BTADDR

  • ペアリングしているデバイスの一覧

bluez-test-device list

{{{ aptitude install bluedevil }}}

  • passkey を聞かれたときはOK,聞かれずに確認する場合はNG.

  • 相手に接続 hcitool cc BDADDR

  • 接続状況の確認 hcitool lq BDADDR
  • 相手の名前を得る hcitool name BDADDR

$test-proximity -i hci1 --device LinkLossAlertLevel mild