You are not logged in.

#1 2021-03-25 06:36:45

Lord Bo
Member
Registered: 2012-11-11
Posts: 168

Bluetooth Authentication and Headphones

I'm trying to connect the bluetooth-Headphones of a friend with his Laptop, but it doesn't work and I guess this is because of 'Secure Simple Pairing'. I was able to connect a phone and had to input an authenticication code on that phone, but that of course is not possible with the phones.

I tried

btmgmt ssp off

before connecting, but that didn't have any effect. I also tried

btmgmt ssp on

- no effect.

This is the output of bluetoothctl (I removed output related to other devices):

Agent registered
[bluetooth]# scan on
Discovery started
[CHG] Controller F8:16:54:F0:F4:1E Discovering: yes
[NEW] Device 84:C0:EF:18:F0:61 [TV] Samsung 5 Series (43)
[NEW] Device 56:3B:A0:66:1D:90 LE-KH QC35
[bluetooth]# connect 56:3B:A0:66:1D:90
Attempting to connect to 56:3B:A0:66:1D:90
[CHG] Device 56:3B:A0:66:1D:90 Connected: yes
Connection successful
[NEW] Primary Service (Handle 0xc96e)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service0001
	0000febe-0000-1000-8000-00805f9b34fb
	Bose Corporation
[NEW] Characteristic (Handle 0x189e)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service0001/char0002
	9ec813b4-256b-4090-93a8-a4f0e9107733
	Vendor specific
[NEW] Descriptor (Handle 0x3580)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service0001/char0002/desc0004
	00002902-0000-1000-8000-00805f9b34fb
	Client Characteristic Configuration
[NEW] Characteristic (Handle 0x189e)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service0001/char0005
	d417c028-9818-4354-99d1-2ac09d074591
	Vendor specific
[NEW] Descriptor (Handle 0x3d40)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service0001/char0005/desc0007
	00002902-0000-1000-8000-00805f9b34fb
	Client Characteristic Configuration
[NEW] Characteristic (Handle 0x189e)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service0001/char0008
	c65b8f2f-aee2-4c89-b758-bc4892d6f2d8
	Vendor specific
[NEW] Descriptor (Handle 0x3480)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service0001/char0008/desc000a
	00002902-0000-1000-8000-00805f9b34fb
	Client Characteristic Configuration
[NEW] Characteristic (Handle 0x189e)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service0001/char000b
	234bfbd5-e3b3-4536-a3fe-723620d4b78d
	Vendor specific
[NEW] Primary Service (Handle 0xc96e)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service000d
	00001801-0000-1000-8000-00805f9b34fb
	Generic Attribute Profile
[NEW] Characteristic (Handle 0x189e)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service000d/char000e
	00002a05-0000-1000-8000-00805f9b34fb
	Service Changed
[NEW] Descriptor (Handle 0x0e00)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service000d/char000e/desc0010
	00002902-0000-1000-8000-00805f9b34fb
	Client Characteristic Configuration
[NEW] Primary Service (Handle 0xc96e)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service0016
	0000180a-0000-1000-8000-00805f9b34fb
	Device Information
[NEW] Characteristic (Handle 0x189e)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service0016/char0017
	00002a29-0000-1000-8000-00805f9b34fb
	Manufacturer Name String
[NEW] Characteristic (Handle 0x189e)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service0016/char0019
	00002a24-0000-1000-8000-00805f9b34fb
	Model Number String
[NEW] Characteristic (Handle 0x189e)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service0016/char001b
	00002a25-0000-1000-8000-00805f9b34fb
	Serial Number String
[NEW] Characteristic (Handle 0x189e)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service0016/char001d
	00002a27-0000-1000-8000-00805f9b34fb
	Hardware Revision String
[NEW] Characteristic (Handle 0x189e)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service0016/char001f
	00002a26-0000-1000-8000-00805f9b34fb
	Firmware Revision String
[NEW] Characteristic (Handle 0x189e)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service0016/char0021
	00002a28-0000-1000-8000-00805f9b34fb
	Software Revision String
[NEW] Characteristic (Handle 0x189e)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service0016/char0023
	00002a23-0000-1000-8000-00805f9b34fb
	System ID
[NEW] Characteristic (Handle 0x189e)
	/org/bluez/hci0/dev_56_3B_A0_66_1D_90/service0016/char0025
	00002a50-0000-1000-8000-00805f9b34fb
	PnP ID
[CHG] Device 56:3B:A0:66:1D:90 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device 56:3B:A0:66:1D:90 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device 56:3B:A0:66:1D:90 UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
[CHG] Device 56:3B:A0:66:1D:90 UUIDs: 0000febe-0000-1000-8000-00805f9b34fb
[CHG] Device 56:3B:A0:66:1D:90 ServicesResolved: yes
[CHG] Device 56:3B:A0:66:1D:90 Modalias: bluetooth:v009Ep400Cd0303
[LE-KH QC35]# trust 56:3B:A0:66:1D:90 
[CHG] Device 56:3B:A0:66:1D:90 Trusted: yes
Changing 56:3B:A0:66:1D:90 trust succeeded
[LE-KH QC35]# pair 56:3B:A0:66:1D:90 
Attempting to pair with 56:3B:A0:66:1D:90
Failed to pair: org.bluez.Error.AuthenticationFailed
[CHG] Device 56:3B:A0:66:1D:90 ServicesResolved: no
[CHG] Device 56:3B:A0:66:1D:90 Connected: no    
[CHG] Device 56:3B:A0:66:1D:90 ManufacturerData Key: 0x0101
[CHG] Device 56:3B:A0:66:1D:90 ManufacturerData Value:
  51 12 9b a9 1c a0 59 f0 f9 fd                    Q.....Y...      

sudo journalctl -b | grep hci0

Mär 25 06:41:12 wiese kernel: Bluetooth: hci0: read Intel version: 370710018002030d00
Mär 25 06:41:12 wiese kernel: Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
Mär 25 06:41:12 wiese kernel: Bluetooth: hci0: unexpected event for opcode 0xfc2f
Mär 25 06:41:12 wiese kernel: Bluetooth: hci0: Intel BT fw patch 0x57 completed & activated
Mär 25 06:41:49 wiese kernel: Bluetooth: hci0: read Intel version: 370710018002030d00
Mär 25 06:41:49 wiese kernel: Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
Mär 25 06:41:49 wiese kernel: Bluetooth: hci0: unexpected event for opcode 0xfc2f
Mär 25 06:41:49 wiese kernel: Bluetooth: hci0: Intel BT fw patch 0x57 completed & activated

When trying to pair with that device:
journalctl -f

Mär 25 06:47:39 wiese bluetoothd[357]: src/device.c:load_gatt_db() No cache for 56:3B:A0:66:1D:90

btmgmt info

Index list with 1 item
hci0:	Primary controller
	addr F8:16:54:F0:F4:1E version 6 manufacturer 2 class 0x3c010c
	supported settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le advertising secure-conn debug-keys privacy configuration static-addr phy-configuration 
	current settings: powered bondable ssp br/edr le secure-conn 
	name wiese
	short name 
hci0:	Configuration options
	supported options: public-address 
	missing options: 

I have a second Laptop, which is, i think, identically constructed, but with that one connecting to the headphones works.

Does anyone know a way how to solve this? Can I remove SSP by default? (I didn't see any config options to do that in '/etc/bluetooth/main.conf'.)

Last edited by Lord Bo (2021-03-25 06:38:28)

Offline

#2 2021-03-28 18:44:06

nick_0189
Member
Registered: 2020-12-21
Posts: 45

Re: Bluetooth Authentication and Headphones

Hi,

What is the output of

systemctl status bluetooth.service

after attempting to pair the headphones again being sure to follow the wiki, https://wiki.archlinux.org/index.php/Bluetooth#Pairing, closely as you appear to have done in your first post? I had a similar issue once and I recall that the errors shown from systemctl pointed me in the right direction.

Offline

Board footer

Powered by FluxBB