This user guide describes how to run the Atmel ATWINC3400 Bluetooth Low Energy (BLE) Provisioning demo from out-of-box conditions.

Similar documents
AT03975: Getting Started with SAM L21. Descripton. Features. SMART ARM-Based Microcontroller APPLICATION NOTE

AVR42789: Writing to Flash on the New tinyavr Platform Using Assembly

AT06467: Getting started with SAM D09/D10/D11. Features. Description. SMART ARM-based Microcontrollers APPLICATION NOTE

AT60142H/HT. Rad-Hard 512Kx8 Very Low Power CMOS SRAM ERRATA-SHEET. Active Errata List. Errata History. Abbreviations. 1.

AT09381: SAM D - Debugging Watchdog Timer Reset. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

APPLICATION NOTE. AT6486: Using DIVAS on SAMC Microcontroller. SMART ARM-Based Microcontroller. Introduction. Features

EDBG. Description. Programmers and Debuggers USER GUIDE

ATAES132A Firmware Development Library. Introduction. Features. Atmel CryptoAuthentication USER GUIDE

Smart RF Device Family - Getting Started Guide. Features. Description. References ATAN0115 APPLICATION NOTE

Hardware Prerequisites Atmel Xplained Pro Evaluation Kit Atmel WINC1500 extension USB Micro Cable (TypeA / MicroB)

AT11512: SAM L Brown Out Detector (BOD) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

USER GUIDE. Atmel QT6 Xplained Pro. Preface

QT3 Xplained Pro. Preface. Atmel QTouch USER GUIDE

APPLICATION NOTE. Generating Random Secrets. ATSHA204A, ATECC108A, and ATECC508A. Description. Topics

APPLICATION NOTE. AT05567: TC Capture on External Interrupt with the Event System on SAM D20. Preface ASF PROJECT DOCUMENTATION

AT21CS Series Reset and Discovery. Introduction. Serial EEPROM APPLICATION NOTE

AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Features. Introduction. AVR 8-bit Microcontrollers APPLICATION NOTE

APPLICATION NOTE. AT04470: Differences between SAM D21 Variants A, B, and L. 32-bit Microcontroller. Introduction

USER GUIDE. ATWINC1500 Xplained Pro. Preface

Ethernet1 Xplained Pro

AT03262: SAM D/R/L/C System Pin Multiplexer (SYSTEM PINMUX) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

APPLICATION NOTE. 3-lead CONTACT Package Usage. ATSHA204A, ATECC108A, and ATECC508A. Introduction. 3-lead CONTACT Package

APPLICATION NOTE. Atmel QT4 Xplained Pro User Guide ATAN0114. Preface

APPLICATION NOTE. AT03324: Atmel REB212BSMA-EK Quick Start Guide. Atmel MCU Wireless. Introduction

AT10942: SAM Configurable Custom Logic (CCL) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

QT2 Xplained Pro. Preface. Atmel QTouch USER GUIDE

ATtiny817 QTouch Moisture Demo User Guide. Description. Features. AVR 8-bit Microcontrollers USER GUIDE

Native route discovery algorithm

DGILib USER GUIDE Atmel-42771A-DGILib_User Guide-09/2016

ATtiny104 Xplained Nano. Preface. AVR 8-bit Microcontrollers USER GUIDE

ATECC508A Public Key Validation. Introduction. Atmel CryptoAuthentication APPLICATION NOTE

AVR42772: Data Logger Demo Application on XMEGA A1U Xplained Pro. Introduction. Features. AVR XMEGA Microcontrollers APPLICATION NOTE

SAM4 Reset Controller (RSTC)

USER GUIDE. Atmel Segment LCD1 Xplained Pro. Preface

SAMA5D2 Quad SPI (QSPI) Performance. Introduction. SMART ARM-based Microprocessor APPLICATION NOTE

AT88CK101 HARDWARE USER GUIDE. Atmel CryptoAuthentication Development Kit. Atmel CryptoAuthentication AT88CK101 Daughterboard

ATECC108/ATSHA204 USER GUIDE. Atmel Firmware Library. Features. Introduction

USER GUIDE EDBG. Description

USER GUIDE. ZigBit USB Stick User Guide. Introduction

USER GUIDE. Atmel QT1 Xplained Pro. Preface

APPLICATION NOTE. AT11008: Migration from ATxmega16D4/32D4 Revision E to Revision I. Atmel AVR XMEGA. Introduction. Features

APPLICATION NOTE. Atmel AT03304: SAM D20 I 2 C Slave Bootloader SAM D20. Description. Features

OLED display with pixels resolution Ambient light sensor CPU load Analog filter Quadrature Encoder with push button Digital I/O

APPLICATION NOTE. How to Securely Switch Atmel s LIN Transceiver ATA6662/ATA6662C to Sleep Mode ATA6662/ATA6662C. Concerning Atmel ATA6662

APPLICATION NOTE. Scope. Reference Documents. Software Ethernet Bridge on SAMA5D3/D4. Atmel SMART SAMA5D3/D4 Series

APPLICATION NOTE. Atmel AVR1638: XMEGA RTC Calibration. 8-bit Atmel Microcontrollers. Features. Introduction

USER GUIDE. Atmel OLED1 Xplained Pro. Preface

Atmel AVR1619: XMEGA-B1 Xplained Demonstration. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

APPLICATION NOTE. Atmel AT03160: Migrating Bootloader from ATxmega128A1 to other Atmel XMEGA Devices. Atmel AVR XMEGA. Features.

APPLICATION NOTE. CryptoAuthentication Personalization Guide. ATSHA204A and ATECC508A. Introduction. Features

AVR1503: Xplain training - XMEGA Programmable Multi Interrupt Controller 8-bit Microcontrollers Application Note Prerequisites

APPLICATION NOTE. Atmel AT03261: SAM D20 System Interrupt Driver (SYSTEM INTERRUPT) SAM D20 System Interrupt Driver (SYSTEM INTERRUPT)

SMART ARM-based Microcontrollers ATSAMD21E16LMOTOR USER GUIDE

SAMSUNG ELECTRONICS RESERVES THE RIGHT TO CHANGE PRODUCTS, INFORMATION AND SPECIFICATIONS WITHOUT NOTICE. Products and specifications discussed

I/O1 Xplained Pro. Preface. Atmel MCUs USER GUIDE

USER GUIDE. Atmel maxtouch Xplained Pro. Preface

AVR1518: XMEGA-A1 Xplained Training - XMEGA Clock System. 8-bit Atmel Microcontrollers. Application Note. Prerequisites.

APPLICATION NOTE. AT07216: SAM G55 Schematic Checklist. Atmel SMART SAM G55. Introduction

ATZB-SAMR21-XPRO. Preface. SmartConnect USER GUIDE

MySonicWall Secure Upgrade Plus

Atmel QT600 Quick Start Guide Touch Solutions

USER GUIDE. ATmega168 Xplained Mini User Guide. Introduction

APPLICATION NOTE. Atmel AVR2131: Lightweight Mesh Getting Started Guide. Atmel MCU Wireless. Features. Description

APPLICATION NOTE. Atmel AVR057: Internal RC Oscillator Calibration for ATtiny4/5/9/10/20/40. 8-bit Atmel Microcontrollers. Features.

RELEASE NOTES. GNU Toolchain for Atmel ARM Embedded Processors. Introduction

ATWINC3400-XPRO. Preface. SmartConnect USER GUIDE

Atmel AVR ATxmega384C3 microcontroller OLED display with 128x32 pixels resolution Analog sensors. Ambient light sensor Temperature sensor

Atmel ATtiny1634 MCU Atmel ATA SBC LIN transceiver with integrated voltage regulator Touch. Three Atmel QTouch buttons One Atmel QTouch slider

USER GUIDE. SAMW25-MR210/510PA Hardware Design Guidelines - IEEE b/g/n IoT Module. Atmel SmartConnect. Introduction

Workshop 4 Installation INSTALL GUIDE. Document Date: February 4 th, Document Revision: 1.1

Atmel AVR1926: XMEGA-B1 Xplained Getting Started Guide. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

USER GUIDE. ATWILC1000 Getting Started with SAMA5D3 Xplained Board. Atmel SmartConnect. Introduction. Features

AVR based 125kHz RFID Evaluation Kit (Re)Programming Guide ATA2270-EK1. Overview. Fuse Settings: ISP Programming

AVR1922: Xplain Board Controller Firmware 8-bit Microcontrollers Application Note Features 1 Introduction

AT02667: XMEGA-E5 Xplained Hardware User's Guide. Features. Description. AVR XMEGA Microcontrollers APPLICATION NOTE

AT03664: Getting Started with FreeRTOS on SAM D20/D21/R21/L21/L22. Introduction. Features. SMART ARM-based Microcontrollers APPLICATION NOTE

AVR1303: Use and configuration of IR communication module. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AT07942: SAM4L Asynchronous Timer (AST) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

One Identity Starling Two-Factor HTTP Module 2.1. Administration Guide

EAM Portal User's Guide

One Identity Password Manager User Guide

Velodyne LiDAR Sensor Firmware Update

SonicWall Mobile Connect ios 5.0.0

Atmel LF-RFID Kit Comparison Chart. Application Note. Atmel LF-RFID Kit Comparison Chart. 1. Description

USER GUIDE. Atmel PROTO1 Xplained Pro. Preface

64K (8K x 8) Battery-Voltage Parallel EEPROM with Page Write and Software Data Protection AT28BV64B

AVR1501: Xplain training XMEGA Timer/Counter 8-bit Microcontrollers Application Note Prerequisites 1 Introduction

One Identity Starling Two-Factor AD FS Adapter 6.0. Administrator Guide

OLED display Sensors readout. Light sensor Temperature sensor

APPLICATION NOTE. Atmel AT01080: XMEGA E Schematic Checklist. Atmel AVR XMEGA E. Features. Introduction

ESS Utility Android App User Guide

Setting up Quest QoreStor as an RDA Backup Target for NetVault Backup. Technical White Paper

One Identity Starling Two-Factor Authentication. Administration Guide

Atmel AVR32847: Migration from/to the UC3L0 64/32/16 from/to the UC3L0 256/ bit Atmel Microcontrollers. Application Note.

QPP Proprietary Profile Guide

a clock signal and a bi-directional data signal (SCL, SDA)

USER GUIDE. AT08578: SAM D20 QTouch Robustness Demo. Atmel QTouch. Description. Features

Cypress BLE-Beacon ios App User Guide

GS2K Hosted HomeKit User Guide. 1VV Rev

AVR32917: picopower Board getting started. 32-bit Microcontrollers. Application Note. Preliminary. Features. 1 Introduction

Transcription:

ATWINC3400 BLE ATWINC3400 BLE Provisioning - Setup and Usage USER GUIDE Introduction This user guide describes how to run the Atmel ATWINC3400 Bluetooth Low Energy (BLE) Provisioning demo from out-of-box conditions. Features How to download the ATWINC3400 firmware How to build and install the iphone application How to Install the Android application How to run the demo Prerequisites Hardware Prerequisites Atmel SAM D21 Xplained Pro Evaluation Kit Atmel ATWINC3400 extension Micro-USB Cable TotalPhase Aardvaark I 2 C/SPI Host Adapter BLE capable SmartPhone: Android 5.1 or higher Apple iphone 6 Software Prerequisites ATWINC3400 Firmware BLE Provisioning SmartPhone Application (IPhone or Android) Atmel Studio version 7.0 or higher samd21_xplained_pro_ble_provision_app

Table of Contents 1 How to Flash the ATWINC3400 Firmware... 3 2 How to Build, Download, and Use the SAM D21 BLE Provisioning Demo... 4 2.1 Building and Downloading... 4 2.2 Running the Demo... 4 3 Install (Sideload) and use the Android Application Installation... 6 3.1 Installation... 6 3.2 Using the Android Provisioning Application... 6 4 How to Build, Install, and Use the iphone Application... 10 4.1 Building and Installation... 10 4.2 Using the ios Provisioning Application... 10 5 Reference... 15 6 Document Revision History... 16 2

1 How to Flash the ATWINC3400 Firmware To write the ATWINC3400 firmware to the current level, refer to the Atmel Getting Started Guide for ATWINC3400 [R01]. 3

2 How to Build, Download, and Use the SAM D21 BLE Provisioning Demo 2.1 Building and Downloading Using Windows Explorer, navigate to the release package and the src\tools\samd21_xplained_pro_wifi_ble_provision_app directory: 1. Open the samd21_xplained_pro_wifi_ble_provision_app.atsln project file in Atmel Studio. 2. Build the software and run the software in Atmel Studio as usual (press F5 ). 2.2 Running the Demo Open a serial terminal to view output from the SAM D21. Baud rate 115200. Now run the software in Atmel Studio (press F5 ). The terminal will prompt the user to press button SW0 for two seconds in order to kick off provisioning. Press SW0 on the SAM D21 Xplained Pro. The ATWINC3400 now connects to the Wi-Fi Access Point. Figure 2-1. ATWINC3400 in Provisioning Mode 4

Use one of the SmartPhone apps (described in Chapters 3 and 4) to provide the SSID and Passphrase of the Wi-Fi Access Point. Provisioning completes and the terminal will prompt the user to press button SW0 for two seconds in order to connect. Press SW0 on the SAM D21 Xplained Pro and hold it for two seconds. The ATWINC3400 now connects to the Wi-Fi Access Point. Figure 2-2. ATWINC3400 Connected to Wi-Fi Access Point Once connection completes, the terminal displays the IP address of the ATWINC3400. The connection can be demonstrated by sending a ping request to this IP address via the Access Point. 5

3 How to Install (Sideload) and Use the Android Application 3.1 Installation The Android application is supplied as an Android Package file (app-debug.apk) in the release package under directory src\tools\android_apps\ble_prov_demo. Firstly you must enable Unknown Sources on your Android SmartPhone: 1. Navigate to Settings\Security and check the box next to Unknown Sources. 2. A dialog window may pop up asking for confirmation, tap OK to confirm. Figure 3-1. Unknown Sources. 3. Connect the SmartPhone to the Host PC via a USB cable and copy the Android package from the release onto the Phone (e.g. into the Download directory). 4. Use a file manager on the SmartPhone, navigate to the APK file, and tap on it. As part of the installation, the app will request access to Bluetooth settings and for permission to pair with other Bluetooth devices. Accept these requirements by tapping the INSTALL button. 3.2 Using the Android Provisioning Application On launching, the application will present a basic user interface for detecting BLE devices that supports the Atmel provisioning profile. 1. Start a BLE scan by tapping the SCAN button, see Figure 3-2(a). 6

Figure 3-2. BLE Peripheral Scanning a) b) 2. After tapping on an ATMEL_WIFI BLE peripheral, the application will transition to Wi-Fi Provisioning Mode as depicted in Figure 3-3(a). The user may choose a security type and enter the SSID and passphrase ( Network Key ) manually. Alternatively the user may wait for discovered access points to be displayed in a list underneath the CLEAR, PROVISION, and SCAN buttons. Tapping on a discovered access point entry in the list will automatically populate the Security and SSID user interface elements. The user must then enter the passphrase ( Network Key ) if it is a secured network. Tapping the tick-box next to the Network Key field will reveal the text being typed. There are restrictions to the length of the network key required for provisioning to be enabled, depending on the security method chosen. These are described in Table 3-1. Table 3-1. Network Key Length Restrictions Security Required key length Open 0 WEP WPA 5 or 13 characters 8 to 63 characters 3. To proceed with provisioning, the user should tap the PROVISION button. If Open Security is selected, the user will be warned and asked to confirm that he wish to connect. After tapping the PROVISION button (and confirming in the case of open security), the application will cause 7

the SmartPhone to request Bluetooth pairing information (the SmartPhone may present a dialog, or vibrate and present a notification that the user must open). This is shown in Figure 3-3(b). 4. To pair with the ATMEL_WIFI provisioning peripheral, the user must enter a PIN of 123456 and tap the OK button. Figure 3-3. Android Application in Wi-Fi Provisioning Mode a) b) The application will then securely transfer the information related to the chosen access point to the ATMEL_WIFI provisioning peripheral. 5. Once provisioned, a short press of the SW0 button on the peripheral will initiate a Wi-Fi connection using the provided provisioning info. The Android app will update the user as this connect progresses, and will display the result of the connect attempt in a dialog (successful or otherwise) as shown in Figure 3-2. 8

Figure 3-4. Provisioning Complete 6. Tapping on the OK button will return the application to BLE scanning mode (Figure 3-2(a)). There is a 2 minute provisioning timer that starts counting from the moment the SW0 button is held on the SAMD21 Xplained Pro to put the device into provisioning mode. When the timer expires, the BLE connection will be closed and the phone will display a dialog accordingly to notify of this event. 9

4 How to Build, Install, and Use the iphone Application 4.1 Building and Installation 1. Download XCode IDE 6.3 on your machine. 2. Download Atmel Provision project from the release directory src\tools\iphone_apps\ble_prov_demo\atmel Provision. 3. Open XCode IDE, then select Open another project. Figure 4-1. XCode IDE 4. Select Atmel Provision folder then click open. 5. From the tool bar choose Product Build For Running, new folder will be created in root folder (Atmel Provision) named as Build. 6. Go to build folder Products Debug-iphone, copy the file named Atmel Provision. 7. Connect your iphone to your machine and open itunes as usual to install this Software. 4.2 Using the ios Provisioning Application The ios provisioning application is very similar to the Android application. On launching, the application will present a basic user interface for detecting compatible BLE devices as shown in Figure 4-2. The application may detect multiple BLE peripherals, including those that are not running the Atmel provisioning service. The user should only tap on devices named ATMEL_WIFI. Tapping on any other device will result in an error dialog appearing and the application will return to the BLE discovery phase. 10

Figure 4-2. IPhone Application Scanning for BLE Peripherals After tapping on an ATMEL_WIFI BLE peripheral, the application will transition to Wi-Fi Provisioning Mode as depicted in Figure 4-3. 11

Figure 4-3. IPhone Application in Wi-Fi Provisioning Mode The user may choose a security type, and enter the SSID and Passphrase manually. Alternatively, the user may wait for discovered access points to be displayed in a list underneath the CLEAR, PROVISION and SCAN buttons. Tapping on a discovered access point entry in the list will automatically populate the security and SSID user interface elements. The user must then enter the Passphrase if a secured network. Tapping the tick-box next to the Passphrase field will reveal the text being typed. There are restrictions to the length of the network key required for provisioning to be enabled, depending on the security method chosen. These are described in Figure 4-4. Figure 4-4. Passphrase Length Restrictions Security Required key length Open 0 WEP WPA 5 or 13 characters 8 to 63 characters To proceed with provisioning, the user should tap the PROVISION button. If Open Security is selected, the user will be warned and asked to confirm that they wish to connect. After tapping the PROVISION button (and confirming in the case of open security), the application will cause the SmartPhone to request Bluetooth pairing information (the SmartPhone may present a dialog, or vibrate and present a notification that the user must open). This is shown in Figure 4-5. 12

Figure 4-5. Bluetooth Pairing To pair with the ATMEL_WIFI provisioning peripheral, the user must enter a PIN of 123456 and tap the PAIR button. The application will then securely transfer the information related to the chosen access point to the ATMEL_WIFI provisioning peripheral. Once provisioned, a short press of the SW0 button on the peripheral will initiate a Wi-Fi connection using the provided provisioning info. The iphone app will display the result of the connect attempt in a dialog (successful or otherwise). 13

Figure 4-6. Provisioning Complete and Connection Successful Tapping on the OK button shown in Figure 4-6 will return the application to BLE scanning mode. The ios application can only provision a device once. To run the demo multiple times it is necessary to delete the bonding/pairing information for the ATWINC3400 board. To do this, navigate to the Settings Bluetooth screen on the ios device, select the ATWINC3400 and tap forget device. 14

5 Reference [R01] Atmel-42640-Getting-Started-Guide-for-ATWINC3400WiFi-using-SAMD21-Xplained-Pro_UserGuide 15

6 Document Revision History Doc Rev. Date Comments 42497C 02/2016 The shortcut on page 15 (References) has been corrected. 42497B 02/2016 1. Changed revision of Atmel Studio to 7.0 in Perquisites. 2. Updated screen shots to reflect 3400 in Figure 2-1 and Figure 2-2. 3. Updated Software Prerequisites. 4. Revised most of the screenshots. 5. Added Figure references. 6. Revised Section Titles. 7. Chapter 1 refers to the ATWINC3400 Getting Started Guide to Flash the AT- WINC3400. 8. Revised WARNING s on page 9 and 14. 9. Revised text in all sections. 10. Added document reference chapter. 42497A 10/2015 Initial document release. 16

Atmel Corporation 1600 Technology Drive, San Jose, CA 95110 USA T: (+1)(408) 441.0311 F: (+1)(408) 436.4200 www.atmel.com 2016 Atmel Corporation. / Rev.:. Atmel, Atmel logo and combinations thereof, Enabling Unlimited Possibilities, and others are registered trademarks or trademarks of Atmel Corporation in U.S. and other countries. ARM, ARM Connected logo, and others are the registered trademarks or trademarks of ARM Ltd. Windows is a registered trademark of Microsoft Corporation in U.S. and or other countries. Other terms and product names may be trademarks of others. DISCLAIMER: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND COND ITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCT S INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON -INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LI MITATION, DAMAGES FOR LOSS AND PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILIT Y TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accurac y or completeness of the contents of this document and reserves the right to make changes to specifications and products descriptions at any time without notice. Atmel does not make any commitment to update the informa tion contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, auto motive applications. Atmel products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life. SAFETY-CRITICAL, MILITARY, AND AUTOMOTIVE APPLICATIONS DISCLAIMER: Atmel products are not designed for and will not be used in connection with any applications where the failure of such products would reasonably be expected to result in significant personal injury or death ( Safety -Critical Applications ) without an Atmel officer's specific written consent. Safety-Critical Applications include, without limitation, life support devices and systems, equipment or systems for the operation o f nuclear facilities and weapons systems. Atmel products are not designed nor intended for use in military or aerospace ATWINC3400 applications or environments BLE Provisioning unless specifically Setup designated and by Atmel Usage as military-grade. [USER Atmel GUIDE] products are not designed nor intended for use in automotive applications unless specifically designated by as automotive -grade. 17