Wi-Fi + BLE Demo

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
GuLi_1398161
Level 1
Level 1
First like received

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?

0 Likes
12 Replies
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

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_341228818lazina.rahman_1486086

0 Likes

Hi MIFO,

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

0 Likes

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

0 Likes
ShengY_96
Employee
Employee
10 sign-ins 5 sign-ins Welcome!

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

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 !!!!!!!!!

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

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!".

0 Likes

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

jactbtta​  Any suggestion to make ble_wifi_introducer working on BCM94343WWCD1?

Regards

Jenson

0 Likes

Has there been any suggestion to allow ble_wifi_introducer to work on BCM94343WWCD1?

I am seeing the same errors as reported by user_518173617 Mar 27, 2018 5:04 PM (in response to jensony_96)

axel.lin_1746341 May 4, 2018 10:42 PM (in response to user_518173617) suggested the problem is due to insufficient memory space. If memory space is an issue, is there any work-around?

Regards,

Greg

Me too, I am having the same issues with memory constraints trying to run BLE and wifi together.  Did you find any workaround?  I have been looking for days and in the discussion groups and this is the fourth thread I have found with the same underlying problem...

0 Likes

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"

0 Likes

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 !!!!!!!!!

0 Likes