1
<Ai-WB2-07S>
Getting Started Guide for AWS
IoT Core
2
Content
1. Document Information
....................................................................................................................3
1.1 Revision History
................................................................................................................... 3
2. Overview
.........................................................................................................................................3
3. Hardware Description
.....................................................................................................................4
3.1 DataSheet
..............................................................................................................................4
3.2 Standard Kit Contents
...........................................................................................................4
3.3 User Development Kit
.......................................................................................................... 4
4. Development environment deployment
......................................................................................... 5
4.1 Get SDK and debug software
...............................................................................................5
4.2 Compilation environment installation
.................................................................................. 5
4.3 Serial port configuration settings
..........................................................................................6
5. Set up your hardware
......................................................................................................................7
5.1 Pin definition
........................................................................................................................ 7
5.2 Pin connection
...................................................................................................................... 7
5.3 Wiring Diagram
.................................................................................................................... 8
5.4 Actual wiring diagram
.......................................................................................................... 8
6. Setup your AWS account and Permissions
.....................................................................................9
7. Create Resources in AWS IoT
........................................................................................................ 9
8. Certificate management and device connection
.............................................................................9
8.1 Enter the iot core console
..................................................................................................... 9
8.2 Click on the Thing to enter the create Thing interface
.......................................................10
8.3 Click to create Thing
.......................................................................................................... 10
8.4 Create a single Thing
..........................................................................................................11
8.5 Set Thing properties
............................................................................................................11
8.6 Choose to automatically generate a certificate
...................................................................12
8.7 Create policy
.......................................................................................................................12
8.8
Configuration Policy information
...................................................................................... 13
8.9
Attach to certificate
............................................................................................................. 13
8.10 Download and save the certificate
....................................................................................13
8.11 Replace certificate in SDK
............................................................................................... 14
8.12 Replace the endpoint in the SDK
..................................................................................... 15
9. Build the demo
..............................................................................................................................17
9.1 Switch to Ai-Thinker-WB2/applications/iot-solution/aws_iot_cert
.................................. 17
9.2 Compilemake -j8 ........................................................................................................ 17
9.3Compilation complete
..........................................................................................................17
10. Run the demo
..............................................................................................................................18
10.1 Flash the program to the module
......................................................................................18
10.2 AWS IOT Subscription Test
............................................................................................. 22
10.3 AWS IOT release test
........................................................................................................24
10.4 AWS IOT shadow Test
..................................................................................................... 26
11. Debugging
...................................................................................................................................30
12. Troubleshooting
.......................................................................................................................... 30