2012年11月1日木曜日

Raspberry Pi でBluetoothを使う

http://blog.livedoor.jp/whatson/archives/4267598.html

(1) Bluetoothドングルを認識させる
・lsusb で、bluetoothドングルが認識されていることを確認。

  Bus 001 Device 005: ID 0a5c:200a Broadcom Corp. BCM2035 Bluetooth dongle

・apt-get install bluetooth で必要なパッケージをインストール
・デーモンの起動を確認 /etc/init.d/bluetooth status
  [ ok ] bluetooth is running.
・hcitool dev で、デバイス(bluetooth ドングルの状況を確認)
  Devices:
          hci0    00:A0:B0:E0:0E:XX
   ※アドレスが表示されなければ、きちんと動作していない

(2) デバイス(キーボード)を認識させる
・デバイス(キーボード)を検出可能なモードに設定
・hcitool scan でスキャン
  Scanning ...
          DC:2C:26:D8:A5:XX   Macro Keyboard
→うまく認識しないので挫折。

(3) GUIツールを導入
・apt-get install bluez-utils blueman
・reboot
・startx
・Bluetooth Manager で接続

※Nintendo Wireless Keyborad は、毎回Fnを押しながら電源を入れる必要がある




0 件のコメント: