Table of Contents:

1.  Introduction

This is an Open Source LoRaWAN server from https://github.com/gotthardp/lorawan-server.

2.  Support Devices

All current LoRaWAN gateway can support the connection to this LoRaWAN server. Some gateway models have this lorawan server built-in by default. They are:

  • HP0A
  • HP0C
  • LPS8v2

If for some reason, if the above model doesn't have this lorawan server in it. Users can install them manually.

2.1  Install lorawan server in Armbian System

2.1.1  Check if you have the Armbian system

Run command:

uname -a

cat /etc/debian_version 

image-20220526172628-2.png

2.1.2  Install lorawan server

Run command:

image-20220527085338-1.png

At this point, lorawan-server is installed

2.2  How do start lorawan server

2.2.1  Setting the automatic startup and start/stop lorawan-server via systemctl

If users want the server to start automatically after system reboot, run the command:

   systemctl enable lorawan-server

start/stop lorawan-server via systemctl:

   systemctl start lorawan-server

    • systemctl stop lorawan-server

image-20220527091541-2.png

By default, the server listens on HTTP port 8080 and expects "admin" as both username and password. Users can access it via a web browser by entering the URL, where is the IP or the hostname of your server.  http://ip_address:8080

3.  Configure Gateway

3.1  Register Gateway

image-20220531144134-1.png

Back to the page of Semtech UDP check the secondary server settings and click the button of Save&Apply.

image-20220531144640-2.png

If the user completes the above steps, you can check your gateway status on the built-in  Lorawan server.

image-20220531144914-3.png

image-20220531144957-4.png

4.  Configure Sensors

4.1  Step 1. Add the Networks

The following are examples of adding EU868 frequency  nodes

See this link for more frequency configurations https://github.com/gotthardp/lorawan-server/blob/master/doc/Regions.md

1.  Input the NetID*                      -->    Random 6 digits

2.  Choose the Region*                 -->   EU 863-870MHz

3.  Gateway Power                        -->   Default value of EU868 is 16dBm

image-20220601184816-1.png

Configuration of ADR

Max EIRP(dBm) *                      -->  16

Max Power *                             --> Max

Min Power *                              --> Max - 14 dB

Max Date Rate *                       --> SF7 125kHz (5470 bit/s)

Initial RX2 DR *                         --> SF12 125kHz (250 bit/s)

Initial Duty Cycle                      --> 1 (100%)

Initial RX1 DR Offset                 --> 0

Initial RX2 Freq (MHz)*             --> 869.525

image-20220601185451-2.png

Configuration of Channels

Initial Channels                      --> eg. 0 - 2

image-20220601190313-3.png

Finally, click "submit", Complete the Add Networks step.

4.2  Step 2. Create new group

Name          --> custom

Network      --> Enter the Networks configured in the preceding steps

image-20220601200220-4.png

4.3  Step 3. Create new profile

image-20220601203544-5.png

4.4  Step 4. Create new device

image-20220601203837-6.png

4.5  Checking node Status

image-20220601204155-7.png

image-20220601204545-8.png

 

Tags:
    
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0