background image

Figure 2-7. Connecting via Soft AP

2.4 

Visualizing Cloud Data in Real Time

Out of the box, all AVR-IoT WA Development Boards are pre-registered to Microchip’s AWS Cloud sandbox account.
This account is set up for demonstration purposes only. All data gathered by the sensors of the AVR-IoT WA
Development Boards are published on the Microchip sandbox account and can be identified by the following details:

Table 2-1. Project Details

Region:

iot.us-east-2

Port:

8883

There is no permanent storage or collection of data published by the boards connected to the Microchip sandbox
account. The full storage catalog of the AWS Cloud features, such as data storage/retention, can be available to the
user with the use of the board once removed from the sandbox and the associated Thing NamePublic Key has been
migrated to a private account.

2.4.1 

Publishing data to AWS Cloud

A MQTT publish packet is always sent to the MQTT broker using a specific topic. The AVR-IoT WA Development
Board publishes messages using the topic ‘

thingName/sensors

’ in communication to the AWS cloud. The

messages published on this topic contains the real-time data obtained from the on-board light and temperature

 AVR-IoT WA User Guide

Getting Started

©

 2020 Microchip Technology Inc.

 User Guide

DS50002998A-page 9

Summary of Contents for AVR-IoT WA

Page 1: ...ull programming and debugging support through Atmel Studio MPLAB X IDE Communication Library It also provides access to a serial port interface serial to USB bridge and two logic analyzer channels deb...

Page 2: ...Account 16 3 Code Source Platforms 17 3 1 Code Generation from MCC 17 3 2 Getting the Source Code from GitHub 25 4 Hardware Guide 26 5 FAQs Tips and Troubleshooting 27 5 1 FAQs and Tips 27 5 2 LED Sta...

Page 3: ...Charge Status LEDs LiPo Connector MCP73871 LiPo Charger ATECC608A Secure Element Light Sens or MCP9808 Temperature Sens or MIC33050 Voltage Regulator SPICS Reset Interrupt AVR IoT WG Development Board...

Page 4: ...ction to AWS Cloud Yellow DATA Blinking Yellow Data Publication to the Cloud Indicates that sensor data in the form of MQTT packet has been successfully published to AWS Cloud Solid Yellow for ON stat...

Page 5: ...INFO HTM redirects the user to a site containing information and resources about the board KIT INFO TXT a text file with details about the PKOB nano firmware and the board s serial number PUBKEY TXT a...

Page 6: ...marker lights up signifying that data is streaming from the board to the cloud For each successful MQTT publication of data yellow LED on the board blinks 2 3 Connecting the Board to Wi Fi Networks 2...

Page 7: ...ormation entered in the SSID and password fields is not transmitted over the web or to the Microchip or any of the Cloud servers Instead the information is used locally within the browser to generate...

Page 8: ...hen the Soft AP mode has been successfully entered the board can be detected as a Wi Fi access point named MCHP IOT ACCESSPOINT The blue LED will start blinking when Soft AP is available Using a mobil...

Page 9: ...connected to the Microchip sandbox account The full storage catalog of the AWS Cloud features such as data storage retention can be available to the user with the use of the board once removed from th...

Page 10: ...load where toggle is the attribute state reported toggle 1 The payload consists of key value pairs In the above example attribute toggle is set to 1 The user can expand the application to add more att...

Page 11: ...s 1 but a client sent a desired state for toggle as 0 The device would receive update like below version 1349 timestamp 1583450271 state toggle 0 metadata toggle timestamp 1583450271 Further informati...

Page 12: ...rature graphs In this section the user can go through the steps of building their own custom application To quickly preview the capability to send messages from the Cloud to the board click the Implem...

Page 13: ...his topic when there is a difference in attribute values The payload received here is limited by the MQTT Receive Buffer bytes configurable in MQTT library MCC window see Figure 3 12 for more details...

Page 14: ...ed Debugger PKoB nano also provides access to a serial port interface serial to USB bridge This facilitates the user to drag and drop a modified hex file which contains the firmware updates This featu...

Page 15: ...he user selects Enable debug messages option in the AVR IoT Sensor Node Library Configured Debug Severity level is used to determine messages displayed using debug_printer 0 Normal At this level only...

Page 16: ...ation code in MCC 2 6 Migrating to a Private AWS Cloud Account Once the features and capabilities of the AVR IoT WA board have been explored the user can begin the process to move development out of t...

Page 17: ...enerate a microcontroller code for it 3 1 1 1 Creating the MPLAB X Project 1 Create a new stand alone project see Create New Project in MPLAB X using the ATmega4808 as the device see Selecting a Devic...

Page 18: ...Figure 3 1 Create New Project Figure 3 2 Selecting a Device ATmega4808 AVR IoT WA User Guide Code Source Platforms 2020 Microchip Technology Inc User Guide DS50002998A page 18...

Page 19: ...Figure 3 3 Selecting a Programmer Figure 3 4 Selecting a Compiler AVR IoT WA User Guide Code Source Platforms 2020 Microchip Technology Inc User Guide DS50002998A page 19...

Page 20: ...e Project The example module makes use of multiple libraries and peripherals To configure the libraries double click on each library in the Device Resources window to view their setup windows AVR IoT...

Page 21: ...y To avoid using this outdated library and its components always check that you are loading the AVR IoT AWS Sensor Node Library and not the AVR IoT WG Sensor Node Library The correct library will also...

Page 22: ...fault SSID password authentication type and inclusion of IPSocket for the network to which the board will be connected as seen in WINC MCC Message Queuing Telemetry Transport MQTT MQTT is used as a me...

Page 23: ...Figure 3 10 WINC MCC AVR IoT WA User Guide Code Source Platforms 2020 Microchip Technology Inc User Guide DS50002998A page 23...

Page 24: ...rate button on the left hand corner of the window as shown in the Generating MCC Code and wait for the generation to complete Click the Make and Program Device button near the middle of the toolbar Ma...

Page 25: ...and Atmel Studio The hex file is also available for download from the releases tab for drag and drop programming Refer to the table below for the links to the GitHub deployments For full URLs to the...

Page 26: ...nts configuration and schematics For in depth information on the hardware features of the AVR IoT Wx boards see the full AVR IoT Wx Hardware User Guide For the full URL of the document refer to the Re...

Page 27: ...ined after subsequent power cycles of the AVR IoT Development Board but the file will disappear 3 Can a phone tablet alone be used to perform the demo Assuming the user has a way to provide power to t...

Page 28: ...any firewall settings that might block access 5 2 LED Status Troubleshooting Table 5 1 Application LED Troubleshooting LED Sequence Description Diagnosis Action All LEDs are OFF Board is not programme...

Page 29: ...on required OR Blue and Green LEDs are ON Yellow LED held high low Subscribe topic toggle value received Nothing to do LED will reflect Toggle value LED behavior returns to normal after HOLD PERIOD Ta...

Page 30: ...s AVR IoT WG for MPLAB X on GitHub Source code github com microchip pic avr solutions avr iot google sensor node mplab hex file github com microchip pic avr solutions avr iot google sensor node mplab...

Page 31: ...bles and configures a rich set of peripherals and functions specific to the application Atmel START www microchip com start Online tool that helps the user to select and configure software components...

Page 32: ...7 Revision History Doc Rev Date Comments A 06 2020 Initial document release AVR IoT WA User Guide Revision History 2020 Microchip Technology Inc User Guide DS50002998A page 32...

Page 33: ...able through the website at www microchip com support Microchip Devices Code Protection Feature Note the following details of the code protection feature on Microchip devices Microchip products meet t...

Page 34: ...ProASIC Plus logo Quiet Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProvider Vite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the U S A Adj...

Page 35: ...China Xiamen Tel 86 592 2388138 China Zhuhai Tel 86 756 3210040 India Bangalore Tel 91 80 3090 4444 India New Delhi Tel 91 11 4160 8631 India Pune Tel 91 20 4121 0141 Japan Osaka Tel 81 6 6152 7160 J...

Reviews: