RE: SDP Discovery collsion with Som Laptops

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

 



Hi ,
      I have some problem with my git send-email configuration, I'm working out to correct it. Whenever its ready I will send again the patch which I was already sent as attachment.

When I see the hci dump. After sending create connection  We got role change event as Slave(DUT), but we are the initiator of Authentication. So the variable device->bonding is True. So we will initiate SDP request after pairing complete.  Remote device also trying for SDP request after bonding.

I have a doubt , In spec whether anywhere specify the SDP query procedure (I mean whom should start first or something ?) . I don't know the behavior of the Laptop is advisable or not . Please give some suggestions to solve this without affecting other IOP.

I'm attaching the HCIDUMP for your reference


HCI sniffer - Bluetooth packet analyzer ver 1.42

device: hci0 snap_len: 1028 filter: 0xffffffff

< HCI Command: Create Connection (0x01|0x0005) plen 13

    bdaddr 70:F3:95:4A:A9:DA ptype 0xcc18 rswitch 0x01 clkoffset 0x0000

    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 

> HCI Event: Command Status (0x0f) plen 4

    Create Connection (0x01|0x0005) status 0x00 ncmd 1

> HCI Event: Role Change (0x12) plen 8

    status 0x00 bdaddr 70:F3:95:4A:A9:DA role 0x01

    Role: Slave

> HCI Event: Connect Complete (0x03) plen 11

    status 0x00 handle 256 bdaddr 70:F3:95:4A:A9:DA type ACL encrypt 0x00

< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2

    handle 256

> HCI Event: Max Slots Change (0x1b) plen 3

    handle 256 slots 5

> HCI Event: Command Status (0x0f) plen 4

    Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1

> HCI Event: Read Remote Supported Features (0x0b) plen 11

    status 0x00 handle 256

    Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x83

< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3

    handle 256 page 1

> HCI Event: Command Status (0x0f) plen 4

    Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1

> HCI Event: Read Remote Extended Features (0x23) plen 13

    status 0x00 handle 256 page 1 max 0

    Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00

< HCI Command: Authentication Requested (0x01|0x0011) plen 2

    handle 256

> HCI Event: Command Status (0x0f) plen 4

    Authentication Requested (0x01|0x0011) status 0x00 ncmd 1

> HCI Event: Link Key Request (0x17) plen 6

    bdaddr 70:F3:95:4A:A9:DA

< HCI Command: Remote Name Request (0x01|0x0019) plen 10

    bdaddr 70:F3:95:4A:A9:DA mode 2 clkoffset 0x0000

> HCI Event: Command Status (0x0f) plen 4

    Remote Name Request (0x01|0x0019) status 0x00 ncmd 1

< HCI Command: Link Key Request Negative Reply (0x01|0x000c) plen 6

    bdaddr 70:F3:95:4A:A9:DA

> HCI Event: Command Complete (0x0e) plen 10

    Link Key Request Negative Reply (0x01|0x000c) ncmd 1

    status 0x00 bdaddr 70:F3:95:4A:A9:DA

> HCI Event: IO Capability Request (0x31) plen 6

    bdaddr 70:F3:95:4A:A9:DA

> HCI Event: Remote Name Req Complete (0x07) plen 255

    status 0x00 bdaddr 70:F3:95:4A:A9:DA name 'MOHANAN-MOBL'

< HCI Command: IO Capability Request Reply (0x01|0x002b) plen 9

    bdaddr 70:F3:95:4A:A9:DA capability 0x01 oob 0x00 auth 0x03

    Capability: DisplayYesNo (OOB data not present)

    Authentication: Dedicated Bonding (MITM Protection)

> HCI Event: Command Complete (0x0e) plen 10

    IO Capability Request Reply (0x01|0x002b) ncmd 1

    status 0x00 bdaddr 70:F3:95:4A:A9:DA

> HCI Event: IO Capability Response (0x32) plen 9

    bdaddr 70:F3:95:4A:A9:DA capability 0x01 oob 0x00 auth 0x03

    Capability: DisplayYesNo (OOB data not present)

    Authentication: Dedicated Bonding (MITM Protection)

> HCI Event: User Confirmation Request (0x33) plen 10

    bdaddr 70:F3:95:4A:A9:DA passkey 770785

< HCI Command: User Confirmation Request Reply (0x01|0x002c) plen 6

    bdaddr 70:F3:95:4A:A9:DA

> HCI Event: Command Complete (0x0e) plen 10

    User Confirmation Request Reply (0x01|0x002c) ncmd 1

    status 0x00 bdaddr 70:F3:95:4A:A9:DA

> HCI Event: Simple Pairing Complete (0x36) plen 7

    status 0x00 bdaddr 70:F3:95:4A:A9:DA

> HCI Event: Link Key Notification (0x18) plen 23

    bdaddr 70:F3:95:4A:A9:DA key 42139A39E0C855C9777B0392F500A3E4 type 5

    Type: Authenticated Combination Key

> HCI Event: Auth Complete (0x06) plen 3

    status 0x00 handle 256

< HCI Command: Set Connection Encryption (0x01|0x0013) plen 3

    handle 256 encrypt 0x01

> HCI Event: Command Status (0x0f) plen 4

    Set Connection Encryption (0x01|0x0013) status 0x00 ncmd 1

> HCI Event: Encrypt Change (0x08) plen 4

    status 0x23 handle 256 encrypt 0x00

    Error: LMP Error Transaction Collision

> HCI Event: Encrypt Change (0x08) plen 4

    status 0x00 handle 256 encrypt 0x01

< ACL data: handle 256 flags 0x00 dlen 10

    L2CAP(s): Info req: type 2

> ACL data: handle 256 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 1 scid 0x0040

< ACL data: handle 256 flags 0x00 dlen 16

    L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0040 result 1 status 0

      Connection pending - No futher information available

< ACL data: handle 256 flags 0x00 dlen 10

    L2CAP(s): Info req: type 2

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 1

> ACL data: handle 256 flags 0x02 dlen 12

    L2CAP(s): Info rsp: type 2 result 1

      Not supported

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 1

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 1

> ACL data: handle 256 flags 0x02 dlen 12

    L2CAP(s): Info rsp: type 2 result 1

      Not supported

< ACL data: handle 256 flags 0x00 dlen 16

    L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0040 result 0 status 0

      Connection successful

< ACL data: handle 256 flags 0x00 dlen 12

    L2CAP(s): Connect req: psm 1 scid 0x0040

< ACL data: handle 256 flags 0x00 dlen 12

    L2CAP(s): Connect req: psm 1 scid 0x0040

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 1

> ACL data: handle 256 flags 0x02 dlen 16

    L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 4

      MTU 1024 

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 1

> ACL data: handle 256 flags 0x02 dlen 16

    L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0040 result 1 status 0

      Connection pending - No futher information available

> ACL data: handle 256 flags 0x02 dlen 16

    L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0040 result 0 status 0

      Connection successful

> ACL data: handle 256 flags 0x02 dlen 16

    L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4

      MTU 1024 

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 1

< ACL data: handle 256 flags 0x00 dlen 18

    L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4

      MTU 1024 

< ACL data: handle 256 flags 0x00 dlen 12

    L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 0

< ACL data: handle 256 flags 0x00 dlen 12

    L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 0

< ACL data: handle 256 flags 0x00 dlen 18

    L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 4

      MTU 1024 

> ACL data: handle 256 flags 0x02 dlen 16

    L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0040 result 4 status 0

      Connection refused - no resources available

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 1

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 1

> ACL data: handle 256 flags 0x02 dlen 14

    L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 0

      Success

> ACL data: handle 256 flags 0x02 dlen 24

    L2CAP(d): cid 0x0041 len 20 [psm 1]

        SDP SSA Req: tid 0x0 len 0xf

          pat uuid-16 0x0100 (L2CAP)

          max 1016

          aid(s) 0x0000 - 0xffff

          cont 00

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 1

> ACL data: handle 256 flags 0x02 dlen 14

    L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0

      Success

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 1

< ACL data: handle 256 flags 0x00 dlen 339

< ACL data: handle 256 flags 0x01 dlen 214

    L2CAP(d): cid 0x0040 len 549 [psm 1]

        SDP SSA Rsp: tid 0x0 len 0x220

          count 541

          record #0

              aid 0x0000 (SrvRecHndl)

                 uint 0x10001

              aid 0x0001 (SrvClassIDList)

                 < uuid-16 0x110a (AudioSource) >

              aid 0x0004 (ProtocolDescList)

                 < < uuid-16 0x0100 (L2CAP) uint 0x19 > <

                 uuid-16 0x0019 (AVDTP) uint 0x100 > >

              aid 0x0005 (BrwGrpList)

                 < uuid-16 0x1002 (PubBrwsGrp) >

              aid 0x0009 (BTProfileDescList)

                 < < uuid-16 0x110d (AdvAudio) uint 0x100 > >

              aid 0x0100 (SrvName)

                 str "Audio Source"

              aid 0x0311 (SuppFeatures)

                 uint 0xf

          record #1

              aid 0x0000 (SrvRecHndl)

                 uint 0x10002

              aid 0x0001 (SrvClassIDList)

                 < uuid-16 0x110c (AVRemTarget) >

              aid 0x0004 (ProtocolDescList)

                 < < uuid-16 0x0100 (L2CAP) uint 0x17 > <

                 uuid-16 0x0017 (AVCTP) uint 0x100 > >

              aid 0x0005 (BrwGrpList)

                 < uuid-16 0x1002 (PubBrwsGrp) >

              aid 0x0009 (BTProfileDescList)

                 < < uuid-16 0x110e (AVRemote) uint 0x100 > >

              aid 0x0100 (SrvName)

                 str "AVRCP TG"

              aid 0x0311 (SuppFeatures)

                 uint 0xf

          record #2

              aid 0x0000 (SrvRecHndl)

                 uint 0x10003

              aid 0x0001 (SrvClassIDList)

                 < uuid-16 0x111f (Handsfree AG) uuid-16 0x1203 (Audio) >

              aid 0x0004 (ProtocolDescList)

                 < < uuid-16 0x0100 (L2CAP) > <

                 uuid-16 0x0003 (RFCOMM) uint 0xa > >

              aid 0x0005 (BrwGrpList)

                 < uuid-16 0x1002 (PubBrwsGrp) >

              aid 0x0009 (BTProfileDescList)

                 < < uuid-16 0x111e (Handsfree) uint 0x105 > >

              aid 0x0100 (SrvName)

                 str "Voice Gateway"

              aid 0x0301 (SuppDataStoresList)

                 uint 0x1

              aid 0x0311 (SuppFeatures)

                 uint 0x7

          record #3

              aid 0x0000 (SrvRecHndl)

                 uint 0x10004

              aid 0x0001 (SrvClassIDList)

                 < uuid-16 0x1112 (Headset AG) uuid-16 0x1203 (Audio) >

              aid 0x0004 (ProtocolDescList)

                 < < uuid-16 0x0100 (L2CAP) > <

                 uuid-16 0x0003 (RFCOMM) uint 0xb > >

              aid 0x0005 (BrwGrpList)

                 < uuid-16 0x1002 (PubBrwsGrp) >

              aid 0x0009 (BTProfileDescList)

                 < < uuid-16 0x1108 (Headset) uint 0x100 > >

              aid 0x0100 (SrvName)

                 str "Voice Gateway"

              aid 0x0301 (SuppDataStoresList)

                 uint 0x1

              aid 0x0311 (SuppFeatures)

                 uint 0x17

          record #4

              aid 0x0000 (SrvRecHndl)

                 uint 0x10005

              aid 0x0001 (SrvClassIDList)

                 < uuid-16 0x1105 (OBEXObjPush) >

              aid 0x0004 (ProtocolDescList)

                 < < uuid-16 0x0100 (L2CAP) > <

                 uuid-16 0x0003 (RFCOMM) uint 0xc > <

                 uuid-16 0x0008 (OBEX) > >

              aid 0x0005 (BrwGrpList)

                 < uuid-16 0x1002 (PubBrwsGrp) >

              aid 0x0009 (BTProfileDescList)

                 < < uuid-16 0x1105 (OBEXObjPush) uint 0x100 > >

              aid 0x0100 (SrvName)

                 str "OBEX Object Push"

              aid 0x0303 (SuppFormatsList)

                 < uint 0x1 uint 0x2 uint 0x3 uint 0x4 uint 0x5 uint 0x6 uint 0xff >

          record #5

              aid 0x0000 (SrvRecHndl)

                 uint 0x10006

              aid 0x0001 (SrvClassIDList)

                 < uuid-16 0x112f (PBAP PSE) >

              aid 0x0004 (ProtocolDescList)

                 < < uuid-16 0x0100 (L2CAP) > <

                 uuid-16 0x0003 (RFCOMM) uint 0x13 > <

                 uuid-16 0x0008 (OBEX) > >

              aid 0x0005 (BrwGrpList)

                 < uuid-16 0x1002 (PubBrwsGrp) >

              aid 0x0009 (BTProfileDescList)

                 < < uuid-16 0x1130 (PBAP) uint 0x100 > >

              aid 0x0100 (SrvName)

                 str "OBEX Phonebook Access Server"

              aid 0x0314 (SuppRepositories)

                 uint 0x1

          cont 00

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 2

