1
gatttoolとbluetoothctlを使用してBluetoothデバイスに接続しようとすると、gatttoolに「Connection refused」というメッセージが表示されましたが、bluetoothctlは正常に接続されました。gatttoolとbluetoothctlの接続結果がラズベリー・パイ3ブルートゥース
bluetoothctlとgatttoolの違いは何ですか?
gatttoolでchar-write-cmdコマンドを使用する必要があるため、gatttoolを機能させるにはどうすればいいですか?
$ ./gatttool -b 00:13:04:0C:6C:26 -I
[00:13:04:0C:6C:26][LE]> connect
Attempting to connect to 00:13:04:0C:6C:26
Error: connect error: Connection refused (111)
[00:13:04:0C:6C:26][LE]> exit
$ bluetoothctl
[NEW] Controller B8:27:EB:07:26:C8 raspberrypi [default]
[NEW] Device 00:13:04:0C:6C:26 MEDXING-NIBP
[bluetooth]# connect 00:13:04:0C:6C:26
Attempting to connect to 00:13:04:0C:6C:26
[CHG] Device 00:13:04:0C:6C:26 Connected: yes
Connection successful
[bluetooth]# info 00:13:04:0C:6C:26
Device 00:13:04:0C:6C:26
Name: MEDXING-NIBP
Alias: MEDXING-NIBP
Paired: no
Trusted: no
Blocked: no
Connected: yes
LegacyPairing: no
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
UUID: Unknown (0000ffb0-0000-1000-8000-00805f9b34fb)
[bluetooth]# exit
このリンクからいくつかの情報を得ることができます:http://stackoverflow.com/questions/34271217/solved-connecting-to-a-bluetooth-smart-le-weight-scale-with-bluez-bluetoothctl-g – aksonlyaks
私はLinuxで同じ問題を抱えていますUBUNTU 17.04 bluetoothctlに問題はありませんがgattoolは接続しません – Zibri