Bluetooth devices disconnects suddenly after connected

Hi,
I was working on Jetson TX2 NX and using rtl8822ce chip for BT and connecting through USB. It is able to scan, pair, and connect but after connected it automatically disconnects within a few seconds.
I am using ‘bluetoothctl’ for connecting with devices.
Is there any way to solve this problem.

commands and output


root@localhost:/home/askc# bluetoothctl 
[NEW] Controller 70:66:55:A6:F4:AA BlueZ 5.48 [default]
[NEW] Device 40:74:E0:07:2E:E7 7882--VISN--KOCHI1
Agent registered
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# agent on
Agent is already registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# trust 40:74:E0:07:2E:E7
Changing 40:74:E0:07:2E:E7 trust succeeded
[bluetooth]# connect 40:74:E0:07:2E:E7
Attempting to connect to 40:74:E0:07:2E:E7
[CHG] Device 40:74:E0:07:2E:E7 Connected: yes
[CHG] Device 40:74:E0:07:2E:E7 ServicesResolved: yes
Failed to connect: org.bluez.Error.InProgress
[CHG] Device 40:74:E0:07:2E:E7 ServicesResolved: no
[CHG] Device 40:74:E0:07:2E:E7 Connected: no
[bluetooth]#

btmon log


root@localhost:/home/askc# btmon
Bluetooth monitor ver 5.48
= Note: Linux version 4.9.253-tegra (aarch64)                                                                                        0.197853
= Note: Bluetooth subsystem version 2.22                                                                                             0.197856
= New Index: 70:66:55:A6:F4:AA (Primary,USB,hci0)                                                                             [hci0] 0.197858
= Open Index: 70:66:55:A6:F4:AA                                                                                               [hci0] 0.197859
= Index Info: 70:66:55:A6:F4:AA (Realtek Semiconductor Corporation)                                                           [hci0] 0.197860
@ MGMT Open: bluetoothd (privileged) version 1.14                                                                           {0x0002} 0.197861
@ MGMT Open: bluetoothd (privileged) version 1.14                                                                           {0x0001} 0.197862
@ MGMT Open: btmon (privileged) version 1.14                                                                                {0x0003} 0.197888
< HCI Command: Create Connection (0x01|0x0005) plen 13                                                                    #1 [hci0] 13.839258
        Address: 40:74:E0:07:2E:E7 (OUI 40-74-E0)
        Packet type: 0xcc18
          DM1 may be used
          DH1 may be used
          DM3 may be used
          DH3 may be used
          DM5 may be used
          DH5 may be used
        Page scan repetition mode: R2 (0x02)
        Page scan mode: Mandatory (0x00)
        Clock offset: 0x0000
        Role switch: Allow slave (0x01)
> HCI Event: Command Status (0x0f) plen 4                                                                                 #2 [hci0] 13.841328
      Create Connection (0x01|0x0005) ncmd 2
        Status: Success (0x00)
> HCI Event: Role Change (0x12) plen 8                                                                                    #3 [hci0] 16.743307
        Status: Success (0x00)
        Address: 40:74:E0:07:2E:E7 (OUI 40-74-E0)
        Role: Slave (0x01)
> HCI Event: Connect Complete (0x03) plen 11                                                                              #4 [hci0] 16.751320
        Status: Success (0x00)
        Handle: 2
        Address: 40:74:E0:07:2E:E7 (OUI 40-74-E0)
        Link type: ACL (0x01)
        Encryption: Disabled (0x00)
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2                                                        #5 [hci0] 16.751799
        Handle: 2
> HCI Event: Command Status (0x0f) plen 4                                                                                 #6 [hci0] 16.756285
      Read Remote Supported Features (0x01|0x001b) ncmd 2
        Status: Success (0x00)
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1                                                                     #7 [hci0] 16.756346
        Scan enable: No Scans (0x00)
> HCI Event: Command Complete (0x0e) plen 4                                                                               #8 [hci0] 16.758291
      Write Scan Enable (0x03|0x001a) ncmd 2
        Status: Success (0x00)
> HCI Event: Max Slots Change (0x1b) plen 3                                                                               #9 [hci0] 16.760277
        Handle: 2
        Max slots: 5
> HCI Event: Read Remote Supported Features (0x0b) plen 11                                                               #10 [hci0] 16.765278
        Status: Success (0x00)
        Handle: 2
        Features: 0xbf 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
          3 slot packets
          5 slot packets
          Encryption
          Slot offset
          Timing accuracy
          Role switch
          Sniff mode
          Power control requests
          Channel quality driven data rate (CQDDR)
          SCO link
          HV2 packets
          HV3 packets
          u-law log synchronous data
          A-law log synchronous data
          CVSD synchronous data
          Paging parameter negotiation
          Power control
          Transparent synchronous data
          Enhanced Data Rate ACL 2 Mbps mode
          Enhanced Data Rate ACL 3 Mbps mode
          Enhanced inquiry scan
          Interlaced inquiry scan
          Interlaced page scan
          RSSI with inquiry results
          Extended SCO link (EV3 packets)
          EV4 packets
          EV5 packets
          AFH capable slave
          AFH classification slave
          LE Supported (Controller)
          3-slot Enhanced Data Rate ACL packets
          5-slot Enhanced Data Rate ACL packets
          Sniff subrating
          Pause encryption
          AFH capable master
          AFH classification master
          Enhanced Data Rate eSCO 2 Mbps mode
          Enhanced Data Rate eSCO 3 Mbps mode
          3-slot Enhanced Data Rate eSCO packets
          Extended Inquiry Response
          Simultaneous LE and BR/EDR (Controller)
          Secure Simple Pairing
          Encapsulated PDU
          Erroneous Data Reporting
          Non-flushable Packet Boundary Flag
          Link Supervision Timeout Changed Event
          Inquiry TX Power Level
          Enhanced Power Control
          Extended features
< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3                                                        #11 [hci0] 16.765346
        Handle: 2
        Page: 1
> HCI Event: Command Status (0x0f) plen 4                                                                                #12 [hci0] 16.766306
      Read Remote Extended Features (0x01|0x001c) ncmd 2
        Status: Success (0x00)
> HCI Event: Read Remote Extended Features (0x23) plen 13                                                                #13 [hci0] 16.770327
        Status: Success (0x00)
        Handle: 2
        Page: 1/2
        Features: 0x0b 0x00 0x00 0x00 0x00 0x00 0x00 0x00
          Secure Simple Pairing (Host Support)
          LE Supported (Host)
          Secure Connections (Host Support)
< HCI Command: Remote Name Request (0x01|0x0019) plen 10                                                                 #14 [hci0] 16.770625
        Address: 40:74:E0:07:2E:E7 (OUI 40-74-E0)
        Page scan repetition mode: R2 (0x02)
        Page scan mode: Mandatory (0x00)
        Clock offset: 0x0000
< ACL Data TX: Handle 2 flags 0x00 dlen 10                                                                               #15 [hci0] 16.770675
      L2CAP: Information Request (0x0a) ident 1 len 2
        Type: Extended features supported (0x0002)
> HCI Event: Command Status (0x0f) plen 4                                                                                #16 [hci0] 16.772307
      Remote Name Request (0x01|0x0019) ncmd 2
        Status: Success (0x00)
> ACL Data RX: Handle 2 flags 0x02 dlen 10                                                                               #17 [hci0] 16.772799
      L2CAP: Information Request (0x0a) ident 1 len 2
        Type: Extended features supported (0x0002)
< ACL Data TX: Handle 2 flags 0x00 dlen 16                                                                               #18 [hci0] 16.772888
      L2CAP: Information Response (0x0b) ident 1 len 8
        Type: Extended features supported (0x0002)
        Result: Success (0x0000)
        Features: 0x000002b8
          Enhanced Retransmission Mode
          Streaming Mode
          FCS Option
          Fixed Channels
          Unicast Connectionless Data Reception
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                   #19 [hci0] 16.774296
        Num handles: 1
        Handle: 2
        Count: 1
> ACL Data RX: Handle 2 flags 0x02 dlen 16                                                                               #20 [hci0] 16.777663
      L2CAP: Information Response (0x0b) ident 1 len 8
        Type: Extended features supported (0x0002)
        Result: Success (0x0000)
        Features: 0x000002b8
          Enhanced Retransmission Mode
          Streaming Mode
          FCS Option
          Fixed Channels
          Unicast Connectionless Data Reception
< ACL Data TX: Handle 2 flags 0x00 dlen 10                                                                               #21 [hci0] 16.777820
      L2CAP: Information Request (0x0a) ident 2 len 2
        Type: Fixed channels supported (0x0003)
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                   #22 [hci0] 16.779287
        Num handles: 1
        Handle: 2
        Count: 1
> ACL Data RX: Handle 2 flags 0x02 dlen 10                                                                               #23 [hci0] 16.782725
      L2CAP: Information Request (0x0a) ident 2 len 2
        Type: Fixed channels supported (0x0003)
< ACL Data TX: Handle 2 flags 0x00 dlen 20                                                                               #24 [hci0] 16.782853
      L2CAP: Information Response (0x0b) ident 2 len 12
        Type: Fixed channels supported (0x0003)
        Result: Success (0x0000)
        Channels: 0x0000000000000006
          L2CAP Signaling (BR/EDR)
          Connectionless reception
> ACL Data RX: Handle 2 flags 0x02 dlen 20                                                                               #25 [hci0] 16.784044
      L2CAP: Information Response (0x0b) ident 2 len 12
        Type: Fixed channels supported (0x0003)
        Result: Success (0x0000)
        Channels: 0x0000000000000086
          L2CAP Signaling (BR/EDR)
          Connectionless reception
          Security Manager (BR/EDR)
< ACL Data TX: Handle 2 flags 0x00 dlen 12                                                                               #26 [hci0] 16.784630
      L2CAP: Connection Request (0x02) ident 3 len 4
        PSM: 1 (0x0001)
        Source CID: 64
> ACL Data RX: Handle 2 flags 0x02 dlen 16                                                                               #27 [hci0] 16.790202
      L2CAP: Connection Response (0x03) ident 3 len 8
        Destination CID: 64
        Source CID: 64
        Result: Connection successful (0x0000)
        Status: No further information available (0x0000)
< ACL Data TX: Handle 2 flags 0x00 dlen 23                                                                               #28 [hci0] 16.790421
      L2CAP: Configure Request (0x04) ident 4 len 15
        Destination CID: 64
        Flags: 0x0000
        Option: Retransmission and Flow Control (0x04) [mandatory]
          Mode: Basic (0x00)
          TX window size: 0
          Max transmit: 0
          Retransmission timeout: 0
          Monitor timeout: 0
          Maximum PDU size: 0
> ACL Data RX: Handle 2 flags 0x02 dlen 23                                                                               #29 [hci0] 16.791555
      L2CAP: Configure Request (0x04) ident 3 len 15
        Destination CID: 64
        Flags: 0x0000
        Option: Retransmission and Flow Control (0x04) [mandatory]
          Mode: Basic (0x00)
          TX window size: 0
          Max transmit: 0
          Retransmission timeout: 0
          Monitor timeout: 0
          Maximum PDU size: 0
< ACL Data TX: Handle 2 flags 0x00 dlen 18                                                                               #30 [hci0] 16.791683
      L2CAP: Configure Response (0x05) ident 3 len 10
        Source CID: 64
        Flags: 0x0000
        Result: Success (0x0000)
        Option: Maximum Transmission Unit (0x01) [mandatory]
          MTU: 672
> ACL Data RX: Handle 2 flags 0x02 dlen 18                                                                               #31 [hci0] 16.793998
      L2CAP: Configure Response (0x05) ident 4 len 10
        Source CID: 64
        Flags: 0x0000
        Result: Success (0x0000)
        Option: Maximum Transmission Unit (0x01) [mandatory]
          MTU: 672
