2 Replies Latest reply on Feb 15, 2018 3:20 PM by LJYe_2922526

    WICED_BT_SDP_CONN_FAILED

    LJYe_2922526

      I'm trying to connect to a bluetooth headset using 20706. I'm using API wiced_bt_sdp_init_discovery_db() then wiced_bt_sdp_service_search_attribute_request(). In the SDP callback I always get WICED_BT_SDP_CONN_FAILED.

       

      Using one of the demo project I was able to connect to the headset using the same dev board.

       

      What could I have done wrong? Looking at the debug traces below, up until the 25s mark it's communicating back and forth with the headset. Then an ACL packet gets stuck and the stack returns the WICED_BT_SDP_CONN_FAILED event.

       

      Any help would be greatly appreciated!

       

      (13:53:15.960) AG connect cmd: bda=0:12:6f:11:72:4b, r1=1, r2=1

      (13:53:15.960) HCI Trace: [EVT], EVT=15, len=4, data=00 01 05 04

      (13:53:18.137) HCI Trace: [EVT], EVT=3, len=11, data=00 0B 00 4B 72 11 6F 12 00 01 00

      (13:53:18.142) HCI Trace: [CMD], OP=1d 4, OGF=1, OCF=29, len=2, data=0B 00

      (13:53:18.218) HCI Trace: [EVT], EVT=12, len=8, data=00 0B 00 06 0A 00 F7 22

      (13:53:18.218) HCI Trace: [EVT], EVT=32, len=7, data=4B 72 11 6F 12 00 01

      (13:53:18.218) HCI Trace: [EVT], EVT=27, len=3, data=0B 00 05

      (13:53:18.218) HCI Trace: [EVT], EVT=15, len=4, data=00 01 1F 04

      (13:53:18.218) HCI Trace: [CMD], OP=f5 fc, OGF=63, OCF=245, len=2, data=0B 00

      (13:53:18.218) HCI Trace: [ACL], t=2, data=0B 20 10 00 0C 00 01 00 0B 02 08 00 02 00 00 00 B8 00 00 00

      (13:53:18.218) HCI Trace: [EVT], EVT=14, len=10, data=01 F5 FC 00 0B 00 00 00 00 00

      (13:53:18.218) HCI Trace: [CMD], OP=1b 4, OGF=1, OCF=27, len=2, data=0B 00

      (13:53:18.218) HCI Trace: [EVT], EVT=28, len=5, data=00 0B 00 54 28

      (13:53:18.218) HCI Trace: [EVT], EVT=15, len=4, data=00 01 1B 04

      (13:53:18.218) HCI Trace: [CMD], OP=19 4, OGF=1, OCF=25, len=10, data=4B 72 11 6F 12 00 01 00 00 00

      (13:53:18.218) HCI Trace: [EVT], EVT=11, len=11, data=00 0B 00 FF FF 8F FE DB FF 5B 87

      (13:53:18.218) HCI Trace: [EVT], EVT=19, len=5, data=01 0B 00 02 00

      (13:53:18.218) HCI Trace: [EVT], EVT=15, len=4, data=00 01 19 04

      (13:53:18.218) HCI Trace: [CMD], OP=37 c, OGF=3, OCF=55, len=4, data=0B 00 00 7D

      (13:53:18.218) HCI Trace: [ACL], t=2, data=0B 20 14 00 10 00 01 00 0B 03 0C 00 03 00 00 00 76 00 00 00 00 00 00 00

      (13:53:18.218) HCI Trace: [ACL], t=3, data=0B 20 0C 00 08 00 01 00 02 04 04 00 01 00 40 00

      (13:53:18.218) HCI Trace: [EVT], EVT=7, len=255, data=00 4B 72 11 6F 12 00 42 54 48 2D 36 30 30 2D 50 54 54 00 00 00

      (13:53:18.218) HCI Trace: [EVT], EVT=14, len=6, data=01 37 0C 00 0B 00

      (13:53:18.218) HCI Trace: [CMD], OP=1c 4, OGF=1, OCF=28, len=3, data=0B 00 01

      (13:53:18.218) HCI Trace: [EVT], EVT=15, len=4, data=00 01 1C 04

      (13:53:18.218) HCI Trace: [EVT], EVT=35, len=13, data=00 0B 00 01 01 03 00 00 00 00 00 00 00

      (13:53:18.218) HCI Trace: [CMD], OP=7b c, OGF=3, OCF=123, len=2, data=0B 00

      (13:53:18.218) HCI Trace: [ACL], t=2, data=0B 20 10 00 0C 00 01 00 03 04 08 00 80 00 40 00 01 00 02 00

      (13:53:18.218) HCI Trace: [ACL], t=2, data=0B 20 10 00 0C 00 01 00 03 04 08 00 80 00 40 00 00 00 00 00

      (13:53:18.218) HCI Trace: [ACL], t=3, data=0B 20 10 00 0C 00 01 00 04 05 08 00 80 00 00 00 01 02 40 00

      (13:53:18.218) HCI Trace: [ACL], t=2, data=0B 20 10 00 0C 00 01 00 04 01 08 00 40 00 00 00 01 02 30 00

      (13:53:18.218) HCI Trace: [ACL], t=3, data=0B 20 12 00 0E 00 01 00 05 01 0A 00 80 00 00 00 00 00 01 02 30 00

      (13:53:18.218) HCI Trace: [EVT], EVT=14, len=8, data=01 7B 0C 00 0B 00 B8 0B

      (13:53:18.218) HCI Trace: [CMD], OP=d 8, OGF=2, OCF=13, len=4, data=0B 00 05 00

      (13:53:18.218) HCI Trace: [EVT], EVT=19, len=5, data=01 0B 00 02 00

      (13:53:18.218) HCI Trace: [ACL], t=2, data=0B 20 12 00 0E 00 01 00 05 05 0A 00 40 00 00 00 00 00 01 02 40 00

      (13:53:18.218) HCI Trace: [ACL], t=3, data=0B 20 1F 00 1B 00 80 00 06 00 00 00 16 35 03 19 11 08 00 30 35 0C 09 00

      (13:53:18.218) HCI Trace: [EVT], EVT=14, len=6, data=01 0D 08 00 0B 00

      (13:53:18.218) HCI Trace: [EVT], EVT=19, len=5, data=01 0B 00 02 00

      (13:53:18.218) HCI Trace: [ACL], t=2, data=0B 20 34 00 30 00 40 00 07 00 00 00 2B 00 26 36 00 2F 36 00 2C 09 00 01

      (13:53:20.915) time count: 25 s

      (13:53:25.916) time count: 30 s

      (13:53:30.916) time count: 35 s

      (13:53:35.917) time count: 40 s

      (13:53:40.917) time count: 45 s

      (13:53:45.918) time count: 50 s

      (13:53:48.167) HCI Trace: [ACL], t=3, data=0B 20 0C 00 08 00 01 00 06 06 04 00 80 00 40 00

      (13:53:48.172) AG SDP failure: r=65521

      (13:53:48.257) HCI Trace: [ACL], t=2, data=0B 20 0C 00 08 00 01 00 07 06 04 00 80 00 40 00

      (13:53:48.417) HCI Trace: [EVT], EVT=19, len=5, data=01 0B 00 01 00

      (13:53:50.917) time count: 55 s

      (13:53:51.168) HCI Trace: [CMD], OP=6 4, OGF=1, OCF=6, len=3, data=0B 00 13

      (13:53:51.169) HCI Trace: [EVT], EVT=15, len=4, data=00 01 06 04

      (13:53:51.248) HCI Trace: [EVT], EVT=5, len=4, data=00 0B 00 16

      (13:53:55.918) time count: 60 s

      (13:54:00.919) time count: 65 s

      (13:54:05.920) time count: 70 s