Introduction to TPC For Arduino Makers

Implementation Steps

Step 1 - Prepare Development Environment

In this step, you will:

– Download the zip file of the IDE from the Arduino website
– Install the IDE on your computer

You are going to use the Arduino IDE to compile and upload your sketch to your Arduino MKR WAN 1310 device. For this, you have to install the Arduino IDE(*) on your computer.

As a result of this step, the Arduino IDE 2.0 is prepared for developing and uploading your sketch to Arduino-supported devices.

* Please ensure that your device (Arduino MKR WAN 1310) is not connected at this step.

Step 2 - Setup Development Environment for the Device

In this step, you will:

– Connect your device (Arduino MKR WAN 1310) to your computer.
– Allow the Arduino IDE to install the necessary files.

In order to enable your IDE to support ARDUINO MKR WAN 1310, the necessary files need to be installed on your Arduino IDE environment.

As a result of this step, the Arduino IDE is configured to use the Arduino MKR WAN 1310 device.

 

Step 3 - Test the Development Environment

In this step, you will:

– Use the IDE to upload the blink sketch to your device.
– Observe that the LED on the device is blinking.

In order to ensure that your IDE and hardware setup are correct, you will use the example blink sketch supplied by the Arduino IDE.

As a result of this step, it is ensured that the IDE is setup properly and working with your device, which is connected via the USB port of your computer.

Step 4 - Install LoRaWAN® Library

In this step, you will:

– Install the MKRWAN(*) library in your Arduino IDE.

In order to enable your device to use LoRaWAN® technology, you have to install a library in your IDE.

As a result of this step, the library is installed, which is necessary to use LoRaWAN® technology.

For more information, please visit the following sites:

https://www.arduino.cc/reference/en/libraries/mkrwan/

https://github.com/arduino-libraries/MKRWAN_v2

* You are going to install V2 of this library.
** Please notice that these libraries are application libraries. Thus, avoid mixing them with device libraries to support different Arduino-supported devices.

Step 5 - LoRaWAN® Module Firmware Upgrade

In this step, you will:

– Use the example sketch supplied by the MKRWAN library in your IDE.

In order to be able to use the LoRaWAN® module (Murata CMWX1ZZABZ) on your device, you have to update the firmware of the LoRaWAN® module using the Arduino IDE.

As a result of this step, the LoRaWAN® module (Murata CMWX1ZZABZ) of your device was updated and you can now use LoRaWAN®-related sketches on your device.

Step 6 - Get DevEUI of Device

In this step, you will:

– Upload the First Configuration sketch which retrieves the DevEUI to your device using the Arduino IDE.
– Observe the DevEUI of your device on the serial monitor of your IDE.

 

To register the device on ThingPark Community and use the LoRaWAN® network server, it is important to identify its DevEUI. To achieve this, we will use another example(*) sketch supplied by the MKRWAN library.

The DevEUI is the globally unique identifier of a LoRaWAN® device. Because it is globally unique, you cannot just pick any DeVEUI: DevEUIs are allocated by device manufacturers (here Arduino) from identifiers blocks that they have reserved from IEEE.

As a result of this step, the DevEUI of your device is obtained. This information is necessary to register it with TPC.

*For more information on the sketch you are going to use, please visit the following URL:

https://docs.arduino.cc/tutorials/mkr-wan-1310/mkr-wan-library-examples#mkr-wan-first-configuration

** Please notice that this DevEUI is shown as an example, don’t use it for your device. DevEUIs must be globally unique