Requirements
Before continuing, there are a couple things you need to know about your device. This information is usually provided by the device vendor.
Log in to the ChirpStack Web Interface
The default credentials are:
Username: admin
Password: admin
Device Profile
Before you can add the device to ChirpStack, you have to create a device-profile, if you haven't done this already. In general, it is a good practice to create separate device-profiles for different types of devices. A device-profile contains the capabilities of your device.
For example, if it uses ABP or OTAA for activation, which LoRaWAN version and Regional Parameters revision is implemented by the device, etc. It can also be configured with a function to decode the payloads sent by the devices using the device-profile.
Creating a Device Profiles
After navigating to the gateway details page of a gateway, click the ‘Device profiles” under the Tenant.
Click on the “Add device profile”
Filled in the blank from the given table under the “General” tab and click Submit once done.
For the Name, enter the desired sensor node name.
And the following shows the other configuration required to add a sensor node:
Region: AU915
Region Configuration: AU915 (channels 0-7 +64)
MAC Version: LoRaWAN 1.0.4
Regional parameters revision: A
ADR algorithm: Default ADR algorithm (LoRa only)
Expected uplink interval (sec): 10
Device-status request frequency (req/day): 8640
Application
Devices are grouped by applications. For example, you could group your temperature sensors under one application and weather stations under another application.
Adding an Application
If you haven't created an application yet to which you want to add the device, click Applications, then click Create. Fill in the required fields and save the application.
Click on the Configuration:
Provide the following information:
Click on the OTAA keys and click Submit once done.
Provide the Application key provided by the device vendor:
For this demo, the application key is 2b7e151628aed2a6abf7158809cf4f3c
Validate
After adding your LoRaWAN device to ChirpStack, validate that your device is able to activate (in case of OTAA) and send data.
When clicking the device in the ChirpStack web interface, open in one window the Device data and in another window the LoRaWAN frames tab.
Then turn on your device or trigger an uplink transmission. In case of an OTAA device, you should first see a JoinRequest followed by a JoinAccept message in the LoRaWAN frames tab.
When the device sends its first data payload, you should also see a Join and Up event in the Device data tab.
Check the Gateway LoRa Frames
After navigating to the gateway details page of a gateway close to the device, click the LoRaWAN frames tab.
For OTAA devices, confirm that when the device tries to OTAA activate, you see a JoinRequest message followed by a JoinAccept message.
If you do not see a JoinRequest and JoinAccept, make sure that the device sends an OTAA request and that your gateway is correctly configured.
If you only see a JoinRequest message, this means that either the OTAA request is ignored or rejected by ChirpStack or that the gateway is rejecting the JoinAccept transmission. Continue with the Device LoRaWAN frames section.