LoginSignup
3
4

More than 5 years have passed since last update.

pi-topCEEDでBluetoothデバイスを使用する

Last updated at Posted at 2016-06-12

がいよう

  • 先日indiegogoで出資した pi-topCEED (Raspberry Pi 3付属モデル)が届いたのだけど、ラズパイ3なのにbluetoothが使えなかったので色々やった際のメモ
  • ※あまり深く調べてないので根本から間違ってる可能性があるます

けつろん

  • pi-topCEEDのpi-topOS(raspbian-jessieベース)はラズパイ2でも動作するようにオンボードのbluetoothを潰してるふんいき
  • 結局Bluetoothドングル買ってマウスとキーボードとスピーカーつないだ

調査

  • bluetooth関連のパッケージが入ってるか確認
% dkgs -l|grep blue
% 

なにもインストールされてなかった

  • 一応起動しているbluetoothdとかないかみてみる
% ps aux|grep blue
% 

当然なし

  • とりあえず自分でbluez入れてhciconfig叩いてみる
% sudo apt-get install bluez
()
% hciconfig
%
  • あれ?なんで一つもデバイス表示されないの??
    • 色々ググったりした結果、けつろんの通りpi-topOSではオンボードのbluetoothが潰されてると判断
    • そんなわけでBluetoothドングル買った(バッファロー BUFFALO BSBT4D09BK)

Bluetoothデバイス接続

ドングル認識

  • 買ってきたドングルを挿す
% hciconfig

無事hci0に認識されて問題無し(認識されなかったらlsusb等して確認)

マウス&スピーカーペアリング

  • 先にスピーカー用にpulseaudio-module-bluetoothをインストールしておく
% bluetoothctl
[bluetooth]# scan on
// 接続したいデバイスをペアリングモードにする
[bluetooth]# scan off
[bluetooth]# pair XX:XX:XX:XX:XX:XX
[bluetooth]# connect XX:XX:XX:XX:XX:XX
[bluetooth]# trust XX:XX:XX:XX:XX:XX

キーボードペアリング

% bluetoothctl
[bluetooth]# agent on
[bluetooth]# scan on
// キーボードをペアリングモードにする
[bluetooth]# scan off
[bluetooth]# pair XX:XX:XX:XX:XX:XX
[agent] PIN code: 953853
// キーボードでPINを入力してエンターキー
[bluetooth]# connect XX:XX:XX:XX:XX:XX
[bluetooth]# trust XX:XX:XX:XX:XX:XX

raspberry piの日本語化

  • 通常のraspberry piと変わらないと思いますが備忘用
    • raspi-configを起動してlocaleをja_JP.UTF-8にする(詳細は割愛)
    • 日本語フォント関連のパッケージをかたっぱしから入れる
sudo apt-get install ttf-kochi-gothic xfonts-intl-japanese xfonts-intl-japanese-big xfonts-kaname uim uim-anthy jfbterm

参考リンク

3
4
0

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
3
4