Connection Made then Dropped Right Away
Connection Made then Dropped Right Away
- Subject: Connection Made then Dropped Right Away
- From: Chip Wachob <email@hidden>
- Date: Wed, 11 Oct 2017 09:25:03 -0400
Hello,
New questions now that I've made some progress on the HID side of things...
I've been able to look at the Bluetooth traces on the HID side of my
connection and I keep coming across the following. I'm sure that this
message is more meaningful to those who wrote the Bluez stack, but I'm
not having any luck finding out what it really means and how to 'fix'
it. I'm hoping that someone on the list is able to give me a pointer as
to what this message is trying to tell me.
Result: Connection refused - security block (0x0003)
What I am observing is that I can try to connect to my HID device from
external sources (I've tried many different devices with the same
results). The connection will appear to be made, then within seconds
will be dropped. The external devices that I try to connect indicate
that they are 'paired' with the HID device after this.
My gut is telling me that it may have something to do with the
attributes or the pairing configuration on the HID side, but I don't
have a clue as to where to start looking.
I've tried turning SSP on and off, likewise with Auth and Encrypt. I
can't say that I've tried every possible combination of the three yet,
but adding each of them one at a time didn't seem to make any
difference. The same "Connection refused" message comes up.
Thank you in advance for your help, below is the btmon dump, I'm sorry
that it is so long. I've marked the entry in question with ~~~ below.
[The mailing list came back and told me that the message was too long,
so I'm removing part of the log file in hopes that it will pass the monitor]
Bluetooth monitor ver 5.37
= New Index: 5C:F3:70:77:62:B0 (BR/EDR,USB,hci0) [hci0] 0.536789
= Open Index: 5C:F3:70:77:62:B0 [hci0] 134.237134
<<< snip >>>
> ACL Data RX: Handle 11 flags 0x02 dlen 14 [hci0] 265.221184
L2CAP: Configure Response (0x05) ident 4 len 6
Source CID: 64
Flags: 0x0000
Result: Success (0x0000)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 265.224186
Num handles: 1
Handle: 11
Count: 2
> ACL Data RX: Handle 11 flags 0x02 dlen 17 [hci0] 265.225185
Channel: 64 len 13 [PSM 1 mode 0] {chan 0}
SDP: Service Search Request (0x02) tid 0 len 8
Search pattern: [len 5]
Sequence (6) with 3 bytes [8 extra bits] len 5
UUID (3) with 2 bytes [0 extra bits] len 3
Human Interface Device Service (0x1124)
Max record count: 21
Continuation state: 0
< ACL Data TX: Handle 11 flags 0x00 dlen 18 [hci0] 265.225349
Channel: 77 len 14 [PSM 1 mode 0] {chan 0}
SDP: Service Search Response (0x03) tid 0 len 9
Total record count: 1
Current record count: 1
Record handle: 0x10000
Continuation state: 0
> ACL Data RX: Handle 11 flags 0x02 dlen 23 [hci0] 265.231183
Channel: 64 len 19 [PSM 1 mode 0] {chan 0}
SDP: Service Attribute Request (0x04) tid 1 len 14
Record handle: 0x10000
Max attribute bytes: 656
Attribute list: [len 7]
Sequence (6) with 5 bytes [8 extra bits] len 7
Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
0x0000ffff
Continuation state: 0
< ACL Data TX: Handle 11 flags 0x00 dlen 359 [hci0] 265.231317
Channel: 77 len 355 [PSM 1 mode 0] {chan 0}
SDP: Service Attribute Response (0x05) tid 1 len 350
Attribute bytes: 347
Attribute list: [len 344] {position 0}
Attribute: Service Record Handle (0x0000) [len 2]
0x00010000
Attribute: Service Class ID List (0x0001) [len 2]
UUID (3) with 2 bytes [0 extra bits] len 3
Human Interface Device Service (0x1124)
Attribute: Protocol Descriptor List (0x0004) [len 2]
Sequence (6) with 6 bytes [8 extra bits] len 8
UUID (3) with 2 bytes [0 extra bits] len 3
L2CAP (0x0100)
Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
0x0011
Sequence (6) with 3 bytes [8 extra bits] len 5
UUID (3) with 2 bytes [0 extra bits] len 3
HIDP (0x0011)
Attribute: Browse Group List (0x0005) [len 2]
UUID (3) with 2 bytes [0 extra bits] len 3
Public Browse Root (0x1002)
Attribute: Language Base Attribute ID List (0x0006) [len 2]
Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
0x656e
Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
0x006a
Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
0x0100
Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
Sequence (6) with 6 bytes [8 extra bits] len 8
UUID (3) with 2 bytes [0 extra bits] len 3
HIDP (0x0011)
Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
0x0100
Attribute: Additional Protocol Descriptor List (0x000d) [len 2]
Sequence (6) with 13 bytes [8 extra bits] len 15
Sequence (6) with 6 bytes [8 extra bits] len 8
UUID (3) with 2 bytes [0 extra bits] len 3
L2CAP (0x0100)
Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
0x0013
Sequence (6) with 3 bytes [8 extra bits] len 5
UUID (3) with 2 bytes [0 extra bits] len 3
HIDP (0x0011)
Attribute: Unknown (0x0100) [len 2]
Bluez virtual Mouse and Keyboard [len 32]
Attribute: Unknown (0x0101) [len 2]
Keyboard [len 8]
Attribute: Unknown (0x0102) [len 2]
Anselm Martin Hoffmeister (GPL v2) [len 34]
Attribute: Unknown (0x0200) [len 2]
0x0100
Attribute: Unknown (0x0201) [len 2]
0x0111
Attribute: Unknown (0x0202) [len 2]
0x40
Attribute: Unknown (0x0203) [len 2]
0x00
Attribute: Unknown (0x0204) [len 2]
true
Attribute: Unknown (0x0205) [len 2]
true
Attribute: Unknown (0x0206) [len 2]
Sequence (6) with 102 bytes [8 extra bits] len 104
Unsigned Integer (1) with 1 byte [0 extra bits] len 2
0x22
String (4) with 98 bytes [8 extra bits] len 100
# #�#�# #� [len 98]
Attribute: Unknown (0x0207) [len 2]
Sequence (6) with 6 bytes [8 extra bits] len 8
Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
0x0409
Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
0x0100
Attribute: Unknown (0x020b) [len 2]
0x0100
Attribute: Unknown (0x020e) [len 2]
0x0000
Continuation state: 0
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 265.237183
Num handles: 1
Handle: 11
Count: 2
> ACL Data RX: Handle 11 flags 0x02 dlen 12 [hci0] 265.240186
L2CAP: Disconnection Request (0x06) ident 9 len 4
Destination CID: 64
Source CID: 77
< ACL Data TX: Handle 11 flags 0x00 dlen 12 [hci0] 265.240222
L2CAP: Disconnection Response (0x07) ident 9 len 4
Destination CID: 64
Source CID: 77
> HCI Event: Link Key Request (0x17) plen 6 [hci0] 265.250187
Address: 10:D5:42:BB:1F:F5 (Samsung Electronics Co.,Ltd)
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22 [hci0]
265.250223
Address: 10:D5:42:BB:1F:F5 (Samsung Electronics Co.,Ltd)
Link key: 04a355b0f7a76da518c012a47f11f622
> HCI Event: Command Complete (0x0e) plen 10 [hci0] 265.255190
Link Key Request Reply (0x01|0x000b) ncmd 1
Status: Success (0x00)
Address: 10:D5:42:BB:1F:F5 (Samsung Electronics Co.,Ltd)
> HCI Event: Encryption Change (0x08) plen 4 [hci0] 265.279191
Status: Success (0x00)
Handle: 11
Encryption: Enabled with E0 (0x01)
< HCI Command: Read Encryption Key Size (0x05|0x0008) plen 2 [hci0]
265.279237
Handle: 11
> HCI Event: Command Complete (0x0e) plen 7 [hci0] 265.280197
Read Encryption Key Size (0x05|0x0008) ncmd 1
Status: Success (0x00)
Handle: 11
Key size: 16
> ACL Data RX: Handle 11 flags 0x02 dlen 12 [hci0] 265.283184
L2CAP: Connection Request (0x02) ident 10 len 4
PSM: 17 (0x0011)
Source CID: 79
< ACL Data TX: Handle 11 flags 0x00 dlen 16 [hci0] 265.283260
L2CAP: Connection Response (0x03) ident 10 len 8
Destination CID: 64
Source CID: 79
Result: Connection successful (0x0000)
Status: No further information available (0x0000)
< ACL Data TX: Handle 11 flags 0x00 dlen 23 [hci0] 265.283265
L2CAP: Configure Request (0x04) ident 5 len 15
Destination CID: 79
Flags: 0x0000
Option: Retransmission and Flow Control (0x04) [mandatory]
Mode: Basic (0x00)
TX window size: 0
Max transmit: 0
Retransmission timeout: 0
Monitor timeout: 0
Maximum PDU size: 0
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 265.287182
Num handles: 1
Handle: 11
Count: 2
> ACL Data RX: Handle 11 flags 0x02 dlen 16 [hci0] 265.289188
L2CAP: Configure Request (0x04) ident 11 len 8
Destination CID: 64
Flags: 0x0000
Option: Maximum Transmission Unit (0x01) [mandatory]
MTU: 640
< ACL Data TX: Handle 11 flags 0x00 dlen 18 [hci0] 265.289222
L2CAP: Configure Response (0x05) ident 11 len 10
Source CID: 79
Flags: 0x0000
Result: Success (0x0000)
Option: Maximum Transmission Unit (0x01) [mandatory]
MTU: 640
> ACL Data RX: Handle 11 flags 0x02 dlen 14 [hci0] 265.290182
L2CAP: Configure Response (0x05) ident 5 len 6
Source CID: 64
Flags: 0x0000
Result: Success (0x0000)
< ACL Data TX: Handle 11 flags 0x00 dlen 5 [hci0] 265.290391
Channel: 79 len 1 [PSM 17 mode 0] {chan 0}
15 .
< ACL Data TX: Handle 11 flags 0x00 dlen 12 [hci0] 265.290947
L2CAP: Disconnection Request (0x06) ident 6 len 4
Destination CID: 79
Source CID: 64
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 265.294206
Num handles: 1
Handle: 11
Count: 2
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 265.295200
Num handles: 1
Handle: 11
Count: 2
> ACL Data RX: Handle 11 flags 0x02 dlen 12 [hci0] 265.295210
L2CAP: Connection Request (0x02) ident 12 len 4
PSM: 19 (0x0013)
Source CID: 65
< ACL Data TX: Handle 11 flags 0x00 dlen 16 [hci0] 265.295254
L2CAP: Connection Response (0x03) ident 12 len 8
Destination CID: 65
Source CID: 65
Result: Connection pending (0x0001)
Status: Authorization pending (0x0002)
~~~ < ACL Data TX: Handle 11 flags 0x00 dlen 16 [hci0] 265.295770
L2CAP: Connection Response (0x03) ident 12 len 8
Destination CID: 65
Source CID: 65
Result: Connection refused - security block (0x0003)
Status: No further information available (0x0000)
> ACL Data RX: Handle 11 flags 0x02 dlen 12 [hci0] 265.296204
L2CAP: Disconnection Request (0x06) ident 13 len 4
Destination CID: 64
Source CID: 65
< ACL Data TX: Handle 11 flags 0x00 dlen 12 [hci0] 265.296237
L2CAP: Disconnection Response (0x07) ident 13 len 4
Destination CID: 64
Source CID: 79
> ACL Data RX: Handle 11 flags 0x02 dlen 12 [hci0] 265.298197
L2CAP: Disconnection Response (0x07) ident 6 len 4
Destination CID: 79
Source CID: 64
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 265.300183
Num handles: 1
Handle: 11
Count: 2
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 265.502203
Num handles: 1
Handle: 11
Count: 1
< HCI Command: Disconnect (0x01|0x0006) plen 3 [hci0] 269.303096
Handle: 11
Reason: Remote User Terminated Connection (0x13)
> HCI Event: Command Status (0x0f) plen 4 [hci0] 269.306107
Disconnect (0x01|0x0006) ncmd 1
Status: Success (0x00)
> HCI Event: Disconnect Complete (0x05) plen 4 [hci0] 269.379094
Status: Success (0x00)
Handle: 11
Reason: Connection Terminated By Local Host (0x16)
@ Device Disconnected: 10:D5:42:BB:1F:F5 (0) reason 2
--
Chip Wachob
Design Engineer
Allen Organ
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden