Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLE problems with latest bluez update #8

Closed
shawaj opened this issue Sep 14, 2021 · 9 comments
Closed

BLE problems with latest bluez update #8

shawaj opened this issue Sep 14, 2021 · 9 comments

Comments

@shawaj
Copy link

shawaj commented Sep 14, 2021

With the latest bluez update, the bluetooth will connect briefly and then within a few seconds will disconnect.

It seems to be similar to #3 and https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=254523&start=75 and RPi-Distro/firmware-nonfree#8

Rolling back seems to fix things

@pelwell
Copy link
Member

pelwell commented Sep 14, 2021

Have got some details - devices, version numbers, and logs of any kind? Running btmon to capture a trace across the connect and disconnect would be helpful.

@pelwell
Copy link
Member

pelwell commented Sep 14, 2021

For comparison, I'm running with bluez 5.50-1.2~deb10u2+rpt1 on a 4B, connecting to a Microsoft Designer Mouse (definitely a BLE device) and it's working well.

@shawaj
Copy link
Author

shawaj commented Sep 29, 2021

@pelwell The device is a Samsung Galaxy S21 5G and the connection is between the Helium Hotspot App and the raspi 4b which is running this codebase for the connection

It works perfectly on a CM3+ with a bluetooth USB dongle (csr8510 chipset) but with the pi4 onboard BT it connects and within a second or two disconnects. Same happens with the advertising interval set to 152.5ms

Bluez version:

bluez:
  Installed: 5.50-1.2~deb10u2+rpt1

Btmon trace:

Bluetooth monitor ver 5.50
= Note: Linux version 5.4.83-v8 (aarch64)                                               0.442264
= Note: Bluetooth subsystem version 2.22                                                0.442272
= New Index: DC:A6:32:D1:47:D8 (Primary,UART,hci0)                               [hci0] 0.442278
= Open Index: DC:A6:32:D1:47:D8                                                  [hci0] 0.442280
= Index Info: DC:A6:32:D1:47:D8 (Cypress Semiconductor Corporation)              [hci0] 0.442281
@ MGMT Open: bluetoothd (privileged) version 1.14                              {0x0001} 0.442284
@ MGMT Open: btmon (privileged) version 1.14                                   {0x0002} 0.442334
@ MGMT Command: Add Advertising (0x003e) plen 58                       {0x0001} [hci0] 31.522410
        Instance: 1
        Flags: 0x00000001
          Switch into Connectable mode
        Duration: 0
        Timeout: 0
        Advertising data length: 18
        128-bit Service UUIDs (complete): 1 entry
          Vendor specific (0fda92b2-44a2-4af2-84f5-fa682baa2b8d)
        Scan response length: 29
        Name (complete): Nebra Indoor Hotspot D147D6
@ MGMT Event: Advertising Added (0x0023) plen 1                        {0x0002} [hci0] 31.522434
        Instance: 1
< HCI Command: LE Set Advertising Parameters (0x08|0x0006) plen 15           #1 [hci0] 31.522504
        Min advertising interval: 95.625 msec (0x0099)
        Max advertising interval: 95.625 msec (0x0099)
        Type: Connectable undirected - ADV_IND (0x00)
        Own address type: Public (0x00)
        Direct address type: Public (0x00)
        Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
        Channel map: 37, 38, 39 (0x07)
        Filter policy: Allow Scan Request from Any, Allow Connect Request from Any (0x00)
> HCI Event: Command Complete (0x0e) plen 4                                  #2 [hci0] 31.522818
      LE Set Advertising Parameters (0x08|0x0006) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Advertise Enable (0x08|0x000a) plen 1                  #3 [hci0] 31.522852
        Advertising: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4                                  #4 [hci0] 31.523244
      LE Set Advertise Enable (0x08|0x000a) ncmd 1
        Status: Success (0x00)
@ MGMT Event: Command Complete (0x0001) plen 4                         {0x0001} [hci0] 31.523279
      Add Advertising (0x003e) plen 1
        Status: Success (0x00)
        Instance: 1
> HCI Event: LE Meta Event (0x3e) plen 19                                    #5 [hci0] 46.839039
      LE Connection Complete (0x01)
        Status: Success (0x00)
        Handle: 64
        Role: Slave (0x01)
        Peer address type: Random (0x01)
        Peer address: 45:5C:32:1E:ED:B5 (Resolvable)
        Connection interval: 45.00 msec (0x0024)
        Connection latency: 0 (0x0000)
        Supervision timeout: 5000 msec (0x01f4)
        Master clock accuracy: 0x01
@ MGMT Event: Device Connected (0x000b) plen 13                        {0x0002} [hci0] 46.839094
        LE Address: 45:5C:32:1E:ED:B5 (Resolvable)
        Flags: 0x00000000
        Data length: 0
@ MGMT Event: Device Connected (0x000b) plen 13                        {0x0001} [hci0] 46.839094
        LE Address: 45:5C:32:1E:ED:B5 (Resolvable)
        Flags: 0x00000000
        Data length: 0
> HCI Event: Vendor (0xff) plen 5                                            #6 [hci0] 46.839046
        55 00 00 40 00                                   U..@.           
< HCI Command: LE Read Remote Used Features (0x08|0x0016) plen 2             #7 [hci0] 46.839274
        Handle: 64
> HCI Event: Command Status (0x0f) plen 4                                    #8 [hci0] 46.839778
      LE Read Remote Used Features (0x08|0x0016) ncmd 1
        Status: Success (0x00)
> HCI Event: Command Complete (0x0e) plen 14                                 #9 [hci0] 46.839880
      LE Read Remote Used Features (0x08|0x0016) ncmd 1
        Status: Success (0x00)
        00 00 00 00 00 00 00 00 00 00                    ..........      
@ RAW Open: hciconfig (privileged) version 2.22                               {0x0003} 46.848675
@ RAW Close: hciconfig                                                        {0x0003} 46.848908
> HCI Event: LE Meta Event (0x3e) plen 12                                   #10 [hci0] 46.973507
      LE Read Remote Used Features (0x04)
        Status: Success (0x00)
        Handle: 64
        Features: 0x2f 0x00 0x00 0x00 0x00 0x00 0x00 0x00
          LE Encryption
          Connection Parameter Request Procedure
          Extended Reject Indication
          Slave-initiated Features Exchange
          LE Data Packet Length Extension
= bluetoothd: ../bluez-5.55/src/device.c:load_gatt_db() No cache for 45:5C:32:1E:E..   46.974352
< ACL Data TX: Handle 64 flags 0x00 dlen 7                                  #11 [hci0] 46.974269
      ATT: Exchange MTU Request (0x02) len 2
        Client RX MTU: 517
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                 #12 [hci0] 47.063593
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0001-0xffff
        Attribute group type: Primary Service (0x2800)
< ACL Data TX: Handle 64 flags 0x00 dlen 24                                 #13 [hci0] 47.063870
      ATT: Read By Group Type Response (0x11) len 19
        Attribute data length: 6
        Attribute group list: 3 entries
        Handle range: 0x0001-0x0005
        UUID: Generic Access Profile (0x1800)
        Handle range: 0x0006-0x000f
        UUID: Generic Attribute Profile (0x1801)
        Handle range: 0x0010-0x0012
        UUID: Device Information (0x180a)
> HCI Event: LE Meta Event (0x3e) plen 11                                   #14 [hci0] 47.243662
      LE Remote Connection Parameter Request (0x06)
        Handle: 64
        Min connection interval: 7.50 msec (0x0006)
        Max connection interval: 7.50 msec (0x0006)
        Connection latency: 0 (0x0000)
        Supervision timeout: 5000 msec (0x01f4)
< HCI Command: LE Remote Connection Parameter Requ.. (0x08|0x0020) plen 14  #15 [hci0] 47.243736
        Handle: 64
        Min connection interval: 7.50 msec (0x0006)
        Max connection interval: 7.50 msec (0x0006)
        Connection latency: 0 (0x0000)
        Supervision timeout: 5000 msec (0x01f4)
        Min connection length: 0.000 msec (0x0000)
        Max connection length: 0.000 msec (0x0000)
> HCI Event: Command Complete (0x0e) plen 6                                 #16 [hci0] 47.246206
      LE Remote Connection Parameter Request Reply (0x08|0x0020) ncmd 1
        Status: Success (0x00)
        Handle: 64
> ACL Data RX: Handle 64 flags 0x02 dlen 7                                  #17 [hci0] 47.513180
      ATT: Exchange MTU Response (0x03) len 2
        Server RX MTU: 517
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                 #18 [hci0] 47.513579
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0013-0xffff
        Attribute group type: Primary Service (0x2800)
