“Wireless Made Easy!" - Develop with the SAM R34 LoRa SiP and WLR089U0 Module with Microchip LoRaWAN stack on Actility join server
THE SOFTWARE ARE PROVIDED "AS IS" AND GIVE A PATH FOR SELF-SUPPORT AND SELF-MAINTENANCE.
This repository contains unsupported example code intended to help accelerate client product development. It is not validated for production nor audited for security best-practices.
Note that while this repository is unsupported, Microchip welcome community contributions, and all pull-requests will be considered for inclusion into the repository.
Interact with peers in the community at LoRa Forum.
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 ATECC608 secure element along with Actility Join server.
Clone/Download the current repo to get the software.
- Material required
- Software
- Hardware setup
- Sample Application Code
- Actility ThingPark Activation
- Running the demo
Purchase samples of the ATECC608A-TNGACT
secure element
and the CryptoAuthentication UDFN Socket Kit
Purchase the SAM R34 Xplained Pro Evaluation Kit
Purchase the WLR089U0 Xplained Pro Evaluation Kit
Purchase a LoRa(r) Gateway from ThingPark Market
- Download and install Microchip Studio 7.0 IDE.
- Open Microchip Studio 7.0 IDE.
- From Tools - > Extensions and updates, install Advanced Software Framework (ASFv3) v3.49.0 release or upper release.
- Restart Microchip Studio
- Download and install a serial terminal program like Tera Term.
https://osdn.net/projects/ttssh2/releases/
Configure the DIP switch of the CryptoAuthenticationUDFN Socket kit for I2C communication with the host microcontroller.
1, 3 and 6 must be placed to ON position
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. (same setup is valid for WLR089U0 Xplained Pro as well)
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.
Same setup is valid for WLR089U0 Xplained Pro as well
- 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
Open the "APPS_ENDDEVICE_DEMO" project with Microchip 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 ThingPark 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
- TKM Info: ATECC608A secure element identifier allowing ThingPark Activation to retrieve secure element AppKey
Activating the device within Actility ThingPark is the next step.
Go here: https://github.com/actility/Microchip-Getting-Started
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 ThingPark Activation service from Actility.
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
Connect to ThingPark Wireless Logger to monitor the activity of your device