> ACL data: handle 256 flags 0x02 dlen 24

    L2CAP(d): cid 0x0041 len 20 [psm 1]

        SDP SSA Req: tid 0x1 len 0xf

          pat uuid-16 0x1200 (PNPInfo)

          max 1016

          aid(s) 0x0000 - 0xffff

          cont 00

< ACL data: handle 256 flags 0x00 dlen 88

    L2CAP(d): cid 0x0040 len 84 [psm 1]

        SDP SSA Rsp: tid 0x1 len 0x4f

          count 76

          record #0

              aid 0x0000 (SrvRecHndl)

                 uint 0x10000

              aid 0x0001 (SrvClassIDList)

                 < uuid-16 0x1200 (PNPInfo) >

              aid 0x0005 (BrwGrpList)

                 < uuid-16 0x1002 (PubBrwsGrp) >

              aid 0x0009 (BTProfileDescList)

                 < < uuid-16 0x1200 (PNPInfo) uint 0x102 > >

              aid 0x0200 (VersionNumList)

                 uint 0x102

              aid 0x0201 (SrvDBState)

                 uint 0xa

              aid 0x0202 (unknown)

                 uint 0x0

              aid 0x0203 (unknown)

                 uint 0x0

              aid 0x0204 (unknown)

                 bool 0x1

              aid 0x0205 (unknown)

                 uint 0x2

          cont 00

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 1

> ACL data: handle 256 flags 0x02 dlen 12

    L2CAP(s): Disconn req: dcid 0x0041 scid 0x0040

< ACL data: handle 256 flags 0x00 dlen 12

    L2CAP(s): Disconn rsp: dcid 0x0041 scid 0x0040

> ACL data: handle 256 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 1 scid 0x0042

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 1

< ACL data: handle 256 flags 0x00 dlen 16

    L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0042 result 0 status 0

      Connection successful

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 1

> ACL data: handle 256 flags 0x02 dlen 16

    L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4

      MTU 1024 

< ACL data: handle 256 flags 0x00 dlen 18

    L2CAP(s): Config rsp: scid 0x0042 flags 0x00 result 0 clen 4

      MTU 1024 

< ACL data: handle 256 flags 0x00 dlen 12

    L2CAP(s): Config req: dcid 0x0042 flags 0x00 clen 0

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 1

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 1

> ACL data: handle 256 flags 0x02 dlen 14

    L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0

      Success

> ACL data: handle 256 flags 0x02 dlen 24

    L2CAP(d): cid 0x0040 len 20 [psm 1]

        SDP SSA Req: tid 0x0 len 0xf

          pat uuid-16 0x0100 (L2CAP)

          max 1016

          aid(s) 0x0000 - 0xffff

          cont 00

< ACL data: handle 256 flags 0x00 dlen 339

< ACL data: handle 256 flags 0x01 dlen 214

    L2CAP(d): cid 0x0042 len 549 [psm 1]

        SDP SSA Rsp: tid 0x0 len 0x220

          count 541

          record #0

              aid 0x0000 (SrvRecHndl)

                 uint 0x10001

              aid 0x0001 (SrvClassIDList)

                 < uuid-16 0x110a (AudioSource) >

              aid 0x0004 (ProtocolDescList)

                 < < uuid-16 0x0100 (L2CAP) uint 0x19 > <

                 uuid-16 0x0019 (AVDTP) uint 0x100 > >

              aid 0x0005 (BrwGrpList)

                 < uuid-16 0x1002 (PubBrwsGrp) >

              aid 0x0009 (BTProfileDescList)

                 < < uuid-16 0x110d (AdvAudio) uint 0x100 > >

              aid 0x0100 (SrvName)

                 str "Audio Source"

              aid 0x0311 (SuppFeatures)

                 uint 0xf

          record #1

              aid 0x0000 (SrvRecHndl)

                 uint 0x10002

              aid 0x0001 (SrvClassIDList)

                 < uuid-16 0x110c (AVRemTarget) >

              aid 0x0004 (ProtocolDescList)

                 < < uuid-16 0x0100 (L2CAP) uint 0x17 > <

                 uuid-16 0x0017 (AVCTP) uint 0x100 > >

              aid 0x0005 (BrwGrpList)

                 < uuid-16 0x1002 (PubBrwsGrp) >

              aid 0x0009 (BTProfileDescList)

                 < < uuid-16 0x110e (AVRemote) uint 0x100 > >

              aid 0x0100 (SrvName)

                 str "AVRCP TG"

              aid 0x0311 (SuppFeatures)

                 uint 0xf

          record #2

              aid 0x0000 (SrvRecHndl)

                 uint 0x10003

              aid 0x0001 (SrvClassIDList)

                 < uuid-16 0x111f (Handsfree AG) uuid-16 0x1203 (Audio) >

              aid 0x0004 (ProtocolDescList)

                 < < uuid-16 0x0100 (L2CAP) > <

                 uuid-16 0x0003 (RFCOMM) uint 0xa > >

              aid 0x0005 (BrwGrpList)

                 < uuid-16 0x1002 (PubBrwsGrp) >

              aid 0x0009 (BTProfileDescList)

                 < < uuid-16 0x111e (Handsfree) uint 0x105 > >

              aid 0x0100 (SrvName)

                 str "Voice Gateway"

              aid 0x0301 (SuppDataStoresList)

                 uint 0x1

              aid 0x0311 (SuppFeatures)

                 uint 0x7

          record #3

              aid 0x0000 (SrvRecHndl)

                 uint 0x10004

              aid 0x0001 (SrvClassIDList)

                 < uuid-16 0x1112 (Headset AG) uuid-16 0x1203 (Audio) >

              aid 0x0004 (ProtocolDescList)

                 < < uuid-16 0x0100 (L2CAP) > <

                 uuid-16 0x0003 (RFCOMM) uint 0xb > >

              aid 0x0005 (BrwGrpList)

                 < uuid-16 0x1002 (PubBrwsGrp) >

              aid 0x0009 (BTProfileDescList)

                 < < uuid-16 0x1108 (Headset) uint 0x100 > >

              aid 0x0100 (SrvName)

                 str "Voice Gateway"

              aid 0x0301 (SuppDataStoresList)

                 uint 0x1

              aid 0x0311 (SuppFeatures)

                 uint 0x17

          record #4

              aid 0x0000 (SrvRecHndl)

                 uint 0x10005

              aid 0x0001 (SrvClassIDList)

                 < uuid-16 0x1105 (OBEXObjPush) >

              aid 0x0004 (ProtocolDescList)

                 < < uuid-16 0x0100 (L2CAP) > <

                 uuid-16 0x0003 (RFCOMM) uint 0xc > <

                 uuid-16 0x0008 (OBEX) > >

              aid 0x0005 (BrwGrpList)

                 < uuid-16 0x1002 (PubBrwsGrp) >

              aid 0x0009 (BTProfileDescList)

                 < < uuid-16 0x1105 (OBEXObjPush) uint 0x100 > >

              aid 0x0100 (SrvName)

                 str "OBEX Object Push"

              aid 0x0303 (SuppFormatsList)

                 < uint 0x1 uint 0x2 uint 0x3 uint 0x4 uint 0x5 uint 0x6 uint 0xff >

          record #5

              aid 0x0000 (SrvRecHndl)

                 uint 0x10006

              aid 0x0001 (SrvClassIDList)

                 < uuid-16 0x112f (PBAP PSE) >

              aid 0x0004 (ProtocolDescList)

                 < < uuid-16 0x0100 (L2CAP) > <

                 uuid-16 0x0003 (RFCOMM) uint 0x13 > <

                 uuid-16 0x0008 (OBEX) > >

              aid 0x0005 (BrwGrpList)

                 < uuid-16 0x1002 (PubBrwsGrp) >

              aid 0x0009 (BTProfileDescList)

                 < < uuid-16 0x1130 (PBAP) uint 0x100 > >

              aid 0x0100 (SrvName)

                 str "OBEX Phonebook Access Server"

              aid 0x0314 (SuppRepositories)

                 uint 0x1

          cont 00

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 2