> HCI Event: Number of Completed Packets (0x13) plen 5                      #19 [hci0] 47.513751
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 12                                 #20 [hci0] 47.513854
      ATT: Read By Group Type Response (0x11) len 7
        Attribute data length: 6
        Attribute group list: 1 entry
        Handle range: 0x0013-0x0019
        UUID: Device Information (0x180a)
< ACL Data TX: Handle 64 flags 0x00 dlen 11                                 #21 [hci0] 47.513947
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0001-0xffff
        Attribute type: Unknown (0x2b3a)
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                 #22 [hci0] 47.603209
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x001a-0xffff
        Attribute group type: Primary Service (0x2800)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                  #23 [hci0] 47.603593
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0001
        Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 64 flags 0x00 dlen 26                                 #24 [hci0] 47.603693
      ATT: Read By Group Type Response (0x11) len 21
        Attribute data length: 20
        Attribute group list: 1 entry
        Handle range: 0x001a-0x0054
        UUID: Vendor specific (0fda92b2-44a2-4af2-84f5-fa682baa2b8d)
> HCI Event: Number of Completed Packets (0x13) plen 5                      #25 [hci0] 47.603805
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 11                                 #26 [hci0] 47.603926
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0001-0xffff
        Attribute group type: Primary Service (0x2800)
< HCI Command: LE Set Advertising Parameters (0x08|0x0006) plen 15          #27 [hci0] 47.641160
        Min advertising interval: 95.625 msec (0x0099)
        Max advertising interval: 95.625 msec (0x0099)
        Type: Connectable undirected - ADV_IND (0x00)
        Own address type: Public (0x00)
        Direct address type: Public (0x00)
        Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
        Channel map: 37, 38, 39 (0x07)
        Filter policy: Allow Scan Request from Any, Allow Connect Request from Any (0x00)
> HCI Event: Command Complete (0x0e) plen 4                                 #28 [hci0] 47.641524
      LE Set Advertising Parameters (0x08|0x0006) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Advertise Enable (0x08|0x000a) plen 1                 #29 [hci0] 47.641562
        Advertising: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4                                 #30 [hci0] 47.641928
      LE Set Advertise Enable (0x08|0x000a) ncmd 1
        Status: Success (0x00)
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                 #31 [hci0] 47.693213
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0055-0xffff
        Attribute group type: Primary Service (0x2800)
< ACL Data TX: Handle 64 flags 0x00 dlen 12                                 #32 [hci0] 47.693634
      ATT: Read By Group Type Response (0x11) len 7
        Attribute data length: 6
        Attribute group list: 1 entry
        Handle range: 0x0097-0x009d
        UUID: Device Information (0x180a)
> HCI Event: Number of Completed Packets (0x13) plen 5                      #33 [hci0] 47.693733
        Num handles: 1
        Handle: 64
        Count: 2
> ACL Data RX: Handle 64 flags 0x02 dlen 18                                 #34 [hci0] 47.693744
      ATT: Read By Group Type Response (0x11) len 13
        Attribute data length: 6
        Attribute group list: 2 entries
        Handle range: 0x0001-0x0003
        UUID: Generic Attribute Profile (0x1801)
        Handle range: 0x0014-0xffff
        UUID: Generic Access Profile (0x1800)
< ACL Data TX: Handle 64 flags 0x00 dlen 11                                 #35 [hci0] 47.694931
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0001-0xffff
        Attribute group type: Secondary Service (0x2801)
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                 #36 [hci0] 47.783220
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x009e-0xffff
        Attribute group type: Primary Service (0x2800)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                  #37 [hci0] 47.783587
      ATT: Error Response (0x01) len 4
        Read By Group Type Request (0x10)
        Handle: 0x0001
        Error: Unsupported Group Type (0x10)
< ACL Data TX: Handle 64 flags 0x00 dlen 26                                 #38 [hci0] 47.783702
      ATT: Read By Group Type Response (0x11) len 21
        Attribute data length: 20
        Attribute group list: 1 entry
        Handle range: 0x009e-0x00d8
        UUID: Vendor specific (0fda92b2-44a2-4af2-84f5-fa682baa2b8d)
> HCI Event: Number of Completed Packets (0x13) plen 5                      #39 [hci0] 47.783811
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 11                                 #40 [hci0] 47.784006
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0001-0xffff
        Attribute type: Include (0x2802)
> HCI Event: LE Meta Event (0x3e) plen 10                                   #41 [hci0] 47.836748
      LE Connection Update Complete (0x03)
        Status: Success (0x00)
        Handle: 64
        Connection interval: 7.50 msec (0x0006)
        Connection latency: 0 (0x0000)
        Supervision timeout: 5000 msec (0x01f4)
> HCI Event: Number of Completed Packets (0x13) plen 5                      #42 [hci0] 47.843412
        Num handles: 1
        Handle: 64
        Count: 2
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                 #43 [hci0] 47.843595
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x00d9-0xffff
        Attribute group type: Primary Service (0x2800)
< ACL Data TX: Handle 64 flags 0x00 dlen 9                                  #44 [hci0] 47.843944
      ATT: Error Response (0x01) len 4
        Read By Group Type Request (0x10)
        Handle: 0x00d9
        Error: Attribute Not Found (0x0a)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                  #45 [hci0] 47.844151
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0001
        Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 64 flags 0x00 dlen 11                                 #46 [hci0] 47.844399
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0001-0xffff
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5                      #47 [hci0] 47.873703
        Num handles: 1
        Handle: 64
        Count: 2
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                 #48 [hci0] 47.873717
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0001-0xffff
        Attribute group type: Primary Service (0x2800)
< ACL Data TX: Handle 64 flags 0x00 dlen 30                                 #49 [hci0] 47.874097
      ATT: Read By Group Type Response (0x11) len 25
        Attribute data length: 6
        Attribute group list: 4 entries
        Handle range: 0x0001-0x0005
        UUID: Generic Access Profile (0x1800)
        Handle range: 0x0006-0x000f
        UUID: Generic Attribute Profile (0x1801)
        Handle range: 0x0010-0x0012
        UUID: Device Information (0x180a)
        Handle range: 0x0013-0x0019
        UUID: Device Information (0x180a)
> HCI Event: LE Meta Event (0x3e) plen 11                                   #50 [hci0] 47.874077
      LE Remote Connection Parameter Request (0x06)
        Handle: 64
        Min connection interval: 45.00 msec (0x0024)
        Max connection interval: 45.00 msec (0x0024)
        Connection latency: 0 (0x0000)
        Supervision timeout: 5000 msec (0x01f4)
< HCI Command: LE Remote Connection Parameter Requ.. (0x08|0x0020) plen 14  #51 [hci0] 47.874176
        Handle: 64
        Min connection interval: 45.00 msec (0x0024)
        Max connection interval: 45.00 msec (0x0024)
        Connection latency: 0 (0x0000)
        Supervision timeout: 5000 msec (0x01f4)
        Min connection length: 0.000 msec (0x0000)
        Max connection length: 0.000 msec (0x0000)
> HCI Event: Command Complete (0x0e) plen 6                                 #52 [hci0] 47.877867
      LE Remote Connection Parameter Request Reply (0x08|0x0020) ncmd 1
        Status: Success (0x00)
        Handle: 64
> HCI Event: Number of Completed Packets (0x13) plen 5                      #53 [hci0] 52.876674
        Num handles: 1
        Handle: 64
        Count: 1
> HCI Event: Disconnect Complete (0x05) plen 4                              #54 [hci0] 52.876722
        Status: Success (0x00)
        Handle: 64
        Reason: Connection Timeout (0x08)
@ MGMT Event: Device Disconnected (0x000c) plen 8                      {0x0002} [hci0] 52.876775
        LE Address: 45:5C:32:1E:ED:B5 (Resolvable)
        Reason: Connection timeout (0x01)
@ MGMT Event: Device Disconnected (0x000c) plen 8                      {0x0001} [hci0] 52.876775
        LE Address: 45:5C:32:1E:ED:B5 (Resolvable)
        Reason: Connection timeout (0x01)

@shawaj
Copy link
Author

shawaj commented Sep 30, 2021

From nRF Connect app on the phone, I get the following output.

Non working pi 4b:

nRF Connect, 2021-09-30
Nebra Indoor Hotspot D147D6 (DC:A6:32:D1:47:D8)
V	01:42:14.924	Connecting to DC:A6:32:D1:47:D8...
D	01:42:14.924	gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)
D	01:42:15.227	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D	01:42:15.249	[Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I	01:42:15.249	Connected to DC:A6:32:D1:47:D8
V	01:42:15.253	Discovering services...
D	01:42:15.253	gatt.discoverServices()
I	01:42:15.904	Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms)
D	01:42:20.972	[Callback] Connection state changed with status: 8 and new state: DISCONNECTED (0)
E	01:42:20.972	Error 8 (0x8): GATT CONN TIMEOUT
I	01:42:20.972	Disconnected
D	01:42:20.994	[Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED

Working with csr8510 on cm3+:

nRF Connect, 2021-09-30
Nebra Outdoor Hotspot EF6AC2 (00:1A:7D:DA:71:13)
D	01:37:11.304	gatt.close()
D	01:37:11.308	wait(200)
V	01:37:11.509	Connecting to 00:1A:7D:DA:71:13...
D	01:37:11.509	gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)
D	01:37:11.836	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D	01:37:11.847	[Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I	01:37:11.847	Connected to 00:1A:7D:DA:71:13
V	01:37:11.854	Discovering services...
D	01:37:11.854	gatt.discoverServices()
I	01:37:12.375	Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms)
D	01:37:13.208	[Callback] Services discovered with status: 0
I	01:37:13.208	Services discovered
V	01:37:13.233	Generic Access (0x1800)
- Device Name [R] (0x2A00)
- Appearance [R] (0x2A01)
Generic Attribute (0x1801)
- Service Changed [I] (0x2A05)
   Client Characteristic Configuration (0x2902)
- Client Supported Features [R W] (0x2B29)
- Database Hash [R] (0x2B2A)
- Unknown Characteristic [R] (00002b3a-0000-1000-8000-00805f9b34fb)
Device Information (0x180A)
- Manufacturer Name String [R] (0x2A29)
- Firmware Revision String [R] (0x2A26)
- Serial Number String [R] (0x2A25)
Unknown Service (0fda92b2-44a2-4af2-84f5-fa682baa2b8d)
- Unknown Characteristic [R] (d083b2bd-be16-4600-b397-61512ca2f5ad)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (0a852c59-50d3-4492-bfd3-22fe58a24f01)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (d7515033-7e7b-45be-803f-c8737b171a29)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (e125bda4-6fb8-11ea-bc55-0242ac130003)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (b833d34f-d871-422c-bf9e-8e6ec117d57e)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (9c4314f2-8a0c-45fd-a58d-d4a7e64c3a57)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (180efdef-7579-4b4a-b2df-72733b7fa2fe)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (7731de63-bc6a-4100-8ab1-89b2356b038b)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [N R W] (d435f5de-01a4-4e7d-84ba-dfd347f60275)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [N R W] (df3b16ca-c985-4da2-a6d2-9b9b9abdb858)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [N R W] (398168aa-0111-4ec0-b1fa-171671270608)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (e5866bd6-0288-4476-98ca-ef7da6b4d289)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (c0b64050-697d-463a-a33f-70c4825731f8)
- Unknown Characteristic [N R W] (8cc6e0b3-98c5-40cc-b1d8-692940e6994b)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
Device Information (0x180A)
- Manufacturer Name String [R] (0x2A29)
- Firmware Revision String [R] (0x2A26)
- Serial Number String [R] (0x2A25)
Unknown Service (0fda92b2-44a2-4af2-84f5-fa682baa2b8d)
- Unknown Characteristic [R] (d083b2bd-be16-4600-b397-61512ca2f5ad)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (0a852c59-50d3-4492-bfd3-22fe58a24f01)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (d7515033-7e7b-45be-803f-c8737b171a29)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (e125bda4-6fb8-11ea-bc55-0242ac130003)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (b833d34f-d871-422c-bf9e-8e6ec117d57e)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (9c4314f2-8a0c-45fd-a58d-d4a7e64c3a57)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (180efdef-7579-4b4a-b2df-72733b7fa2fe)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (7731de63-bc6a-4100-8ab1-89b2356b038b)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [N R W] (d435f5de-01a4-4e7d-84ba-dfd347f60275)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [N R W] (df3b16ca-c985-4da2-a6d2-9b9b9abdb858)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [N R W] (398168aa-0111-4ec0-b1fa-171671270608)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (e5866bd6-0288-4476-98ca-ef7da6b4d289)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (c0b64050-697d-463a-a33f-70c4825731f8)
- Unknown Characteristic [N R W] (8cc6e0b3-98c5-40cc-b1d8-692940e6994b)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
D	01:37:13.233	gatt.setCharacteristicNotification(00002a05-0000-1000-8000-00805f9b34fb, true)
D	01:37:13.234	gatt.setCharacteristicNotification(d435f5de-01a4-4e7d-84ba-dfd347f60275, true)
D	01:37:13.235	gatt.setCharacteristicNotification(df3b16ca-c985-4da2-a6d2-9b9b9abdb858, true)
D	01:37:13.235	gatt.setCharacteristicNotification(398168aa-0111-4ec0-b1fa-171671270608, true)
D	01:37:13.236	gatt.setCharacteristicNotification(8cc6e0b3-98c5-40cc-b1d8-692940e6994b, true)
D	01:37:13.237	gatt.setCharacteristicNotification(d435f5de-01a4-4e7d-84ba-dfd347f60275, true)
D	01:37:13.237	gatt.setCharacteristicNotification(df3b16ca-c985-4da2-a6d2-9b9b9abdb858, true)
D	01:37:13.237	gatt.setCharacteristicNotification(398168aa-0111-4ec0-b1fa-171671270608, true)
D	01:37:13.238	gatt.setCharacteristicNotification(8cc6e0b3-98c5-40cc-b1d8-692940e6994b, true)
I	01:37:13.313	Connection parameters updated (interval: 45.0ms, latency: 0, timeout: 5000ms)

@pelwell
Copy link
Member

pelwell commented Sep 30, 2021

The btmon trace shows that the device is disconnecting due to "Connection Timeout", about which the BT spec says:

The Connection Timeout error code indicates that the link supervision timeout has expired for a given connection.

This fits, because the timeout is set to 5s and there is a 5s gap in the btmon log.

  1. Try increasing the timeout.
  2. Capture the equivalent btmon trace using the CSR dongle.

@shawaj
Copy link
Author

shawaj commented Oct 1, 2021

@pelwell re increasing the timeout - can I just do that by:

ech0 xx > /sys/kernel/debug/bluetooth/hci0/supervision_timeout

It is currently set to 42 (420ms) but even setting it to 1000 (10s) does not seem to make any difference.

Will get btmon trace with csr8510 and revert back later today

What I don't understand is why the Pi4 Bluetooth would take in excess of 5 seconds to discover the services, when on the csr8510 this is done within 1.5seconds?

@shawaj
Copy link
Author

shawaj commented Oct 4, 2021

Here is the btmon from working one:

btmon csr8510
Bluetooth monitor ver 5.50
= Note: Linux version 5.4.83-v8 (aarch64)                              0.453609
= Note: Bluetooth subsystem version 2.22                               0.453623
= New Index: 00:1A:7D:DA:71:13 (Primary,USB,hci0)               [hci0] 0.453628
= Open Index: 00:1A:7D:DA:71:13                                 [hci0] 0.453632
= Index Info: 00:1A:7D:DA:71:13 (Cambridge Silicon Radio)       [hci0] 0.453635
@ MGMT Open: bluetoothd (privileged) version 1.14             {0x0001} 0.453643
@ MGMT Open: btmon (privileged) version 1.14                  {0x0002} 0.453727
@ MGMT Command: Set Bondable (0x0009) plen 1           {0x0001} [hci0] 5.838754
        Bondable: Enabled (0x01)
@ MGMT Event: Command Complete (0x0001) plen 7         {0x0001} [hci0] 5.838795
      Set Bondable (0x0009) plen 4
        Status: Success (0x00)
        Current settings: 0x00000ad1
          Powered
          Bondable
          Secure Simple Pairing
          BR/EDR
          Low Energy
          Secure Connections
@ MGMT Event: New Settings (0x0006) plen 4             {0x0002} [hci0] 5.838810
        Current settings: 0x00000ad1
          Powered
          Bondable
          Secure Simple Pairing
          BR/EDR
          Low Energy
          Secure Connections
@ MGMT Command: Set IO Capability (0x0018) plen 1      {0x0001} [hci0] 5.839044
        Capability: KeyboardDisplay (0x04)
@ MGMT Event: Command Complete (0x0001) plen 3         {0x0001} [hci0] 5.839063
      Set IO Capability (0x0018) plen 0
        Status: Success (0x00)
@ MGMT Command: Set Bondable (0x0009) plen 1           {0x0001} [hci0] 5.847573
        Bondable: Disabled (0x00)
@ MGMT Event: Command Complete (0x0001) plen 7         {0x0001} [hci0] 5.847626
      Set Bondable (0x0009) plen 4
        Status: Success (0x00)
        Current settings: 0x00000ac1
          Powered
          Secure Simple Pairing
          BR/EDR
          Low Energy
          Secure Connections
@ MGMT Event: New Settings (0x0006) plen 4             {0x0002} [hci0] 5.847640
        Current settings: 0x00000ac1
          Powered
          Secure Simple Pairing
          BR/EDR
          Low Energy
          Secure Connections
@ MGMT Command: Add Advertising (0x003e) plen 59       {0x0001} [hci0] 7.758210
        Instance: 1
        Flags: 0x00000001
          Switch into Connectable mode
        Duration: 0
        Timeout: 0
        Advertising data length: 18
        128-bit Service UUIDs (complete): 1 entry
          Vendor specific (0fda92b2-44a2-4af2-84f5-fa682baa2b8d)
        Scan response length: 30
        Name (complete): Nebra Outdoor Hotspot EF6AC2
@ MGMT Event: Advertising Added (0x0023) plen 1        {0x0002} [hci0] 7.758261
        Instance: 1
< HCI Command: LE Set Advertising P.. (0x08|0x0006) plen 15  #1 [hci0] 7.758350
        Min advertising interval: 152.500 msec (0x00f4)
        Max advertising interval: 152.500 msec (0x00f4)
        Type: Connectable undirected - ADV_IND (0x00)
        Own address type: Public (0x00)
        Direct address type: Public (0x00)
        Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
        Channel map: 37, 38, 39 (0x07)
        Filter policy: Allow Scan Request from Any, Allow Connect Request from Any (0x00)
> HCI Event: Command Complete (0x0e) plen 4                  #2 [hci0] 7.759888
      LE Set Advertising Parameters (0x08|0x0006) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Advertise Enable (0x08|0x000a) plen 1  #3 [hci0] 7.759967
        Advertising: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4                  #4 [hci0] 7.761861
      LE Set Advertise Enable (0x08|0x000a) ncmd 1
        Status: Success (0x00)
@ MGMT Event: Command Complete (0x0001) plen 4         {0x0001} [hci0] 7.761921
      Add Advertising (0x003e) plen 1
        Status: Success (0x00)
        Instance: 1
> HCI Event: LE Meta Event (0x3e) plen 19                   #5 [hci0] 22.327787
      LE Connection Complete (0x01)
        Status: Success (0x00)
        Handle: 69
        Role: Slave (0x01)
        Peer address type: Random (0x01)
        Peer address: 52:FC:FA:11:D7:2E (Resolvable)
        Connection interval: 45.00 msec (0x0024)
        Connection latency: 0 (0x0000)
        Supervision timeout: 5000 msec (0x01f4)
        Master clock accuracy: 0x01
@ MGMT Event: Device Connected (0x000b) plen 13       {0x0002} [hci0] 22.327951
        LE Address: 52:FC:FA:11:D7:2E (Resolvable)
        Flags: 0x00000000
        Data length: 0
@ MGMT Event: Device Connected (0x000b) plen 13       {0x0001} [hci0] 22.327951
        LE Address: 52:FC:FA:11:D7:2E (Resolvable)
        Flags: 0x00000000
        Data length: 0
= bluetoothd: ../bluez-5.56/src/device.c:load_gatt_db() No cache...   22.329636
< ACL Data TX: Handle 69 flags 0x00 dlen 7                  #6 [hci0] 22.330075
      ATT: Exchange MTU Request (0x02) len 2
        Client RX MTU: 517
@ RAW Open: hciconfig (privileged) version 2.22              {0x0003} 22.349033
@ RAW Close: hciconfig                                       {0x0003} 22.349096
> HCI Event: Number of Completed Packets (0x13) plen 5      #7 [hci0] 22.407808
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 7                  #8 [hci0] 22.452681
      ATT: Exchange MTU Response (0x03) len 2
        Server RX MTU: 517
< ACL Data TX: Handle 69 flags 0x00 dlen 11                 #9 [hci0] 22.453320
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0001-0xffff
        Attribute type: Unknown (0x2b3a)
> ACL Data RX: Handle 69 flags 0x02 dlen 11                #10 [hci0] 22.454038
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0001-0xffff
        Attribute group type: Primary Service (0x2800)
< ACL Data TX: Handle 69 flags 0x00 dlen 24                #11 [hci0] 22.454414
      ATT: Read By Group Type Response (0x11) len 19
        Attribute data length: 6
        Attribute group list: 3 entries
        Handle range: 0x0001-0x0005
        UUID: Generic Access Profile (0x1800)
        Handle range: 0x0006-0x000f
        UUID: Generic Attribute Profile (0x1801)
        Handle range: 0x02e6-0x02ec
        UUID: Device Information (0x180a)
> HCI Event: Number of Completed Packets (0x13) plen 5     #12 [hci0] 22.497808
        Num handles: 1
        Handle: 69
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5     #13 [hci0] 22.542805
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                 #14 [hci0] 22.542918
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0001
        Error: Attribute Not Found (0x0a)
> ACL Data RX: Handle 69 flags 0x02 dlen 11                #15 [hci0] 22.543053
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x02ed-0xffff
        Attribute group type: Primary Service (0x2800)
< ACL Data TX: Handle 69 flags 0x00 dlen 26                #16 [hci0] 22.543492
      ATT: Read By Group Type Response (0x11) len 21
        Attribute data length: 20
        Attribute group list: 1 entry
        Handle range: 0x02ed-0x0327
        UUID: Vendor specific (0fda92b2-44a2-4af2-84f5-fa682baa2b8d)
< ACL Data TX: Handle 69 flags 0x00 dlen 11                #17 [hci0] 22.543573
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0001-0xffff
        Attribute group type: Primary Service (0x2800)
> HCI Event: Number of Completed Packets (0x13) plen 5     #18 [hci0] 22.587805
        Num handles: 1
        Handle: 69
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5     #19 [hci0] 22.632805
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 11                #20 [hci0] 22.633178
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0328-0xffff
        Attribute group type: Primary Service (0x2800)
> ACL Data RX: Handle 69 flags 0x02 dlen 18                #21 [hci0] 22.633292
      ATT: Read By Group Type Response (0x11) len 13
        Attribute data length: 6
        Attribute group list: 2 entries
        Handle range: 0x0001-0x0003
        UUID: Generic Attribute Profile (0x1801)
        Handle range: 0x0014-0xffff
        UUID: Generic Access Profile (0x1800)
< ACL Data TX: Handle 69 flags 0x00 dlen 12                #22 [hci0] 22.634639
      ATT: Read By Group Type Response (0x11) len 7
        Attribute data length: 6
        Attribute group list: 1 entry
        Handle range: 0x0472-0x0478
        UUID: Device Information (0x180a)
< ACL Data TX: Handle 69 flags 0x00 dlen 11                #23 [hci0] 22.634816
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0001-0xffff
        Attribute group type: Secondary Service (0x2801)
> HCI Event: Number of Completed Packets (0x13) plen 5     #24 [hci0] 22.677808
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 11                #25 [hci0] 22.722188
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0479-0xffff
        Attribute group type: Primary Service (0x2800)
> HCI Event: Number of Completed Packets (0x13) plen 5     #26 [hci0] 22.722803
        Num handles: 1
        Handle: 69
        Count: 1
< ACL Data TX: Handle 69 flags 0x00 dlen 26                #27 [hci0] 22.722927
      ATT: Read By Group Type Response (0x11) len 21
        Attribute data length: 20
        Attribute group list: 1 entry
        Handle range: 0x0479-0x04b3
        UUID: Vendor specific (0fda92b2-44a2-4af2-84f5-fa682baa2b8d)
> ACL Data RX: Handle 69 flags 0x02 dlen 9                 #28 [hci0] 22.723537
      ATT: Error Response (0x01) len 4
        Read By Group Type Request (0x10)
        Handle: 0x0001
        Error: Unsupported Group Type (0x10)
< ACL Data TX: Handle 69 flags 0x00 dlen 11                #29 [hci0] 22.723959
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0001-0xffff
        Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5     #30 [hci0] 22.767795
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 11                #31 [hci0] 22.812434
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x04b4-0xffff
        Attribute group type: Primary Service (0x2800)
> HCI Event: Number of Completed Packets (0x13) plen 5     #32 [hci0] 22.812800
        Num handles: 1
        Handle: 69
        Count: 1
< ACL Data TX: Handle 69 flags 0x00 dlen 9                 #33 [hci0] 22.813116
      ATT: Error Response (0x01) len 4
        Read By Group Type Request (0x10)
        Handle: 0x04b4
        Error: Attribute Not Found (0x0a)
