GithubHelp home page GithubHelp logo

catid / loraftp Goto Github PK

View Code? Open in Web Editor NEW
19.0 5.0 4.0 2.11 MB

File transfer between two Raspberry Pis using the LoRa Pi HAT from Waveshare

License: BSD 3-Clause "New" or "Revised" License

CMake 0.10% C++ 29.77% Starlark 0.13% Makefile 0.36% C 69.61% Batchfile 0.02% Objective-C 0.01%

loraftp's Introduction

LoRa FTP : Broadcast File Transfer

File transfer between Raspberry Pis using the LoRa Pi HAT from Waveshare.

Why Is This Useful?

LoRa is mostly a unidirectional protocol designed for sensors, which are periodically reporting measurements.

It takes about a second to switch from send to receive mode on this hardware, without canceling the last outgoing message. This means that traditional file transfer protocols involving message acknowledgements are not suitable.

Instead, this project uses the http://wirehairfec.com/ library to stream data efficiently. The file sender continously sends. Multiple receivers can join the stream at any time and start receiving the offered file.

Ingredients

2x Waveshare Pi HATs https://www.waveshare.com/wiki/SX1262_915M_LoRa_HAT

2x Raspberry Pi 4B: https://www.raspberrypi.org/

Quick Start

Set up the Pis and connect the hats.

Configure the jumpers as shown here:

alt text

Clone the repo on both devices and build it:

    sudo apt install g++ cmake pigpio
    git clone https://github.com/catid/loraftp
    cd loraftp
    mkdir build
    cd build
    cmake ..
    make -j4

One of the devices receives the file:

    sudo ./loraftp_get

The other device runs the file sender:

    sudo ./loraftp_send document.txt

This will place the file in the same folder as loraftp_get.

Credits

Software by Christopher A. Taylor [email protected]

Please reach out if you need support or would like to collaborate on a project.

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.