This git describes how to deploy a LoRA Packet Forwarder using Docker and UP Squared LoRa Edge Computing
$ git clone https://github.com/AAEONAEU-SW/lora-packet-forwarder-docker.git
$ sudo apt-get install docker docker-compose
The first step is to create the docker image
$ cd lora-packet-forwarder-docker/Docker
$ sudo docker build -t lora-packet-forwarder:latest .
In the "config/global_conf.json" JSON file, change this informatiion to connect your gateway with your LoRaServer:
- "gateway_ID"
- "server_address"
- "serv_port_up"
- "serv_port_down"
- (...)
{
...
"gateway_conf": {
"gateway_ID": "AA555A0000000000",
/* change with default server address/ports, or overwrite in local_conf.json */
"server_address": "127.0.0.1",
"serv_port_up": 1700,
"serv_port_down": 1700,
/* adjust the following parameters for your network */
"keepalive_interval": 10,
"stat_interval": 30,
"push_timeout_ms": 100,
/* forward only valid packets */
"forward_crc_valid": true,
"forward_crc_error": false,
"forward_crc_disabled": false
}
}
Warning : keep the same gateway_ID
in the 'local_conf.json' and 'global_conf.json'
$ cd lora-packet-forwarder-docker
$ sudo docker-compose up -d
Warning : If you work with your own DNS, add the docker DNS option to change the nameserver in the container configuration : dns - YOUR_DNS_IP_ADDR
$ sudo docker build -t lora-packet-forwarder:latest .
$ sudo docker run -it --rm --privileged --device=/dev/spidev1.0 -v /sys:/sys -v $(pwd)/config:/opt/pf-config lora-packet-forwarder:latest bash
Warning : If you work with your own DNS, add the docker DNS option to change the nameserver in the container configuration : --dns=YOUR_DNS_IP_ADDR
- Lora-net/packet_forwarder - License: BSD-3
- Lora-net/lora_gateway - License: BSD-3
- cetic/lora-packet-forwarder-docker - License: BSD-3