Ошибка соединения Bluetooth Raspberry Pi: «Сброс соединения по пиру» - PullRequest
0 голосов
/ 28 февраля 2020

Добрый день. Я пытаюсь подключить Bluetooth-динамик к Raspberry Pi (RP). Я успешно подключил Bluetooth-гарнитуру, используя:

sudo bluetoothctl
pair <Headphones' MAC Address>
connect <Headphones' MAC Address>

И все в порядке. Но когда я пытаюсь подключиться к звуковому динамику, это не так.

[bluetooth]# scan on
Discovery started
[CHG] Controller 00:15:83:15:A3:10 Discovering: yes
[NEW] Device F9:56:48:48:A6:8C 17979 speaker
[bluetooth]# pair F9:56:48:48:A6:8C
Attempting to pair with F9:56:48:48:A6:8C
[CHG] Device F9:56:48:48:A6:8C Connected: yes
[CHG] Device F9:56:48:48:A6:8C Connected: no
[CHG] Device F9:56:48:48:A6:8C Connected: yes
[CHG] Device F9:56:48:48:A6:8C Connected: no
[CHG] Device F9:56:48:48:A6:8C Paired: yes
Pairing successful
[bluetooth]# trust F9:56:48:48:A6:8C
[CHG] Device F9:56:48:48:A6:8C Trusted: yes
Changing F9:56:48:48:A6:8C trust succeeded
[bluetooth]# info F9:56:48:48:A6:8C
Device F9:56:48:48:A6:8C (public)
    Name: 17979 speaker
    Alias: 17979 speaker
    Class: 0x00240418
    Icon: audio-card
    Paired: yes
    Trusted: yes
    Blocked: no
    Connected: no
    LegacyPairing: yes
[bluetooth]# connect F9:56:48:48:A6:8C
Attempting to connect to F9:56:48:48:A6:8C
[CHG] Device F9:56:48:48:A6:8C Connected: yes
[CHG] Device F9:56:48:48:A6:8C Connected: no
[CHG] Device F9:56:48:48:A6:8C Connected: yes
[CHG] Device F9:56:48:48:A6:8C Connected: no
Failed to connect: org.bluez.Error.Failed

Вот результат journalctl: (думаю, важны 2 последние строки)

journalctl -u bluetooth | tail
Feb 27 22:52:58 raspberrypi bluetoothd[318]: F9:56:48:48:A6:8C: error updating services: Connection reset by peer (104)
Feb 27 22:54:57 raspberrypi bluetoothd[318]: F9:56:48:48:A6:8C: error updating services: Connection reset by peer (104)
Feb 27 22:59:16 raspberrypi bluetoothd[318]: Authentication attempt without agent
Feb 27 22:59:16 raspberrypi bluetoothd[318]: Hands-Free Voice gateway rejected 17:09:22:17:0D:31: org.bluez.Error.Rejected
Feb 27 23:00:17 raspberrypi bluetoothd[318]: Authentication attempt without agent
Feb 27 23:00:17 raspberrypi bluetoothd[318]: Hands-Free Voice gateway rejected 17:09:22:17:0D:31: org.bluez.Error.Rejected
Feb 27 23:00:51 raspberrypi bluetoothd[318]: /org/bluez/hci0/dev_17_09_22_17_0D_31/fd0: fd(25) ready
Feb 27 23:02:04 raspberrypi bluetoothd[318]: Unable to get io data for Hands-Free Voice gateway: getpeername: Transport endpoint is not connected (107)
Feb 27 23:34:39 raspberrypi bluetoothd[318]: F9:56:48:48:A6:8C: error updating services: Connection reset by peer (104)
Feb 27 23:35:48 raspberrypi bluetoothd[318]: F9:56:48:48:A6:8C: error updating services: Connection reset by peer (104)

Что я сделал не так? Буду признателен за любой совет.

...