LoginSignup
25

More than 5 years have passed since last update.

raspberry piのbluetoothを使えるようにする

Posted at

まずは、bluetoothパッケージをインストール。

$ sudo apt-get install -y bluetooth
$ reboot

これだけだと、下記のようなエラーになる。

$ bluetoothctl
[bluetooth]# scan on
no default controller available

Raspberry Pi用のパッケージであるpi-bluetoothをインストール。

$ sudo apt-get install -y pi-bluetooth
$ reboot
$ bluetoothctl
[NEW] Controller B8:27:EB:1E:79:92 raspberrypi [default]
[bluetooth]# scan on
Discovery started
[CHG] Controller B8:27:EB:1E:79:92 Discovering: yes
[NEW] Device 68:64:4B:29:84:F0 68-64-4B-29-84-F0
[NEW] Device 72:BE:DA:27:3C:AA 72-BE-DA-27-3C-AA
[CHG] Device 72:BE:DA:27:3C:AA RSSI: -79
[CHG] Device 68:64:4B:29:84:F0 RSSI: -60
[CHG] Device 68:64:4B:29:84:F0 RSSI: -69

BlueToothのGUI設定ツールをインストール。

$ sudo apt-get install -y blueman

Menu => Preferences => Bluetooth Managerで起動。

スクリーンショット 2017-11-06 16.36.20.png

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
25