> ACL Data RX: Handle 69 flags 0x02 dlen 9                 #34 [hci0] 22.813797
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0001
        Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 69 flags 0x00 dlen 11                #35 [hci0] 22.814225
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0001-0xffff
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5     #36 [hci0] 22.857792
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 11                #37 [hci0] 22.902687
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0001-0x0005
        Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5     #38 [hci0] 22.902784
        Num handles: 1
        Handle: 69
        Count: 1
< ACL Data TX: Handle 69 flags 0x00 dlen 9                 #39 [hci0] 22.903394
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0001
        Error: Attribute Not Found (0x0a)
> ACL Data RX: Handle 69 flags 0x02 dlen 27                #40 [hci0] 22.904031
> ACL Data RX: Handle 69 flags 0x01 dlen 7                 #41 [hci0] 22.904157
      ATT: Read By Type Response (0x09) len 29
        Attribute data length: 7
        Attribute data list: 4 entries
        Handle: 0x0002
        Value: 200300052a
        Handle: 0x0015
        Value: 021600002a
        Handle: 0x0017
        Value: 021800012a
        Handle: 0x0019
        Value: 021a00a62a
< ACL Data TX: Handle 69 flags 0x00 dlen 11                #42 [hci0] 22.904472
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x001a-0xffff
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5     #43 [hci0] 22.947809
        Num handles: 1
        Handle: 69
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5     #44 [hci0] 22.992805
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 11                #45 [hci0] 22.993062
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0001-0x0005
        Attribute type: Characteristic (0x2803)
> ACL Data RX: Handle 69 flags 0x02 dlen 9                 #46 [hci0] 22.993170
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x001a
        Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 69 flags 0x00 dlen 20                #47 [hci0] 22.993913
      ATT: Read By Type Response (0x09) len 15
        Attribute data length: 7
        Attribute data list: 2 entries
        Handle: 0x0002
        Value: 020300002a
        Handle: 0x0004
        Value: 020500012a
< ACL Data TX: Handle 69 flags 0x00 dlen 9                 #48 [hci0] 22.994041
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x001b-0xffff
> HCI Event: LE Meta Event (0x3e) plen 10                  #49 [hci0] 23.036795
      LE Connection Update Complete (0x03)
        Status: Success (0x00)
        Handle: 69
        Connection interval: 7.50 msec (0x0006)
        Connection latency: 0 (0x0000)
        Supervision timeout: 5000 msec (0x01f4)
> HCI Event: Number of Completed Packets (0x13) plen 5     #50 [hci0] 23.045802
        Num handles: 1
        Handle: 69
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5     #51 [hci0] 23.059783
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 11                #52 [hci0] 23.060795
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0005-0x0005
        Attribute type: Characteristic (0x2803)
> ACL Data RX: Handle 69 flags 0x02 dlen 9                 #53 [hci0] 23.060964
      ATT: Error Response (0x01) len 4
        Find Information Request (0x04)
        Handle: 0x001b
        Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 69 flags 0x00 dlen 9                 #54 [hci0] 23.066424
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0005
        Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 69 flags 0x00 dlen 7                 #55 [hci0] 23.066706
      ATT: Read Request (0x0a) len 2
        Handle: 0x0016
> HCI Event: Number of Completed Packets (0x13) plen 5     #56 [hci0] 23.082788
        Num handles: 1
        Handle: 69
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5     #57 [hci0] 23.089796
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 11                #58 [hci0] 23.089949
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0006-0x000f
        Attribute type: Include (0x2802)
< ACL Data TX: Handle 69 flags 0x00 dlen 9                 #59 [hci0] 23.090587
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0006
        Error: Attribute Not Found (0x0a)
> ACL Data RX: Handle 69 flags 0x02 dlen 22                #60 [hci0] 23.091293
      ATT: Read Response (0x0b) len 17
        Value: 4161726f6e27732053323120556c747261
< ACL Data TX: Handle 69 flags 0x00 dlen 7                 #61 [hci0] 23.091763
      ATT: Read Request (0x0a) len 2
        Handle: 0x0018
> HCI Event: Number of Completed Packets (0x13) plen 5     #62 [hci0] 23.097813
        Num handles: 1
        Handle: 69
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5     #63 [hci0] 23.104770
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 11                #64 [hci0] 23.105157
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0006-0x000f
        Attribute type: Characteristic (0x2803)
< ACL Data TX: Handle 69 flags 0x00 dlen 34                #65 [hci0] 23.105639
      ATT: Read By Type Response (0x09) len 29
        Attribute data length: 7
        Attribute data list: 4 entries
        Handle: 0x0007
        Value: 200800052a
        Handle: 0x000a
        Value: 0a0b00292b
        Handle: 0x000c
        Value: 020d002a2b
        Handle: 0x000e
        Value: 020f003a2b
> ACL Data RX: Handle 69 flags 0x02 dlen 7                 #66 [hci0] 23.106526
      ATT: Read Response (0x0b) len 2
        Value: 0000
> HCI Event: Number of Completed Packets (0x13) plen 5     #67 [hci0] 23.119780
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 11                #68 [hci0] 23.120407
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x000f-0x000f
        Attribute type: Characteristic (0x2803)
< ACL Data TX: Handle 69 flags 0x00 dlen 9                 #69 [hci0] 23.120816
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x000f
        Error: Attribute Not Found (0x0a)
> HCI Event: Number of Completed Packets (0x13) plen 5     #70 [hci0] 23.134777
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                 #71 [hci0] 23.135535
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0009-0x0009
< ACL Data TX: Handle 69 flags 0x00 dlen 10                #72 [hci0] 23.135974
      ATT: Find Information Response (0x05) len 5
        Format: UUID-16 (0x01)
        Handle: 0x0009
        UUID: Client Characteristic Configuration (0x2902)
> HCI Event: Number of Completed Packets (0x13) plen 5     #73 [hci0] 23.149788
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 11                #74 [hci0] 23.150667
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x02e6-0x02ec
        Attribute type: Include (0x2802)
< ACL Data TX: Handle 69 flags 0x00 dlen 9                 #75 [hci0] 23.151209
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x02e6
        Error: Attribute Not Found (0x0a)
> HCI Event: Number of Completed Packets (0x13) plen 5     #76 [hci0] 23.164786
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 11                #77 [hci0] 23.165776
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x02e6-0x02ec
        Attribute type: Characteristic (0x2803)
< ACL Data TX: Handle 69 flags 0x00 dlen 27                #78 [hci0] 23.166301
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 7
        Attribute data list: 3 entries
        Handle: 0x02e7
        Value: 02e802292a
        Handle: 0x02e9
        Value: 02ea02262a
        Handle: 0x02eb
        Value: 02ec02252a
> ACL Data RX: Handle 69 flags 0x02 dlen 11                #79 [hci0] 23.187174
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x02ec-0x02ec
        Attribute type: Characteristic (0x2803)
< ACL Data TX: Handle 69 flags 0x00 dlen 9                 #80 [hci0] 23.187897
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x02ec
        Error: Attribute Not Found (0x0a)
> HCI Event: Number of Completed Packets (0x13) plen 5     #81 [hci0] 23.187785
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 11                #82 [hci0] 23.202297
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x02ed-0x0327
        Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5     #83 [hci0] 23.202791
        Num handles: 1
        Handle: 69
        Count: 1
< ACL Data TX: Handle 69 flags 0x00 dlen 9                 #84 [hci0] 23.202923
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x02ed
        Error: Attribute Not Found (0x0a)
> ACL Data RX: Handle 69 flags 0x02 dlen 11                #85 [hci0] 23.217411
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x02ed-0x0327
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5     #86 [hci0] 23.217781
        Num handles: 1
        Handle: 69
        Count: 1
< ACL Data TX: Handle 69 flags 0x00 dlen 300               #87 [hci0] 23.218104
      ATT: Read By Type Response (0x09) len 295
        Attribute data length: 21
        Attribute data list: 14 entries
        Handle: 0x02ee
        Value: 02ef02adf5a22c516197b3004616bebdb283d0
        Handle: 0x02f2
        Value: 02f302014fa258fe22d3bf9244d350592c850a
        Handle: 0x02f6
        Value: 02f702291a177b73c83f80be457b7e335051d7
        Handle: 0x02fa
        Value: 02fb02030013ac420255bcea11b86fa4bd25e1
        Handle: 0x02fe
        Value: 02ff027ed517c16e8e9ebf2c4271d84fd333b8
        Handle: 0x0302
        Value: 020303573a4ce6a7d48da5fd450c8af214439c
        Handle: 0x0306
        Value: 020703fea27f3b7372dfb24a4b7975effd0e18
        Handle: 0x030a
        Value: 020b038b036b35b289b18a00416abc63de3177
        Handle: 0x030e
        Value: 1a0f037502f647d3dfba847d4ea401def535d4
        Handle: 0x0313
        Value: 1a140358b8bd9a9b9bd2a6a24d85c9ca163bdf
        Handle: 0x0318
        Value: 1a1903080627711617fab1c04e1101aa688139
        Handle: 0x031d
        Value: 021e0389d2b4a67defca9876448802d66b86e5
        Handle: 0x0321
        Value: 022203f8315782c4703fa33a467d695040b6c0
        Handle: 0x0323
        Value: 1a24034b99e6402969d8b1cc40c598b3e0c68c
