Wiki source code of Lorawan-server by Petr Gotthard
Version 25.1 by Kilight Cao on 2022/05/27 11:34
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | **~ Contents:** | ||
2 | |||
3 | {{toc/}} | ||
4 | |||
5 | = 1. Introduction = | ||
6 | |||
7 | This is an Open Source LoRaWAN server from [[https:~~/~~/github.com/gotthardp/lorawan-server>>url:https://github.com/gotthardp/lorawan-server]]. | ||
8 | |||
9 | |||
10 | = 2. Support Devices = | ||
11 | |||
12 | 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: | ||
13 | |||
14 | * HP0A | ||
15 | * HP0C | ||
16 | * LPS8v2 | ||
17 | |||
18 | If for some reason, if the above model doesn't have this lorawan server in it. Users can install them manually. | ||
19 | |||
20 | |||
21 | == 2.1 Install lorawan server in Armbian System: == | ||
22 | |||
23 | === Check if you have the Armbian system. === | ||
24 | |||
25 | Run command: | ||
26 | |||
27 | (% class="box infomessage" %) | ||
28 | ((( | ||
29 | uname -a | ||
30 | cat /etc/debian_version | ||
31 | ))) | ||
32 | |||
33 | [[image:image-20220526172628-2.png]] | ||
34 | |||
35 | === Install lorawan server === | ||
36 | |||
37 | Run command: | ||
38 | |||
39 | (% class="box infomessage" %) | ||
40 | ((( | ||
41 | wget https://github.com/gotthardp/lorawan-server/releases/download/v0.6.7/lorawan-server_0.6.7_all.deb | ||
42 | dpkg -i lorawan-server_0.6.7_all.deb | ||
43 | ))) | ||
44 | |||
45 | [[image:image-20220527085338-1.png||height="271" width="1145"]] | ||
46 | |||
47 | At this point, lorawan-server is installed | ||
48 | |||
49 | == 2.1 How do start lorawan-Server == | ||
50 | |||
51 | === Setting the automatic startup and start/stop lorawan-server via systemctl === | ||
52 | |||
53 | If users want the server to start automatically after system reboot, run the command: | ||
54 | |||
55 | (% class="box infomessage" %) | ||
56 | ((( | ||
57 | systemctl enable lorawan-server | ||
58 | ))) | ||
59 | |||
60 | start/stop lorawan-server via systemctl: | ||
61 | |||
62 | (% class="box infomessage" %) | ||
63 | ((( | ||
64 | systemctl start lorawan-server | ||
65 | systemctl stop lorawan-server | ||
66 | ))) | ||
67 | |||
68 | [[image:image-20220527091541-2.png||height="81" width="896"]] | ||
69 | |||
70 | 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]] | ||
71 | |||
72 | |||
73 | = 3. Configure Gateway = | ||
74 | |||
75 | == 3.1 Register Gateway == | ||
76 | |||
77 | [[image:image-20220526113607-1.png||height="350" width="1449"]] | ||
78 | |||
79 | |||
80 | [[image:image-20220526113654-2.png]] | ||
81 | |||
82 | |||
83 | [[image:image-20220526113743-3.png||height="474" width="1179"]] | ||
84 | |||
85 | |||
86 | [[image:image-20220526113853-4.png||height="484" width="1384"]] | ||
87 | |||
88 | lorawan-server set up | ||
89 | |||
90 | |||
91 | = 4. Configure Sensors = |