< ACL Data TX: Handle 2 flags 0x00 dlen 24                                                                               #32 [hci0] 16.794720
      Channel: 64 len 20 [PSM 1 mode 0] {chan 0}
      SDP: Service Search Attribute Request (0x06) tid 0 len 15
        Search pattern: [len 5]
          Sequence (6) with 3 bytes [8 extra bits] len 5
            UUID (3) with 2 bytes [0 extra bits] len 3
              L2CAP (0x0100)
        Max record count: 65535
        Attribute list: [len 7]
          Sequence (6) with 5 bytes [8 extra bits] len 7
            Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
              0x0000ffff
        Continuation state: 0
> HCI Event: Remote Name Req Complete (0x07) plen 255                                                                    #33 [hci0] 16.798290
        Status: Success (0x00)
        Address: 40:74:E0:07:2E:E7 (OUI 40-74-E0)
        Name: 7882--VISN--KOCHI1
@ MGMT Event: Device Connected (0x000b) plen 33                                                                     {0x0003} [hci0] 16.798403
        BR/EDR Address: 40:74:E0:07:2E:E7 (OUI 40-74-E0)
        Flags: 0x00000000
        Data length: 20
        Name (complete): 7882--VISN--KOCHI1
@ MGMT Event: Device Connected (0x000b) plen 33                                                                     {0x0002} [hci0] 16.798403
        BR/EDR Address: 40:74:E0:07:2E:E7 (OUI 40-74-E0)
        Flags: 0x00000000
        Data length: 20
        Name (complete): 7882--VISN--KOCHI1
@ MGMT Event: Device Connected (0x000b) plen 33                                                                     {0x0001} [hci0] 16.798403
        BR/EDR Address: 40:74:E0:07:2E:E7 (OUI 40-74-E0)
        Flags: 0x00000000
        Data length: 20
        Name (complete): 7882--VISN--KOCHI1
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                   #34 [hci0] 16.799386
        Num handles: 1
        Handle: 2
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                   #35 [hci0] 16.800301
        Num handles: 1
        Handle: 2
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                   #36 [hci0] 16.801325
        Num handles: 1
        Handle: 2
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                   #37 [hci0] 16.802300
        Num handles: 1
        Handle: 2
        Count: 1
> ACL Data RX: Handle 2 flags 0x02 dlen 676                                                                              #38 [hci0] 16.803030
      Channel: 64 len 672 [PSM 1 mode 0] {chan 0}
      SDP: Service Search Attribute Response (0x07) tid 0 len 667
        Attribute bytes: 656
        Continuation state: 8
        23 98 ad 61 90 02 00 00                          #..a....        
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                   #39 [hci0] 16.803278
        Num handles: 1
        Handle: 2
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                   #40 [hci0] 16.804285
        Num handles: 1
        Handle: 2
        Count: 1
< ACL Data TX: Handle 2 flags 0x00 dlen 32                                                                               #41 [hci0] 16.806517
      Channel: 64 len 28 [PSM 1 mode 0] {chan 0}
      SDP: Service Search Attribute Request (0x06) tid 1 len 23
        Search pattern: [len 5]
          Sequence (6) with 3 bytes [8 extra bits] len 5
            UUID (3) with 2 bytes [0 extra bits] len 3
              L2CAP (0x0100)
        Max record count: 65535
        Attribute list: [len 7]
          Sequence (6) with 5 bytes [8 extra bits] len 7
            Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
              0x0000ffff
        Continuation state: 8
        23 98 ad 61 90 02 00 00                          #..a....        
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                   #42 [hci0] 16.809290
        Num handles: 1
        Handle: 2
        Count: 1
> ACL Data RX: Handle 2 flags 0x02 dlen 676                                                                              #43 [hci0] 16.814058
      Channel: 64 len 672 [PSM 1 mode 0] {chan 0}
      SDP: Service Search Attribute Response (0x07) tid 1 len 667
        Attribute bytes: 656
        Continuation state: 8
        23 98 ad 61 20 05 00 00                          #..a ...        