> HCI Event: Number of Completed Packets (0x13) plen 5     #88 [hci0] 23.239781
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 11                #89 [hci0] 23.240044
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0324-0x0327
        Attribute type: Characteristic (0x2803)
< ACL Data TX: Handle 69 flags 0x00 dlen 9                 #90 [hci0] 23.240477
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0324
        Error: Attribute Not Found (0x0a)
> HCI Event: Number of Completed Packets (0x13) plen 5     #91 [hci0] 23.254775
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                 #92 [hci0] 23.255155
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x02f0-0x02f1
< ACL Data TX: Handle 69 flags 0x00 dlen 14                #93 [hci0] 23.255587
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x02f0
        UUID: Characteristic User Description (0x2901)
        Handle: 0x02f1
        UUID: Characteristic Format (0x2904)
> HCI Event: Number of Completed Packets (0x13) plen 5     #94 [hci0] 23.269784
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                 #95 [hci0] 23.270286
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x02f4-0x02f5
< ACL Data TX: Handle 69 flags 0x00 dlen 14                #96 [hci0] 23.270790
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x02f4
        UUID: Characteristic User Description (0x2901)
        Handle: 0x02f5
        UUID: Characteristic Format (0x2904)
> HCI Event: Number of Completed Packets (0x13) plen 5     #97 [hci0] 23.284777
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                 #98 [hci0] 23.285407
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x02f8-0x02f9
< ACL Data TX: Handle 69 flags 0x00 dlen 14                #99 [hci0] 23.285796
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x02f8
        UUID: Characteristic User Description (0x2901)
        Handle: 0x02f9
        UUID: Characteristic Format (0x2904)
> HCI Event: Number of Completed Packets (0x13) plen 5    #100 [hci0] 23.299779
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #101 [hci0] 23.300536
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x02fc-0x02fd
< ACL Data TX: Handle 69 flags 0x00 dlen 14               #102 [hci0] 23.300988
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x02fc
        UUID: Characteristic User Description (0x2901)
        Handle: 0x02fd
        UUID: Characteristic Format (0x2904)
> HCI Event: Number of Completed Packets (0x13) plen 5    #103 [hci0] 23.314796
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #104 [hci0] 23.315665
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0300-0x0301
< ACL Data TX: Handle 69 flags 0x00 dlen 14               #105 [hci0] 23.316179
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x0300
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0301
        UUID: Characteristic Format (0x2904)
> HCI Event: Number of Completed Packets (0x13) plen 5    #106 [hci0] 23.337785
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #107 [hci0] 23.338284
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0304-0x0305
< ACL Data TX: Handle 69 flags 0x00 dlen 14               #108 [hci0] 23.338753
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x0304
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0305
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #109 [hci0] 23.352163
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0308-0x0309
< ACL Data TX: Handle 69 flags 0x00 dlen 14               #110 [hci0] 23.352621
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x0308
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0309
        UUID: Characteristic Format (0x2904)
> HCI Event: Number of Completed Packets (0x13) plen 5    #111 [hci0] 23.352783
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #112 [hci0] 23.367287
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x030c-0x030d
> HCI Event: Number of Completed Packets (0x13) plen 5    #113 [hci0] 23.367780
        Num handles: 1
        Handle: 69
        Count: 1
< ACL Data TX: Handle 69 flags 0x00 dlen 14               #114 [hci0] 23.367903
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x030c
        UUID: Characteristic User Description (0x2901)
        Handle: 0x030d
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #115 [hci0] 23.382420
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0310-0x0312
> HCI Event: Number of Completed Packets (0x13) plen 5    #116 [hci0] 23.382790
        Num handles: 1
        Handle: 69
        Count: 1
< ACL Data TX: Handle 69 flags 0x00 dlen 18               #117 [hci0] 23.382952
      ATT: Find Information Response (0x05) len 13
        Format: UUID-16 (0x01)
        Handle: 0x0310
        UUID: Client Characteristic Configuration (0x2902)
        Handle: 0x0311
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0312
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #118 [hci0] 23.397541
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0315-0x0317
> HCI Event: Number of Completed Packets (0x13) plen 5    #119 [hci0] 23.397787
        Num handles: 1
        Handle: 69
        Count: 1
< ACL Data TX: Handle 69 flags 0x00 dlen 18               #120 [hci0] 23.398120
      ATT: Find Information Response (0x05) len 13
        Format: UUID-16 (0x01)
        Handle: 0x0315
        UUID: Client Characteristic Configuration (0x2902)
        Handle: 0x0316
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0317
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #121 [hci0] 23.412688
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x031a-0x031c
> HCI Event: Number of Completed Packets (0x13) plen 5    #122 [hci0] 23.412798
        Num handles: 1
        Handle: 69
        Count: 1
< ACL Data TX: Handle 69 flags 0x00 dlen 18               #123 [hci0] 23.413399
      ATT: Find Information Response (0x05) len 13
        Format: UUID-16 (0x01)
        Handle: 0x031a
        UUID: Client Characteristic Configuration (0x2902)
        Handle: 0x031b
        UUID: Characteristic User Description (0x2901)
        Handle: 0x031c
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #124 [hci0] 23.427796
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x031f-0x0320
> HCI Event: Number of Completed Packets (0x13) plen 5    #125 [hci0] 23.427834
        Num handles: 1
        Handle: 69
        Count: 1
< ACL Data TX: Handle 69 flags 0x00 dlen 14               #126 [hci0] 23.428294
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x031f
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0320
        UUID: Characteristic Format (0x2904)
> HCI Event: Number of Completed Packets (0x13) plen 5    #127 [hci0] 23.442787
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #128 [hci0] 23.442947
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0325-0x0327
< ACL Data TX: Handle 69 flags 0x00 dlen 18               #129 [hci0] 23.443437
      ATT: Find Information Response (0x05) len 13
        Format: UUID-16 (0x01)
        Handle: 0x0325
        UUID: Client Characteristic Configuration (0x2902)
        Handle: 0x0326
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0327
        UUID: Characteristic Format (0x2904)
> HCI Event: Number of Completed Packets (0x13) plen 5    #130 [hci0] 23.457785
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 11               #131 [hci0] 23.458047
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0472-0x0478
        Attribute type: Include (0x2802)
< ACL Data TX: Handle 69 flags 0x00 dlen 9                #132 [hci0] 23.458564
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0472
        Error: Attribute Not Found (0x0a)
> HCI Event: Number of Completed Packets (0x13) plen 5    #133 [hci0] 23.472784
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 11               #134 [hci0] 23.473158
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0472-0x0478
        Attribute type: Characteristic (0x2803)
< ACL Data TX: Handle 69 flags 0x00 dlen 27               #135 [hci0] 23.473700
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 7
        Attribute data list: 3 entries
        Handle: 0x0473
        Value: 027404292a
        Handle: 0x0475
        Value: 027604262a
        Handle: 0x0477
        Value: 027804252a
> HCI Event: Number of Completed Packets (0x13) plen 5    #136 [hci0] 23.487776
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 11               #137 [hci0] 23.488282
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0478-0x0478
        Attribute type: Characteristic (0x2803)
< ACL Data TX: Handle 69 flags 0x00 dlen 9                #138 [hci0] 23.488691
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0478
        Error: Attribute Not Found (0x0a)
> ACL Data RX: Handle 69 flags 0x02 dlen 11               #139 [hci0] 23.502158
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0479-0x04b3
        Attribute type: Include (0x2802)
< ACL Data TX: Handle 69 flags 0x00 dlen 9                #140 [hci0] 23.502581
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0479
        Error: Attribute Not Found (0x0a)
> HCI Event: Number of Completed Packets (0x13) plen 5    #141 [hci0] 23.502795
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 11               #142 [hci0] 23.517284
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0479-0x04b3
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5    #143 [hci0] 23.517778
        Num handles: 1
        Handle: 69
        Count: 1
