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