Wiki source code of Lorawan-server by Petr Gotthard
Version 38.1 by Kilight Cao on 2022/06/01 19:03
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.4 | 1 | **~ Contents:** |
2 | |||
3 | {{toc/}} | ||
4 | |||
![]() |
26.2 | 5 | |
6 | |||
7 | |||
8 | |||
![]() |
1.2 | 9 | = 1. Introduction = |
![]() |
1.1 | 10 | |
![]() |
1.2 | 11 | This is an Open Source LoRaWAN server from [[https:~~/~~/github.com/gotthardp/lorawan-server>>url:https://github.com/gotthardp/lorawan-server]]. |
![]() |
1.1 | 12 | |
13 | |||
![]() |
11.1 | 14 | = 2. Support Devices = |
![]() |
1.1 | 15 | |
![]() |
11.1 | 16 | 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: |
17 | |||
18 | * HP0A | ||
19 | * HP0C | ||
20 | * LPS8v2 | ||
21 | |||
22 | If for some reason, if the above model doesn't have this lorawan server in it. Users can install them manually. | ||
23 | |||
![]() |
15.4 | 24 | |
![]() |
11.1 | 25 | == 2.1 Install lorawan server in Armbian System: == |
26 | |||
27 | === Check if you have the Armbian system. === | ||
28 | |||
![]() |
18.1 | 29 | Run command: |
![]() |
20.1 | 30 | |
![]() |
18.1 | 31 | (% class="box infomessage" %) |
32 | ((( | ||
33 | uname -a | ||
34 | cat /etc/debian_version | ||
35 | ))) | ||
![]() |
11.1 | 36 | |
![]() |
18.1 | 37 | [[image:image-20220526172628-2.png]] |
![]() |
11.1 | 38 | |
39 | === Install lorawan server === | ||
40 | |||
![]() |
20.1 | 41 | Run command: |
![]() |
11.1 | 42 | |
![]() |
20.1 | 43 | (% class="box infomessage" %) |
44 | ((( | ||
![]() |
21.1 | 45 | wget https://github.com/gotthardp/lorawan-server/releases/download/v0.6.7/lorawan-server_0.6.7_all.deb |
![]() |
20.1 | 46 | dpkg -i lorawan-server_0.6.7_all.deb |
47 | ))) | ||
48 | |||
![]() |
23.1 | 49 | [[image:image-20220527085338-1.png||height="271" width="1145"]] |
![]() |
20.1 | 50 | |
![]() |
23.1 | 51 | At this point, lorawan-server is installed |
![]() |
20.1 | 52 | |
![]() |
26.2 | 53 | |
![]() |
26.3 | 54 | == 2.2 How do start lorawan server == |
![]() |
23.1 | 55 | |
![]() |
24.1 | 56 | === Setting the automatic startup and start/stop lorawan-server via systemctl === |
![]() |
23.1 | 57 | |
![]() |
21.1 | 58 | If users want the server to start automatically after system reboot, run the command: |
59 | |||
60 | (% class="box infomessage" %) | ||
61 | ((( | ||
62 | systemctl enable lorawan-server | ||
63 | ))) | ||
64 | |||
![]() |
24.1 | 65 | start/stop lorawan-server via systemctl: |
![]() |
21.1 | 66 | |
67 | (% class="box infomessage" %) | ||
68 | ((( | ||
![]() |
23.1 | 69 | systemctl start lorawan-server |
![]() |
21.1 | 70 | systemctl stop lorawan-server |
71 | ))) | ||
72 | |||
![]() |
23.1 | 73 | [[image:image-20220527091541-2.png||height="81" width="896"]] |
![]() |
21.1 | 74 | |
![]() |
23.1 | 75 | 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>>http://ip_address:8080]] |
76 | |||
![]() |
11.1 | 77 | |
![]() |
25.1 | 78 | = 3. Configure Gateway = |
![]() |
11.1 | 79 | |
![]() |
25.1 | 80 | == 3.1 Register Gateway == |
![]() |
24.1 | 81 | |
![]() |
33.1 | 82 | [[image:image-20220531144134-1.png||height="623" width="965"]] |
![]() |
1.1 | 83 | |
84 | |||
![]() |
33.1 | 85 | Back to the page of Semtech UDP check the secondary server settings and click the button of **Save&Apply** |
![]() |
1.1 | 86 | |
87 | |||
![]() |
15.2 | 88 | |
![]() |
33.1 | 89 | [[image:image-20220531144640-2.png]] |
![]() |
15.2 | 90 | |
91 | |||
![]() |
33.1 | 92 | If the user completes the above steps, you can check your gateway status on the built-in Lorawan server. |
![]() |
11.1 | 93 | |
94 | |||
![]() |
33.1 | 95 | [[image:image-20220531144914-3.png||height="657" width="964"]] |
96 | |||
97 | |||
98 | [[image:image-20220531144957-4.png||height="425" width="970"]] | ||
99 | |||
![]() |
25.1 | 100 | = 4. Configure Sensors = |
![]() |
33.1 | 101 | |
102 | == Step 1. Add the Networks == | ||
103 | |||
![]() |
37.1 | 104 | **The following are examples of adding EU868 frequency nodes** |
![]() |
33.1 | 105 | |
![]() |
37.1 | 106 | See this link for more frequency configurations [[https:~~/~~/github.com/gotthardp/lorawan-server/blob/master/doc/Regions.md>>https://github.com/gotthardp/lorawan-server/blob/master/doc/Regions.md]] |
107 | |||
![]() |
33.1 | 108 | (% class="box" %) |
109 | ((( | ||
110 | 1.Input the NetID* ~-~-> Random 6 digits | ||
111 | |||
112 | 2.Choose the Region* ~-~-> EU 863-870MHz | ||
113 | |||
![]() |
37.1 | 114 | 3.Gateway Power ~-~-> Default value of EU868 is 16dBm |
![]() |
33.1 | 115 | ))) |
116 | |||
![]() |
37.1 | 117 | [[image:image-20220601184816-1.png||height="608" width="958"]] |
![]() |
34.1 | 118 | |
![]() |
37.1 | 119 | (% class="box" %) |
120 | ((( | ||
121 | 1.Max EIRP(dBm) * ~-~-> 16 | ||
122 | |||
123 | 2.Max Power * ~-~-> Max | ||
124 | |||
125 | 3.Min Power * ~-~-> Max - 14 dB | ||
126 | |||
127 | 4.Max Date Rate * ~-~-> SF7 125kHz (5470 bit/s) | ||
128 | |||
129 | 5.Initial RX2 DR * ~-~-> SF12 125kHz (250 bit/s) | ||
130 | |||
131 | 6.Initial RX2 Freq (MHz)* ~-~-> 869.525 | ||
132 | ))) | ||
133 | |||
134 | [[image:image-20220601185451-2.png||height="612" width="953"]] | ||
135 | |||
![]() |
34.1 | 136 |