< ACL Data TX: Handle 69 flags 0x00 dlen 300              #144 [hci0] 23.517905
      ATT: Read By Type Response (0x09) len 295
        Attribute data length: 21
        Attribute data list: 14 entries
        Handle: 0x047a
        Value: 027b04adf5a22c516197b3004616bebdb283d0
        Handle: 0x047e
        Value: 027f04014fa258fe22d3bf9244d350592c850a
        Handle: 0x0482
        Value: 028304291a177b73c83f80be457b7e335051d7
        Handle: 0x0486
        Value: 028704030013ac420255bcea11b86fa4bd25e1
        Handle: 0x048a
        Value: 028b047ed517c16e8e9ebf2c4271d84fd333b8
        Handle: 0x048e
        Value: 028f04573a4ce6a7d48da5fd450c8af214439c
        Handle: 0x0492
        Value: 029304fea27f3b7372dfb24a4b7975effd0e18
        Handle: 0x0496
        Value: 0297048b036b35b289b18a00416abc63de3177
        Handle: 0x049a
        Value: 1a9b047502f647d3dfba847d4ea401def535d4
        Handle: 0x049f
        Value: 1aa00458b8bd9a9b9bd2a6a24d85c9ca163bdf
        Handle: 0x04a4
        Value: 1aa504080627711617fab1c04e1101aa688139
        Handle: 0x04a9
        Value: 02aa0489d2b4a67defca9876448802d66b86e5
        Handle: 0x04ad
        Value: 02ae04f8315782c4703fa33a467d695040b6c0
        Handle: 0x04af
        Value: 1ab0044b99e6402969d8b1cc40c598b3e0c68c
> ACL Data RX: Handle 69 flags 0x02 dlen 11               #145 [hci0] 23.539927
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x04b0-0x04b3
        Attribute type: Characteristic (0x2803)
< ACL Data TX: Handle 69 flags 0x00 dlen 9                #146 [hci0] 23.540518
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x04b0
        Error: Attribute Not Found (0x0a)
> HCI Event: Number of Completed Packets (0x13) plen 5    #147 [hci0] 23.540801
        Num handles: 1
        Handle: 69
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5    #148 [hci0] 23.554773
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #149 [hci0] 23.555033
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x047c-0x047d
< ACL Data TX: Handle 69 flags 0x00 dlen 14               #150 [hci0] 23.555441
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x047c
        UUID: Characteristic User Description (0x2901)
        Handle: 0x047d
        UUID: Characteristic Format (0x2904)
> HCI Event: Number of Completed Packets (0x13) plen 5    #151 [hci0] 23.569778
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #152 [hci0] 23.570155
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0480-0x0481
< ACL Data TX: Handle 69 flags 0x00 dlen 14               #153 [hci0] 23.570648
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x0480
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0481
        UUID: Characteristic Format (0x2904)
> HCI Event: Number of Completed Packets (0x13) plen 5    #154 [hci0] 23.584785
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #155 [hci0] 23.585279
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0484-0x0485
< ACL Data TX: Handle 69 flags 0x00 dlen 14               #156 [hci0] 23.585728
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x0484
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0485
        UUID: Characteristic Format (0x2904)
> HCI Event: Number of Completed Packets (0x13) plen 5    #157 [hci0] 23.599779
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #158 [hci0] 23.600406
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0488-0x0489
< ACL Data TX: Handle 69 flags 0x00 dlen 14               #159 [hci0] 23.600820
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x0488
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0489
        UUID: Characteristic Format (0x2904)
> HCI Event: Number of Completed Packets (0x13) plen 5    #160 [hci0] 23.614778
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #161 [hci0] 23.615534
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x048c-0x048d
< ACL Data TX: Handle 69 flags 0x00 dlen 14               #162 [hci0] 23.616037
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x048c
        UUID: Characteristic User Description (0x2901)
        Handle: 0x048d
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #163 [hci0] 23.630664
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0490-0x0491
> HCI Event: Number of Completed Packets (0x13) plen 5    #164 [hci0] 23.630779
        Num handles: 1
        Handle: 69
        Count: 1
< ACL Data TX: Handle 69 flags 0x00 dlen 14               #165 [hci0] 23.631159
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x0490
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0491
        UUID: Characteristic Format (0x2904)
> HCI Event: Number of Completed Packets (0x13) plen 5    #166 [hci0] 23.645799
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #167 [hci0] 23.645911
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0494-0x0495
< ACL Data TX: Handle 69 flags 0x00 dlen 14               #168 [hci0] 23.646466
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x0494
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0495
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #169 [hci0] 23.659667
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0498-0x0499
> HCI Event: Number of Completed Packets (0x13) plen 5    #170 [hci0] 23.659780
        Num handles: 1
        Handle: 69
        Count: 1
< ACL Data TX: Handle 69 flags 0x00 dlen 14               #171 [hci0] 23.660170
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x0498
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0499
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #172 [hci0] 23.674805
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x049c-0x049e
> HCI Event: Number of Completed Packets (0x13) plen 5    #173 [hci0] 23.674890
        Num handles: 1
        Handle: 69
        Count: 1
< ACL Data TX: Handle 69 flags 0x00 dlen 18               #174 [hci0] 23.675487
      ATT: Find Information Response (0x05) len 13
        Format: UUID-16 (0x01)
        Handle: 0x049c
        UUID: Client Characteristic Configuration (0x2902)
        Handle: 0x049d
        UUID: Characteristic User Description (0x2901)
        Handle: 0x049e
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #175 [hci0] 23.689967
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x04a1-0x04a3
< ACL Data TX: Handle 69 flags 0x00 dlen 18               #176 [hci0] 23.690517
      ATT: Find Information Response (0x05) len 13
        Format: UUID-16 (0x01)
        Handle: 0x04a1
        UUID: Client Characteristic Configuration (0x2902)
        Handle: 0x04a2
        UUID: Characteristic User Description (0x2901)
        Handle: 0x04a3
        UUID: Characteristic Format (0x2904)
> HCI Event: Number of Completed Packets (0x13) plen 5    #177 [hci0] 23.690805
        Num handles: 1
        Handle: 69
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5    #178 [hci0] 23.704775
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #179 [hci0] 23.705029
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x04a6-0x04a8
< ACL Data TX: Handle 69 flags 0x00 dlen 18               #180 [hci0] 23.705488
      ATT: Find Information Response (0x05) len 13
        Format: UUID-16 (0x01)
        Handle: 0x04a6
        UUID: Client Characteristic Configuration (0x2902)
        Handle: 0x04a7
        UUID: Characteristic User Description (0x2901)
        Handle: 0x04a8
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #181 [hci0] 23.720156
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x04ab-0x04ac
< ACL Data TX: Handle 69 flags 0x00 dlen 14               #182 [hci0] 23.720605
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x04ab
        UUID: Characteristic User Description (0x2901)
        Handle: 0x04ac
        UUID: Characteristic Format (0x2904)
> HCI Event: Number of Completed Packets (0x13) plen 5    #183 [hci0] 23.720779
        Num handles: 1
        Handle: 69
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5    #184 [hci0] 23.749780
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 9                #185 [hci0] 23.750292
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x04b1-0x04b3
< ACL Data TX: Handle 69 flags 0x00 dlen 18               #186 [hci0] 23.750796
      ATT: Find Information Response (0x05) len 13
        Format: UUID-16 (0x01)
        Handle: 0x04b1
        UUID: Client Characteristic Configuration (0x2902)
        Handle: 0x04b2
        UUID: Characteristic User Description (0x2901)
        Handle: 0x04b3
        UUID: Characteristic Format (0x2904)
> HCI Event: Number of Completed Packets (0x13) plen 5    #187 [hci0] 23.764787
        Num handles: 1
        Handle: 69
        Count: 1
> HCI Event: LE Meta Event (0x3e) plen 10                 #188 [hci0] 23.823780
      LE Connection Update Complete (0x03)
        Status: Success (0x00)
        Handle: 69
        Connection interval: 45.00 msec (0x0024)
        Connection latency: 0 (0x0000)
        Supervision timeout: 5000 msec (0x01f4)
> ACL Data RX: Handle 69 flags 0x02 dlen 7                #189 [hci0] 30.148004
      ATT: Read Request (0x0a) len 2
        Handle: 0x02e8
< ACL Data TX: Handle 69 flags 0x00 dlen 15               #190 [hci0] 30.156332
      ATT: Read Response (0x0b) len 10
        Value: 4e65627261204c54442e
> HCI Event: Number of Completed Packets (0x13) plen 5    #191 [hci0] 30.237797
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 7                #192 [hci0] 31.723128
      ATT: Read Request (0x0a) len 2
        Handle: 0x02ea
< ACL Data TX: Handle 69 flags 0x00 dlen 17               #193 [hci0] 31.728604
      ATT: Read Response (0x0b) len 12
        Value: 323032312e30392e30372e30
> HCI Event: Number of Completed Packets (0x13) plen 5    #194 [hci0] 31.812727
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 7                #195 [hci0] 32.623233
      ATT: Read Request (0x0a) len 2
        Handle: 0x02ec
< ACL Data TX: Handle 69 flags 0x00 dlen 17               #196 [hci0] 32.628510
      ATT: Read Response (0x0b) len 12
        Value: 303042443237454636414332
> HCI Event: Number of Completed Packets (0x13) plen 5    #197 [hci0] 32.757727
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 7                #198 [hci0] 34.918343
      ATT: Read Request (0x0a) len 2
        Handle: 0x0003
< ACL Data TX: Handle 69 flags 0x00 dlen 12               #199 [hci0] 34.918953
      ATT: Read Response (0x0b) len 7
        Value: 37663137313137
> HCI Event: Number of Completed Packets (0x13) plen 5    #200 [hci0] 35.007739
        Num handles: 1
        Handle: 69
        Count: 1

And this is the nRF connect output for the same...

nrf connect csr8510
nRF Connect, 2021-10-04
Nebra Outdoor Hotspot EF6AC2 (00:1A:7D:DA:71:13)
V	16:33:26.502	Connecting to 00:1A:7D:DA:71:13...
D	16:33:26.502	gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)
D	16:33:26.632	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D	16:33:26.657	[Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I	16:33:26.657	Connected to 00:1A:7D:DA:71:13
V	16:33:26.664	Discovering services...
D	16:33:26.664	gatt.discoverServices()
I	16:33:27.264	Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms)
D	16:33:27.993	[Callback] Services discovered with status: 0
I	16:33:27.993	Services discovered
V	16:33:28.010	Generic Access (0x1800)
- Device Name [R] (0x2A00)
- Appearance [R] (0x2A01)
Generic Attribute (0x1801)
- Service Changed [I] (0x2A05)
   Client Characteristic Configuration (0x2902)
- Client Supported Features [R W] (0x2B29)
- Database Hash [R] (0x2B2A)
- Unknown Characteristic [R] (00002b3a-0000-1000-8000-00805f9b34fb)
Device Information (0x180A)
- Manufacturer Name String [R] (0x2A29)
- Firmware Revision String [R] (0x2A26)
- Serial Number String [R] (0x2A25)
Unknown Service (0fda92b2-44a2-4af2-84f5-fa682baa2b8d)
- Unknown Characteristic [R] (d083b2bd-be16-4600-b397-61512ca2f5ad)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (0a852c59-50d3-4492-bfd3-22fe58a24f01)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (d7515033-7e7b-45be-803f-c8737b171a29)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (e125bda4-6fb8-11ea-bc55-0242ac130003)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (b833d34f-d871-422c-bf9e-8e6ec117d57e)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (9c4314f2-8a0c-45fd-a58d-d4a7e64c3a57)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (180efdef-7579-4b4a-b2df-72733b7fa2fe)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (7731de63-bc6a-4100-8ab1-89b2356b038b)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [N R W] (d435f5de-01a4-4e7d-84ba-dfd347f60275)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [N R W] (df3b16ca-c985-4da2-a6d2-9b9b9abdb858)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [N R W] (398168aa-0111-4ec0-b1fa-171671270608)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (e5866bd6-0288-4476-98ca-ef7da6b4d289)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (c0b64050-697d-463a-a33f-70c4825731f8)
- Unknown Characteristic [N R W] (8cc6e0b3-98c5-40cc-b1d8-692940e6994b)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
Device Information (0x180A)
- Manufacturer Name String [R] (0x2A29)
- Firmware Revision String [R] (0x2A26)
- Serial Number String [R] (0x2A25)
Unknown Service (0fda92b2-44a2-4af2-84f5-fa682baa2b8d)
- Unknown Characteristic [R] (d083b2bd-be16-4600-b397-61512ca2f5ad)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (0a852c59-50d3-4492-bfd3-22fe58a24f01)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (d7515033-7e7b-45be-803f-c8737b171a29)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (e125bda4-6fb8-11ea-bc55-0242ac130003)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (b833d34f-d871-422c-bf9e-8e6ec117d57e)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (9c4314f2-8a0c-45fd-a58d-d4a7e64c3a57)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (180efdef-7579-4b4a-b2df-72733b7fa2fe)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (7731de63-bc6a-4100-8ab1-89b2356b038b)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [N R W] (d435f5de-01a4-4e7d-84ba-dfd347f60275)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [N R W] (df3b16ca-c985-4da2-a6d2-9b9b9abdb858)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [N R W] (398168aa-0111-4ec0-b1fa-171671270608)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (e5866bd6-0288-4476-98ca-ef7da6b4d289)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [R] (c0b64050-697d-463a-a33f-70c4825731f8)
- Unknown Characteristic [N R W] (8cc6e0b3-98c5-40cc-b1d8-692940e6994b)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
D	16:33:28.010	gatt.setCharacteristicNotification(00002a05-0000-1000-8000-00805f9b34fb, true)
D	16:33:28.011	gatt.setCharacteristicNotification(d435f5de-01a4-4e7d-84ba-dfd347f60275, true)
D	16:33:28.012	gatt.setCharacteristicNotification(df3b16ca-c985-4da2-a6d2-9b9b9abdb858, true)
D	16:33:28.012	gatt.setCharacteristicNotification(398168aa-0111-4ec0-b1fa-171671270608, true)
D	16:33:28.013	gatt.setCharacteristicNotification(8cc6e0b3-98c5-40cc-b1d8-692940e6994b, true)
D	16:33:28.013	gatt.setCharacteristicNotification(d435f5de-01a4-4e7d-84ba-dfd347f60275, true)
D	16:33:28.014	gatt.setCharacteristicNotification(df3b16ca-c985-4da2-a6d2-9b9b9abdb858, true)
D	16:33:28.014	gatt.setCharacteristicNotification(398168aa-0111-4ec0-b1fa-171671270608, true)
D	16:33:28.014	gatt.setCharacteristicNotification(8cc6e0b3-98c5-40cc-b1d8-692940e6994b, true)
I	16:33:28.065	Connection parameters updated (interval: 45.0ms, latency: 0, timeout: 5000ms)
V	16:33:34.354	Reading characteristic 00002a29-0000-1000-8000-00805f9b34fb
D	16:33:34.354	gatt.readCharacteristic(00002a29-0000-1000-8000-00805f9b34fb)
I	16:33:34.410	Read Response received from 00002a29-0000-1000-8000-00805f9b34fb, value: (0x) 4E-65-62-72-61-20-4C-54-44-2E, "Nebra LTD."
A	16:33:34.410	"Nebra LTD." received
V	16:33:35.905	Reading characteristic 00002a26-0000-1000-8000-00805f9b34fb
D	16:33:35.905	gatt.readCharacteristic(00002a26-0000-1000-8000-00805f9b34fb)
I	16:33:35.985	Read Response received from 00002a26-0000-1000-8000-00805f9b34fb, value: (0x) 32-30-32-31-2E-30-39-2E-30-37-2E-30, "2021.09.07.0"
A	16:33:35.985	"2021.09.07.0" received
V	16:33:36.820	Reading characteristic 00002a25-0000-1000-8000-00805f9b34fb
D	16:33:36.820	gatt.readCharacteristic(00002a25-0000-1000-8000-00805f9b34fb)
I	16:33:36.886	Read Response received from 00002a25-0000-1000-8000-00805f9b34fb, value: (0x) 30-30-42-44-32-37-45-46-36-41-43-32, "00BD27EF6AC2"
A	16:33:36.886	"00BD27EF6AC2" received
V	16:33:39.130	Reading characteristic 00002a00-0000-1000-8000-00805f9b34fb
D	16:33:39.130	gatt.readCharacteristic(00002a00-0000-1000-8000-00805f9b34fb)
I	16:33:39.180	Read Response received from 00002a00-0000-1000-8000-00805f9b34fb, value: (0x) 37-66-31-37-31-31-37, "7f17117"
A	16:33:39.180	"7f17117" received

@shawaj
Copy link
Author

shawaj commented Oct 4, 2021

Even if I ech0 1000 > /sys/kernel/debug/bluetooth/hci0/supervision_timeout it still gives a supervisor_timeout during the connection of 5000ms...presumably because this is negotiated between the two devices?

@pelwell
Copy link
Member

pelwell commented Feb 20, 2023

Closing because I think will have been fixed by the recent firmware updates - see #9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants