You are not logged in.
Hi All,
I am having trouble connecting to a bluetooth->serial adapter (HC05) even though I can see the device and pair with it.
info says:
info 20:15:07:01:97:64
Device 20:15:07:01:97:64
Name: HC-05
Alias: HC-05
Class: 0x001f00
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: yes
UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb).. and when I try to connect:
[bluetooth]# connect 20:15:07:01:97:64
Attempting to connect to 20:15:07:01:97:64
[CHG] Device 20:15:07:01:97:64 Connected: yes
Failed to connect: org.bluez.Error.NotAvailable
[CHG] Device 20:15:07:01:97:64 Connected: noI have made sure I am part of the "lp" group.
Any idea's welcome. Thanks.
journlctl shows this error on restarting the bluetooth service ..
Jul 30 15:18:13 sony_vaio systemd[1]: Starting Bluetooth service...
Jul 30 15:18:13 sony_vaio bluetoothd[5121]: Bluetooth daemon 5.32
Jul 30 15:18:13 sony_vaio systemd[1]: Started Bluetooth service.
Jul 30 15:18:13 sony_vaio bluetoothd[5121]: Starting SDP server
Jul 30 15:18:13 sony_vaio sudo[5114]: pam_unix(sudo:session): session closed for user root
Jul 30 15:18:13 sony_vaio bluetoothd[5121]: Bluetooth management interface 1.9 initialized
Jul 30 15:18:13 sony_vaio dbus[313]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
Jul 30 15:18:13 sony_vaio bluetoothd[5121]: Failed to obtain handles for "Service Changed" characteristic
Jul 30 15:18:13 sony_vaio bluetoothd[5121]: Not enough free handles to register service
Jul 30 15:18:13 sony_vaio bluetoothd[5121]: Error adding Link Loss service
Jul 30 15:18:13 sony_vaio bluetoothd[5121]: Not enough free handles to register service
Jul 30 15:18:13 sony_vaio bluetoothd[5121]: Not enough free handles to register service
Jul 30 15:18:13 sony_vaio bluetoothd[5121]: Not enough free handles to register service
Jul 30 15:18:13 sony_vaio bluetoothd[5121]: Current Time Service could not be registered
Jul 30 15:18:13 sony_vaio bluetoothd[5121]: gatt-time-server: Input/output error (5)
Jul 30 15:18:13 sony_vaio bluetoothd[5121]: Not enough free handles to register service
Jul 30 15:18:13 sony_vaio bluetoothd[5121]: Not enough free handles to register service
Jul 30 15:18:13 sony_vaio bluetoothd[5121]: Sap driver initialization failed.
Jul 30 15:18:13 sony_vaio bluetoothd[5121]: sap-server: Operation not permitted (1)Last edited by bmentink (2015-07-30 03:17:53)
Offline
Did you power up the host's carrier?
ewaller@turing ~ 1108 %bluetoothctl
[NEW] Controller 34:E6:AD:17:FE:57 turing [default]
[NEW] Device B4:CE:F6:2D:E6:34 Eric's HTC One_M8
[NEW] Device 74:29:AF:E8:7C:0A DEN
[NEW] Device 6C:5A:B5:A8:71:04 SONY:SRS-X3
[bluetooth]# connect 6C:5A:B5:A8:71:04
Attempting to connect to 6C:5A:B5:A8:71:04
Failed to connect: org.bluez.Error.NotReady
[bluetooth]# power on
[CHG] Controller 34:E6:AD:17:FE:57 Class: 0x0c010c
Changing power on succeeded
[CHG] Controller 34:E6:AD:17:FE:57 Powered: yes
[bluetooth]# connect 6C:5A:B5:A8:71:04
Attempting to connect to 6C:5A:B5:A8:71:04
[CHG] Device 6C:5A:B5:A8:71:04 Connected: yes
Connection successful
[SONY:SRS-X3]# Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Yes, it says : Failed to connect: org.bluez.Error.NotReady if you don't power on, my message is different.
Failed to connect: org.bluez.Error.NotAvailableLast edited by bmentink (2015-07-30 04:13:19)
Offline
You're right. Can you connect to other (non-serial) classes of Bluetooth devices?
Did the rfcomm kernel module load?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
You're right. Can you connect to other (non-serial) classes of Bluetooth devices?
Did the rfcomm kernel module load?
I tried connecting to my TV:
connect 90:A4:DE:F3:21:25
Attempting to connect to 90:A4:DE:F3:21:25
[CHG] Device 90:A4:DE:F3:21:25 Connected: yes
[CHG] Device 90:A4:DE:F3:21:25 Modalias: bluetooth:v000Fp0000d0000
[CHG] Device 90:A4:DE:F3:21:25 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
Failed to connect: org.bluez.Error.NotAvailable
[Panasonic Viera]# It seems to have connected even though it says not. (I am guessing the prompt reflects connection?)
However, If I pair with the device and then connect, I get the same as the oroginal error ..
Yes the rfcomm module is loaded.
Offline
I tried also with my phone, the pairing was ok, but connection fails with another error:
connect 98:0D:2E:B3:BE:E1
Attempting to connect to 98:0D:2E:B3:BE:E1
Failed to connect: org.bluez.Error.FailedOffline
Why is bluetooth always this hard, it's things like this that put windoze users off linux ... and I can't blame them.
Offline
Failed to connect: org.bluez.Error.FailedI had that error as well. I have no idea why, but installing pulseaudio-bluetooth solved the problem.
Last edited by Chazza (2015-07-31 14:56:38)
Offline
Thank's but did not help with the bluetooth serial ..
Offline