Я ищу решение уже несколько дней...
У меня есть Raspberry Pi 4, включая Bluetooth.
Я пытаюсь автоматически подключить свой телефон Android к Bluetooth Raspberry, когда прихожу домой.
Я подключил свое устройство и подтвердил его:
Device EC:89:14:E9:43:B8 (public)
Name: MyAndroidPhone
Alias: MyAndroidPhone
Class: 0x005a020c
Icon: phone
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Unknown (0000046a-0000-1000-8000-00805f9b34fb)
UUID: OBEX Object Push (00001105-0000-1000-8000-00805f9b34fb)
UUID: Headset (00001108-0000-1000-8000-00805f9b34fb)
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
UUID: Headset AG (00001112-0000-1000-8000-00805f9b34fb)
UUID: PANU (00001115-0000-1000-8000-00805f9b34fb)
UUID: NAP (00001116-0000-1000-8000-00805f9b34fb)
UUID: Handsfree Audio Gateway (0000111f-0000-1000-8000-00805f9b34fb)
UUID: Phonebook Access Server (0000112f-0000-1000-8000-00805f9b34fb)
UUID: Message Access Server (00001132-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: HUAWEI Technologies Co... (0000fe35-0000-1000-8000-00805f9b34fb)
Modalias: bluetooth:v000Fp107Ed1436
Когда я впервые доверяю устройству и подключаю его, оно успешно подключается и с PulseAudio все работает нормально.
Проблемы начинаются, если я перезагружаю Raspberry или перезапускаю Bluetooth с помощью сервисного перезапуска Bluetooth.
После этого я не могу повторно подключиться к своему телефон.
[bluetooth]# connect EC:89:14:E9:43:B8
Attempting to connect to EC:89:14:E9:43:B8
Failed to connect: org.bluez.Error.Failed
Странно, я все еще могу подключиться к своему телефону -> к своей малине. Но не с моей малины -> на мой телефон.
Для моего проекта мне нужно, чтобы моя малина могла автоматически подключаться к моему телефону, когда он находится в зоне действия.
Вот логи моего сервиса Bluetooth:
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2020-04-08 21:55:48 CEST; 6s ago
Docs: man:bluetoothd(8)
Process: 2027 ExecStartPost=/usr/bin/sdptool add SP (code=exited, status=0/SUCCESS)
Main PID: 2026 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 2200)
Memory: 784.0K
CGroup: /system.slice/bluetooth.service
└─2026 /usr/lib/bluetooth/bluetoothd -C --noplugin=sap
Apr 08 21:55:48 raspberrypi bluetoothd[2026]: Starting SDP server
Apr 08 21:55:48 raspberrypi bluetoothd[2026]: Excluding (cli) sap
Apr 08 21:55:48 raspberrypi bluetoothd[2026]: Bluetooth management interface 1.14 initialized
Apr 08 21:55:48 raspberrypi bluetoothd[2026]: Endpoint registered: sender=:1.8 path=/MediaEndpoint/A2DPSource
Apr 08 21:55:48 raspberrypi bluetoothd[2026]: Endpoint registered: sender=:1.8 path=/MediaEndpoint/A2DPSink
Apr 08 21:55:48 raspberrypi sdptool[2027]: Serial Port service registered
Apr 08 21:55:48 raspberrypi systemd[1]: Started Bluetooth service.
Apr 08 21:55:48 raspberrypi bluetoothd[2026]: Endpoint registered: sender=:1.417 path=/org/bluez/hci0/A2DP/SBC/Source/1
Apr 08 21:55:48 raspberrypi bluetoothd[2026]: Endpoint registered: sender=:1.417 path=/org/bluez/hci0/A2DP/SBC/Source/2
Apr 08 21:55:48 raspberrypi bluetoothd[2026]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
Подробнее здесь: https://stackoverflow.com/questions/611 ... ror-failed
Raspberry Pi 4 — проблема с Bluetooth (org.bluez.Error.Failed) [закрыто] ⇐ Android
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Bluetooth Bluez Agent, работающий нормально в Python, но не используя Dotnet и TMDS.DBUS
Anonymous » » в форуме C# - 0 Ответы
- 8 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Bluetooth Bluez Agent, работающий нормально в Python, но не используя Dotnet и TMDS.DBUS
Anonymous » » в форуме C# - 0 Ответы
- 22 Просмотры
-
Последнее сообщение Anonymous
-
-
-
## React Native Document Ficker Error Error Error: `GuardEdresultAsynctask` не найдена
Anonymous » » в форуме Android - 0 Ответы
- 16 Просмотры
-
Последнее сообщение Anonymous
-
-
-
## React Native Document Ficker Error Error Error: `GuardEdresultAsynctask` не найдена
Anonymous » » в форуме Android - 0 Ответы
- 15 Просмотры
-
Последнее сообщение Anonymous
-
-
-
## React Native Document Ficker Error Error Error: `GuardEdresultAsynctask` не найдена
Anonymous » » в форуме Android - 0 Ответы
- 17 Просмотры
-
Последнее сообщение Anonymous
-