📡
BlueZでBluetooth Low Energy(BLE)通信機器がスキャンできないときに試してみること
概要
Raspberry Pi 4 Model B 上から BLE 機能があるペリフェラル機器と通信するために、BlueZを使うことがありました。
しかし、hcitool scanではペリフェラル機器が見つかるのに、bluetoothctlコマンドでscan onすると見つからないという問題が発生...。
この記事では、その問題を解決するために試してみたことをまとめます。
※ 実行時の Bluez のバージョンは v5.50。
対応方法
※ Bluetooth サービスは動いていること。
-
bluetoothctlコマンドを実行し、対話モードに移行する。 -
transport leでスキャンを実行。
[bluetooth]# menu scan
[bluetooth]# transport le
[bluetooth]# back
[bluetooth]# scan on
[bluetooth]# devices
Discussion