10 Replies Latest reply on May 4, 2018 8:51 PM by axel.lin_1746341

    Wi-Fi + BLE Demo

    user_518173617

      Hello,

       

      I haveeither

       

      BCM9WCD1EVAL1 and Avnet BCM4343W boards. Have been trying to get an application with both Wi-Fi + BLE going, such as BLE-Wi-Fi introducer, iBeacon (BLE only), but the applications are either not supported or don't work.

       

      What is the latest Evaluation Board/Kit that can be used to test both Wi-Fi and BLE in a ready to go demo? What demo can be used?

        • 1. Re: Wi-Fi + BLE Demo
          mifo

          The WICED Studio 6.1 Technical Brief is a good place to start for supported applications within the latest release of the SDK.

           

          Also, have you seen the Future Connectivity Solutions Nebula board?

           

          Nebula Presentation- Creating an example app

           

          I like their evaluation kit for the 4343W more than our own CY branded kit.

           

          user_341228818 lazina.rahman_1486086

          • 2. Re: Wi-Fi + BLE Demo
            user_518173617

            Hi MIFO,

             

            I can use that board, but one question remains, which working demo actually shows me both Wi-Fi and BLE together?

            • 3. Re: Wi-Fi + BLE Demo
              mifo

              /43xxx_Wi-Fi/apps/demo/bt_internet_gateway/restful_smart_server

              • 4. Re: Wi-Fi + BLE Demo
                yans

                If you are use the WICED5.1 or 5.0 or lower version. There is ble_wifi_introducer, bt_internet_gateway and bt_smartbridge.

                But different projects suits different kit, the valid_platforms(kit) can be found in the projects' mk file.

                You can modify the VALID_PLATFORMS in mk file,but I not guarantee it works well.  I had add the BCM94343WWCD1 into the bt_smartbridge project's platform(followed my modification as example) which works well:

                VALID_PLATFORMS    := BCM9WCDPLUS114 \

                                      BCM943340WCD1 \

                                      BCM9WCD1AUDIO \

                                      BCM943438WLPTH_2 \

                                      BCM943909WCD1 \

                                      BCM943909WCD1_3 \

                                      BCM943438WCD1\

                                      BCM94343WWCD1

                 

                If you are using the WICED6.1, as Michael@mifo recommend, please try the demo/bt_internet_gateway/restful_smart_server project.

                 

                Regards

                Jenson

                1 of 1 people found this helpful
                • 5. Re: Wi-Fi + BLE Demo
                  user_518173617

                  Hi,

                   

                  Let me explain the situation because it is all very confusing:

                   

                  I downloaded latest WICED platform version 6.0.

                   

                  I looked at the make files and as you said, they contain names for platforms which do not match actual existing platforms. There is a complete disconnect between the brief and the make files.

                   

                  • BCM943909WCD - Platform does not exist, cannot be bought
                  • BCM943340WCD1 - Platform does not exist, cannot be bought

                   

                   

                   

                  So I added BCM94343WWCD1 to ble_wifi_introducer. It's a F411 with plenty of space. The expected behavior is that the Wi-Fi (after failing to connect due to no credentials), is supposed to start BLE advertising for GATT server. However, what you see below is the thread creation failing. Something is misconfigured.

                  I also got restful smart server running, and it connects to AP, but the BLE never does anything (perhaps it only acts in Central or something different).

                   

                  ========================

                   

                   

                   

                  Starting WICED vWiced_006.001.000.0085

                  Platform BCM94343WWCD1 initialised

                  Started ThreadX v5.8

                  Initialising NetX_Duo v5.10_sp3

                  Creating Packet pools

                  WLAN MAC Address : 00:A0:50:36:46:1C

                  WLAN Firmware    : wl0: Aug 30 2017 03:10:52 version 7.45.98.32 (r666781 CY) FWID 01-4e8b86d2

                  WLAN CLM         : API: 12.2 Data: 9.10.39 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2017-08-30 02:59:33

                  WiFi Introducer Sensor Start

                  Joining : YOUR_AP_SSID

                  Failed to join : YOUR_AP_SSID

                  Joining : YOUR_AP_SSID

                  Failed to join : YOUR_AP_SSID

                  Joining : YOUR_AP_SSID

                  Failed to join : YOUR_AP_SSID

                  00:00:23.824000 GKI_create_task func=0x801d4bd  id=1  name=BTU  stack=0x0  stackSize=4096

                  00:00:23.832000 GKI_create_task thread_id failed(8), BTU!

                  00:00:23.837000 GKI_create_task func=0x801ece5  id=0  name=HCISU  stack=0x0  stackSize=3072

                  create_wifi_join_thread: thread creation failed !!!!!!!!!

                  • 6. Re: Wi-Fi + BLE Demo
                    yans

                    Per my test, my BCM9WCD9EVAL1_5(BCM94343WWCD1) is not supported by the ble_wifi_introducer project. Get stuck in "Creating Packet pools"

                     

                    Per your log, your project get stuck in joining the AP.

                    Please change the CLIENT_AP_SSID and CLIENT_AP_PASSPHRASE in the wifi_config_dct.h file. The SSID and password is your wifi AP's SSID and password. After the project joining success,  test if the BLE works well.

                     

                    Regards

                    Jenson

                    1 of 2 people found this helpful
                    • 7. Re: Wi-Fi + BLE Demo
                      axel.lin_1746341

                      Did you ever think why BCM9WCD9EVAL1_5(BCM94343WWCD1) is not supported by ble_wifi_introducer project? Is the limitation from h/w or s/w? Or it's just a bug?

                       

                      In additional, join SSID failure should not cause "GKI_create_task thread_id failed(8), BTU!".

                      • 8. Re: Wi-Fi + BLE Demo
                        yans

                        Good question, that's what's I am investigating.

                        jact btta  Any suggestion to make ble_wifi_introducer working on BCM94343WWCD1?

                         

                        Regards

                        Jenson

                        • 9. Re: Wi-Fi + BLE Demo
                          axel.lin_1746341

                          I guess the problem is running out of memory.

                           

                          00:00:23.832000 GKI_create_task thread_id failed(8), BTU!

                          The error 8 (WICED_OUT_OF_HEAP_SPACE) means Dynamic memory space exhausted.

                           

                          And the follow up error also looks like you don't have enough memory to create "WWD Join Thrd".

                          create_wifi_join_thread: thread creation failed !!!!!!!!!

                          • 10. Re: Wi-Fi + BLE Demo
                            axel.lin_1746341

                            yans wrote:

                            Per your log, your project get stuck in joining the AP.

                            Please change the CLIENT_AP_SSID and CLIENT_AP_PASSPHRASE in the wifi_config_dct.h file. The SSID and password is your wifi AP's SSID and password. After the project joining success,  test if the BLE works well.

                             

                            Actually, wiced_bt_stack_init() will be called only when fail to join AP.

                            So you have to test it with *wrong* CLIENT_AP_SSID and CLIENT_AP_PASSPHRASE on purpose.

                            Otherwise, the application does nothing.

                            ps. Take a look at "<WICED_SDK>/doc/WICED-BLE-WiFi-Introducer.pdf"