3 Replies Latest reply on Aug 9, 2016 11:21 AM by seyhan

    BCM4343W with Bluetooth H5 protocol

    dhvanil

      Hi

       

      Can anybody help me to run BCM4343W bluetooth using bluetooth H5 protocol (3 wire). I am using BSA server  stack. I also used the Bluez stack.

       

      Can you help me to interface BCM4343W in 3 Wire protocol to host processor ?  Which signal from  BCM4343W should be connected to host processor apart from UART RT/TX ?

       

      In My case no RTS and CTS are connected between BCM4343w and Host processor.

       

       

      Thanks,

      Dhvanil Patel

        • 2. Re: BCM4343W with Bluetooth H5 protocol
          dhvanil

          Hi,

          I have tried with -s option but there is no support of -s option bsa_server.

           

          root# ./bsa_server -d /dev/ttymxc5 -s -p 4343w.hcd                                                                                               

          BSA_trace 1@ 01/01 00h:27m:42s:649ms: bsa_sv_dm_set_3d_type type=chip_id (not safe)

          ./bsa_server: option '-s' is ambiguous

          BSA_trace 2@ 01/01 00h:27m:42s:651ms: ERROR: invalid param 63

           

          I have also tried with -f option but still don't success to enable Bluetooth interface

           

          Log:

          root@imx6ulevk:~/New folder# ./bsa_server -d /dev/ttymxc5 -f -p 4343w.hcd                                                                                               

          BSA_trace 1@ 01/01 00h:23m:59s:770ms: bsa_sv_dm_set_3d_type type=chip_id (not safe)

          BSA_trace 2@ 01/01 00h:23m:59s:772ms: Starting Bluetooth Daemon

          BSA_trace 3@ 01/01 00h:23m:59s:772ms: BSA version:BSA0107_00.20.00

          BSA_trace 4@ 01/01 00h:23m:59s:772ms: Starting Bluetooth Stack part

          BSA_trace 5@ 01/01 00h:23m:59s:787ms: UIPC_Init

          BSA_trace 6@ 01/01 00h:23m:59s:798ms: BTE_LoadStack: 0 bytes

          BSA_trace 7@ 01/01 00h:23m:59s:799ms: BTE_CreateTasks - task_id:14

          BSA_trace 8@ 01/01 00h:23m:59s:799ms: BTE_CreateTasks - Done!

          BSA_trace 9@ 01/01 00h:23m:59s:803ms: bsa_sv_task: Bluetooth application task started

          BSA_trace 10@ 01/01 00h:23m:59s:803ms: bsa_sv_task: call bsa_sv_init

          BSA_trace 11@ 01/01 00h:23m:59s:804ms: bsa_sv_init: call bsa_sv_dm_start_bt

          BSA_trace 12@ 01/01 00h:23m:59s:812ms: UIPC_Open ChId:7

          BSA_trace 13@ 01/01 00h:23m:59s:812ms: uipc_avk_open

          BSA_trace 15@ 01/01 00h:23m:59s:818ms: uipc_avk_open server make the the FIFO for AVK

          BSA_trace 16@ 01/01 00h:23m:59s:818ms: uipc_fifo_open enter FIFO:./bt-avk-fifo

          BSA_trace 14@ 01/01 00h:23m:59s:818ms: Bluetooth port used:/dev/ttymxc5

          BSA_trace 17@ 01/01 00h:23m:59s:825ms: uipc_avk_open AVK channel opened

          BSA_trace 18@ 01/01 00h:23m:59s:826ms: userial_read_thread started 0x18c88

          BSA_trace 19@ 01/01 00h:23m:59s:826ms: SLIP ACL pkt size=676, baud_rate=115200, retx tout=170 ms

          BSA_trace 20@ 01/01 00h:23m:59s:827ms: TxSLIP SYNC

          BSA_trace 21@ 01/01 00h:23m:59s:827ms: GKI Timer Enabled

          BSA_trace 22@ 01/01 00h:23m:59s:828ms: btm_acl_init

          BSA_trace 23@ 01/01 00h:23m:59s:830ms: uipc_fifo_task thread started

          BSA_trace 24@ 01/01 00h:23m:59s:835ms: --

          BSA_trace 25@ 01/01 00h:23m:59s:835ms: SENT Command to HCI.  Name: HCI_Reset   (Hex Code: 0x0c03  Param Len: 0)

          BSA_trace 26@ 01/01 00h:23m:59s:836ms:   Raw HCI Data Sent:

          BSA_trace 27@ 01/01 00h:23m:59s:836ms:     0000: 03 0c 00                                          ...            

          BSA_trace 28@ 01/01 00h:23m:59s:836ms: --

          BSA_trace 29@ 01/01 00h:23m:59s:836ms: btm_acl_reset_paging

          BSA_trace 30@ 01/01 00h:23m:59s:837ms: btm_acl_set_discing

          BSA_trace 31@ 01/01 00h:23m:59s:837ms: btm_clb_init

          BSA_trace 32@ 01/01 00h:23m:59s:837ms: BTM Register For VSEvents is successfully

          BSA_trace 33@ 01/01 00h:23m:59s:838ms: BTM_SEC_REG[0]: id 0, conn_type 0x0, psm 0x0001, proto_id 0, chan_id 0

          BSA_trace 34@ 01/01 00h:23m:59s:838ms:                : security_flags: 0x0080, ucd_security_flags: 0x0000

          BSA_trace 35@ 01/01 00h:23m:59s:838ms:                : service name [Service Discovery] (up to 21 chars saved)

          BSA_trace 36@ 01/01 00h:23m:59s:838ms: BTM_SEC_REG[0]: id 0, conn_type 0x1, psm 0x0001, proto_id 0, chan_id 0

          BSA_trace 37@ 01/01 00h:23m:59s:838ms:                : security_flags: 0x0080, ucd_security_flags: 0x0000

          BSA_trace 38@ 01/01 00h:23m:59s:838ms:                : service name [Service Discovery] (up to 21 chars saved)

          BSA_trace 39@ 01/01 00h:23m:59s:839ms: L2CAP - L2CA_Register() called for PSM: 0x0001

          BSA_trace 40@ 01/01 00h:23m:59s:839ms: gatt_init()

          BSA_trace 41@ 01/01 00h:23m:59s:839ms: L2CAP - L2CA_Register() called for PSM: 0x001f

          BSA_trace 42@ 01/01 00h:23m:59s:839ms: BTM_SEC_REG[1]: id 40, conn_type 0x1, psm 0x001f, proto_id 0, chan_id 0

          BSA_trace 43@ 01/01 00h:23m:59s:840ms:                : security_flags: 0x0080, ucd_security_flags: 0x0000

          BSA_trace 44@ 01/01 00h:23m:59s:840ms:                : service name [] (up to 21 chars saved)

          BSA_trace 45@ 01/01 00h:23m:59s:840ms: BTM_SEC_REG[1]: id 40, conn_type 0x0, psm 0x001f, proto_id 0, chan_id 0

          BSA_trace 46@ 01/01 00h:23m:59s:840ms:                : security_flags: 0x0080, ucd_security_flags: 0x0000

          BSA_trace 47@ 01/01 00h:23m:59s:840ms:                : service name [] (up to 21 chars saved)

          BSA_trace 48@ 01/01 00h:23m:59s:841ms: GATT_Register

          BSA_trace 49@ 01/01 00h:23m:59s:841ms: UUID=[0x81818181818181818181818181818181]

          BSA_trace 50@ 01/01 00h:23m:59s:841ms: allocated gatt_if=1

          BSA_trace 51@ 01/01 00h:23m:59s:841ms: GATT_StartIf gatt_if=1

          BSA_trace 52@ 01/01 00h:23m:59s:841ms: gatt_find_the_connected_bda start_idx=0

          BSA_trace 53@ 01/01 00h:23m:59s:842ms: gatt_find_the_connected_bda found=0 found_idx=4

          BSA_trace 54@ 01/01 00h:23m:59s:842ms: GATTS_CreateService

          BSA_trace 55@ 01/01 00h:23m:59s:842ms: allocate_svc_db_buf allocating extra buffer

          BSA_trace 56@ 01/01 00h:24m:00s:073ms: TxSLIP SYNC

          BSA_trace 57@ 01/01 00h:24m:00s:174ms: gatts_init_service_db

          BSA_trace 58@ 01/01 00h:24m:00s:174ms: s_hdl = 1 num_handle = 5

          BSA_trace 59@ 01/01 00h:24m:00s:174ms: add_service_declaration

          BSA_trace 60@ 01/01 00h:24m:00s:175ms: allocate attr 16 bytes

          BSA_trace 61@ 01/01 00h:24m:00s:175ms: =====> handle = [0x0001] uuid16 = [0x2800] perm=0x01

          BSA_trace 62@ 01/01 00h:24m:00s:175ms: GATTS_CreateService(success): handles needed:5 s_hdl=1 e_hdl=5 uuid16[1801] is_primary=1

          BSA_trace 63@ 01/01 00h:24m:00s:175ms: gatts_add_characteristic perm=0x0 property=0x20

          BSA_trace 64@ 01/01 00h:24m:00s:175ms: allocate attr 16 bytes

          BSA_trace 65@ 01/01 00h:24m:00s:175ms: =====> handle = [0x0002] uuid16 = [0x2803] perm=0x01

          BSA_trace 66@ 01/01 00h:24m:00s:175ms: allocate attr 16 bytes

          BSA_trace 67@ 01/01 00h:24m:00s:175ms: =====> handle = [0x0003] uuid16 = [0x2a05] perm=0x00

          BSA_trace 68@ 01/01 00h:24m:00s:176ms: gatt_profile_db_init:  handle of service changed3

          BSA_trace 69@ 01/01 00h:24m:00s:176ms: GATTS_StartService

          BSA_trace 70@ 01/01 00h:24m:00s:176ms: total GKI buffer in db [1]

          BSA_trace 71@ 01/01 00h:24m:00s:176ms: gatt_add_sdp_record s_hdl=0x1  s_hdl=0x5

          BSA_trace 72@ 01/01 00h:24m:00s:176ms: allocated i_sreg=0

          BSA_trace 73@ 01/01 00h:24m:00s:176ms: s_hdl=1 e_hdl=5 type=0x2800 svc_inst=0 sdp_hdl=0x10000

          BSA_trace 74@ 01/01 00h:24m:00s:177ms: gatt_profile_db_init:  gatt_if=1   start status0

          BSA_trace 75@ 01/01 00h:24m:00s:194ms: GATT_Register

          BSA_trace 76@ 01/01 00h:24m:00s:194ms: UUID=[0x180a]

          BSA_trace 77@ 01/01 00h:24m:00s:194ms: allocated gatt_if=2

          BSA_trace 78@ 01/01 00h:24m:00s:194ms: GATT_StartIf gatt_if=2

          BSA_trace 79@ 01/01 00h:24m:00s:195ms: gatt_find_the_connected_bda start_idx=0

          BSA_trace 80@ 01/01 00h:24m:00s:195ms: gatt_find_the_connected_bda found=0 found_idx=4

          BSA_trace 81@ 01/01 00h:24m:00s:195ms: Srvc_Init:  gatt_if=2 

          BSA_trace 82@ 01/01 00h:24m:00s:195ms: SMP_Init

          BSA_trace 83@ 01/01 00h:24m:00s:195ms: SMDBG l2c smp_l2cap_if_init

          BSA_trace 84@ 01/01 00h:24m:00s:196ms: btm_ble_init

          BSA_trace 85@ 01/01 00h:24m:00s:196ms: BTE_BrcmInit

          BSA_trace 86@ 01/01 00h:24m:00s:196ms: L2CAP - L2CA_Register() called for PSM: 0x0003

          BSA_trace 87@ 01/01 00h:24m:00s:204ms: GATT_Register

          BSA_trace 88@ 01/01 00h:24m:00s:205ms: UUID=[0x82828282828282828282828282828282]

          BSA_trace 89@ 01/01 00h:24m:00s:205ms: allocated gatt_if=3

          BSA_trace 90@ 01/01 00h:24m:00s:205ms: GATT_StartIf gatt_if=3

          BSA_trace 91@ 01/01 00h:24m:00s:205ms: gatt_find_the_connected_bda start_idx=0

          BSA_trace 92@ 01/01 00h:24m:00s:205ms: gatt_find_the_connected_bda found=0 found_idx=4

          BSA_trace 93@ 01/01 00h:24m:00s:205ms: GATTS_CreateService

          BSA_trace 94@ 01/01 00h:24m:00s:206ms: allocate_svc_db_buf allocating extra buffer

          BSA_trace 95@ 01/01 00h:24m:00s:206ms: gatts_init_service_db

          BSA_trace 96@ 01/01 00h:24m:00s:206ms: s_hdl = 20 num_handle = 9

          BSA_trace 97@ 01/01 00h:24m:00s:206ms: add_service_declaration

          BSA_trace 98@ 01/01 00h:24m:00s:206ms: allocate attr 16 bytes

          BSA_trace 99@ 01/01 00h:24m:00s:206ms: =====> handle = [0x0014] uuid16 = [0x2800] perm=0x01

          BSA_trace 100@ 01/01 00h:24m:00s:206ms: GATTS_CreateService(success): handles needed:9 s_hdl=20 e_hdl=28 uuid16[1800] is_primary=1

          BSA_trace 101@ 01/01 00h:24m:00s:207ms: gap_attr_db_init service_handle = 20

          BSA_trace 102@ 01/01 00h:24m:00s:207ms: gatts_add_characteristic perm=0x1 property=0x2

          BSA_trace 103@ 01/01 00h:24m:00s:333ms: TxSLIP SYNC

          BSA_trace 104@ 01/01 00h:24m:00s:541ms: allocate attr 16 bytes

          BSA_trace 105@ 01/01 00h:24m:00s:541ms: =====> handle = [0x0015] uuid16 = [0x2803] perm=0x01

          BSA_trace 106@ 01/01 00h:24m:00s:541ms: allocate attr 16 bytes

          BSA_trace 107@ 01/01 00h:24m:00s:541ms: =====> handle = [0x0016] uuid16 = [0x2a00] perm=0x01

          BSA_trace 108@ 01/01 00h:24m:00s:542ms: gatts_add_characteristic perm=0x1 property=0x2

          BSA_trace 109@ 01/01 00h:24m:00s:542ms: allocate attr 16 bytes

          BSA_trace 110@ 01/01 00h:24m:00s:542ms: =====> handle = [0x0017] uuid16 = [0x2803] perm=0x01

          BSA_trace 111@ 01/01 00h:24m:00s:542ms: allocate attr 16 bytes

          BSA_trace 112@ 01/01 00h:24m:00s:542ms: =====> handle = [0x0018] uuid16 = [0x2a01] perm=0x01

          BSA_trace 113@ 01/01 00h:24m:00s:542ms: gatts_add_characteristic perm=0x1 property=0x2

          BSA_trace 114@ 01/01 00h:24m:00s:542ms: allocate attr 16 bytes

          BSA_trace 115@ 01/01 00h:24m:00s:543ms: =====> handle = [0x0019] uuid16 = [0x2803] perm=0x01

          BSA_trace 116@ 01/01 00h:24m:00s:543ms: allocate attr 16 bytes

          BSA_trace 117@ 01/01 00h:24m:00s:543ms: allocate_svc_db_buf allocating extra buffer

          BSA_trace 118@ 01/01 00h:24m:00s:543ms: =====> handle = [0x001a] uuid16 = [0x2a04] perm=0x01

          BSA_trace 119@ 01/01 00h:24m:00s:543ms: gatts_add_characteristic perm=0x1 property=0x2

          BSA_trace 120@ 01/01 00h:24m:00s:543ms: allocate attr 16 bytes

          BSA_trace 121@ 01/01 00h:24m:00s:543ms: =====> handle = [0x001b] uuid16 = [0x2803] perm=0x01

          BSA_trace 122@ 01/01 00h:24m:00s:543ms: allocate attr 16 bytes

          BSA_trace 123@ 01/01 00h:24m:00s:543ms: =====> handle = [0x001c] uuid16 = [0x2aa6] perm=0x01

          BSA_trace 124@ 01/01 00h:24m:00s:544ms: GATTS_StartService

          BSA_trace 125@ 01/01 00h:24m:00s:545ms: total GKI buffer in db [2]

          BSA_trace 126@ 01/01 00h:24m:00s:545ms: gatt_add_sdp_record s_hdl=0x14  s_hdl=0x1c

          BSA_trace 127@ 01/01 00h:24m:00s:545ms: allocated i_sreg=1

          BSA_trace 128@ 01/01 00h:24m:00s:545ms: s_hdl=20 e_hdl=28 type=0x2800 svc_inst=0 sdp_hdl=0x10001

          BSA_trace 129@ 01/01 00h:24m:00s:545ms: GAP App gatt_if: 3  s_hdl = 20 start_status=0

          BSA_trace 130@ 01/01 00h:24m:00s:613ms: TxSLIP SYNC

          BSA_trace 131@ 01/01 00h:24m:00s:864ms: TxSLIP SYNC

          BSA_trace 132@ 01/01 00h:24m:01s:123ms: TxSLIP SYNC

          BSA_trace 133@ 01/01 00h:24m:01s:383ms: TxSLIP SYNC

          BSA_trace 134@ 01/01 00h:24m:01s:643ms: TxSLIP SYNC

          BSA_trace 135@ 01/01 00h:24m:01s:903ms: TxSLIP SYNC

          BSA_trace 136@ 01/01 00h:24m:02s:163ms: TxSLIP SYNC

          BSA_trace 137@ 01/01 00h:24m:02s:423ms: TxSLIP SYNC

          BSA_trace 138@ 01/01 00h:24m:02s:683ms: TxSLIP SYNC

          BSA_trace 139@ 01/01 00h:24m:02s:944ms: TxSLIP SYNC

          BSA_trace 140@ 01/01 00h:24m:03s:203ms: TxSLIP SYNC

          BSA_trace 141@ 01/01 00h:24m:03s:463ms: TxSLIP SYNC

          BSA_trace 142@ 01/01 00h:24m:03s:723ms: TxSLIP SYNC

          BSA_trace 143@ 01/01 00h:24m:03s:824ms: --

          BSA_trace 144@ 01/01 00h:24m:03s:824ms: SENT Command to HCI.  Name: HCI_Reset   (Hex Code: 0x0c03  Param Len: 0)

          BSA_trace 145@ 01/01 00h:24m:03s:824ms:   Raw HCI Data Sent:

          BSA_trace 146@ 01/01 00h:24m:03s:824ms:     0000: 03 0c 00                                          ...            

          BSA_trace 147@ 01/01 00h:24m:03s:824ms: --

          BSA_trace 148@ 01/01 00h:24m:03s:825ms: btm_acl_reset_paging

          BSA_trace 149@ 01/01 00h:24m:03s:825ms: btm_acl_set_discing

          BSA_trace 150@ 01/01 00h:24m:03s:983ms: TxSLIP SYNC

          BSA_trace 151@ 01/01 00h:24m:04s:243ms: TxSLIP SYNC

          BSA_trace 152@ 01/01 00h:24m:04s:504ms: TxSLIP SYNC

          BSA_trace 153@ 01/01 00h:24m:04s:764ms: TxSLIP SYNC

          BSA_trace 154@ 01/01 00h:24m:05s:024ms: TxSLIP SYNC

          BSA_trace 155@ 01/01 00h:24m:05s:283ms: TxSLIP SYNC

          BSA_trace 156@ 01/01 00h:24m:05s:544ms: TxSLIP SYNC

          BSA_trace 157@ 01/01 00h:24m:05s:803ms: TxSLIP SYNC

          BSA_trace 158@ 01/01 00h:24m:06s:063ms: TxSLIP SYNC

          BSA_trace 159@ 01/01 00h:24m:06s:323ms: TxSLIP SYNC

          BSA_trace 160@ 01/01 00h:24m:06s:583ms: TxSLIP SYNC

          BSA_trace 161@ 01/01 00h:24m:06s:843ms: TxSLIP SYNC

          BSA_trace 162@ 01/01 00h:24m:07s:103ms: TxSLIP SYNC

          BSA_trace 163@ 01/01 00h:24m:07s:363ms: TxSLIP SYNC

          BSA_trace 164@ 01/01 00h:24m:07s:624ms: TxSLIP SYNC

          BSA_trace 165@ 01/01 00h:24m:07s:834ms: --

          BSA_trace 166@ 01/01 00h:24m:07s:834ms: SENT Command to HCI.  Name: HCI_Reset   (Hex Code: 0x0c03  Param Len: 0)

          BSA_trace 167@ 01/01 00h:24m:07s:834ms:   Raw HCI Data Sent:

          BSA_trace 168@ 01/01 00h:24m:07s:834ms:     0000: 03 0c 00                                          ...            

          BSA_trace 169@ 01/01 00h:24m:07s:834ms: --

          BSA_trace 170@ 01/01 00h:24m:07s:835ms: btm_acl_reset_paging

          BSA_trace 171@ 01/01 00h:24m:07s:835ms: btm_acl_set_discing

          BSA_trace 172@ 01/01 00h:24m:07s:883ms: TxSLIP SYNC

          BSA_trace 173@ 01/01 00h:24m:08s:143ms: TxSLIP SYNC

          BSA_trace 174@ 01/01 00h:24m:08s:403ms: TxSLIP SYNC

          BSA_trace 175@ 01/01 00h:24m:08s:663ms: TxSLIP SYNC

          BSA_trace 176@ 01/01 00h:24m:08s:923ms: TxSLIP SYNC

          BSA_trace 177@ 01/01 00h:24m:09s:183ms: TxSLIP SYNC

          BSA_trace 178@ 01/01 00h:24m:09s:443ms: TxSLIP SYNC

          BSA_trace 179@ 01/01 00h:24m:09s:703ms: TxSLIP SYNC

          BSA_trace 180@ 01/01 00h:24m:09s:963ms: TxSLIP SYNC

          BSA_trace 181@ 01/01 00h:24m:10s:223ms: TxSLIP SYNC

          BSA_trace 182@ 01/01 00h:24m:10s:446ms: bsa_sv_task: Unable to start Bluetooth Chip!!!

          BSA_trace 183@ 01/01 00h:24m:10s:446ms: bsa_sv_task: Exit BSA Server

          BSA_trace 184@ 01/01 00h:24m:10s:446ms: Signal Terminated [15] has been raised

          BSA_trace 185@ 01/01 00h:24m:10s:447ms: FIFO [././bt-avk-fifo] deleted

           

           

          Can you please help us to resolve this issue ?

           

          Can you please help us to share the proper power up sequence of Bluetooth interfaceBluetooth_sequece.png 

           

          We observe that after Power up Bluetooth interface via "BT_REG_ON" from host, There isn't any activity on "BT_HOST_WAKE" ( Pin continuously remains low ). But as per datasheet , the Bluetooth interface should Pulled up this pin to High after  "BT_REG_ON" from host.

           

          Waiting for your prompt response.

           

          -

          Dhvanil Patel

          • 3. Re: BCM4343W with Bluetooth H5 protocol
            seyhan

            Hi,

             

            After pulling the CTS pin low on the module I believe H5 link should work be working.

             

            Seyhan

            1 of 1 people found this helpful