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.

1

Select the FirstConfiguration sketch supplied by the MKRWAN library, which can be found under the Examples menu of the Files main menu.

2

Verify that the FirstConfiguration sketch is loaded; then you can compile the sketch.

3

Select upload by clicking on the arrow, or alternatively, use ctrl+U for sketches to:

  • Compile
  • Upload to Device
  • Run
  • 4

    Observe the CPU reset message, which shows that your sketch has been compiled, uploaded, and started to run.

    5

    Click on the Serial Monitor icon to view the messages printed by the device as a result of the run.

    6

    Record the 8-digit hex number, which is the DevEUI of your device.

    In our example, DevEUI is shown as

    34:38:34:35: 34:38:34:35(**)

    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