Skip to content

Lora Bidirectional Single Channel Gateway for Raspberry Pi and Dragino GPS-HAT

License

Notifications You must be signed in to change notification settings

LoRa-System/Bidirectional_Single_ch_Pkt_Fwd

 
 

Repository files navigation

Bidirectional Single Channel Gateway for RaspberryPi

Added feature : downstream messages from server. Tested only Dragino GPS HAT (SX1276), NOT tested SX1272.

How to use:
Step1: sudo apt-get install wiringpi
Step2: UPDATE config.h according to your environment.
Step3: make
Step4: sudo ./bidirection

It is adapted for TTN (http://thethingsnetwork.org). This implementation is for personal experiments.

License:The source files in this repository are made available under the EclipsePublic License v1.0, except for the base64 implementation, that has been copied from the Semtech Packet Forwader, the parson implementation,that been copied from http://kgabis.github.com/parson/

This repository is forked from Single Channel Lora WAN Gateway https://github.com/tftelkamp/single_chan_pkt_fwd

====================================================

*** IMPORTANT ***

Please note this repository is deprecated, and the code is not up-to-date to use on The Things Network.

This repository will not be further maintained. Please find another repository if you want to deploy a single channel gateway.

Single Channel LoRaWAN Gateway

This repository contains a proof-of-concept implementation of a single channel LoRaWAN gateway.

It has been tested on the Raspberry Pi platform, using a Semtech SX1272 transceiver (HopeRF RFM92W), and SX1276 (HopeRF RFM95W).

The code is for testing and development purposes only, and is not meant for production usage.

Part of the source has been copied from the Semtech Packet Forwarder (with permission).

Features

  • listen on configurable frequency and spreading factor
  • SF7 to SF12
  • status updates
  • can forward to two servers

Not (yet) supported:

  • PACKET_PUSH_ACK processing
  • SF7BW250 modulation
  • FSK modulation
  • downstream messages (tx)

Dependencies

  • SPI needs to be enabled on the Raspberry Pi (use raspi-config)
  • WiringPi: a GPIO access library written in C for the BCM2835 used in the Raspberry Pi. sudo apt-get install wiringpi see http://wiringpi.com
  • Run packet forwarder as root

Connections

SX1272 - Raspberry

3.3V - 3.3V (header pin #1) GND - GND (pin #6) MISO - MISO (pin #21) MOSI - MOSI (pin #19) SCK - CLK (pin #23) NSS - GPIO6 (pin #22) DIO0 - GPIO7 (pin #7) RST - GPIO0 (pin #11)

Configuration

Defaults:

  • LoRa: SF7 at 868.1 Mhz
  • Server: 54.229.214.112, port 1700 (The Things Network: croft.thethings.girovito.nl)

Edit source node (main.cpp) to change configuration (look for: "Configure these values!").

Please set location, email and description.

License

The source files in this repository are made available under the Eclipse Public License v1.0, except for the base64 implementation, that has been copied from the Semtech Packet Forwader.

About

Lora Bidirectional Single Channel Gateway for Raspberry Pi and Dragino GPS-HAT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.6%
  • Makefile 0.4%