[Bluetooth] imx8mqevk have a connect issue in 5.10.35

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[Bluetooth] imx8mqevk have a connect issue in 5.10.35

Jump to solution
2,102 Views
sungwon-kim
Contributor II

Hello NXP Community

I have some issues using Bluetooth joystick (v4.0) with imx8mqevk in kernel 5.10.35.

I pair my joystick with USB dongles (CSR4.0, RTL8822CU).

I attach this thread  hcidump log too pair with myjoystick

Does anyone have this issue in kernel 5.10.35 (also kernel 5.4 fine)

 

root@imx8mqevk:~# lsusb

Bus 001 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

 

[bluetooth]# show
Controller 00:1A:7D:DA:71:03 (public)
Name: imx8mqevk
Alias: imx8mqevk
Class: 0x00200000
Powered: yes
Discoverable: no
DiscoverableTimeout: 0x000000b4
Pairable: yes
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0538
Discovering: no
Roles: central
Roles: peripheral
Advertising Features:
ActiveInstances: 0x00 (0)
SupportedInstances: 0x05 (5)
SupportedIncludes: tx-power
SupportedIncludes: appearance
SupportedIncludes: local-name

 

$bluetoothctl

[bluetooth]# scan on

[bluetooth]# scan off

[bluetooth]# device

Device 20:20:10:13:2B:0C SM-031N

[bluetooth]# pair 20:20:10:13:2B:0C

[bluetooth]# connect 20:20:10:13:2B:0C

 

hcidump log : try pair devices

< HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 20:20:10:13:2B:0C ptype 0xcc18 rswitch 0x01 clkoffset 0x0000
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Command Status (0x0f) plen 4
Create Connection (0x01|0x0005) status 0x00 ncmd 1
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1
enable 2
> HCI Event: Command Complete (0x0e) plen 4
Write Scan Enable (0x03|0x001a) ncmd 1
status 0x00
> HCI Event: Connect Complete (0x03) plen 11
status 0x00 handle 74 bdaddr 20:20:10:13:2B:0C type ACL encrypt 0x00
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
handle 74
> HCI Event: Command Status (0x0f) plen 4
Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 0
> HCI Event: Max Slots Change (0x1b) plen 3
handle 74 slots 5
> HCI Event: Command Status (0x0f) plen 4
Unknown (0x00|0x0000) status 0x00 ncmd 1
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1
enable 0
> HCI Event: Command Complete (0x0e) plen 4
Write Scan Enable (0x03|0x001a) ncmd 1
status 0x00
> HCI Event: Read Remote Supported Features (0x0b) plen 11
status 0x00 handle 74
Features: 0xbf 0x07 0x88 0x78 0x18 0x1c 0x79 0x83
< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3
handle 74 page 1
> HCI Event: Command Status (0x0f) plen 4
Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
> HCI Event: Read Remote Extended Features (0x23) plen 13
status 0x00 handle 74 page 1 max 1
Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
bdaddr 20:20:10:13:2B:0C mode 2 clkoffset 0x0000
> HCI Event: Command Status (0x0f) plen 4
Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
> HCI Event: Remote Name Req Complete (0x07) plen 255
status 0x00 bdaddr 20:20:10:13:2B:0C name 'SM-031N'
< HCI Command: Authentication Requested (0x01|0x0011) plen 2
handle 74
> HCI Event: Command Status (0x0f) plen 4
Authentication Requested (0x01|0x0011) status 0x00 ncmd 1
> HCI Event: Link Key Request (0x17) plen 6
bdaddr 20:20:10:13:2B:0C
< HCI Command: Link Key Request Negative Reply (0x01|0x000c) plen 6
bdaddr 20:20:10:13:2B:0C
> HCI Event: Command Complete (0x0e) plen 10
Link Key Request Negative Reply (0x01|0x000c) ncmd 1
status 0x00 bdaddr 20:20:10:13:2B:0C
> HCI Event: IO Capability Request (0x31) plen 6
bdaddr 20:20:10:13:2B:0C
< HCI Command: IO Capability Request Reply (0x01|0x002b) plen 9
bdaddr 20:20:10:13:2B:0C capability 0x01 oob 0x00 auth 0x03
Capability: DisplayYesNo (OOB data not present)
Authentication: Dedicated Bonding (MITM Protection)
> HCI Event: Command Complete (0x0e) plen 10
IO Capability Request Reply (0x01|0x002b) ncmd 1
status 0x00 bdaddr 20:20:10:13:2B:0C
> HCI Event: IO Capability Response (0x32) plen 9
bdaddr 20:20:10:13:2B:0C capability 0x03 oob 0x00 auth 0x04
Capability: NoInputNoOutput (OOB data not present)
Authentication: General Bonding (No MITM Protection)
> HCI Event: User Confirmation Request (0x33) plen 10
bdaddr 20:20:10:13:2B:0C passkey 471304
< HCI Command: User Confirmation Request Reply (0x01|0x002c) plen 6
bdaddr 20:20:10:13:2B:0C
> HCI Event: Command Complete (0x0e) plen 10
User Confirmation Request Reply (0x01|0x002c) ncmd 1
status 0x00 bdaddr 20:20:10:13:2B:0C
> HCI Event: Simple Pairing Complete (0x36) plen 7
status 0x00 bdaddr 20:20:10:13:2B:0C
> HCI Event: Link Key Notification (0x18) plen 23
bdaddr 20:20:10:13:2B:0C key 925034563715C14F0E34A465FDB4478F type 4
Type: Unauthenticated Combination Key
> HCI Event: Auth Complete (0x06) plen 3
status 0x00 handle 74
< HCI Command: Set Connection Encryption (0x01|0x0013) plen 3
handle 74 encrypt 0x01
> HCI Event: Command Status (0x0f) plen 4
Set Connection Encryption (0x01|0x0013) status 0x00 ncmd 1
> HCI Event: Encrypt Change (0x08) plen 4
status 0x00 handle 74 encrypt 0x01
< HCI Command: Read Encryption Key Size (0x05|0x0008) plen 2
> HCI Event: Command Complete (0x0e) plen 7
Read Encryption Key Size (0x05|0x0008) ncmd 1
< ACL data: handle 74 flags 0x00 dlen 10
L2CAP(s): Info req: type 2
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 74 packets 1
> ACL data: handle 74 flags 0x02 dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x0000
< ACL data: handle 74 flags 0x00 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 74 packets 1
> ACL data: handle 74 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0040 result 0 status 0
Connection successful
< ACL data: handle 74 flags 0x00 dlen 12
L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 0
> ACL data: handle 74 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 128
< ACL data: handle 74 flags 0x00 dlen 18
L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 4
MTU 128
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 74 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 74 packets 1
> ACL data: handle 74 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
< ACL data: handle 74 flags 0x00 dlen 24
L2CAP(d): cid 0x0041 len 20 [psm 1]
SDP SSA Req: tid 0x0 len 0xf
pat uuid-16 0x0100 (L2CAP)
max 65535
aid(s) 0x0000 - 0xffff
cont 00
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 74 packets 1
> ACL data: handle 74 flags 0x02 dlen 110
L2CAP(d): cid 0x0040 len 106 [psm 1]
SDP SSA Rsp: tid 0x0 len 0x65
count 96
cont 02 00 60
< ACL data: handle 74 flags 0x00 dlen 26
L2CAP(d): cid 0x0041 len 22 [psm 1]
SDP SSA Req: tid 0x1 len 0x11
pat uuid-16 0x0100 (L2CAP)
max 65535
aid(s) 0x0000 - 0xffff
cont 02 00 60
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 74 packets 1
> ACL data: handle 74 flags 0x02 dlen 110
L2CAP(d): cid 0x0040 len 106 [psm 1]
SDP SSA Rsp: tid 0x1 len 0x65
count 96
cont 02 00 C0
< ACL data: handle 74 flags 0x00 dlen 26
L2CAP(d): cid 0x0041 len 22 [psm 1]
SDP SSA Req: tid 0x2 len 0x11
pat uuid-16 0x0100 (L2CAP)
max 65535
aid(s) 0x0000 - 0xffff
cont 02 00 C0
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 74 packets 1
> ACL data: handle 74 flags 0x02 dlen 110
L2CAP(d): cid 0x0040 len 106 [psm 1]
SDP SSA Rsp: tid 0x2 len 0x65
count 96
cont 02 01 20
< ACL data: handle 74 flags 0x00 dlen 26
L2CAP(d): cid 0x0041 len 22 [psm 1]
SDP SSA Req: tid 0x3 len 0x11
pat uuid-16 0x0100 (L2CAP)
max 65535
aid(s) 0x0000 - 0xffff
cont 02 01 20
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 74 packets 1
> ACL data: handle 74 flags 0x02 dlen 110
L2CAP(d): cid 0x0040 len 106 [psm 1]
SDP SSA Rsp: tid 0x3 len 0x65
count 96
cont 02 01 80
< ACL data: handle 74 flags 0x00 dlen 26
L2CAP(d): cid 0x0041 len 22 [psm 1]
SDP SSA Req: tid 0x4 len 0x11
pat uuid-16 0x0100 (L2CAP)
max 65535
aid(s) 0x0000 - 0xffff
cont 02 01 80
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 74 packets 1
> ACL data: handle 74 flags 0x02 dlen 110
L2CAP(d): cid 0x0040 len 106 [psm 1]
SDP SSA Rsp: tid 0x4 len 0x65
count 96
cont 02 01 E0
< ACL data: handle 74 flags 0x00 dlen 26
L2CAP(d): cid 0x0041 len 22 [psm 1]
SDP SSA Req: tid 0x5 len 0x11
pat uuid-16 0x0100 (L2CAP)
max 65535
aid(s) 0x0000 - 0xffff
cont 02 01 E0
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 74 packets 1
> ACL data: handle 74 flags 0x02 dlen 105
L2CAP(d): cid 0x0040 len 101 [psm 1]
SDP SSA Rsp: tid 0x5 len 0x60
count 93
record #0
aid 0x0000 (SrvRecHndl)
uint 0x10002
aid 0x0001 (SrvClassIDList)
< uuid-16 0x1124 (HID) >
aid 0x0004 (ProtocolDescList)
< < uuid-16 0x0100 (L2CAP) uint 0x11 > <
uuid-16 0x0011 (HIDP) > >
aid 0x0005 (BrwGrpList)
< uuid-16 0x1002 (PubBrwsGrp) >
aid 0x0006 (LangBaseAttrIDList)
< uint 0x656e uint 0x6a uint 0x100 >
aid 0x0009 (BTProfileDescList)
< < uuid-16 0x1124 (HID) uint 0x100 > >
aid 0x000d (AdditionalProtocolDescLists)
< < < uuid-16 0x0100 (L2CAP) uint 0x13 > < uuid-16 0x0011 (HIDP) > > >
aid 0x0100 (SrvName)
str "Keyboard"
aid 0x0101 (SrvDesc)
str "Bluetooth KB"
aid 0x0102 (ProviderName)
str "BEKEN"
aid 0x0200 (VersionNumList)
uint 0x100
aid 0x0201 (SrvDBState)
uint 0x111
aid 0x0202 (unknown)
uint 0x4
aid 0x0203 (unknown)
uint 0x21
aid 0x0204 (unknown)
bool 0x1
aid 0x0205 (unknown)
bool 0x1
aid 0x0206 (unknown)
< < uint 0x22 str 05 01 09 02 a1 01 85 02 09 01 a1 00 05 09 19 01 29 05 15 00 25 01 95 05 75 01 81 02 95 01 75 03 81 01 05 01 09 30 09 31 09 38 15 81 25 7f 75 08 95 03 81 06 c0 c0 05 01 09 06 a1 01 85 01 05 07 15 00 26 ff 00 75 08 95 06 19 00 29 ff 81 00 c0 05 0c 09 01 a1 01 85 03 15 00 26 80 03 19 00 2a 80 03 75 10 95 01 81 00 c0 05 01 09 05 a1 01 85 04 05 01 26 ff 00 46 ff 00 09 30 09 31 09 32 09 35 75 08 95 04 81 02 05 01 25 07 46 3b 01 75 04 95 01 65 14 09 39 81 42 15 00 25 01 35 00 45 01 75 01 95 04 05 09 09 01 09 02 09 04 09 05 81 02 15 00 25 01 35 00 45 01 75 01 95 08 05 09 09 07 09 08 09 0b 09 0c 09 0e 09 0f 09 09 09 0a 81 02 05 02 15 00 26 ff 00 09 c4 09 c5 75 08 95 02 81 02 c0 > >
aid 0x0207 (unknown)
< < uint 0x409 uint 0x100 > >
aid 0x0208 (unknown)
bool 0x0
aid 0x0209 (unknown)
bool 0x1
aid 0x020a (unknown)
bool 0x0
aid 0x020b (unknown)
uint 0x100
aid 0x020c (unknown)
uint 0x1f40
aid 0x020d (unknown)
bool 0x1
aid 0x020e (unknown)
bool 0x0
aid 0x020f (unknown)
uint 0x640
aid 0x0210 (unknown)
uint 0x320
record #1
aid 0x0000 (SrvRecHndl)
uint 0x10003
aid 0x0001 (SrvClassIDList)
< uuid-16 0x1200 (PNPInfo) >
aid 0x0004 (ProtocolDescList)
< < uuid-16 0x0100 (L2CAP) uint 0x1 > <
uuid-16 0x0001 (SDP) > >
aid 0x0005 (BrwGrpList)
< uuid-16 0x1002 (PubBrwsGrp) >
aid 0x0006 (LangBaseAttrIDList)
< uint 0x656e uint 0x6a uint 0x100 >
aid 0x0009 (BTProfileDescList)
< < uuid-16 0x1200 (PNPInfo) uint 0x100 > >
aid 0x0200 (VersionNumList)
uint 0x100
aid 0x0201 (SrvDBState)
uint 0x5ac
aid 0x0202 (unknown)
uint 0x3232
aid 0x0203 (unknown)
uint 0x1
aid 0x0204 (unknown)
bool 0x1
aid 0x0205 (unknown)
uint 0x2
cont 00
< ACL data: handle 74 flags 0x00 dlen 24
L2CAP(d): cid 0x0041 len 20 [psm 1]
SDP SSA Req: tid 0x6 len 0xf
pat uuid-16 0x1200 (PNPInfo)
max 65535
aid(s) 0x0000 - 0xffff
cont 00
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 74 packets 1
> ACL data: handle 74 flags 0x02 dlen 110
L2CAP(d): cid 0x0040 len 106 [psm 1]
SDP SSA Rsp: tid 0x6 len 0x65
count 96
cont 02 00 60
< ACL data: handle 74 flags 0x00 dlen 26
L2CAP(d): cid 0x0041 len 22 [psm 1]
SDP SSA Req: tid 0x7 len 0x11
pat uuid-16 0x1200 (PNPInfo)
max 65535
aid(s) 0x0000 - 0xffff
cont 02 00 60
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 74 packets 1
> ACL data: handle 74 flags 0x02 dlen 26
L2CAP(d): cid 0x0040 len 22 [psm 1]
SDP SSA Rsp: tid 0x7 len 0x11
count 14
record #0
aid 0x0000 (SrvRecHndl)
uint 0x10003
aid 0x0001 (SrvClassIDList)
< uuid-16 0x1200 (PNPInfo) >
aid 0x0004 (ProtocolDescList)
< < uuid-16 0x0100 (L2CAP) uint 0x1 > <
uuid-16 0x0001 (SDP) > >
aid 0x0005 (BrwGrpList)
< uuid-16 0x1002 (PubBrwsGrp) >
aid 0x0006 (LangBaseAttrIDList)
< uint 0x656e uint 0x6a uint 0x100 >
aid 0x0009 (BTProfileDescList)
< < uuid-16 0x1200 (PNPInfo) uint 0x100 > >
aid 0x0200 (VersionNumList)
uint 0x100
aid 0x0201 (SrvDBState)
uint 0x5ac
aid 0x0202 (unknown)
uint 0x3232
aid 0x0203 (unknown)
uint 0x1
aid 0x0204 (unknown)
bool 0x1
aid 0x0205 (unknown)
uint 0x2
cont 00
< ACL data: handle 74 flags 0x00 dlen 12
L2CAP(s): Disconn req: dcid 0x0041 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 74 packets 1
> ACL data: handle 74 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0041 scid 0x0040
< HCI Command: Disconnect (0x01|0x0006) plen 3
handle 74 reason 0x13
Reason: Remote User Terminated Connection
> HCI Event: Command Status (0x0f) plen 4
Disconnect (0x01|0x0006) status 0x00 ncmd 1
> HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 74 reason 0x16
Reason: Connection Terminated by Local Host
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1
enable 2
> HCI Event: Command Complete (0x0e) plen 4
Write Scan Enable (0x03|0x001a) ncmd 1
status 0x00

 

hcidump : try connect 

< HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 20:20:10:13:2B:0C ptype 0xcc18 rswitch 0x01 clkoffset 0x0000
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Command Status (0x0f) plen 4
Create Connection (0x01|0x0005) status 0x00 ncmd 1
> HCI Event: Connect Complete (0x03) plen 11
status 0x00 handle 74 bdaddr 20:20:10:13:2B:0C type ACL encrypt 0x00
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
handle 74
> HCI Event: Command Status (0x0f) plen 4
Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 0
> HCI Event: Max Slots Change (0x1b) plen 3
handle 74 slots 5
> HCI Event: Command Status (0x0f) plen 4
Unknown (0x00|0x0000) status 0x00 ncmd 1
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1
enable 0
> HCI Event: Command Complete (0x0e) plen 4
Write Scan Enable (0x03|0x001a) ncmd 1
status 0x00
> HCI Event: Read Remote Supported Features (0x0b) plen 11
status 0x00 handle 74
Features: 0xbf 0x07 0x88 0x78 0x18 0x1c 0x79 0x83
< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3
handle 74 page 1
> HCI Event: Command Status (0x0f) plen 4
Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
> HCI Event: Read Remote Extended Features (0x23) plen 13
status 0x00 handle 74 page 1 max 1
Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
bdaddr 20:20:10:13:2B:0C mode 2 clkoffset 0x0000
> HCI Event: Command Status (0x0f) plen 4
Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
> HCI Event: Remote Name Req Complete (0x07) plen 255
status 0x00 bdaddr 20:20:10:13:2B:0C name 'SM-031N'
< HCI Command: Authentication Requested (0x01|0x0011) plen 2
handle 74
> HCI Event: Command Status (0x0f) plen 4
Authentication Requested (0x01|0x0011) status 0x00 ncmd 1
> HCI Event: Link Key Request (0x17) plen 6
bdaddr 20:20:10:13:2B:0C
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
bdaddr 20:20:10:13:2B:0C key 925034563715C14F0E34A465FDB4478F
> HCI Event: Command Complete (0x0e) plen 10
Link Key Request Reply (0x01|0x000b) ncmd 1
status 0x00 bdaddr 20:20:10:13:2B:0C
> HCI Event: Auth Complete (0x06) plen 3
status 0x05 handle 74
Error: Authentication Failure
< HCI Command: Disconnect (0x01|0x0006) plen 3
handle 74 reason 0x13
Reason: Remote User Terminated Connection
> HCI Event: Command Status (0x0f) plen 4
Disconnect (0x01|0x0006) status 0x00 ncmd 1
> HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 74 reason 0x16
Reason: Connection Terminated by Local Host
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1
enable 2
> HCI Event: Command Complete (0x0e) plen 4
Write Scan Enable (0x03|0x001a) ncmd 1
status 0x00

