Coder Social home page Coder Social logo

lorawan-gateway's Introduction

Single Channel LoRaWAN Gateway

  • This is a work in progress -- don't expect it to work

This is a single channel LoRaWAN gateway for use with Semtech SX1276 (HopeRF RFM95W) transcievers connected over USB via WCH CH341A (and maybe FTDI 2232H). This is written in C and is for use on Linux (embedded or desktop) as a low-cost LoRaWAN gateway.

It outputs its data in The Things Network's Gateway Connector protocol (protocol buffer encoded over MQTT).

It was originally forked from hallard/single_chan_pkt_fwd forked from jlesech/single_chan_pkt_fwd forked from tftelkamp/single_chan_pkt_fwd.

Features

  • Configurable frequency and spreading factor (SF7-SF12)
  • Can forward data to any number of servers (DNS resolved)
  • Edit config.h to change various options

Dependencies

protobuf-c

You also need gschorcht's spi-ch341-usb kernel module installed.

TTN's forked version of paho.mqtt.embedded-c is included as a submodule

Building

git clone --recurse-submodules -j8 --depth 1 https://github.com/sealj553/lorawan-gateway.git
cd lorawan-gateway

#build the paho library
cd paho.mqtt.embedded-c
make
sudo make install #or directly link with .so files
cd ../

#compile the proto files
make protoc

#finally build the project
make

#must be run as root to interface with hardware
sudo ./lorawan-gateway

License

base64.c and base64.h are licensed under the Revised BSD License

connector.c/h, network.h, and session.h are licensed under the MIT License

All other files licensed under the Eclipse Public License v1.0

lorawan-gateway's People

Contributors

sealj553 avatar hallard avatar jlesech avatar tftelkamp avatar mvdswaluw avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.