私はちょうど同じ問題を抱えていました。 agent
の後にタブを 2 回押した場合 利用可能なエージェントのリストが表示されます。 KeyboardOnly
通知なしで正常に動作:
[bluetooth]# agent on # accidentally used wrong agent
Agent registered
[bluetooth]# agent
DisplayOnly DisplayYesNo KeyboardDisplay KeyboardOnly NoInputNoOutput off on
[bluetooth]# agent KeyboardOnly
Agent is already registered # can't use two agents at one
[bluetooth]# agent off # unregister agent
Agent unregistered
[bluetooth]# agent KeyboardOnly # register proper agent
Agent registered
[bluetooth]# pair XX:XX:XX:04:F5:7C
Attempting to pair with XX:XX:XX:04:F5:7C
[CHG] Device XX:XX:XX:04:F5:7C Connected: yes
Request passkey
[agent] Enter passkey (number in 0-999999): 722504
[MoarBacon]# pair XX:XX:XX:04:F5:7C
Attempting to pair with XX:XX:XX:04:F5:7C
[CHG] Device XX:XX:XX:04:F5:7C Paired: yes
Pairing successful
kaylum のおかげで機能するのは次のとおりです:
$bluetoothctl
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# discoverable on
Changing discoverable on succeeded
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# agent NoInputNoOutput
Agent registered
[bluetooth]# default-agent
Default agent request successful
次に、携帯電話からラズベリーと携帯電話をペアリングします。
[NEW] Device XX:XX:XX:XX:XX:XX nameofthedevice
[CHG] Device XX:XX:XX:XX:XX:XX UUIDS:
--UUIDS--
[CHG] Device XX:XX:XX:XX:XX:XX Paired: yes