1
<Ai-WB2 Series>
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 ..........................................................................................5
5. Set up your hardware ......................................................................................................................6
5.1 Pin definition ........................................................................................................................ 6
5.2 Pin connection ...................................................................................................................... 6
5.3 Wiring Diagram .................................................................................................................... 7
6. Setup your AWS account and Permissions .....................................................................................9
7. Create Resources in AWS IoT ........................................................................................................ 9
8. Certificate management and device connection ...........................................................................10
8.1 Replace certificate in SDK ................................................................................................. 10
8.2 Replace the endpoint in the SDK ....................................................................................... 12
9. Build the demo ..............................................................................................................................13
9.1 Switch to Ai-Thinker-WB2/applications/IoT-solution/aws_IoT_cert ................................13
9.2 Compilemake -j8 ........................................................................................................ 13
9.3 Compilation complete .........................................................................................................13
10. Run the demo ..............................................................................................................................14
10.1 Flash the program to the module ......................................................................................14
10.2 AWS IoT Subscription Test .............................................................................................. 18
10.3 AWS IoT release test .........................................................................................................20
10.4 AWS IoT shadow Test ...................................................................................................... 22
11. Debugging ...................................................................................................................................24
12. Troubleshooting .......................................................................................................................... 24