Giter Club home page Giter Club logo

atsamr34_ecc608a_tti's Introduction

ATSAMR34_ECC608A_TTI

“Wireless Made Easy!" - Develop with the SAM R34 LoRa SiP and Microchip LoRaWAN stack on TTI join server

Microchip_logo         TTI_logo         Secure Authentication for LoRa with the ATECC608A and The Things Industries (TTI) Join Server

This guide will direct you through the process of getting started with developing a secure LoRa end device product using Microchip Technology's Pre-provisioned ATECC608A secure element along with TTI Join server.
The Things Industries created a product and a service that delivers secure join, secure communication and secure key provisioning.

  1. Material required
  2. Software
  3. Hardware setup
  4. Sample Application Code
  5. TTI Activation
  6. Running the demo

Material required

Purchase samples of the ATECC608A-TNGLORA secure element and the CryptoAuthentication UDFN Socket Kit

Purchase the SAM R34 Xplained Pro Evaluation Kit

Purchase a LoRa(r) Gateway from The Things Industries

Software

Note: ASFv3 is an MCU software library providing a large collection of embedded software for AVR® and SAM flash MCUs and Wireless devices. ASFv3 is configured by the ASF Wizard in Atmel Studio 7.0 (installed as an extension to Studio). ASFv3 is also available as a standalone (.zip) with the same content as Studio extension (https://www.microchip.com/mplab/avr-support/advanced-software-framework).

Important: Until the next Atmel Studio IDE release, you have to manually install the Device Part Pack for developing with SAMR34/R35 on Atmel Studio 7.0 IDE. (all products released in between IDE releases of Atmel Studio should be manually added by user to develop applications).

  • Go to Tools -> Device Pack Manager
  • Check for Updates
  • Search for SAMR34 and click install
  • Repeat the same for SAMR35
  • Restart Atmel Studio 7.0 IDE

Hardware setup

Configure the DIP switch of the CryptoAuthenticationUDFN Socket kit for I2C communication with the host microcontroller. 1, 3 and 7 must be placed to ON position

Open the socket board

Make sure the ATECC608A device is ready to be inserted in the right direction. Make sure the pin 1 of the component (represented by a point) is located at the bottom left.

Place the Secure Element in the UDFN socket

Make sure the Secure Element is properly seated and the pin 1 is located at the bottom left.

Close the clam shell lid.

Attach the CryptoAuthenticationUDFN Socket kit to the SAM R34 Xplained Pro board on the EXT3 header.
Plug the antenna. Attach a USB cable to SAM R34 Xplained Pro board's EDBG micro-B port on the right.
The USB ports powers the board and enables the user to communicate with the kits.

  • Wait for USB driver installation and COM ports mounting.
  • Launch Tera Term program and configure the serial ports mounted with: 115200 bps, 8/N/1

Sample Application Code

Open the "APPS_ENDDEVICE_DEMO" project with Atmel Studio 7 IDE
From the top menu, go to Project -> APPS_ENDDEVICE_DEMO Properties
From Tool settings, select your board as EDBG debugger with SWD interface

Build and download the project by clicking the empty green "Run without debugging" triangle

Open the Tera Term UART console previously configured at 115200 bps, 8-data bits/No parity/1-stop bit
Press the "Reset" button on the SAM R34 Xplained Pro board to see output printed to the console
Observe the following identifiers coming from the ATECC608A Secure Element

In order to pre-commission a device using ATECC608A secure element in TTI Activation, the following idenfiers are required:

  • DevEUI: LoRaWAN device 64-bit unique identifier assigned by the Device manufacturer (or using Secure Element default value)
  • JoinEUI: LoRaWAN JS 64-bit unique identifier of the Join Server on which AppKey of the device is stored

TTI Join Server Activation

Activating the device within TTI is the next step.

Go here: https://www.thethingsindustries.com/technology/security-solution

And follow the steps to get started with claiming your devices.

Running the demo

Go back to the Tera Term UART console

Press "1" to start the Demo Application
Select the band where your device is operating

Then, the end device application transmits a Join Request message. If a Join Accept message was received and validated, the SAM R34 Xplained Pro board will be joined to the Join Server.

Press "2" to send a packet consisting of a temperature sensor reading

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.