LoRa Basics™ Modems: Walk-through

Working With a LoRaWAN® Network Server

The current demo can be linked to the following LoRaWAN® network servers:

Note

LoRa Basics™ Modem at 2.4GHz is only supported by The Things Network V3

The Things Network V2

To begin, register for an account with The Things Network.

Create an Application

To create an application, go to The Things Network’s console page and then follow these steps:

  1. On the Applications page, click Add device.

  2. Enter an Application ID.

  3. Select the handler appropriate to the target region.

  4. Click Add application to save your changes.

Register the Device

LoRa Basics Modem-E (LR1110)

The DevEUI and JoinEUI are provided by the modem. The AppKey is provided by LoRa Cloud Device Join service.

Note

The Things Network V2 does not support Semtech’s join server. To use this server, follow these instructions to get the AppKey from the join server.

Add AppEUI/JoinEUI

The modem’s JoinEUI must be added to the application before you create a new device.

Note

In the LoRaWAN Specification v1.0.x, the JoinEUI was referred to as the AppEUI.

  1. On the Settings tab, select EUIs.

  2. Click AddEUIs.

  3. Click the edit (pencil) icon.

  4. Enter the JoinEUI, which you obtained when setting-up your modem.

  5. Click Add EUI to save your settings.

Add a Device
  1. On the Devices tab, click Register device.

  2. Enter a Device ID.

  3. Enter the DeviceEUI.

  4. For LoRa Basics Modem-E only:

    1. Click the edit (pencil) icon.

    2. Enter the AppKey.

    3. Select the AppEUI from the drop-down list.

  5. Click Register.

MQTT Credentials

MQTT Server Address and Port

Server address is in the form of <Region>.thethings.network, for example in Europe: eu.thethings.network.

The Server ports to use are 1883 (un-encrypted) and 8883 (encrypted).

MQTT Username

The user name is the TTN Application ID.

Access Keys - MQTT Password

The MQTT password required in Node-RED configuration is the application access key found at the bottom of The Things Network’s V2 console application page:

The Things Network V2 Access Key (MQTT password)

Figure 1: The Things Network V2 Access Key (MQTT password)

Note

More help is available in The Things Network’s MQTT documentation.

The Things Network V3

To begin, register for an account with The Things Industries.

Create an Application

To create an application, go to The Things Industries console and then follow these steps:

Video: Creating an Application

  1. On the Applications page, enter an Application ID.

  2. Click Create Application to save your changes.

Register the Device

LoRa Basics™ Modem

LoRa Basics Modem is not pre-provisioned with EUIs; you must provide them.

On the console page:

Video: Providing EUIs for LoRa Basics Modem

  1. Click Add end device.

  2. Set Activation mode to Over-the-Air activation (OTAA).

  3. Set LoRaWAN version to MAC V1.0.3.

  4. Click Start.

  5. Enter the End device ID.

  6. Enter the modem’s JoinEUI (AppEUI).

  7. Enter the modem’s DevEUI.

  8. Click Network Layer Settings.

  9. Select the appropriate Frequency plan for the target region.

  10. Set the Regional parameters version to PHY V1.0.3 REV A.

  11. Click Join Settings.

  12. Enter an AppKey or click on the arrows to generate a random AppKey.

  13. Click Add end device to finalize the process.

Note

The DevEUI and JoinEUI are unique 64-bit identifiers starting with an Organization Unique Identifier (OUI), assigned by the IEEE. More information about OUIs can be found on the IEEE website here.

LoRa Basics Modem-E (LR1110)

The DevEUI and JoinEUI are provided by the modem. The AppKey is not required because the keys are securely exchanged directly between the LoRaWAN network server and Semtech’s LoRa Cloud Device Join service when the device joins a network.

On The Things Network’s Application page:

Video: Providing EUIs for LoRa Basics Modem-E

  1. Click Add end device.

  2. Set Activation mode to Over-the-Air activation (OTAA).

  3. Set LoRaWAN version to MAC V1.0.3.

  4. Check External Join Server.

  5. Click Start.

  6. Enter the End device ID.

  7. Enter the modem’s JoinEUI (AppEUI).

  8. Enter the modem’s DevEUI.

  9. Click Network Layer Settings.

  10. Select the appropriate Frequency plan for the target region.

  11. Set the Regional parameters version to PHY V1.0.3 REV A.

  12. Click Add end device to finalize the process.

Note

There is no need to specify a join server address; the network server will use the JoinEUI to route the join request.

MQTT Credentials

The Things Network V3 network server requires that you generate a unique MQTT password. On the Application page of the console:

Video: Generating an AppKey

  1. Click Integrations and then MQTT.

  2. Select Generate new API Key.

  3. Copy the values from the following fields: Server Address, Username, and Password.

Note

There is a Copy button to the right of each field that you can use to copy these values.

The device is now configured on the network server. The next step is to set up the application server.