problem when using bluez to transfer file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I downloaded latest bluez codes and tried to send one file from my mobile (44:C1:5C:40:0C:BC) to the Bluetooth adapter in my Ubuntu machine. The log shows the connection succeeds, while the mobile phone sends one disconnect request to the Bluetooth adapter during the file transfer.
I tried to track the log, found the following function call, hci_acldata_packet(hdev, skb) ->l2cap_recv_acldata()->l2cap_recv_frame()->l2cap_sig_channel()->l2cap_bredr_sig_cmd()->l2cap_disconnect_req
Could anyone figure out why and how could I succeed the file transfer? 
Thanks.
Christina

Steps:
1. In my Ubuntu machine: sudo  bluetoothd;  sudo hciconfig hci0 up
2. sudo  bluetoothctl ;  remove 44:C1:5C:40:0C:BC ;  scan on ;  scan off;  connect 44:C1:5C:40:0C:BC 
   bluetootctl log:   [bluetooth]# connect 44:C1:5C:40:0C:BC 
  Attempting to connect to 44:C1:5C:40:0C:BC
  [CHG] Device 44:C1:5C:40:0C:BC Connected: yes
  [CHG] Device 44:C1:5C:40:0C:BC UUIDs has unsupported type
  [CHG] Device 44:C1:5C:40:0C:BC Paired: yes
  Connection successful
3. send one pic from my mobile device to bt adpter in ubuntu,
then there is one msg show on the phone screen “ Bluetooth share: File test.jpg not sent”, and the file fails to send out

below is the btmon log:
> ACL Data RX: Handle 69 flags 0x02 dlen 12                                                                                 [hci0] 47.691763
      L2CAP: Connection Request (0x02) ident 17 len 4
        PSM: 1 (0x0001)
        Source CID: 65
< ACL Data TX: Handle 69 flags 0x00 dlen 16                                                                                 [hci0] 47.691900
      L2CAP: Connection Response (0x03) ident 17 len 8
        Destination CID: 64
        Source CID: 65
        Result: Connection successful (0x0000)
        Status: No further information available (0x0000)
< ACL Data TX: Handle 69 flags 0x00 dlen 23                                                                                 [hci0] 47.691913
      L2CAP: Configure Request (0x04) ident 12 len 15
        Destination CID: 65
        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 69 flags 0x02 dlen 23                                                                                 [hci0] 47.731657
      L2CAP: Configure Request (0x04) ident 18 len 15
        Destination CID: 64
        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 TX: Handle 69 flags 0x00 dlen 18                                                                                 [hci0] 47.731747
      L2CAP: Configure Response (0x05) ident 18 len 10
        Destination CID: 65
        Flags: 0x0000
        Result: Success (0x0000)
        Option: Maximum Transmission Unit (0x01)
          MTU: 672
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                      [hci0] 47.733663
        Num handles: 1
        Handle: 69
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                      [hci0] 47.734601
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 18                                                                                 [hci0] 47.735352
      L2CAP: Configure Response (0x05) ident 12 len 10
        Destination CID: 64
        Flags: 0x0000
        Result: Success (0x0000)
        Option: Maximum Transmission Unit (0x01)
          MTU: 672
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                      [hci0] 47.736599
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 24                                                                                 [hci0] 47.736726
      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
< ACL Data TX: Handle 69 flags 0x00 dlen 310                                                                                [hci0] 47.737044
< ACL Data TX: Handle 69 flags 0x01 dlen 310                                                                                [hci0] 47.737061
      Channel: 65 len 616 [PSM 1 mode 0] {chan 0}
      SDP: Service Search Attribute Response (0x07) tid 0 len 611
        Attribute bytes: 608
          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
                  0x0008
            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
                  0x0010
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0010
            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 74] {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
                Unknown (0xa004)
            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
                  0x001b
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0x0025
            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]
              Thermometer [len 11]
            Attribute: Unknown (0x0102) [len 2]
              BlueZ [len 5]
          Attribute list: [len 91] {position 3}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x00010004
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 16 bytes [0 extra bits] len 17
                4f0ac096-35d4-4911-9631-dea8dc74eefe
            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
                  0xfffa
                Unsigned Integer (1) with 2 bytes [0 extra bits] len 3
                  0xffff
            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]
              Weight Service [len 14]
            Attribute: Unknown (0x0102) [len 2]
              BlueZ [len 5]
          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
                  0x0104
            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 77] {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
                A/V Remote Control (0x110e)
            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: Unknown (0x0100) [len 2]
              AVRCP CT [len 8]
            Attribute: Unknown (0x0311) [len 2]
              0x000f
        Continuation state: 0
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                      [hci0] 47.753657
        Num handles: 1
        Handle: 69
        Count: 2
> ACL Data RX: Handle 69 flags 0x02 dlen 24                                                                                 [hci0] 47.771657
      Channel: 64 len 20 [PSM 1 mode 0] {chan 0}
      SDP: Service Search Attribute Request (0x06) tid 1 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
< ACL Data TX: Handle 69 flags 0x00 dlen 88                                                                                 [hci0] 47.771913
      Channel: 65 len 84 [PSM 1 mode 0] {chan 0}
      SDP: Service Search Attribute Response (0x07) tid 1 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]
              0x0503
            Attribute: Unknown (0x0204) [len 2]
              true
            Attribute: Unknown (0x0205) [len 2]
              0x0002
        Continuation state: 0
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                      [hci0] 47.823659
        Num handles: 1
        Handle: 69
        Count: 1
> ACL Data RX: Handle 69 flags 0x02 dlen 12                                                                                 [hci0] 50.087863
      L2CAP: Disconnection Request (0x06) ident 19 len 4
        Destination CID: 64
        Source CID: 65
< ACL Data TX: Handle 69 flags 0x00 dlen 12                                                                                 [hci0] 50.087970
      L2CAP: Disconnection Response (0x07) ident 19 len 4
        Destination CID: 64
        Source CID: 65
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                      [hci0] 50.139637
        Num handles: 1
        Handle: 69
        Count: 1



��.n��������+%������w��{.n�����{����^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux