LoRa Basics™ Modems: Walk-through
LoRa Cloud™ Services¶
To begin, go to the LoRa Cloud™ portal and register for an account.
LoRa Cloud Device Join Service¶
The LoRa Cloud Device Join service allows you to claim pre-provisioned LoRa Edge™ devices. If you want to move your devices to another join server after they have been claimed, you can extract the AppKey or re-key the end node.
All Semtech modem modules come with default keys registered on the join server. However, Semtech’s LoRa Basics™ for end nodes devices cannot be used with the LoRa Cloud Device Join service. If you are using a modem based on LoRa Basics for end nodes, you can skip this chapter.
Create an Application Owner and Use the Free Allowance¶
To begin, create an application owner. By creating different application owners, you can segregate permissions and parameters for groups of devices. To create an application owner, go to the LoRa Cloud Device Join documentation. Next, take the following steps:
Click NETWORK SERVERS.
Enter a name for the application owner.
Click CREATE A NEW OWNER.
Under Free Allowance click ASSIGN.
In the confirmation dialog box, click OK.
Video walk-through: Creating an Application Owner
The free allowance lets you claim up to 100 devices a year at no charge.
Using LoRa Cloud Device Join¶
There are two ways to use the LoRa Cloud Device Join service, depending on whether or not your LoRaWAN network server is in the list of recognized network servers.
Figure 1: Network servers compatible with LoRa Cloud Device Join
If your network server is listed, it is linked to the LoRa Cloud join server. In this case, all you need to do is claim the device and the keys will be securely exchanged between the network server and the join server.
If your network server is not listed, there is no connection between the LoRa Cloud join server and the network server. You will need to claim the modem and then export the AppKey from the join server to be able to register the device with your network server. In this case, because there is no communication between the network server and the join server, the key exchange is only between the network server and the device.
Figure 2: LoRa Cloud Device Join scenarios
The JoinEUI is used to route join requests to the LoRa Cloud Device Join server.
Over-the-Air Activation with LoRa Cloud Device Join¶
When joining a device to a network using Over-the-Air Activation (OTAA), you need only to claim the device.
By default, all LoRaWAN network servers are allowed to forward join requests. However, if one or more network servers are selected on the Network Server page, all the network servers that are not selected are blacklisted.
Exporting the AppKey¶
Once you have claimed the device follow these steps to export device’s AppKey:
Figure 3: LoRa Cloud Device Join export *AppKey*
Check the devices you want to export.
Click EXPORT DEVICE KEYS to download the CSV file.
The line separator used in the CSV file is
\n (Linux format).
Claiming a Device¶
Claiming a device is the process of proving to the join server that the claimant owns the device. This process relies on a unique code derived from internal data, called a PIN.
To claim a device, you must get the DevEUI, ChipEUI, JoinEUI and PIN from the modem (see your modem page), and then see the the LoRa Cloud Device Join page on the LoRa Cloud portal.
Click CLAIM INDIVIDUAL DEVICE.
In the EUI field, enter the DevEUI.
In the PIN field, enter the PIN.
Click CLAIM DEVICE.
Video walk-through: Claiming a device
The ChipEUI and JoinEUI are only required if the DevEUI or the JoinEUI have been changed.
LoRa Cloud™ Device & Application Services¶
The LoRa Cloud Device & Application Services provide a full set of lifecycle management features for LoRa devices operating on a LoRaWAN network. These features include but are not limited to:
Comprehensive device telemetry
Device and application configuration
Advanced data transport services with robustness against packet loss and transparent data fragmentation (buffer streaming and file upload).
The purpose of these services is to dramatically simplify the process of developing managed endpoint solutions and to make LoRa devices more accessible to application developers.
All LoRa Cloud Device & Application Services frames are sent at the application level. This means that the LoRa Cloud Device & Application Services server does not need to know the device’s security keys because your application server will forward decrypted data.
A token is required for the application server to authenticate calls to the LoRa Cloud Device & Application Services server. Before creating a token, you first need to create an owner. You only need to do this once. After an owner is created, you can start adding tokens:
Video walk-through: Creating a token
Click ADD NEW TOKEN.
Give the token a name.
Select permissions for the owner:
List/Read Device State
Issue Device Requests
To save the token, click ADD NEW TOKEN.
LoRa Cloud Device & Application Services URL¶
The LoRa Cloud Device & Application Services URL depends on the region in which the device will be deployed. The API URL is displayed at the top of the Manage Tokens page on the LoRa Cloud portal:
When data is received from a device, it is automatically registered with the LoRa Cloud Device & Application Services server. This means that the device does not need to be registered beforehand.