Skip to content
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.
/ lora_gateway Public archive

LoRa Gateway which supports bi-directional data transfer with MQTT Broker

License

Notifications You must be signed in to change notification settings

bogdanoniga/lora_gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LoRa Gateway <-> MQTT

About

The scope of this project is to build nice looking Web Application on top of LoRa-Net Gateway (1, 2) & LoRa Gateway Bridge (3) to easily manage and monitor the gateway parameters.

Web Application

Configs (/configs)

Features offered by /configs:

  • Gateway ID - unique identifier of the gateway (EUI64).
  • Bridge server address and port up/down to forward
  • Bridge listening address:port
  • MQTT Broker - set the MQTT Broker address on which the gateway is connecting.
  • MQTT Subscribe/Publish Topics - define the MQTT Topics on which the gateway is listening and publish data.

Control Panel (/control)

Features offered by /configs:

  • LoRa Gateway Bridge
  • Packet Forwarder
  • Gateway Registries values
  • SPI status

Development

Install environment

macOS

brew install nodejs nginx
git clone https://github.com/bogdanoniga/lora_gateway.git
cd ./lora_gateway
npm install
mv ./configs/nginx.conf /usr/local/etc/nginx/nginx.conf

Raspbian Stretch Lite (Raspberry Pi)

  • Setting up your Raspberry Pi: RPi setup

  • Setting up LoRa Gateway: ./setup.sh

  • Start/Stop lora_gateway.service

sudo systemctl start lora_gateway.service
sudo systemctl stop lora_gateway.service
  • Read lora_gateway.service logs
journalctl -u lora_gateway.service -f
  • Set lora_gateway.service to run at startup
sudo systemctl enable lora_gateway.service
Wiring Raspberry <-> iC880A SPI
  • Follow wiring
https://github.com/ttn-zh/ic880a-gateway/wiki
Start dev environment
# macOS
DEBUG=express-locallibrary-tutorial:* npm run devstart

# Raspbian
DEBUG=express-locallibrary-tutorial:* sudo npm run devstart

Technical Stack

Todo

  • Web Authentication Method (Login User/Pass, Identity Plus)
  • Settings page (change user, pass, authentication method)

MIT License

Copyright (c) 2018 Bogdan Oniga

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

LoRa Gateway which supports bi-directional data transfer with MQTT Broker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published