All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zheng Tao-B46827 <b46827@freescale.com>
To: Lukasz Rymanowski <lukasz.rymanowski@gmail.com>
Cc: "linux-bluetooth@vger.kernel.org"
	<linux-bluetooth@vger.kernel.org>, <max.tsai@freescale.com>,
	<xiao-lizhang@freescale.com>
Subject: Re: BlueZ for Android 4.4.3
Date: Thu, 12 Feb 2015 10:22:02 +0800	[thread overview]
Message-ID: <54DC0E4A.2070709@freescale.com> (raw)
In-Reply-To: <CAN_7+YZu0v0zekp0LrQM3dbtkYL=cY_ALT5+exHDeyUmO_0uCQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 4126 bytes --]

Hi, Lukasz

On 2/11/2015 7:41 PM, Lukasz Rymanowski wrote:
> Hi,
>
> On Wed, Feb 11, 2015 at 10:37 AM, Zheng Tao-B46827 <b46827@freescale.com> wrote:
>> Hi, Lukasz
>> Thanks for your reply. Following you steps, the previous problem has been
>> resolved, but it seems that the connection is not stable. When I execute av
>> connect, I can hear "Connected" from my Bluetooth headset, but it will be
>> disconnected immediately which i can hear "disconnected".  And it will
>> prompt "I/bluetoothd( 1061): bluetoothd[1062]: Unable to find matching
>> endpoint". Is this a bug? can you give some advise?
>>
>>> av connect 24:fd:52:b6:a0:99
>> connection_state: connection_state=BTAV_CONNECTION_STATE_CONNECTING
>> remote_bd_addr=24:fd:52:b6:a0:99
>> if_av->connect: BT_STATUS_SUCCESS
>>> D/BlueZ   ( 1060):
>>> external/bluetooth/bluez/android/hal-a2dp.c:a2dp_connect()
>> acl_state_changed_cb: status=BT_STATUS_SUCCESS
>> remote_bd_addr=24:fd:52:b6:a0:99 state=BT_ACL_STATE_CONNECTED
>>> D/BlueZ   ( 1060):
>>> external/bluetooth/bluez/android/hal-bluetooth.c:handle_acl_state_changed()
>>> state 0
>> connection_state: connection_state=BTAV_CONNECTION_STATE_DISCONNECTED
>> remote_bd_addr=24:fd:52:b6:a0:99
>>> I/bluetoothd( 1061): bluetoothd[1062]: Unable to find matching endpoint
> Here is the clue.
>
> Can you provide btmon logs?
I found this log when execute av connect command:
< HCI Command: Disconnect (0x01|0x0006) plen 3 [hci0] 215.582054
         Handle: 71
         Reason: Remote User Terminated Connection (0x13)
I doubt that why "Remote User Terminated Connection", because when I 
heard "connected" from Bluetooth headset and I have done nothing with 
it.  The full log when execute av connect command is attached. Thanks.
>
>> acl_state_changed_cb: status=BT_STATUS_SUCCESS
>> remote_bd_addr=24:fd:52:b6:a0:99 state=BT_ACL_STATE_DISCONNECTED
>>> D/BlueZ   ( 1060):
>>> external/bluetooth/bluez/android/hal-bluetooth.c:handle_acl_state_changed()
>>> state 1
>>
> \Łukasz
>
>> On 2/11/2015 4:16 PM, Lukasz Rymanowski wrote:
>>> Hi Tony,
>>>
>>> On Tue, Feb 10, 2015 at 2:51 AM, Zheng Tao-B46827 <b46827@freescale.com>
>>> wrote:
>>>> Hi, Peers
>>>>
>>>> Thanks for your hard work that let us can experience BlueZ for Android.
>>>> But
>>>> I am faced with a audio/a2dp problems that stick me many weeks.
>>>>
>>>> I’m try to port Bluez to kitkat 4.4.3, and many common profiles, such as
>>>> HIDP/FTP/GATT can function successfully. But the A2DP profile failed.
>>>>
>>>> So, I try to debug it using haltest tool as follows(with USB Bluetooth
>>>> Dongle):
>>>>
>>>> 1.bluetooth init
>>>>
>>>> 2.bluetooth enable
>>>>
>>>> 3.bluetooth get_profile_interface a2dp
>>>>
>>>> 4.bluetooth start_discovery
>>>>
>>>> 5.bluetooth create_bond xxxxxxxx
>>>>
>>> Here you should setup A2DP using "av connect <bdaddr>." (don't forget
>>> to do av init before.)  Once you are connected you can open stream.
>>>
>>>
>>>> 6.audio init
>>>>
>>>> 7.audio open_output_stream
>>>>
>>>> Then it will prompts:
>>>>
>>>> D/BlueZ   ( 1106):
>>>> external/bluetooth/bluez/android/hal-audio.c:audio_open_output_stream()
>>>>
>>>> D/BlueZ   ( 1106):
>>>> external/bluetooth/bluez/android/hal-audio.c:ipc_open_stream_cmd()
>>>>
>>>> E/BlueZ   ( 1106): audio: Invalid cmd socket passed to audio_ipc_cmd
>>>>
>>>> E/BlueZ   ( 1106): audio: cannot open output stream
>>>>
>>>> when I debug it , I found that
>>>>
>>>> BlueZ   ( 1106):
>>>> external/bluetooth/bluez/android/hal-audio.c:ipc_handler()
>>>> Waiting for connection ...
>>>>
>>>> And it seems that there is no audio socket to connect it.
>>>>
>>>> I’m not familiar with Bluez stack details, can you give some advice? What
>>>> should I do to enable audio/a2dp functionality and execute audio play
>>>> command? Thanks.
>>>
>>> \Lukasz
>>>
>>>> ----------------------------------------------
>>>>
>>>> *Best Regards!*
>>>>
>>>> Tony Zheng
>>>>
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe
>>>> linux-bluetooth"
>>>> in
>>>> the body of a message to majordomo@vger.kernel.org
>>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: btmon_log_fsl.txt --]
[-- Type: text/plain; charset="gb18030"; name="btmon_log_fsl.txt", Size: 21947 bytes --]

> av connect 24:fd:52:b6:a0:99
connection_state: connection_state=BTAV_CONNECTION_STATE_CONNECTING remote_bd_addr=24:fd:52:b6:a0:99
< HCI Command: Create Connection (0x01|0x0005) plen 13        [hci0] 210.555389
        Address: 24:FD:52:B6:A0:99 (OUI 24-FD-52)
        Packet type: 0xcc18
if_av->connect: BT_STATUS_SUCCESS
          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: R1 (0x01)
        Page scan mode: Mandatory (0x00)
        Clock offset: 0xef5a
        Role switch: Allow slave (0x01)
D/BlueZ   ( 1789): external/bluetooth/bluez/android/hal-a2dp.c:a2dp_connect()
> HCI Event: Command Status (0x0f) plen 4                     [hci0] 210.567941
      Create Connection (0x01|0x0005) ncmd 1
        Status: Success (0x00)
> HCI Event: Connect Complete (0x03) plen 11                  [hci0] 211.234923
        Status: Success (0x00)
        Handle: 71
        Address: 24:FD:52:B6:A0:99 (OUI 24-FD-52)
        Link type: ACL (0x01)
        Encryption: Disabled (0x00)
< HCI Command: Read Remote Supported... (0x01|0x001b) plen 2  [hci0] 211.235356
        Handle: 71
> HCI Event: Command Status (0x0f) plen 4                     [hci0] 211.240943
      Read Remote Supported Features (0x01|0x001b) ncmd 0
        Status: Success (0x00)
> HCI Event: Max Slots Change (0x1b) plen 3                   [hci0] 211.253913
        Handle: 71
        Max slots: 5
> HCI Event: Command Status (0x0f) plen 4                     [hci0] 211.261920
      NOP (0x00|0x0000) ncmd 1
        Status: Success (0x00)
> HCI Event: Read Remote Supported Features (0x0b) plen 11    [hci0] 211.290914
        Status: Success (0x00)
        Handle: 71
        Features: 0xbf 0xfe 0x8b 0xfe 0x98 0xbf 0x59 0x83
          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
          Transparent synchronous data
          Broadcast Encryption
          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)
          AFH capable slave
          AFH classification slave
          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
          3-slot Enhanced Data Rate eSCO packets
          Extended Inquiry Response
          Secure Simple Pairing
          Encapsulated PDU
          Non-flushable Packet Boundary Flag
          Link Supervision Timeout Changed Event
          Inquiry TX Power Level
          Extended features
< HCI Command: Read Remote Extended F.. (0x01|0x001c) plen 3  [hci0] 211.291032
        Handle: 71
        Page: 1
> HCI Event: Command Status (0x0f) plen 4                     [hci0] 211.294936
      Read Remote Extended Features (0x01|0x001c) ncmd 1
        Status: Success (0x00)
> HCI Event: Read Remote Extended Features (0x23) plen 13     [hci0] 211.308913
        Status: Success (0x00)
        Handle: 71
        Page: 1/1
        Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
          Secure Simple Pairing (Host Support)
< HCI Command: Remote Name Request (0x01|0x0019) plen 10      [hci0] 211.309034
        Address: 24:FD:52:B6:A0:99 (OUI 24-FD-52)
        Page scan repetition mode: R2 (0x02)
        Page scan mode: Mandatory (0x00)
        Clock offset: 0x0000
> HCI Event: Command Status (0x0f) plen 4                     [hci0] 211.312941
      Remote Name Request (0x01|0x0019) ncmd 1
        Status: Success (0x00)
> HCI Event: Remote Name Req Complete (0x07) plen 255         [hci0] 211.377906
        Status: Success (0x00)
        Address: 24:FD:52:B6:A0:99 (OUI 24-FD-52)
        Name: Jabra TAG v2.0.0
< HCI Command: Authentication Requested (0x01|0x0011) plen 2  [hci0] 211.378061
        Handle: 71
acl_state_changed_cb: status=BT_STATUS_SUCCESS remote_bd_addr=24:fd:52:b6:a0:99 state=BT_ACL_STATE_CONNECTED
@ Device Connected: 24:FD:52:B6:A0:99 (0) flags 0x0000
>         11 09 4a 61 62 72 61 20 54 41 47 20 76 32 2e 30  ..Jabra TAG v2.0
        2e 30 04 0d 04 04 24                             .0....$
> HCI Event: Command Status (0x0f) plen 4                     [hci0] 211.378942
      Authentication Requested (0x01|0x0011) ncmd 1
        Status: Success (0x00)
D/BlueZ   ( 1789): external/bluetooth/bluez/android/hal-bluetooth.c:handle_acl_state_changed() state 0
> HCI Event: Link Key Request (0x17) plen 6                   [hci0] 211.380917
        Address: 24:FD:52:B6:A0:99 (OUI 24-FD-52)
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22   [hci0] 211.381022
        Address: 24:FD:52:B6:A0:99 (OUI 24-FD-52)
        Link key: fee034056a0a8b4a7351c74c2f3eda48
> HCI Event: Command Complete (0x0e) plen 10                  [hci0] 211.384929
      Link Key Request Reply (0x01|0x000b) ncmd 1
        Status: Success (0x00)
        Address: 24:FD:52:B6:A0:99 (OUI 24-FD-52)
> HCI Event: Auth Complete (0x06) plen 3                      [hci0] 211.418913
        Status: Success (0x00)
        Handle: 71
< HCI Command: Set Connection Encrypt.. (0x01|0x0013) plen 3  [hci0] 211.419023
        Handle: 71
        Encryption: Enabled (0x01)
> HCI Event: Command Status (0x0f) plen 4                     [hci0] 211.423930
      Set Connection Encryption (0x01|0x0013) ncmd 1
        Status: Success (0x00)
> HCI Event: Encryption Change (0x08) plen 4                  [hci0] 211.471916
        Status: Success (0x00)
        Handle: 71
        Encryption: Enabled with E0 (0x01)
< ACL Data TX: Handle 71 flags 0x00 dlen 10                   [hci0] 211.472047
      L2CAP: Information Request (0x0a) ident 1 len 2
        Type: Extended features supported (0x0002)
> HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 211.476929
        Num handles: 1
        Handle: 71
        Count: 1
> ACL Data RX: Handle 71 flags 0x02 dlen 16                   [hci0] 211.486916
      L2CAP: Information Response (0x0b) ident 1 len 8
        Type: Extended features supported (0x0002)
        Result: Success (0x0000)
        Features: 0x00000038
          Enhanced Retransmission Mode
          Streaming Mode
          FCS Option
< ACL Data TX: Handle 71 flags 0x00 dlen 12                   [hci0] 211.487039
      L2CAP: Connection Request (0x02) ident 2 len 4
        PSM: 25 (0x0019)
        Source CID: 64
> HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 211.492915
        Num handles: 1
        Handle: 71
        Count: 1
> ACL Data RX: Handle 71 flags 0x02 dlen 16                   [hci0] 211.497913
      L2CAP: Connection Response (0x03) ident 2 len 8
        Destination CID: 192
        Source CID: 64
        Result: Connection pending (0x0001)
        Status: Authorization pending (0x0002)
> ACL Data RX: Handle 71 flags 0x02 dlen 16                   [hci0] 211.556919
      L2CAP: Connection Response (0x03) ident 2 len 8
        Destination CID: 192
        Source CID: 64
        Result: Connection successful (0x0000)
        Status: No further information available (0x0000)
< ACL Data TX: Handle 71 flags 0x00 dlen 23                   [hci0] 211.557047
      L2CAP: Configure Request (0x04) ident 3 len 15
        Destination CID: 192
        Flags: 0x0000
        Option: Retransmission and Flow Control (0x04)
          Mode: Basic (0x00)
          TX window size: 0
          Max transmit: 0
          Retransmission timeout: 0
          Monitor timeout: 0
          Maximum PDU size: 0
> ACL Data RX: Handle 71 flags 0x02 dlen 20                   [hci0] 211.559915
      L2CAP: Configure Request (0x04) ident 1 len 12
        Destination CID: 64
        Flags: 0x0000
        Option: Maximum Transmission Unit (0x01)
          MTU: 895
        Option: Flush Timeout (0x02)
          Flush timeout: 65535
< ACL Data TX: Handle 71 flags 0x00 dlen 18                   [hci0] 211.560027
      L2CAP: Configure Response (0x05) ident 1 len 10
        Source CID: 192
        Flags: 0x0000
        Result: Success (0x0000)
        Option: Maximum Transmission Unit (0x01)
          MTU: 895
> HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 211.562913
        Num handles: 1
        Handle: 71
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 211.564916
        Num handles: 1
        Handle: 71
        Count: 1
> ACL Data RX: Handle 71 flags 0x02 dlen 22                   [hci0] 211.573919
      L2CAP: Configure Response (0x05) ident 3 len 14
        Source CID: 64
        Flags: 0x0000
        Result: Success (0x0000)
        Option: Maximum Transmission Unit (0x01)
          MTU: 672
        Option: Flush Timeout (0x02)
          Flush timeout: 65535
< ACL Data TX: Handle 71 flags 0x00 dlen 6                    [hci0] 211.574327
      Channel: 192 len 2 [PSM 25 mode 0] {chan 0}
        00 01                                            ..
< ACL Data TX: Handle 71 flags 0x00 dlen 12                   [hci0] 211.574585
      L2CAP: Connection Request (0x02) ident 4 len 4
        PSM: 1 (0x0001)
        Source CID: 65
> HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 211.581918
        Num handles: 1
        Handle: 71
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 211.582941
        Num handles: 1
        Handle: 71
        Count: 1
> ACL Data RX: Handle 71 flags 0x02 dlen 16                   [hci0] 211.592918
      L2CAP: Connection Response (0x03) ident 4 len 8
        Destination CID: 257
        Source CID: 65
        Result: Connection pending (0x0001)
        Status: Authorization pending (0x0002)
> ACL Data RX: Handle 71 flags 0x02 dlen 16                   [hci0] 211.606918
      L2CAP: Connection Response (0x03) ident 4 len 8
connection_state: connection_state=BTAV_CONNECTION_STATE_DISCONNECTED remote_bd_addr=24:fd:52:b6:a0:99
> I/bluetoothd( 1790): bluetoothd[1791]: Unable to find matching endpoint
        Destination CID: 257
        Source CID: 65
        Result: Connection successful (0x0000)
        Status: No further information available (0x0000)
< ACL Data TX: Handle 71 flags 0x00 dlen 23                   [hci0] 211.607038
      L2CAP: Configure Request (0x04) ident 5 len 15
        Destination CID: 257
        Flags: 0x0000
        Option: Retransmission and Flow Control (0x04)
          Mode: Basic (0x00)
          TX window size: 0
          Max transmit: 0
          Retransmission timeout: 0
          Monitor timeout: 0
          Maximum PDU size: 0
> ACL Data RX: Handle 71 flags 0x02 dlen 16                   [hci0] 211.610919
      L2CAP: Configure Request (0x04) ident 2 len 8
        Destination CID: 65
        Flags: 0x0000
        Option: Maximum Transmission Unit (0x01)
          MTU: 48
< ACL Data TX: Handle 71 flags 0x00 dlen 18                   [hci0] 211.611032
      L2CAP: Configure Response (0x05) ident 2 len 10
        Source CID: 257
        Flags: 0x0000
        Result: Success (0x0000)
        Option: Maximum Transmission Unit (0x01)
          MTU: 48
> HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 211.611927
        Num handles: 1
        Handle: 71
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 211.616913
        Num handles: 1
        Handle: 71
        Count: 1
