Both sides previous revisionPrevious revisionNext revision | Previous revision |
tools:lorawan-server [2024/08/09 22:53] – darron | tools:lorawan-server [2024/08/10 14:40] (current) – [Resources] darron |
---|
====LoRaWAN Server==== | ====lorawan-server==== |
| |
<wrap right> | <wrap right> |
</wrap> | </wrap> |
| |
This server is compatible with the obsolete [[:boards:lrwan2|P-NUCLEO-LRWAN2]] LoRaWAN | This server is compatible with the obsolete [[:boards:lrwan2|P-NUCLEO-LRWAN2]] LoRaWAN kit |
demo pack. | which utilises the [[:interfaces:risinghf|RisingHF LRWAN GS HF1]] LoRaWAN gateway daughterboard. |
| |
A [[https://community.st.com/t5/stm32-mcus/how-to-create-a-lorawan-server-on-local-pc-1-2/ta-p/49286|guide]] on the ST forum explains how to setup and configure this on Windows, however, it's preferable in my opinion, to setup up the server on Debian Buster 10.13 in a KWM, and then follow the configuration guide in the article. | A [[https://community.st.com/t5/stm32-mcus/how-to-create-a-lorawan-server-on-local-pc-1-2/ta-p/49286|guide]] on the ST forum explains how to setup and configure this on Windows, however, it's preferable in my opinion, to setup up the server on Debian Buster 10.13 in a [[:tools:KVM|KVM]], and then follow the web configuration in the guide. |
| |
NB. Running the server on Debian Bookworm was attempted but failed. No other versions of Debian were tested other than Bookworm and Buster, and Buster was documented to work by the author. | NB. Running the server on Debian Bookworm was attempted but failed. No other versions of Debian were tested other than Bookworm and Buster, and Buster was documented to work by the author. |
| |
First create the [[:tools:kvm|KVM]] using `debian-10.13.0-amd64-DVD-1.iso'. In my case the VM is named vm5 and has the IP address 192.168.0.115. | ===O/S=== |
| |
Follow the [[https://github.com/gotthardp/lorawan-server/blob/master/doc/Installation.md|install guide]] for the server on github and refer to this page. | Create the [[:tools:kvm|KVM]] using `debian-10.13.0-amd64-DVD-1.iso'. |
| |
| In my case the VM is named vm5 and has the IP address 192.168.0.115. |
| |
==Install Erland/OTP 22== | ==Run== |
| |
<code> | Follow the [[https://github.com/gotthardp/lorawan-server/blob/master/doc/Installation.md|guide]] to install and run the server. |
sudo apt-get update | |
sudo apt-get install erlang-base erlang-crypto erlang-syntax-tools erlang-inets erlang-mnesia erlang-runtime-tools erlang-ssl erlang-public-key erlang-asn1 erlang-os-mon erlang-snmp erlang-xmerl | |
</code> | |
| |
<code> | ==Configure== |
$ erl | |
Erlang/OTP 22 [erts-10.6.4] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1] | |
| |
Eshell V10.6.4 (abort with ^G) | GOTO http://admin:admin@192.168.0.115:8080/ and follow the [[https://community.st.com/t5/stm32-mcus/how-to-create-a-lorawan-server-on-local-pc-1-2/ta-p/49286|guide]] to configure the server. |
1> | |
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded | |
(v)ersion (k)ill (D)b-tables (d)istribution | |
a | |
</code> | |
| |
==Run the server== | |
| |
<code> | |
$ ./bin/lorawan-server | |
</code> | |
| |
==Configure the server== | |
| |
Visit http://192.168.0.115:8080/ | |
| |
The login is admin/admin | |
| |
| ===Resources=== |
| |
| [[https://community.st.com/t5/stm32-mcus/how-to-create-a-lorawan-server-on-local-pc-1-2/ta-p/49286|How to create a LoRaWAN server on local PC]] |
| |
| [[https://gotthardp.github.io/lorawan-server/|lorawan-server homepage]] |
| |
| [[https://www.st.com/en/evaluation-tools/p-nucleo-lrwan2.html|P-NUCLEO-LRWAN2]] |