Some bluetooth low-energy (BLE) devices are difficult to pair in linux. All information I can find (including this question) suggests that gatttool
should be used, like so:
sudo gatttool -t random -b E7:2D:83:06:AA:AB -I
[E7:2D:83:06:AA:AB][LE]> connect
Unfortunately gatttool
is deprecated and no longer distributed in several linux distributions.
The archlinux documentation says that btgatt-client
is supposed to replace gatttool
. I have tried the following, without success:
$ btgatt-client -d F9:B9:1D:A5:73:F4 -t random -v
btgatt-client: Opening L2CAP LE connection on ATT channel:
src: 00:00:00:00:00:00
dest: F9:B9:1D:A5:73:F4
Connecting to device... Done
[GATT client]# att: (chan 0x5623a9b9d6e0) ATT op 0x08
[GATT client]# att: < 08 01 00 ff ff 3a 2b .....:+
[GATT client]# att: Channel 0x5623a9b9d6e0 disconnected: Software caused connection abort
[GATT client]# gatt: Primary service discovery failed. ATT ECODE: 0x00
[GATT client]# gatt: Failed to initialize gatt-client
[GATT client]# GATT discovery procedures failed - error code: 0x00
[GATT client]# Device disconnected: Software caused connection abort
Unfortunately due to lack of documentation I do not know how to proceed.