Does Avnet have an example project that show how to connect to Azure cloud using the BCM4343W board?

Solved
pihlung's picture
pihlung
Junior(2)

Thanks

 

PeterF's picture
PeterF
Moderator(16)

Microsoft Azure not yet supported at this time.

 

Cloud-related solutions for this board include Reference Designs for:

a) AWS IoT (Amazon Web Services),

b) IBM Watson IoT (IBM Bluemix)

c) ThingSpeak (Mathworks/MatLab IoT solution)

 

  

pihlung's picture
pihlung
Junior(2)

Ok, 

Any advise if I want to put a Azure MQTT/Json solution together myself?

What steps do I need to take to run Paho C or Azure-iot-sdk for C on ThreadX/FreeRTOS?

Is there a guide how to install freeRTOS on BCM4343W?

Thanks

PeterF's picture
PeterF
Moderator(16)

Broadcom WICED SDK natively supports ThreadX and FreeRTOS (selection of ThreadX or FreeRTOS is an option in your make target string)

 

I'd suggest start with the MQTT based Bluemix (Watson IoT) or AWS IoT WICED examples and adapt this for use with Microsoft Azure.

 

The following webpages provide some reference on what is needed for connection to MicroSoft's Azure IoT Hub MQTT broker:
 

https://azure.microsoft.com/en-us/documentation/learning-paths/iot-suite/

 

https://azure.microsoft.com/en-us/documentation/articles/iot-hub-mqtt-support/ 

 

https://azure.microsoft.com/en-us/documentation/articles/iot-hub-devguide/

 

 

pihlung's picture
pihlung
Junior(2)

Thanks for your reply. I can connect to AWS using the great example code shadow-light-sense.

and I can also run the snip-scan-..FreeRTOS example. I haven't figured out how the Make Target activate the build/compilation of all the files being listed and then download to BCM4343 and run:

Compiling App_Scan

Compiling Platform_Avnet_Starter_Kit

Compiling FreeRTOS

Compiling LwIP

Compiling WICED

Compiling Lib_SPI_Flash_Library_BCM94343W_AVN

Compiling Lib_GPIO_button

Compiling WWD_FreeRTOS_Interface_BCM94343W_AVN

Compiling WICED_FreeRTOS_Interface

Compiling WWD_LwIP_Interface_FreeRTOS

Compiling WWD_for_SDIO_FreeRTOS

...

Compiling common_GCC

Compiling STM32F4xx_Peripheral_Drivers

Compiling Lib_Ring_Buffer

 

I guess that next step for me is to create a new "Hello BCM4343" project that I can cross-compileand download to the board and it write to console window.

#include <stdio.h>
#include <stdlib.h>

int main(void) {
    while(1){

        puts("Hello BCM4343W!!!");
        //delay(500);
    }
    return EXIT_SUCCESS;
}

I can build it with Mingw, but not when I select cross-GCC(assume it is arm-none-eabi-gcc)

10:25:16 **** Incremental Build of configuration Default for project plpcpp ****
make all 
g++ -O2 -g -Wall -fmessage-length=0   -c -o plpcpp.o plpcpp.cpp
g++ -o plpcpp.exe plpcpp.o 

10:25:20 Build Finished (took 3s.925ms)

"plpcpp-BCM94343W_AVN download run" is not working.

10:32:44 **** Build of configuration Default for project WICED-SDK ****
"C:\\Users\\p\\Desktop\\WicedProject\\WICED\\WICED-SDK-3.5.2\\WICED-SDK\\make.exe" plpcpp-BCM94343W_AVN download run 
make: *** No rule to make target 'plpcpp-BCM94343W_AVN'.  Stop.

10:32:44 Build Finished (took 881ms)

My questions are:

1. Is there a document/tutorial that shows how to create a new project that write to console window, and 

How do I modify the "Make Target" to compile,download and run the program?

2. Some instructions as to how I can install Kaa c client SDK would be appreciated.

http://kaaproject.github.io/kaa/doc/client-c/latest/index.html?src=conte...

How can I write to the flash on BCM4343W?

 

Thanks

 

 

 

PeterF's picture
PeterF
Moderator(16)

MAKE files are used for all activities in Broadcom WICED SDK. The best approach for a new project is to clone an existing example project and then edit it's source files and .mk file according to what it is that you want to achieve. 

 

WPRINT_APP_INFO( ) is used to write to the debug console. There are many examples using this in the snip and demo code...

 

Assistance with the Kaa C client is outside the scope of this forum