You are not logged in.

#1 2020-06-10 17:22:15

AlphaShadows
Member
Registered: 2020-06-10
Posts: 3

(Bluetooth) Connect something with bluetooth is hard (USB Dongle)

Hey !
I have to do some annoying manipulation to connect something in bluetooth to my computer with a USB Dongle. No bluetooth device can connect to my computer, I can only do some manipulations to connect from my computer to the bluetooth device.

Context
I have a USB dongle Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode) for using bluetooth with my computer.
It did not work the first time, I have to apply a patch on the btusb module, each time the kernel updates (Cf. https://www.reddit.com/r/AnnePro/commen … on_linux/)

Current situation
A bluetooth device can not connect itself to my computer, I have to do it from my computer. That is annoying for bluetooth headset for example.
To connect a bluetooth device, I have to do this :

1. To do, one time, after the computer boot

$ sudo modprobe -r btusb && sudo modprobe btusb

2.

$ bluetoothctl
Agent registered
[CHG] Controller 00:1A:7D:DA:71:11 Pairable: yes
[bluetooth]# power on
[CHG] Controller 00:1A:7D:DA:71:11 Class: 0x006c010c
Changing power on succeeded
[CHG] Controller 00:1A:7D:DA:71:11 Powered: yes
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:1A:7D:DA:71:11 Discovering: yes

3. Wait for a device signal

[CHG] Device FC:58:FA:EF:96:3F RSSI: -34

4. Finally, connect my computer to my device

[bluetooth]# connect FC:58:FA:EF:96:3F
Attempting to connect to FC:58:FA:EF:96:3F
[CHG] Device FC:58:FA:EF:96:3F Connected: yes
Connection successful
[CHG] Device FC:58:FA:EF:96:3F ServicesResolved: yes

These steps are pretty long, so I would like to let bluetooth device connect succesfully from themself, without doing anything by myself on my computer each time I want to connect a device.

What happen if I connect from a bluetooth device to my computer
I will take the example of my bluetooth headset.
- When they are trying to connect to my computer, I hear "disconnected" in the headset without saying "connected" before
- In bluetoothctl, we can see this :

[CHG] Device FC:58:FA:EF:96:3F Connected: yes
[CHG] Device FC:58:FA:EF:96:3F Connected: no
[CHG] Device FC:58:FA:EF:96:3F Connected: yes
[CHG] Device FC:58:FA:EF:96:3F Connected: no

- When I do "sudo journalctl -r /usr/lib/bluetoothd" we can see :

bluetoothd[387]: Hands-Free Voice gateway replied with an error: org.freedesktop.DBus.Error.UnknownMethod, Method "NewConnection" with signature "oha{sv}" on interface "org.bluez.Profile1" doesn't exist

Final goal
I would like to allow my bluetooth headset to connect to my computer without doing anything in my computer. (Btw, the connection between my smartphone and my headset works perfectly, and the two devices connect in a couple of seconds)

Anyone has an idea to solve this problem ?
Thanks for reading, I hove that I give enough informations !

Last edited by AlphaShadows (2020-06-10 17:22:56)

Offline

Board footer

Powered by FluxBB