< ACL Data TX: Handle 2 flags 0x00 dlen 32                                                                               #44 [hci0] 16.814293
      Channel: 64 len 28 [PSM 1 mode 0] {chan 0}
      SDP: Service Search Attribute Request (0x06) tid 2 len 23
        Search pattern: [len 5]
          Sequence (6) with 3 bytes [8 extra bits] len 5
            UUID (3) with 2 bytes [0 extra bits] len 3
              L2CAP (0x0100)
        Max record count: 65535
        Attribute list: [len 7]
          Sequence (6) with 5 bytes [8 extra bits] len 7
            Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
              0x0000ffff
        Continuation state: 8
        23 98 ad 61 20 05 00 00                          #..a ...        
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                   #45 [hci0] 16.817274
        Num handles: 1
        Handle: 2
        Count: 1
> ACL Data RX: Handle 2 flags 0x02 dlen 162                                                                              #46 [hci0] 16.819887
      Channel: 64 len 158 [PSM 1 mode 0] {chan 0}
      SDP: Service Search Attribute Response (0x07) tid 2 len 153
        Attribute bytes: 150
        Continuation state: 0
        Combined attribute bytes: 1462
          Attribute list: [len 163] {position 0}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x00010001
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Generic Access Profile (0x1800)
            Attribute: Protocol Descriptor List (0x0004) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x001f
              Sequence (6) with 9 bytes [8 extra bits] len 11
                UUID (3) with 2 bytes [0 extra bits] len 3
                  ATT (0x0007)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0001
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0005
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Documentation URL (0x000a) [len 2]
              http://www.bluez.org/ [len 21]
            Attribute: Client Executable URL (0x000b) [len 2]
              http://www.bluez.org/ [len 21]
            Attribute: Icon URL (0x000c) [len 2]
              http://www.bluez.org/ [len 21]
            Attribute: Unknown (0x0100) [len 2]
              Generic Access Profile [len 22]
            Attribute: Unknown (0x0102) [len 2]
              BlueZ [len 5]
          Attribute list: [len 88] {position 1}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x00010002
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Generic Attribute Profile (0x1801)
            Attribute: Protocol Descriptor List (0x0004) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x001f
              Sequence (6) with 9 bytes [8 extra bits] len 11
                UUID (3) with 2 bytes [0 extra bits] len 3
                  ATT (0x0007)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0006
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x000f
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Unknown (0x0100) [len 2]
              Generic Attribute Profile [len 25]
            Attribute: Unknown (0x0102) [len 2]
              BlueZ [len 5]
          Attribute list: [len 81] {position 2}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x00010003
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Device Information (0x180a)
            Attribute: Protocol Descriptor List (0x0004) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x001f
              Sequence (6) with 9 bytes [8 extra bits] len 11
                UUID (3) with 2 bytes [0 extra bits] len 3
                  ATT (0x0007)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0010
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0012
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Unknown (0x0100) [len 2]
              Device Information [len 18]
            Attribute: Unknown (0x0102) [len 2]
              BlueZ [len 5]
          Attribute list: [len 103] {position 3}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x00010004
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                A/V Remote Control (0x110e)
              UUID (3) with 2 bytes [0 extra bits] len 3
                A/V Remote Control Controller (0x110f)
            Attribute: Protocol Descriptor List (0x0004) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0017
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  AVCTP (0x0017)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0103
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  A/V Remote Control (0x110e)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0106
            Attribute: Additional Protocol Descriptor List (0x000d) [len 2]
              Sequence (6) with 16 bytes [8 extra bits] len 18
                Sequence (6) with 6 bytes [8 extra bits] len 8
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    L2CAP (0x0100)
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x001b
                Sequence (6) with 6 bytes [8 extra bits] len 8
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    AVCTP (0x0017)
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x0103
            Attribute: Unknown (0x0100) [len 2]
              AVRCP CT [len 8]
            Attribute: Unknown (0x0311) [len 2]
              0x004f
          Attribute list: [len 100] {position 4}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x00010005
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                A/V Remote Control Target (0x110c)
            Attribute: Protocol Descriptor List (0x0004) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0017
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  AVCTP (0x0017)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0103
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  A/V Remote Control (0x110e)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0105
            Attribute: Additional Protocol Descriptor List (0x000d) [len 2]
              Sequence (6) with 16 bytes [8 extra bits] len 18
                Sequence (6) with 6 bytes [8 extra bits] len 8
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    L2CAP (0x0100)
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x001b
                Sequence (6) with 6 bytes [8 extra bits] len 8
                  UUID (3) with 2 bytes [0 extra bits] len 3
                    AVCTP (0x0017)
                  Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                    0x0103
            Attribute: Unknown (0x0100) [len 2]
              AVRCP TG [len 8]
            Attribute: Unknown (0x0311) [len 2]
              0x005f
          Attribute list: [len 83] {position 5}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x00010006
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Headset AG (0x1112)
              UUID (3) with 2 bytes [0 extra bits] len 3
                Generic Audio (0x1203)
            Attribute: Protocol Descriptor List (0x0004) [len 2]
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
              Sequence (6) with 5 bytes [8 extra bits] len 7
                UUID (3) with 2 bytes [0 extra bits] len 3
                  RFCOMM (0x0003)
                Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                  0x0c
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  Headset (0x1108)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0102
            Attribute: Unknown (0x0100) [len 2]
              Headset Voice gateway [len 21]
          Attribute list: [len 82] {position 6}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x00010007
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Headset (0x1108)
              UUID (3) with 2 bytes [0 extra bits] len 3
                Headset HS (0x1131)
              UUID (3) with 2 bytes [0 extra bits] len 3
                Generic Audio (0x1203)
            Attribute: Protocol Descriptor List (0x0004) [len 2]
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
              Sequence (6) with 5 bytes [8 extra bits] len 7
                UUID (3) with 2 bytes [0 extra bits] len 3
                  RFCOMM (0x0003)
                Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                  0x03
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  Headset (0x1108)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0102
            Attribute: Unknown (0x0100) [len 2]
              Headset unit [len 12]
            Attribute: Unknown (0x0302) [len 2]
              false
          Attribute list: [len 98] {position 7}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x00010008
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Message Notification Server (0x1133)
            Attribute: Protocol Descriptor List (0x0004) [len 2]
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
              Sequence (6) with 5 bytes [8 extra bits] len 7
                UUID (3) with 2 bytes [0 extra bits] len 3
                  RFCOMM (0x0003)
                Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                  0x11
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  OBEX (0x0008)
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  Message Access Profile (0x1134)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0102
            Attribute: Unknown (0x0100) [len 2]
              Message Notification [len 20]
            Attribute: Unknown (0x0200) [len 2]
              0x1001
            Attribute: Unknown (0x0317) [len 2]
              0x0000007f
          Attribute list: [len 102] {position 8}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x00010009
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Message Access Server (0x1132)
            Attribute: Protocol Descriptor List (0x0004) [len 2]
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
              Sequence (6) with 5 bytes [8 extra bits] len 7
                UUID (3) with 2 bytes [0 extra bits] len 3
                  RFCOMM (0x0003)
                Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                  0x10
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  OBEX (0x0008)
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  Message Access Profile (0x1134)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0100
            Attribute: Unknown (0x0100) [len 2]
              Message Access [len 14]
            Attribute: Unknown (0x0200) [len 2]
              0x1003
            Attribute: Unknown (0x0315) [len 2]
              0x00
            Attribute: Unknown (0x0316) [len 2]
              0x0f
            Attribute: Unknown (0x0317) [len 2]
              0x0000007f
          Attribute list: [len 100] {position 9}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x0001000a
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Phonebook Access Server (0x112f)
            Attribute: Protocol Descriptor List (0x0004) [len 2]
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
              Sequence (6) with 5 bytes [8 extra bits] len 7
                UUID (3) with 2 bytes [0 extra bits] len 3
                  RFCOMM (0x0003)
                Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                  0x0f
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  OBEX (0x0008)
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  Phonebook Access (0x1130)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0101
            Attribute: Unknown (0x0100) [len 2]
              Phone Book Access [len 17]
            Attribute: Unknown (0x0200) [len 2]
              0x1005
            Attribute: Unknown (0x0314) [len 2]
              0x01
            Attribute: Unknown (0x0317) [len 2]
              0x00000003
          Attribute list: [len 86] {position 10}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x0001000b
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                IrMC Sync (0x1104)
            Attribute: Protocol Descriptor List (0x0004) [len 2]
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
              Sequence (6) with 5 bytes [8 extra bits] len 7
                UUID (3) with 2 bytes [0 extra bits] len 3
                  RFCOMM (0x0003)
                Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                  0x0e
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  OBEX (0x0008)
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  IrMC Sync (0x1104)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0100
            Attribute: Unknown (0x0100) [len 2]
              Synchronization [len 15]
            Attribute: Unknown (0x0301) [len 2]
              Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                0x01
          Attribute list: [len 83] {position 11}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x0001000c
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                OBEX File Transfer (0x1106)
            Attribute: Protocol Descriptor List (0x0004) [len 2]
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
              Sequence (6) with 5 bytes [8 extra bits] len 7
                UUID (3) with 2 bytes [0 extra bits] len 3
                  RFCOMM (0x0003)
                Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                  0x0a
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  OBEX (0x0008)
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  OBEX File Transfer (0x1106)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0102
            Attribute: Unknown (0x0100) [len 2]
              File Transfer [len 13]
            Attribute: Unknown (0x0200) [len 2]
              0x1007
          Attribute list: [len 100] {position 12}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x0001000d
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                OBEX Object Push (0x1105)
            Attribute: Protocol Descriptor List (0x0004) [len 2]
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
              Sequence (6) with 5 bytes [8 extra bits] len 7
                UUID (3) with 2 bytes [0 extra bits] len 3
                  RFCOMM (0x0003)
                Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                  0x09
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  OBEX (0x0008)
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  OBEX Object Push (0x1105)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0102
            Attribute: Unknown (0x0100) [len 2]
              Object Push [len 11]
            Attribute: Unknown (0x0200) [len 2]
              0x1009
            Attribute: Unknown (0x0303) [len 2]
              Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                0x01
              Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                0x02
              Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                0x03
              Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                0x04
              Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                0x05
              Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                0x06
              Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                0xff
          Attribute list: [len 79] {position 13}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x0001000e
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Audio Sink (0x110b)
            Attribute: Protocol Descriptor List (0x0004) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0019
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  AVDTP (0x0019)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0103
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  Advanced Audio Distribution (0x110d)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0103
            Attribute: Unknown (0x0100) [len 2]
              Audio Sink [len 10]
            Attribute: Unknown (0x0311) [len 2]
              0x000f
          Attribute list: [len 81] {position 14}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x0001000f
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Audio Source (0x110a)
            Attribute: Protocol Descriptor List (0x0004) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0019
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  AVDTP (0x0019)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0103
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  Advanced Audio Distribution (0x110d)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0103
            Attribute: Unknown (0x0100) [len 2]
              Audio Source [len 12]
            Attribute: Unknown (0x0311) [len 2]
              0x000f
< ACL Data TX: Handle 2 flags 0x00 dlen 24                                                                               #47 [hci0] 16.833605
      Channel: 64 len 20 [PSM 1 mode 0] {chan 0}
      SDP: Service Search Attribute Request (0x06) tid 3 len 15
        Search pattern: [len 5]
          Sequence (6) with 3 bytes [8 extra bits] len 5
            UUID (3) with 2 bytes [0 extra bits] len 3
              PnP Information (0x1200)
        Max record count: 65535
        Attribute list: [len 7]
          Sequence (6) with 5 bytes [8 extra bits] len 7
            Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
              0x0000ffff
        Continuation state: 0
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                   #48 [hci0] 16.844286
        Num handles: 1
        Handle: 2
        Count: 1
> ACL Data RX: Handle 2 flags 0x02 dlen 88                                                                               #49 [hci0] 16.847348
      Channel: 64 len 84 [PSM 1 mode 0] {chan 0}
      SDP: Service Search Attribute Response (0x07) tid 3 len 79
        Attribute bytes: 76
          Attribute list: [len 72] {position 0}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x00010000
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                PnP Information (0x1200)
            Attribute: Browse Group List (0x0005) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                Public Browse Root (0x1002)
            Attribute: Bluetooth Profile Descriptor List (0x0009) [len 2]
              Sequence (6) with 6 bytes [8 extra bits] len 8
                UUID (3) with 2 bytes [0 extra bits] len 3
                  PnP Information (0x1200)
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0103
            Attribute: Unknown (0x0200) [len 2]
              0x0103
            Attribute: Unknown (0x0201) [len 2]
              0x1d6b
            Attribute: Unknown (0x0202) [len 2]
              0x0246
            Attribute: Unknown (0x0203) [len 2]
              0x053a
            Attribute: Unknown (0x0204) [len 2]
              true
            Attribute: Unknown (0x0205) [len 2]
              0x0002
        Continuation state: 0
< ACL Data TX: Handle 2 flags 0x00 dlen 12                                                                               #50 [hci0] 19.197253
      L2CAP: Disconnection Request (0x06) ident 5 len 4
        Destination CID: 64
        Source CID: 64
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                   #51 [hci0] 19.217302
        Num handles: 1
        Handle: 2
        Count: 1
> ACL Data RX: Handle 2 flags 0x02 dlen 12                                                                               #52 [hci0] 19.300202
      L2CAP: Disconnection Response (0x07) ident 5 len 4
        Destination CID: 64
        Source CID: 64
< HCI Command: Disconnect (0x01|0x0006) plen 3                                                                           #53 [hci0] 21.302398
        Handle: 2
        Reason: Remote User Terminated Connection (0x13)
> HCI Event: Command Status (0x0f) plen 4                                                                                #54 [hci0] 21.303300
      Disconnect (0x01|0x0006) ncmd 2
        Status: Success (0x00)
> HCI Event: Disconnect Complete (0x05) plen 4                                                                           #55 [hci0] 21.393318
        Status: Success (0x00)
        Handle: 2
        Reason: Connection Terminated By Local Host (0x16)
@ MGMT Event: Device Disconnected (0x000c) plen 8                                                                   {0x0003} [hci0] 21.393402
        BR/EDR Address: 40:74:E0:07:2E:E7 (OUI 40-74-E0)
        Reason: Connection terminated by local host (0x02)
