Wiki source code of Lorawan-server by Petr Gotthard
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
46.2 | 1 | **~ Table of Contents:** |
![]() |
1.4 | 2 | |
3 | {{toc/}} | ||
4 | |||
![]() |
26.2 | 5 | |
6 | |||
7 | |||
8 | |||
![]() |
1.2 | 9 | = 1. Introduction = |
![]() |
1.1 | 10 | |
![]() |
46.2 | 11 | |
![]() |
1.2 | 12 | This is an Open Source LoRaWAN server from [[https:~~/~~/github.com/gotthardp/lorawan-server>>url:https://github.com/gotthardp/lorawan-server]]. |
![]() |
1.1 | 13 | |
14 | |||
![]() |
46.2 | 15 | |
![]() |
11.1 | 16 | = 2. Support Devices = |
![]() |
1.1 | 17 | |
![]() |
46.2 | 18 | |
![]() |
11.1 | 19 | 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: |
20 | |||
21 | * HP0A | ||
22 | * HP0C | ||
23 | * LPS8v2 | ||
24 | |||
![]() |
46.2 | 25 | |
26 | |||
![]() |
11.1 | 27 | If for some reason, if the above model doesn't have this lorawan server in it. Users can install them manually. |
28 | |||
![]() |
15.4 | 29 | |
![]() |
46.2 | 30 | |
![]() |
11.1 | 31 | == 2.1 Install lorawan server in Armbian System: == |
32 | |||
33 | === Check if you have the Armbian system. === | ||
34 | |||
![]() |
18.1 | 35 | Run command: |
![]() |
20.1 | 36 | |
![]() |
18.1 | 37 | (% class="box infomessage" %) |
38 | ((( | ||
39 | uname -a | ||
40 | cat /etc/debian_version | ||
41 | ))) | ||
![]() |
11.1 | 42 | |
![]() |
18.1 | 43 | [[image:image-20220526172628-2.png]] |
![]() |
11.1 | 44 | |
45 | === Install lorawan server === | ||
46 | |||
![]() |
20.1 | 47 | Run command: |
![]() |
11.1 | 48 | |
![]() |
20.1 | 49 | (% class="box infomessage" %) |
50 | ((( | ||
![]() |
21.1 | 51 | wget https://github.com/gotthardp/lorawan-server/releases/download/v0.6.7/lorawan-server_0.6.7_all.deb |
![]() |
20.1 | 52 | dpkg -i lorawan-server_0.6.7_all.deb |
53 | ))) | ||
54 | |||
![]() |
23.1 | 55 | [[image:image-20220527085338-1.png||height="271" width="1145"]] |
![]() |
20.1 | 56 | |
![]() |
23.1 | 57 | At this point, lorawan-server is installed |
![]() |
20.1 | 58 | |
![]() |
26.2 | 59 | |
![]() |
26.3 | 60 | == 2.2 How do start lorawan server == |
![]() |
23.1 | 61 | |
![]() |
24.1 | 62 | === Setting the automatic startup and start/stop lorawan-server via systemctl === |
![]() |
23.1 | 63 | |
![]() |
21.1 | 64 | If users want the server to start automatically after system reboot, run the command: |
65 | |||
66 | (% class="box infomessage" %) | ||
67 | ((( | ||
68 | systemctl enable lorawan-server | ||
69 | ))) | ||
70 | |||
![]() |
24.1 | 71 | start/stop lorawan-server via systemctl: |
![]() |
21.1 | 72 | |
73 | (% class="box infomessage" %) | ||
74 | ((( | ||
![]() |
23.1 | 75 | systemctl start lorawan-server |
![]() |
21.1 | 76 | systemctl stop lorawan-server |
77 | ))) | ||
78 | |||
![]() |
23.1 | 79 | [[image:image-20220527091541-2.png||height="81" width="896"]] |
![]() |
21.1 | 80 | |
![]() |
23.1 | 81 | 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]] |
82 | |||
![]() |
11.1 | 83 | |
![]() |
25.1 | 84 | = 3. Configure Gateway = |
![]() |
11.1 | 85 | |
![]() |
25.1 | 86 | == 3.1 Register Gateway == |
![]() |
24.1 | 87 | |
![]() |
33.1 | 88 | [[image:image-20220531144134-1.png||height="623" width="965"]] |
![]() |
1.1 | 89 | |
90 | |||
![]() |
33.1 | 91 | Back to the page of Semtech UDP check the secondary server settings and click the button of **Save&Apply** |
![]() |
1.1 | 92 | |
93 | |||
![]() |
15.2 | 94 | |
![]() |
33.1 | 95 | [[image:image-20220531144640-2.png]] |
![]() |
15.2 | 96 | |
97 | |||
![]() |
33.1 | 98 | If the user completes the above steps, you can check your gateway status on the built-in Lorawan server. |
![]() |
11.1 | 99 | |
100 | |||
![]() |
33.1 | 101 | [[image:image-20220531144914-3.png||height="657" width="964"]] |
102 | |||
103 | |||
104 | [[image:image-20220531144957-4.png||height="425" width="970"]] | ||
105 | |||
![]() |
25.1 | 106 | = 4. Configure Sensors = |
![]() |
33.1 | 107 | |
108 | == Step 1. Add the Networks == | ||
109 | |||
![]() |
37.1 | 110 | **The following are examples of adding EU868 frequency nodes** |
![]() |
33.1 | 111 | |
![]() |
37.1 | 112 | 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]] |
113 | |||
![]() |
33.1 | 114 | (% class="box" %) |
115 | ((( | ||
116 | 1.Input the NetID* ~-~-> Random 6 digits | ||
117 | |||
118 | 2.Choose the Region* ~-~-> EU 863-870MHz | ||
119 | |||
![]() |
37.1 | 120 | 3.Gateway Power ~-~-> Default value of EU868 is 16dBm |
![]() |
33.1 | 121 | ))) |
122 | |||
![]() |
37.1 | 123 | [[image:image-20220601184816-1.png||height="608" width="958"]] |
![]() |
34.1 | 124 | |
![]() |
39.2 | 125 | **Configuration of ADR** |
126 | |||
![]() |
37.1 | 127 | (% class="box" %) |
128 | ((( | ||
![]() |
39.2 | 129 | Max EIRP(dBm) * ~-~-> 16 |
![]() |
37.1 | 130 | |
![]() |
39.2 | 131 | Max Power * ~-~-> Max |
![]() |
37.1 | 132 | |
![]() |
39.2 | 133 | Min Power * ~-~-> Max - 14 dB |
![]() |
37.1 | 134 | |
![]() |
39.2 | 135 | Max Date Rate * ~-~-> SF7 125kHz (5470 bit/s) |
![]() |
37.1 | 136 | |
![]() |
39.2 | 137 | Initial RX2 DR * ~-~-> SF12 125kHz (250 bit/s) |
![]() |
37.1 | 138 | |
![]() |
39.2 | 139 | Initial Duty Cycle ~-~-> 1 (100%) |
140 | |||
141 | Initial RX1 DR Offset ~-~-> 0 | ||
142 | |||
143 | Initial RX2 Freq (MHz)* ~-~-> 869.525 | ||
![]() |
37.1 | 144 | ))) |
145 | |||
146 | [[image:image-20220601185451-2.png||height="612" width="953"]] | ||
147 | |||
![]() |
39.2 | 148 | **Configuration of Channels** |
149 | |||
150 | (% class="box" %) | ||
151 | ((( | ||
152 | Initial Channels ~-~-> eg. 0 - 2 | ||
153 | ))) | ||
154 | |||
155 | [[image:image-20220601190313-3.png||height="549" width="958"]] | ||
156 | |||
157 | Finally, click "submit", Complete the Add Networks step. | ||
158 | |||
159 | == Step 2. Create new group == | ||
160 | |||
161 | (% class="box" %) | ||
162 | ((( | ||
163 | Name ~-~-> custom | ||
164 | |||
165 | Network ~-~-> Enter the Networks configured in the preceding steps | ||
166 | ))) | ||
167 | |||
168 | [[image:image-20220601200220-4.png||height="533" width="968"]] | ||
![]() |
41.1 | 169 | |
170 | |||
![]() |
46.1 | 171 | == Step 3. Create new profile == |
172 | |||
173 | [[image:image-20220601203544-5.png||height="494" width="982"]] | ||
174 | |||
175 | |||
176 | == Step 4. Create new device == | ||
177 | |||
178 | [[image:image-20220601203837-6.png||height="577" width="983"]] | ||
179 | |||
180 | |||
181 | == Checking node Status == | ||
182 | |||
183 | [[image:image-20220601204155-7.png||height="484" width="990"]] | ||
184 | |||
185 | [[image:image-20220601204545-8.png||height="404" width="995"]] |