![Microchip Technology ATWINC 15x0 Developer'S Manual Download Page 52](http://html1.mh-extra.com/html/microchip-technology/atwinc-15x0/atwinc-15x0_developers-manual_1785757052.webp)
6.
AWS Provision Setup
The Wi-Fi Smart Device Enablement Kit is pre-programmed with the credentials required to connect and
communicate with the Microchip AWS IoT account. The pre-programmed AWS account credentials are
lost after re-programming the board. The user needs to migrate the board to connect to the private AWS
account for customization. This section shows the steps to provision the board to connect to the private
AWS account created in
.
These are the following steps for the AWS provisioning procedure:
1.
Create and register the signer CA to AWS IoT account.
2.
Request a Certificate Signing Request (CSR) from the board.
3.
Create a device certificate using the CSR and signer CA.
4.
Send the device certificate, signer certificate and AWS connection information to the board.
directory are used to perform the above tasks.
Perform the following steps:
1.
Open Command Prompt, go to
folder and input the Python command:
python
_CreateCertsAndRegister2AWS.py --profile <your-aws-cli-profile name>
Note:
Make sure to install and configure AWS CLI tool with your AWS account (ZTUser). The
profile name of your account can be found in
~/.aws/
credentials. The steps to configure AWS
CLI can be found in
This command performs the following tasks:
1.1.
Creates a certCA (
rootCA.crt
) with its private key (
root-ca.key
, if this one already
exists it reuses it)
1.2.
Creates a signing certificate (
signer-ca.csr
) and its private key (
signer-ca.key
, if
this one already exists it reuses it)
1.3.
The root-ca signs the
signer-ca.csr
and creates
signer-ca.crt
.
1.4.
This
signer-ca.crt
is then uploaded to the AWS IoT account.
2.
Program the firmware of the project
saml21g18b_sensor_board_demo_ECC.atsln
to the
board. Refer to
4.1 Application Firmware Compilation Procedure
procedure. Project
saml21g18b_sensor_board_demo_ECC.atsln
is used to perform AWS
account provision. The developer needs to program this project code to the board to perform AWS
account provision to migrate the board to connect with the private AWS account.
3.
LED LD2 on board will blink in yellow color.
4.
Open Command Prompt, go to
_Commission_WiFi_ECC_2AWS.py
Python command, enter SSID and password. This
command performs the following tasks:
4.1.
Script commission the ECC608 with SSID and password for the Wi-Fi connection.
4.2.
Script request the ECC608 to generate a signing certificate (with its private key remaining
private in the ECC).
4.3.
The script receives the CSR and signs it with the signer-ca private key.
4.4.
Script sends it back to the ECC608 that stores it.
5.
Program the firmware of the project
saml21g18b_sensor_board_demo_JITR.atsln
to the
board.
ATWINC15x0 Smart Device Kit
AWS Provision Setup
©
2019 Microchip Technology Inc.
User Guide
DS50002885A-page 52