@ MGMT Event: Device Disconnected (0x000c) plen 8                                                                   {0x0002} [hci0] 21.393402
        BR/EDR Address: 40:74:E0:07:2E:E7 (OUI 40-74-E0)
        Reason: Connection terminated by local host (0x02)
@ MGMT Event: Device Disconnected (0x000c) plen 8                                                                   {0x0001} [hci0] 21.393402
        BR/EDR Address: 40:74:E0:07:2E:E7 (OUI 40-74-E0)
        Reason: Connection terminated by local host (0x02)
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1                                                                    #56 [hci0] 21.422676
        Scan enable: Page Scan (0x02)
> HCI Event: Command Complete (0x0e) plen 4                                                                              #57 [hci0] 21.424277
      Write Scan Enable (0x03|0x001a) ncmd 2
        Status: Success (0x00)

Please check whether this is caused by this specific BT chip only or the software stack on it.

It connects only when trying to connect with applications meant for BLE devices (Bluetooth Low Energy). I tried using the application ‘nRF connect for Mobile’.
When I connect through this application, the disconnecting issue is not happening. But I need to connect with headphones.
Is there any dependency on Jetson?

Hi WayneWWW,
The problem is solved!
The problem was, we flashed the board using custom rootfs using downloaded sample rootfs. And set the username and passsword using l4t_create_default_user.sh.

When we tried to install and flash the board using Nvidia SDK Manager and configure it using connecting to HDMI display. Also enabling the Bluetooth audio explained in forum(link), now the bluetooth working fine.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.