background image

resumes normal behavior of blinking to indicate the transmission sensor data through PUBLISH packets. As with
sending messages, the payload is limited by the MQTT Receive Buffer (bytes) configurable in the MQTT library MCC
window.

Figure 2-11. Viewing Messages on a Serial Terminal

There is no permanent storage or collection of the data published by the boards connected through the Microchip
sandbox account. The full storage features available to AWS Cloud are available to the user after the board has been
removed from the Microchip sandbox and migrated to a private account.

2.5 

Configuring Other Settings

While the AVR-IoT WA Development Board comes fully programmed and provisioned right out of the box, the user
can still control aspects of the application firmware behavior through the USB interface. There are three methods to
do this:

1.

Hex file (reprogram) or WIFI.CFG (reconfigure credentials) drag and drop using the mass storage feature.

2.

Commands through the Serial Command Line Interface (CLI), or using MPLAB X IDE.

3.

The on-board programmer/debugger PKOB nano.

2.5.1 

Mass Storage Drag and Drop

There are two ways to utilize the Mass Storage Drag-and-Drop Option:

• Program the embedded device is to drag and drop a .

hex

 file into the CURIOSITY drive. The C compiler

toolchain generates a .

hex

 file for each project it builds. This .

hex

 file contains the code of the project. The

Nano Embedded 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 feature

does not require any USB driver to be installed and works in all major OS environments.

• If the WiFi credentials need to be reconfigured and/or the board needs to connect to the new access point, the

user can enter the new credentials in the AVR-IoT webpage, download the WIFI.cfg file, and then drag and drop
this file into the CURIOSITY drive. The board securely remembers the last successful connection to the access
point.

2.5.2 

Serial USB Interface

The Wi-Fi Access Point credentials can be reconfigured through a Serial Command Line Interface (CLI) on the AVR-
IoT WA Development Boards. This interface may also be used to provide application diagnostic information. To
access this interface, use any preferred serial terminal application (Tera Term, CoolTerm, and PuTTy) and open the
serial port labeled Curiosity Virtual COM port, with the following settings:

Table 2-2. Serial USB Interface Settings

Baud rate Data

Parity bit

Stop bit

Flow control

Local echo

Transmit protocol

9600

8 bits

None

1 bit

None

ON

CR+LF (Carriage
Line Feed)

Note: 

 For Windows

®

 users, the USB serial interface requires the installation of a USB serial port driver, included in

the installation of the MPLAB

®

 X IDE.

The user can control the board by typing the command keywords, listed in 

Serial Command Line Commands

:

 AVR-IoT WA User Guide

Getting Started

©

 2020 Microchip Technology Inc.

 User Guide

DS50002998A-page 14

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: