BlueZ 5.35
Вступление))) :
Код: Выделить всё
agent on
default-agent
discoverable on
pairable on
scan on
подключение:
Код: Выделить всё
[bluetooth]# pair 20:15:07:20:67:B1
Attempting to pair with 20:15:07:20:67:B1
[CHG] Device 20:15:07:20:67:B1 Connected: yes
[agent] PIN code: 009834
[CHG] Device 20:15:07:20:67:B1 Modalias: usb:v05ACp0220d0001
[CHG] Device 20:15:07:20:67:B1 Connected: no
[CHG] Device 20:15:07:20:67:B1 Paired: yes
Pairing successful
[bluetooth]# connect 20:15:07:20:67:B1
Attempting to connect to 20:15:07:20:67:B1
Failed to connect: org.bluez.Error.Failed
[bluetooth]# disconnect 20:15:07:20:67:B1
Attempting to disconnect from 20:15:07:20:67:B1
Successful disconnected
[bluetooth]# connect 15:07:20:67:B1
Attempting to connect to 20:15:07:20:67:B1
Failed to connect: org.bluez.Error.Failed
[CHG] Device 20:15:07:20:67:B1 Connected: yes
[CHG] Device 20:15:07:20:67:B1 Connected: no
[CHG] Device 20:15:07:20:67:B1 Connected: yes
[CHG] Device 20:15:07:20:67:B1 Connected: no
[CHG] Device 20:15:07:20:67:B1 Connected: yes
[CHG] Device 20:15:07:20:67:B1 Connected: no
[bluetooth]# disconnect 20:15:07:20:67:B1
Attempting to disconnect from 20:15:07:20:67:B1
Successful disconnected
[bluetooth]# trust 20:15:07:20:67:B1
[CHG] Device 20:15:07:20:67:B1 Trusted: yes
Changing 20:15:07:20:67:B1 trust succeeded
[bluetooth]# connect 20:15:07:20:67:B1
Attempting to connect to 20:15:07:20:67:B1
Failed to connect: org.bluez.Error.Failed
[CHG] Device 20:15:07:20:67:B1 Connected: yes
[CHG] Device 20:15:07:20:67:B1 Connected: no
[bluetooth]# info 20:15:07:20:67:B1
Device 20:15:07:20:67:B1
Name: Bluetooth Keyboard
Alias: Bluetooth Keyboard
Class: 0x000540
Icon: input-keyboard
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: yes
Modalias: usb:v05ACp0220d0001
RSSI: -77
[CHG] Device 20:15:07:20:67:B1 Connected: yes
[CHG] Device 20:15:07:20:67:B1 Connected: no
[CHG] Device 20:15:07:20:67:B1 Connected: yes
[CHG] Device 20:15:07:20:67:B1 Connected: no
когда на клаве нажимаю ччто-нибудь, он кратковременно пишет Connect: yes и необрабатывая то, что я нажал - сразу no
Что я делал не так?
Дистр в данном случае Gentoo, пробовал и на Ubuntu
Пробовали и на Android подключать, не работала до тех пор, пока не поставили приложение Bluekeyboard Pro JP (оказывается не Pro версию поставили, на простой заработало тоже)