Tags (2)
0 Kudos
Reply
1 Solution
2,087 Views
sungwon-kim
Contributor II

Hello I Got some solution(?) of my Issue 

 

First of all below my BT dongle and BT device to connect.

 

BT dongle : CSR 4.0

[bluetooth]# show
Controller 00:1A:7D:DA:71:03 (public)
Name: imx8mqevk
Alias: imx8mqevk
Class: 0x002c0000
Powered: yes
Discoverable: no
DiscoverableTimeout: 0x000000b4
Pairable: yes
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: Headset AG (00001112-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0538
Discovering: no
Roles: central
Roles: peripheral
Advertising Features:
ActiveInstances: 0x00 (0)
SupportedInstances: 0x05 (5)
SupportedIncludes: tx-power
SupportedIncludes: appearance
SupportedIncludes: local-name

 

Device : SM-031N (BT4.0)

[SM-031N]# info 20:20:10:13:2B:0C
Device 20:20:10:13:2B:0C (public)
Name: SM-031N
Alias: SM-031N
Class: 0x00000540
Icon: input-keyboard
Paired: yes
Trusted: no
Blocked: no
Connected: yes
WakeAllowed: yes
LegacyPairing: no
UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
Modalias: usb:v05ACp3232d0001

 

I try typing commands to bind my device with bluetoothctl.

[bluetooth]# power on

[bluetooth]# scan on

[bluetooth]# scan off 

[bluetooth]# devices                    <-       I can get the device's mac here

[bluetooth]# connect  20:20:10:13:2B:0C

[bluetooth]# trust 20:20:10:13:2B:0C

 

If bind device without pair. This file generates by Bluez5.56.

The below file doesn't have a KEY value to check the connection.

path : /var/lib/bluetooth/00:1A:7D:DA:71:03/20:20:10:13:2B:0C/info

[General]
Name=SM-031N
Class=0x000540
SupportedTechnologies=BR/EDR;
Trusted=true
Blocked=false
WakeAllowed=true
Services=00001124-0000-1000-8000-00805f9b34fb;00001200-0000-1000-8000-00805f9b34fb;

[DeviceID]
Source=2
Vendor=1452
Product=12850
Version=1

 

But the connection with pair command in bluetoothctl.

File content little bit different.

 

[General]
Name=SM-031N
Class=0x000540
SupportedTechnologies=BR/EDR;
Trusted=true
Blocked=false
WakeAllowed=true
Services=00001124-0000-1000-8000-00805f9b34fb;00001200-0000-1000-8000-00805f9b34fb;

[DeviceID]
Source=2
Vendor=1452
Product=12850
Version=1

[LinkKey]
Key=37014763A6AC227A42DAFB566BB4BC87
Type=4

PINLength=0

 

That [LinkKey] section occurs Authentication Failure problem in my case.

 

* Reference link :

https://wiki.archlinux.org/title/bluetooth#Problems_with_all_BLE_devices_on_kernel_5.9+

 



 

 

 

 

 

View solution in original post

0 Kudos
Reply
1 Reply
2,088 Views
sungwon-kim
Contributor II

Hello I Got some solution(?) of my Issue 

 

First of all below my BT dongle and BT device to connect.

 

BT dongle : CSR 4.0

[bluetooth]# show
Controller 00:1A:7D:DA:71:03 (public)
Name: imx8mqevk
Alias: imx8mqevk
Class: 0x002c0000
Powered: yes
Discoverable: no
DiscoverableTimeout: 0x000000b4
Pairable: yes
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: Headset AG (00001112-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0538
Discovering: no
Roles: central
Roles: peripheral
Advertising Features:
ActiveInstances: 0x00 (0)
SupportedInstances: 0x05 (5)
SupportedIncludes: tx-power
SupportedIncludes: appearance
SupportedIncludes: local-name

 

Device : SM-031N (BT4.0)

[SM-031N]# info 20:20:10:13:2B:0C
Device 20:20:10:13:2B:0C (public)
Name: SM-031N
Alias: SM-031N
Class: 0x00000540
Icon: input-keyboard
Paired: yes
Trusted: no
Blocked: no
Connected: yes
WakeAllowed: yes
LegacyPairing: no
UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
Modalias: usb:v05ACp3232d0001

 

I try typing commands to bind my device with bluetoothctl.

[bluetooth]# power on

[bluetooth]# scan on

[bluetooth]# scan off 

[bluetooth]# devices                    <-       I can get the device's mac here

[bluetooth]# connect  20:20:10:13:2B:0C

[bluetooth]# trust 20:20:10:13:2B:0C

 

If bind device without pair. This file generates by Bluez5.56.

The below file doesn't have a KEY value to check the connection.

path : /var/lib/bluetooth/00:1A:7D:DA:71:03/20:20:10:13:2B:0C/info

[General]
Name=SM-031N
Class=0x000540
SupportedTechnologies=BR/EDR;
Trusted=true
Blocked=false
WakeAllowed=true
Services=00001124-0000-1000-8000-00805f9b34fb;00001200-0000-1000-8000-00805f9b34fb;

[DeviceID]
Source=2
Vendor=1452
Product=12850
Version=1

 

But the connection with pair command in bluetoothctl.

File content little bit different.

 

[General]
Name=SM-031N
Class=0x000540
SupportedTechnologies=BR/EDR;
Trusted=true
Blocked=false
WakeAllowed=true
Services=00001124-0000-1000-8000-00805f9b34fb;00001200-0000-1000-8000-00805f9b34fb;

[DeviceID]
Source=2
Vendor=1452
Product=12850
Version=1

[LinkKey]
Key=37014763A6AC227A42DAFB566BB4BC87
Type=4

PINLength=0

 

That [LinkKey] section occurs Authentication Failure problem in my case.

 

* Reference link :

https://wiki.archlinux.org/title/bluetooth#Problems_with_all_BLE_devices_on_kernel_5.9+

 



 

 

 

 

 

0 Kudos
Reply