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

disconnect from service after arbitrary amount of time #475

Open
dewetdt opened this issue Jan 19, 2022 · 2 comments
Open

disconnect from service after arbitrary amount of time #475

dewetdt opened this issue Jan 19, 2022 · 2 comments

Comments

@dewetdt
Copy link

dewetdt commented Jan 19, 2022

Hi I am are writing a service on a rpi CM4, the BLE connection drops after a set amount of time.

btmon log:

0.223304
= Note: Bluetooth subsystem version 2.22                                                                                                                                            0.223317
= New Index: E4:5F:01:2C:B2:6D (Primary,UART,hci0)                                                                                                                           [hci0] 0.223326
= Open Index: E4:5F:01:2C:B2:6D                                                                                                                                              [hci0] 0.223328
= Index Info: E4:5F:01:2C:B2:6D (Cypress Semiconductor)                                                                                                                      [hci0] 0.223332
@ RAW Open: node (privileged) version 2.22                                                                                                                          {0x0002} [hci0] 0.223336
@ MGMT Open: node (privileged) version 1.18                                                                                                                                {0x0001} 0.223340
> HCI Event: LE Meta Event (0x3e) plen 19                                                                                                                                #1 [hci0] 46.387030
      LE Connection Complete (0x01)
        Status: Success (0x00)
        Handle: 64
        Role: Slave (0x01)
        Peer address type: Random (0x01)
        Peer address: 48:A5:28:E6:17:D1 (Resolvable)
        Connection interval: 45.00 msec (0x0024)
        Connection latency: 0 (0x0000)
        Supervision timeout: 5000 msec (0x01f4)
        Master clock accuracy: 0x00
@ MGMT Event: Device Connected (0x000b) plen 13                                                                                                                    {0x0001} [hci0] 46.387146
        LE Address: 48:A5:28:E6:17:D1 (Resolvable)
        Flags: 0x00000000
        Data length: 0
> HCI Event: Vendor (0xff) plen 5                                                                                                                                        #2 [hci0] 46.387042
        55 00 00 40 00                                   U..@.
< HCI Command: LE Read Remote Used Features (0x08|0x0016) plen 2                                                                                                         #3 [hci0] 46.387420
        Handle: 64
> HCI Event: Command Status (0x0f) plen 4                                                                                                                                #4 [hci0] 46.388021
      LE Read Remote Used Features (0x08|0x0016) ncmd 1
        Status: Success (0x00)
> HCI Event: Command Complete (0x0e) plen 14                                                                                                                             #5 [hci0] 46.388031
      LE Read Remote Used Features (0x08|0x0016) ncmd 1
        Status: Success (0x00)
        00 00 00 00 00 00 00 00 00 00                    ..........
> HCI Event: LE Meta Event (0x3e) plen 12                                                                                                                                #6 [hci0] 46.456079
      LE Read Remote Used Features (0x04)
        Status: Success (0x00)
        Handle: 64
        Features: 0x3f 0x00 0x00 0x00 0x00 0x00 0x00 0x00
          LE Encryption
          Connection Parameter Request Procedure
          Extended Reject Indication
          Slave-initiated Features Exchange
          LE Ping
          LE Data Packet Length Extension
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                              #7 [hci0] 46.815953
      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                                                                                                                              #8 [hci0] 46.816698
      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-0x0009
        UUID: Generic Attribute Profile (0x1801)
        Handle range: 0x000a-0x0016
        UUID: Device Information (0x180a)
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                              #9 [hci0] 46.995356
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0017-0xffff
        Attribute group type: Primary Service (0x2800)
< ACL Data TX: Handle 64 flags 0x00 dlen 26                                                                                                                             #10 [hci0] 46.996037
      ATT: Read By Group Type Response (0x11) len 21
        Attribute data length: 20
        Attribute group list: 1 entry
        Handle range: 0x0017-0x0044
        UUID: Vendor specific (0fda92b2-44a2-4af2-84f5-fa682baa2b8d)
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #11 [hci0] 47.085597
      ATT: Read By Group Type Request (0x10) len 6
        Handle range: 0x0045-0xffff
        Attribute group type: Primary Service (0x2800)
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #12 [hci0] 47.085793
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 9                                                                                                                              #13 [hci0] 47.086226
      ATT: Error Response (0x01) len 4
        Read By Group Type Request (0x10)
        Handle: 0x0045
        Error: Attribute Not Found (0x0a)
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #14 [hci0] 47.175356
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0001-0x0005
        Attribute type: Include (0x2802)
< ACL Data TX: Handle 64 flags 0x00 dlen 9                                                                                                                              #15 [hci0] 47.175977
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0001
        Error: Attribute Not Found (0x0a)
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #16 [hci0] 47.265600
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0001-0x0005
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #17 [hci0] 47.265791
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 20                                                                                                                             #18 [hci0] 47.266296
      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
> HCI Event: LE Meta Event (0x3e) plen 10                                                                                                                               #19 [hci0] 47.310818
      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)
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #20 [hci0] 47.317863
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0005-0x0005
        Attribute type: Characteristic (0x2803)
< ACL Data TX: Handle 64 flags 0x00 dlen 9                                                                                                                              #21 [hci0] 47.318471
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0005
        Error: Attribute Not Found (0x0a)
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #22 [hci0] 47.333097
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0006-0x0009
        Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #23 [hci0] 47.333283
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 9                                                                                                                              #24 [hci0] 47.334139
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0006
        Error: Attribute Not Found (0x0a)
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #25 [hci0] 47.347889
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0006-0x0009
        Attribute type: Characteristic (0x2803)
< ACL Data TX: Handle 64 flags 0x00 dlen 13                                                                                                                             #26 [hci0] 47.348858
      ATT: Read By Type Response (0x09) len 8
        Attribute data length: 7
        Attribute data list: 1 entry
        Handle: 0x0007
        Value: 200800052a
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #27 [hci0] 47.363138
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0008-0x0009
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #28 [hci0] 47.363287
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 9                                                                                                                              #29 [hci0] 47.365068
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0008
        Error: Attribute Not Found (0x0a)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                                                                                                              #30 [hci0] 47.377839
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0009-0x0009
< ACL Data TX: Handle 64 flags 0x00 dlen 10                                                                                                                             #31 [hci0] 47.378686
      ATT: Find Information Response (0x05) len 5
        Format: UUID-16 (0x01)
        Handle: 0x0009
        UUID: Client Characteristic Configuration (0x2902)
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #32 [hci0] 47.393080
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x000a-0x0016
        Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #33 [hci0] 47.393296
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 9                                                                                                                              #34 [hci0] 47.394123
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x000a
        Error: Attribute Not Found (0x0a)
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #35 [hci0] 47.407850
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x000a-0x0016
        Attribute type: Characteristic (0x2803)
< ACL Data TX: Handle 64 flags 0x00 dlen 27                                                                                                                             #36 [hci0] 47.408736
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 7
        Attribute data list: 3 entries
        Handle: 0x000b
        Value: 020c00292a
        Handle: 0x000f
        Value: 021000252a
        Handle: 0x0013
        Value: 021400262a
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #37 [hci0] 47.423080
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0014-0x0016
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #38 [hci0] 47.423335
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 9                                                                                                                              #39 [hci0] 47.425000
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0014
        Error: Attribute Not Found (0x0a)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                                                                                                              #40 [hci0] 47.437839
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x000d-0x000e
< ACL Data TX: Handle 64 flags 0x00 dlen 14                                                                                                                             #41 [hci0] 47.438709
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x000d
        UUID: Characteristic User Description (0x2901)
        Handle: 0x000e
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                                                                                                              #42 [hci0] 47.452982
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0011-0x0012
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #43 [hci0] 47.453266
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 14                                                                                                                             #44 [hci0] 47.454083
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x0011
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0012
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                                                                                                              #45 [hci0] 47.467836
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0015-0x0016
< ACL Data TX: Handle 64 flags 0x00 dlen 14                                                                                                                             #46 [hci0] 47.468736
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x0015
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0016
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #47 [hci0] 47.483066
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0017-0x0044
        Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #48 [hci0] 47.483268
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 9                                                                                                                              #49 [hci0] 47.483960
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0017
        Error: Attribute Not Found (0x0a)
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #50 [hci0] 47.497848
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0017-0x0044
        Attribute type: Characteristic (0x2803)
< ACL Data TX: Handle 64 flags 0x00 dlen 27                                                                                                                             #51 [hci0] 47.498787
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 21
        Attribute data list: 1 entry
        Handle: 0x0018
        Value: 021900adf5a22c516197b3004616bebdb283d0
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #52 [hci0] 47.513068
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0019-0x0044
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #53 [hci0] 47.513270
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 27                                                                                                                             #54 [hci0] 47.513913
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 21
        Attribute data list: 1 entry
        Handle: 0x001c
        Value: 021d00014fa258fe22d3bf9244d350592c850a
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #55 [hci0] 47.527854
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x001d-0x0044
        Attribute type: Characteristic (0x2803)
< ACL Data TX: Handle 64 flags 0x00 dlen 27                                                                                                                             #56 [hci0] 47.528769
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 21
        Attribute data list: 1 entry
        Handle: 0x0020
        Value: 022100291a177b73c83f80be457b7e335051d7
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #57 [hci0] 47.543067
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0021-0x0044
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #58 [hci0] 47.543270
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 27                                                                                                                             #59 [hci0] 47.543985
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 21
        Attribute data list: 1 entry
        Handle: 0x0024
        Value: 0225008b036b35b289b18a00416abc63de3177
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #60 [hci0] 47.565566
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0025-0x0044
        Attribute type: Characteristic (0x2803)
< ACL Data TX: Handle 64 flags 0x00 dlen 27                                                                                                                             #61 [hci0] 47.566479
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 21
        Attribute data list: 1 entry
        Handle: 0x0028
        Value: 0229007ed517c16e8e9ebf2c4271d84fd333b8
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #62 [hci0] 47.580590
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0029-0x0044
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #63 [hci0] 47.580795
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 27                                                                                                                             #64 [hci0] 47.581477
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 21
        Attribute data list: 1 entry
        Handle: 0x002c
        Value: 022d00573a4ce6a7d48da5fd450c8af214439c
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #65 [hci0] 47.595347
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x002d-0x0044
        Attribute type: Characteristic (0x2803)
< ACL Data TX: Handle 64 flags 0x00 dlen 27                                                                                                                             #66 [hci0] 47.596245
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 21
        Attribute data list: 1 entry
        Handle: 0x0030
        Value: 023100fea27f3b7372dfb24a4b7975effd0e18
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #67 [hci0] 47.610569
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0031-0x0044
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #68 [hci0] 47.610764
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 27                                                                                                                             #69 [hci0] 47.611504
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 21
        Attribute data list: 1 entry
        Handle: 0x0034
        Value: 0235007502f647d3dfba847d4ea401def535d4
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #70 [hci0] 47.625355
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0035-0x0044
        Attribute type: Characteristic (0x2803)
< ACL Data TX: Handle 64 flags 0x00 dlen 27                                                                                                                             #71 [hci0] 47.626248
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 21
        Attribute data list: 1 entry
        Handle: 0x0038
        Value: 12390058b8bd9a9b9bd2a6a24d85c9ca163bdf
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #72 [hci0] 47.640574
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0039-0x0044
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #73 [hci0] 47.640762
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 27                                                                                                                             #74 [hci0] 47.641624
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 21
        Attribute data list: 1 entry
        Handle: 0x003d
        Value: 023e00080627711617fab1c04e1101aa688139
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #75 [hci0] 47.655387
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x003e-0x0044
        Attribute type: Characteristic (0x2803)
< ACL Data TX: Handle 64 flags 0x00 dlen 27                                                                                                                             #76 [hci0] 47.656356
      ATT: Read By Type Response (0x09) len 22
        Attribute data length: 21
        Attribute data list: 1 entry
        Handle: 0x0041
        Value: 02420089d2b4a67defca9876448802d66b86e5
> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                             #77 [hci0] 47.670590
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0042-0x0044
        Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #78 [hci0] 47.670784
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 9                                                                                                                              #79 [hci0] 47.671904
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0042
        Error: Attribute Not Found (0x0a)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                                                                                                              #80 [hci0] 47.685357
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x001a-0x001b
< ACL Data TX: Handle 64 flags 0x00 dlen 14                                                                                                                             #81 [hci0] 47.686974
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x001a
        UUID: Characteristic User Description (0x2901)
        Handle: 0x001b
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                                                                                                              #82 [hci0] 47.700489
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x001e-0x001f
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #83 [hci0] 47.700763
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 14                                                                                                                             #84 [hci0] 47.701673
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x001e
        UUID: Characteristic User Description (0x2901)
        Handle: 0x001f
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                                                                                                              #85 [hci0] 47.715355
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0022-0x0023
< ACL Data TX: Handle 64 flags 0x00 dlen 14                                                                                                                             #86 [hci0] 47.716584
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x0022
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0023
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                                                                                                              #87 [hci0] 47.730475
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0026-0x0027
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #88 [hci0] 47.730756
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 14                                                                                                                             #89 [hci0] 47.731467
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x0026
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0027
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                                                                                                              #90 [hci0] 47.745346
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x002a-0x002b
< ACL Data TX: Handle 64 flags 0x00 dlen 14                                                                                                                             #91 [hci0] 47.746286
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x002a
        UUID: Characteristic User Description (0x2901)
        Handle: 0x002b
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                                                                                                              #92 [hci0] 47.767971
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x002e-0x002f
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #93 [hci0] 47.768260
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 14                                                                                                                             #94 [hci0] 47.769201
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x002e
        UUID: Characteristic User Description (0x2901)
        Handle: 0x002f
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                                                                                                              #95 [hci0] 47.782864
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0032-0x0033
< ACL Data TX: Handle 64 flags 0x00 dlen 14                                                                                                                             #96 [hci0] 47.784549
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x0032
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0033
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                                                                                                              #97 [hci0] 47.797964
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0036-0x0037
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                  #98 [hci0] 47.798261
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 14                                                                                                                             #99 [hci0] 47.798921
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x0036
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0037
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                                                                                                             #100 [hci0] 47.812843
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x003a-0x003c
< ACL Data TX: Handle 64 flags 0x00 dlen 18                                                                                                                            #101 [hci0] 47.813792
      ATT: Find Information Response (0x05) len 13
        Format: UUID-16 (0x01)
        Handle: 0x003a
        UUID: Client Characteristic Configuration (0x2902)
        Handle: 0x003b
        UUID: Characteristic User Description (0x2901)
        Handle: 0x003c
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                                                                                                             #102 [hci0] 47.827969
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x003f-0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                 #103 [hci0] 47.828258
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 14                                                                                                                            #104 [hci0] 47.828741
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x003f
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0040
        UUID: Characteristic Format (0x2904)
> ACL Data RX: Handle 64 flags 0x02 dlen 9                                                                                                                             #105 [hci0] 47.842867
      ATT: Find Information Request (0x04) len 4
        Handle range: 0x0043-0x0044
< ACL Data TX: Handle 64 flags 0x00 dlen 14                                                                                                                            #106 [hci0] 47.843532
      ATT: Find Information Response (0x05) len 9
        Format: UUID-16 (0x01)
        Handle: 0x0043
        UUID: Characteristic User Description (0x2901)
        Handle: 0x0044
        UUID: Characteristic Format (0x2904)
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                 #107 [hci0] 47.865822
        Num handles: 1
        Handle: 64
        Count: 2
> HCI Event: LE Meta Event (0x3e) plen 10                                                                                                                              #108 [hci0] 47.985762
      LE Connection Update Complete (0x03)
        Status: Success (0x00)
        Handle: 64
        Connection interval: 45.00 msec (0x0024)
        Connection latency: 0 (0x0000)
        Supervision timeout: 5000 msec (0x01f4)
< HCI Command: Disconnect (0x01|0x0006) plen 3                                                                                                                         #109 [hci0] 50.516358
        Handle: 64
        Reason: Remote User Terminated Connection (0x13)
> HCI Event: Command Status (0x0f) plen 4                                                                                                                              #110 [hci0] 50.516711
      Disconnect (0x01|0x0006) ncmd 1
        Status: Success (0x00)
> HCI Event: Disconnect Complete (0x05) plen 4                                                                                                                         #111 [hci0] 50.641241
        Status: Success (0x00)
        Handle: 64
        Reason: Connection Terminated By Local Host (0x16)
@ MGMT Event: Device Disconnected (0x000c) plen 8                                                                                                                  {0x0001} [hci0] 50.641289
        LE Address: 48:A5:28:E6:17:D1 (Resolvable)
        Reason: Connection terminated by local host (0x02)
< HCI Command: LE Set Advertise Enable (0x08|0x000a) plen 1                                                                                                            #112 [hci0] 50.672496
        Advertising: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4                                                                                                                            #113 [hci0] 50.672930
      LE Set Advertise Enable (0x08|0x000a) ncmd 1
        Status: Success (0x00)
@josiaheakle
Copy link

I am dealing with the same issue. The connection stays open for maybe 30 seconds, but will end even if a service is being used.

@rzr
Copy link

rzr commented Jun 30, 2023

May I suggest to try @abandonware fork and report at:
Relate-to: abandonware#17

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

3 participants