> ACL Data RX: Handle 71 flags 0x02 dlen 14                   [hci0] 211.622917
      L2CAP: Configure Response (0x05) ident 5 len 6
        Source CID: 65
        Flags: 0x0000
        Result: Success (0x0000)
< ACL Data TX: Handle 71 flags 0x00 dlen 24                   [hci0] 211.623221
      Channel: 257 len 20 [PSM 1 mode 0] {chan 1}
      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
              A/V Remote Control (0x110e)
        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        [hci0] 211.628912
        Num handles: 1
        Handle: 71
        Count: 1
> ACL Data RX: Handle 71 flags 0x02 dlen 52                   [hci0] 211.649917
      Channel: 65 len 48 [PSM 1 mode 0] {chan 1}
      SDP: Service Search Attribute Response (0x07) tid 0 len 43
        Attribute bytes: 38
        Continuation state: 2
        00 1b                                            ..
< ACL Data TX: Handle 71 flags 0x00 dlen 26                   [hci0] 211.650419
      Channel: 257 len 22 [PSM 1 mode 0] {chan 1}
      SDP: Service Search Attribute Request (0x06) tid 1 len 17
        Search pattern: [len 5]
          Sequence (6) with 3 bytes [8 extra bits] len 5
            UUID (3) with 2 bytes [0 extra bits] len 3
              A/V Remote Control (0x110e)
        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: 2
        00 1b                                            ..
> HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 211.654912
        Num handles: 1
        Handle: 71
        Count: 1
> ACL Data RX: Handle 71 flags 0x02 dlen 39                   [hci0] 211.665918
      Channel: 65 len 35 [PSM 1 mode 0] {chan 1}
      SDP: Service Search Attribute Response (0x07) tid 1 len 30
        Attribute bytes: 27
        Continuation state: 0
        Combined attribute bytes: 65
          Attribute list: [len 59] {position 0}
            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
                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: 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
                  0x0104
            Attribute: Unknown (0x0311) [len 2]
              0x0001
< ACL Data TX: Handle 71 flags 0x00 dlen 12                   [hci0] 211.666605
      L2CAP: Connection Request (0x02) ident 6 len 4
        PSM: 23 (0x0017)
        Source CID: 66
> HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 211.671916
        Num handles: 1
        Handle: 71
        Count: 1
> ACL Data RX: Handle 71 flags 0x02 dlen 16                   [hci0] 211.681918
      L2CAP: Connection Response (0x03) ident 6 len 8
        Destination CID: 322
        Source CID: 66
        Result: Connection pending (0x0001)
        Status: Authorization pending (0x0002)
> ACL Data RX: Handle 71 flags 0x02 dlen 8                    [hci0] 211.997917
      Channel: 64 len 4 [PSM 25 mode 0] {chan 0}
        02 01 04 08                                      ....
< ACL Data TX: Handle 71 flags 0x00 dlen 7                    [hci0] 211.998265
      Channel: 192 len 3 [PSM 25 mode 0] {chan 0}
        10 02 04                                         ...
> HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 212.003915
        Num handles: 1
        Handle: 71
        Count: 1
> ACL Data RX: Handle 71 flags 0x02 dlen 20                   [hci0] 212.072919
      Channel: 64 len 16 [PSM 25 mode 0] {chan 0}
        12 02 01 00 07 06 00 00 ff ff 02 35 04 02 02 00  ........??.5....
< ACL Data TX: Handle 71 flags 0x00 dlen 12                   [hci0] 212.073712
      L2CAP: Disconnection Request (0x06) ident 7 len 4
        Destination CID: 192
        Source CID: 64
> ACL Data RX: Handle 71 flags 0x02 dlen 16                   [hci0] 212.075921
      L2CAP: Connection Response (0x03) ident 6 len 8
        Destination CID: 322
        Source CID: 66
        Result: Connection successful (0x0000)
        Status: No further information available (0x0000)
> ACL Data RX: Handle 71 flags 0x02 dlen 10                   [hci0] 212.076931
      L2CAP: Information Request (0x0a) ident 3 len 2
        Type: Extended features supported (0x0002)
< ACL Data TX: Handle 71 flags 0x00 dlen 16                   [hci0] 212.077034
      L2CAP: Information Response (0x0b) ident 3 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        [hci0] 212.077925
        Num handles: 1
        Handle: 71
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 212.082916
        Num handles: 1
        Handle: 71
        Count: 1
> ACL Data RX: Handle 71 flags 0x02 dlen 34                   [hci0] 212.092919
      L2CAP: Configure Request (0x04) ident 4 len 26
        Destination CID: 66
        Flags: 0x0000
        Option: Maximum Transmission Unit (0x01)
          MTU: 672
        Option: Flush Timeout (0x02)
          Flush timeout: 65535
        Option: Retransmission and Flow Control (0x04)
          Mode: Enhanced retransmission (0x03)
          TX window size: 5
          Max transmit: 10
          Retransmission timeout: 0
          Monitor timeout: 0
          Maximum PDU size: 3958
        Option: Frame Check Sequence (0x05)
          FCS: 16-bit FCS (0x01)
< ACL Data TX: Handle 71 flags 0x00 dlen 14                   [hci0] 212.093021
      L2CAP: Command Reject (0x01) ident 4 len 6
        Reason: Invalid CID in request (0x0002)
        Destination CID: 66
        Source CID: 0
> HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 212.098911
        Num handles: 1
        Handle: 71
        Count: 1
> ACL Data RX: Handle 71 flags 0x02 dlen 12                   [hci0] 212.436921
      L2CAP: Disconnection Response (0x07) ident 7 len 4
        Destination CID: 192
        Source CID: 64
< ACL Data TX: Handle 71 flags 0x00 dlen 12                   [hci0] 213.563007
      L2CAP: Disconnection Request (0x06) ident 8 len 4
        Destination CID: 257
        Source CID: 65
> HCI Event: Number of Completed Packets (0x13) plen 5        [hci0] 213.565915
        Num handles: 1
        Handle: 71
        Count: 1
> ACL Data RX: Handle 71 flags 0x02 dlen 12                   [hci0] 213.588917
      L2CAP: Disconnection Response (0x07) ident 8 len 4
        Destination CID: 257
        Source CID: 65
< HCI Command: Read Clock Offset (0x01|0x001f) plen 2         [hci0] 215.580791
        Handle: 71
> HCI Event: Command Status (0x0f) plen 4                     [hci0] 215.581944
      Read Clock Offset (0x01|0x001f) ncmd 1
        Status: Success (0x00)
< HCI Command: Disconnect (0x01|0x0006) plen 3                [hci0] 215.582054
        Handle: 71
        Reason: Remote User Terminated Connection (0x13)
> HCI Event: Command Status (0x0f) plen 4                     [hci0] 215.586927
      Disconnect (0x01|0x0006) ncmd 0
        Status: Success (0x00)
> HCI Event: Read Clock Offset Complete (0x1c) plen 5         [hci0] 215.592917
        Status: Success (0x00)
        Handle: 71
        Clock offset: 0x6f5a
> HCI Event: Command Status (0x0f) plen 4                     [hci0] 215.595918
      NOP (0x00|0x0000) ncmd 1
        Status: Success (0x00)
acl_state_changed_cb: status=BT_STATUS_SUCCESS remote_bd_addr=24:fd:52:b6:a0:99 state=BT_ACL_STATE_DISCONNECTED
> > HCI Event: Disconnect Complete (0x05) plen 4                [hci0] 215.673914
        Status: Success (0x00)
        Handle: 71
        Reason: Connection Terminated By Local Host (0x16)
@ Device Disconnected: 24:FD:52:B6:A0:99 (0) reason 2
D/BlueZ   ( 1789): external/bluetooth/bluez/android/hal-bluetooth.c:handle_acl_state_changed() state 1

>

  reply	other threads:[~2015-02-12  2:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-10  1:51 BlueZ for Android 4.4.3 Zheng Tao-B46827
2015-02-11  8:16 ` Lukasz Rymanowski
2015-02-11  9:37   ` Zheng Tao-B46827
2015-02-11 11:41     ` Lukasz Rymanowski
2015-02-12  2:22       ` Zheng Tao-B46827 [this message]
2015-02-13 16:02         ` Lukasz Rymanowski
2015-03-02  6:54           ` Zheng Tao-B46827
2015-03-04 11:43             ` Lukasz Rymanowski
     [not found]               ` <54FD4B0E.9010306@freescale.com>
2015-03-16 10:16                 ` Lukasz Rymanowski
  -- strict thread matches above, loose matches on Subject: below --
2015-02-10  1:37 Zheng Tao-B46827

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54DC0E4A.2070709@freescale.com \
    --to=b46827@freescale.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=lukasz.rymanowski@gmail.com \
    --cc=max.tsai@freescale.com \
    --cc=xiao-lizhang@freescale.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.