> ACL data: handle 256 flags 0x02 dlen 24

    L2CAP(d): cid 0x0040 len 20 [psm 1]

        SDP SSA Req: tid 0x1 len 0xf

          pat uuid-16 0x1200 (PNPInfo)

          max 1016

          aid(s) 0x0000 - 0xffff

          cont 00

< ACL data: handle 256 flags 0x00 dlen 88

    L2CAP(d): cid 0x0042 len 84 [psm 1]

        SDP SSA Rsp: tid 0x1 len 0x4f

          count 76

          record #0

              aid 0x0000 (SrvRecHndl)

                 uint 0x10000

              aid 0x0001 (SrvClassIDList)

                 < uuid-16 0x1200 (PNPInfo) >

              aid 0x0005 (BrwGrpList)

                 < uuid-16 0x1002 (PubBrwsGrp) >

              aid 0x0009 (BTProfileDescList)

                 < < uuid-16 0x1200 (PNPInfo) uint 0x102 > >

              aid 0x0200 (VersionNumList)

                 uint 0x102

              aid 0x0201 (SrvDBState)

                 uint 0xa

              aid 0x0202 (unknown)

                 uint 0x0

              aid 0x0203 (unknown)

                 uint 0x0

              aid 0x0204 (unknown)

                 bool 0x1

              aid 0x0205 (unknown)

                 uint 0x2

          cont 00

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 1

> ACL data: handle 256 flags 0x02 dlen 12

    L2CAP(s): Disconn req: dcid 0x0040 scid 0x0042

< ACL data: handle 256 flags 0x00 dlen 12

    L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0042

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 256 packets 1

< HCI Command: Disconnect (0x01|0x0006) plen 3

    handle 256 reason 0x13

    Reason: Remote User Terminated Connection

> HCI Event: Command Status (0x0f) plen 4

    Disconnect (0x01|0x0006) status 0x00 ncmd 1

> HCI Event: Disconn Complete (0x05) plen 4

    status 0x00 handle 256 reason 0x16

    Reason: Connection Terminated by Local Host


Regards
Rajmohan

-----Original Message-----
From: Luiz Augusto von Dentz [mailto:luiz.dentz@xxxxxxxxx] 
Sent: Monday, February 13, 2012 6:06 PM
To: Mohanan, Rajmohan
Cc: Marcel Holtmann; linux-bluetooth@xxxxxxxxxxxxxxx; padovan@xxxxxxxxxxxxxx
Subject: Re: SDP Discovery collsion with Som Laptops

Hi,

On Mon, Feb 13, 2012 at 12:38 PM, Mohanan, Rajmohan <rajmohan.mohanan@xxxxxxxxx> wrote:
> Hi
> With Lenovo T500laptop,
>  whenever after bonding Lenovo T500 is initiating a SDP search Request which collides our SDP request(from Bluez we are initiator we are starting SDP query immediately and if we are responder we are delaying for 2 seconds for starting SDP query).
>
>
> For solving this IOP issue I have made a change that if we are initiator also we will delay for 1 second and starting SDP query after bonding.

Why not check whether we are master or not? So the master has priority to do the sdp right away and if we found we are slave then we fallback to reverse service discover. This should avoid an extra 1 sec when pairing normally, since this is not exactly an usual case where both sides init an sdp simultaneously.

It is not clear what stack are you running in T500? Is it pairing being triggered simultaneously in both sides?

Btw, I sugegst you to take a look at git format-patch + git send-email for sending patches, just google it in doubt this is the preferable format since we can review your patches inline.

--
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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