background image

5. 

FAQs, Tips, and Troubleshooting

5.1 

FAQs and Tips

1. How can the user change the Wi-Fi configuration?

There are four ways to do it:

1.

Connect to the USB and click the ‘

click-me

’ file to reach the dedicated page for the device and enter the

new credentials in the web form. Download the resulting file to the CURIOSITY drive. Read more in Section 

2.3.1  Via AVR-IoT Web Page

.

2.

Connect to the USB and open a serial port terminal (Windows users will need to install serial port drivers).
From the command line, use the 

Wi-fi

 command. Read more in Section 

2.3.1  Via AVR-IoT Web Page

.

3.

Press the 

SW0

 button while powering up the board and the WINC will turn to Access Point mode. Connect the

laptop or phone to it and fill in the online form. See Section 

2.3  Connecting the Board to Wi-Fi Networks

 for

details.

4.

Use MCC to re-build the project after changing the default Wi-Fi configuration in the WINC module.
Reprogram the board using MPLAB X or drag and drop the new image to the CURIOSITY drive. Further
details can be found in Section 

3.1  Code Generation from MCC 

.

2. How can the user change the Wi-Fi credentials using the online form without exposing the details to
security threats?

Although it appears in the browser, the Wi-Fi credential setup form does not transfer any information to third parties.
A small text file (WIFI.CFG) is created (this can also be done manually using any text editor) and it is recommended
that saves it directly to the CURIOSITY drive. Since the browser settings vary according to the platform and personal
preferences, the user might have to change them or perform a drag and drop from the default download folder. Even
though it looks like the WIFI.CFG file is now stored on the CURIOSITY drive, this is just an artifact of the operating
system (caching). No file is permanently recorded and the information contained is immediately used to update the
Wi-Fi module settings. These settings will be maintained 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 the board (a USB back-up battery, a USB charger, a Li-Ion battery,
or other 3.3V-5V power supply), the QR code can be scanned (on a sticker under the board, next to the Microchip
and Amazon color logos) using any smartphone camera (old operating system versions might still require a separate
app) and open the resulting link in the smartphone browser.

4. The user scanned the bar code with the phone/tablet, but nothing happened?

Ensure the scanning of the QR code present on the sticker under the AVR-IoT WA board. It can be recognized by the
distinguishing squares on the three of its corners and its proximity (same sticker) to the MCHP and Amazon logos (in
color). Although there are also other bar codes present on the Wi-Fi module, and/or the anti-static bag the board
came with, those are not QR codes.

5. Which battery is recommended to be used with the AVR-IoT WA Sensor Node board?

Microchip recommends Li-Ion or Li-Poly batteries with at least 400 mAh capacity and 3.7V nominal. For more
information about powering the board, refer to the 

AVR-IoT Wx Hardware User Guide.

Other Helpful Tips:

The following steps are not required for operating the AVR-IoT WA Sensor Node board, but will significantly increase
the possibility of positive results.

1.

Get a USB cable with all the four wires connected

. There are a lot of non-compliant USB cables available

that provide only 5V power (two wires). How can the user verify it? Plug the board into the laptop and check in
the File Manager (Finder) for the presence of a new hard drive (named CURIOSITY). If it fails to pop up after a
second or two, the cable is not the appropriate one.

2.

Prepare the Wi-Fi router for the demo

. The easiest way to go is to set up the phone as a hotspot. The

following credentials should be used, name (SSID): 

MCHP.IOT

 and password: 

microchip

 (

WPA 2

 is assumed,

 AVR-IoT WA User Guide

FAQs, Tips, and Troubleshooting

©

 2020 Microchip Technology Inc.

 User Guide

DS50002998A-page 27

Содержание AVR-IoT WA

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 23: ...Figure 3 10 WINC MCC AVR IoT WA User Guide Code Source Platforms 2020 Microchip Technology Inc User Guide DS50002998A page 23...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: