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

Wi-Fi Combo

Anonymous
Not applicable

Could an smartphone app take care of BCM with ssid/pass, and communicate with my AWS account to generate and download certificates/keys?

0 Likes
1 Solution
Anonymous
Not applicable

Follow the procedure to "create a certificate" as follows:-

1. Login to AWS Amazon.

2. Click on AWS IoT

3.  Select "Create a New Resource"

resource.png

4. Click on "Create a Certificate" followed by "1 Click certificate create".

resource.png

5. Download public key, private key and certificate.

6. For the demo, we just need the private key and certificate.

7. Rename the private key file downloaded, to privkey.cer

8. Rename the certificate key file download to client.cer

We will be using these two files, client.cer and privkey.cer

Flashing the Application

1. Paste these two files in resources->apps->aws_iot Folder.

pastedImage_1.png

2. Change the Wifi Credentials in wifi_config_dct.h located in the application folder.

#define CLIENT_AP_SSID       "YOUR_AP_SSID"

#define CLIENT_AP_PASSPHRASE "YOUR_AP_PASSPHRASE"

3. Flash the application using :-

demo.aws_iot.pub_sub.publisher-BCM94343WWCD1 download run

Make sure you change the application name and the name of the board.

To Verify If the MQTT messages are being published.

To verify if your messages are being published to the AWS you can use the AWS MQTT Client.

Steps:-

1. Go to AWS IoT.

2. Click on MQTT Client.

mqttclient.png

3. Select Generate Client ID

mqtt_client_connect.png

4. Enter the topic name that you have assigned to your publisher.['thing1']. In my case, it is WICED_BULB

mqttckue.png

5. You will see messages being published for the topic subscribed in the left hand side corner.

messages.png

View solution in original post

5 Replies
PeFe_666001
Level 3
First like received First like given
Level 3

Two methods are discussed on the Avnet CloudConnectKits.org forum:
a) Using the webserver based user interface from SoftAP mode
b) "Baking-in" the configuration settings (network settings, AWS certificates,etc) into the source code

Anonymous
Not applicable

Yes that is pretty straight forward and easy for technical minded person. But I was thinking of a grandma, that just know her wifi ssid/passphrase and maybe already have an AWS account.

Develop an smartphone app that lead you through registration and configuration using an embedded browser and AWS CLI interface. Can it be done and is it a good way to do it?

0 Likes
Anonymous
Not applicable

Follow the procedure to "create a certificate" as follows:-

1. Login to AWS Amazon.

2. Click on AWS IoT

3.  Select "Create a New Resource"

resource.png

4. Click on "Create a Certificate" followed by "1 Click certificate create".

resource.png

5. Download public key, private key and certificate.

6. For the demo, we just need the private key and certificate.

7. Rename the private key file downloaded, to privkey.cer

8. Rename the certificate key file download to client.cer

We will be using these two files, client.cer and privkey.cer

Flashing the Application

1. Paste these two files in resources->apps->aws_iot Folder.

pastedImage_1.png

2. Change the Wifi Credentials in wifi_config_dct.h located in the application folder.

#define CLIENT_AP_SSID       "YOUR_AP_SSID"

#define CLIENT_AP_PASSPHRASE "YOUR_AP_PASSPHRASE"

3. Flash the application using :-

demo.aws_iot.pub_sub.publisher-BCM94343WWCD1 download run

Make sure you change the application name and the name of the board.

To Verify If the MQTT messages are being published.

To verify if your messages are being published to the AWS you can use the AWS MQTT Client.

Steps:-

1. Go to AWS IoT.

2. Click on MQTT Client.

mqttclient.png

3. Select Generate Client ID

mqtt_client_connect.png

4. Enter the topic name that you have assigned to your publisher.['thing1']. In my case, it is WICED_BULB

mqttckue.png

5. You will see messages being published for the topic subscribed in the left hand side corner.

messages.png

Anonymous
Not applicable

Zentri has a blog that addresses a demo specifically that addresses this issue. The blog can be found at : Cloud MQTT Demo

Zentri offers an OS that unleashes the power of WICED and that can run on a number of different hardware platforms such as those by Murata, NXP, ST and Zentri's own.

0 Likes