Bluetoothctl set passkey

后端 未结 5 682
北荒
北荒 2021-02-05 12:39

I have a Raspberry Pi 2 running Raspbian kernel 4.1.15 and Bluez version 5.23.

I want to be able to connect a device (like an Android phone) to the rapsberry which shoul

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-05 13:16

    Here is what works thanks to 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
    

    Then I pair the raspberry with my phone from the phone.

    [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
    

提交回复
热议问题