9 Replies Latest reply on Oct 31, 2016 4:31 AM by axel.lin_1746341

    SDK 3.7.0 BLE doesn't work

    rderr_1773541

      Bluetooth low energy doesn't appear to be working on the new SDK.  I'm running

      make snip.bluetooth.ble_hello_sensor-BCM94343W_AVN  download download_apps run

      The output is

      Starting WICED v3.7.0

      Platform BCM94343W_AVN initialised

      Started ThreadX v5.6

      Initialising NetX_Duo v5.7_sp2

      Creating Packet pools

      WWD SDIO interface initialised

      WLAN MAC Address : B0:38:29:3D:3B:5B

      WLAN Firmware    : wl0: Jun 19 2016 22:40:09 version 7.45.45.17 (r644353) FWID 01-dbaba83

      Hello Sensor Start

      00:00:00.005032 GKI_create_task func=0x8018949  id=1  name=BTU  stack=0x0  stackSize=6144

      00:00:00.013032 GKI_create_task func=0x8019e61  id=0  name=HCISU  stack=0x0  stackSize=4096

       

       

      The BCM9WCD9EVAL1_5 board output is

      Starting WICED v3.7.0

      Platform BCM94343WWCD1 initialised

      Started ThreadX v5.6

      Initialising NetX_Duo v5.7_sp2

      Creating Packet pools

      WWD SDIO interface initialised

      WLAN MAC Address : 02:0A:F7:F8:0A:F2

      WLAN Firmware    : wl0: Jun 19 2016 22:40:09 version 7.45.45.17 (r644353) FWID 01-dbaba83

      Hello Sensor Start

      00:00:01.022104 GKI_create_task func=0x80185fd  id=1  name=BTU  stack=0x0  stackSize=6144

      00:00:01.030104 GKI_create_task func=0x8019b15  id=0  name=HCISU  stack=0x0  stackSize=4096

      hello_sensor_management_callback: 15

      hello_sensor_management_callback: 0

      hello_sensor_application_init

       

      wiced_bt_gatt_register: 0

      wiced_bt_gatt_db_init 0

      wiced_bt_ble_set_advertisement_data 0

      hello_sensor_management_callback: 17

      Advertisement State Change: 3

      wiced_bt_start_advertisements 0

      Maybe the platform files need to be updated for the new SDK?

       

      Thanks,

      -Rob

       

       

        • 1. Re: SDK 3.7.0 BLE doesn't work
          xavier@candyhouse

          Can you check the result in BTM_ENABLED_EVT.

          I guess we're facing similar problem (see this post bluetooth stack init))

          • 2. Re: SDK 3.7.0 BLE doesn't work
            dhak

            Hello rderr_1773541 xavier@candyhouse

             

            For BCM94343W_AVN board and hello-sensor application - did you observe any error logs or is it getting stuck after creating BTU/HCISU tasks ?

            On 3.7.0 - Bluetooth stack has underwent a slight change in pool-management configuration provided by the application.

            one has to add these two lines to the applications's wiced_bt_cfg_settings_t object:

             

                .max_number_of_buffer_pools = WICED_BT_CFG_NUM_BUF_POOLS,

                .addr_resolution_db_size = 3,

             

            Please check if above changes help you.  In any case - keep us posted.

             

            Thanks,
            Dharam

             

            user_305201620 user_114741021

            2 of 2 people found this helpful
            • 3. Re: SDK 3.7.0 BLE doesn't work
              mkochhal

              dhak

              Hi.

               

              These two lines are already present in the wiced_bt_cfg.c for the ble_proximity_reporter.

               

                  .max_number_of_buffer_pools = WICED_BT_CFG_NUM_BUF_POOLS,

                  .addr_resolution_db_size = 3,

               

              However, I still am not able to have the BLE advertise upon application run after boot. As of now, seems like the application does not run after boot, as there is a hang ...

               

              Starting WICED v3.7.0

              Platform ISM43341_M4G_L44 initialised

              Started ThreadX v5.6

              Initialising NetX_Duo v5.7_sp2

              Creating Packet pools

              WWD SDIO interface initialised

              WLAN MAC Address : C4:7F:51:80:25:6F

              WLAN Firmware    : wl0: Nov 25 2015 14:01:39 version 6.49.2 (r602357) FWID 01-1302682f

              00:00:00.019784 GKI_create_task func=0x80175fd  id=1  name=BTU  stack=0x0  stackSize=6144

              00:00:00.027784 GKI_create_task func=0x8018b41  id=0  name=HCISU  stack=0x0  stackSize=4096

              • 4. Re: SDK 3.7.0 BLE doesn't work
                jone_yi_1844281

                dhak

                 

                I had try the ble_hello_sensor on different platform!

                 

                BCM9WCDPLUS114 (STM32F205/20702) : work

                BCMUSI22                (STM32F412/43438A1) : not work (37.4MHz)

                 

                bt_dualmode_server :

                 

                BCM9WCDPLUS114 (STM32F205/20702) : work

                BCMUSI22                (STM32F412/43438A1) : not work (37.4MHz)

                BCMUSI33                (BCM43907/20707) : work

                 

                And bt_smartbridge, ble_proximity_reporter, ble_wifi_introducer all NOT work  on BCMUSI22!

                 

                I only saw the BTU and HCISU initial message, then no any output on console!

                 

                Most above application work on SDK 3.6.3 !

                 

                --

                Jone

                • 5. Re: SDK 3.7.0 BLE doesn't work
                  dhak

                  jone_yi_1844281mkochhal rderr_1773541

                  Guys,
                  Please add 'featured_baud_rate' member to wiced_bt_config variable in platform.c file,if it is not there already.
                  For BCM9434W_AVN's platform.c file -  it should be like this:

                  /*BT chip specific configuration information*/

                    const platform_bluetooth_config_t wiced_bt_config =                                                                                                                                                                                

                    {

                        .patchram_download_mode      = PATCHRAM_DOWNLOAD_MODE_MINIDRV_CMD,

                        .patchram_download_baud_rate = 115200,

                        .featured_baud_rate          = 115200

                    };

                   

                  I'll recommend trying the same for other platforms where BLE hello sensor app( or BLE ) failed.

                   

                  Thanks,
                  Dharam

                  5 of 5 people found this helpful
                  • 6. Re: SDK 3.7.0 BLE doesn't work
                    xavier@candyhouse

                    Thanks @dkumar, this seems to works on my side.
                    demo.bt_smartbridge now runs pass BT initialize process.

                    So far so good.

                    1 of 1 people found this helpful
                    • 7. Re: SDK 3.7.0 BLE doesn't work
                      jone_yi_1844281

                      Thanks dhak ,

                       

                      I add the

                      .featured_baud_rate          = 115200

                      into the wiced_bt_config, The ble_hello_sensor, bt_dualmode_server is work for BM-22 too!

                      1 of 1 people found this helpful
                      • 8. Re: SDK 3.7.0 BLE doesn't work
                        mkochhal

                        Hi.mifo dhak, xavier@candyhouse, jone_yi_1844281, rderr_1773541:

                         

                        .featured_baud_rate          = 115200

                         

                        in platform.c for ISM43341_M4G_L44 solved the problem.

                         

                        Also, I think I will watch out to make sure that wiced_bt_config will have those two lines (although they were in the stock ble_proximity_reporter app).

                         

                           .max_number_of_buffer_pools = WICED_BT_CFG_NUM_BUF_POOLS,

                            .addr_resolution_db_size = 3,

                         

                        Life is Good

                         

                        Thanks!

                        1 of 1 people found this helpful
                        • 9. Re: SDK 3.7.0 BLE doesn't work
                          axel.lin_1746341

                          dkumar wrote:

                           

                          jonemkochhal robjderr

                          Guys,
                          Please add 'featured_baud_rate' member to wiced_bt_config variable in platform.c file,if it is not there already.
                          For BCM9434W_AVN's platform.c file -  it should be like this:

                          /*BT chip specific configuration information*/

                            const platform_bluetooth_config_t wiced_bt_config =                                                                                                                                                                                

                            {

                                .patchram_download_mode      = PATCHRAM_DOWNLOAD_MODE_MINIDRV_CMD,

                                .patchram_download_baud_rate = 115200,

                                .featured_baud_rate          = 115200

                            };

                           

                          I'll recommend trying the same for other platforms where BLE hello sensor app( or BLE ) failed.

                           

                          Thanks,
                          Dharam

                          I spent a lot of time due to the missing ".featured_baud_rate" setting.

                          I do think the SDK should provide a good default if the settings was not set.

                          (Especially for new settings introduced by new SDK.)

                          The same suggestion also apply to below settings for wiced_bt_config:

                          .max_number_of_buffer_pools

                          .addr_resolution_db_size

                          2 of 2 people found this helpful