Giter Club home page Giter Club logo

bpp's Introduction

What is this?

This is the bpp update protocol suite hackery thingamajig. It's essentially a protocol encapsulating multiple streams, sent over UDP over a WiFi network, so clients can pick it up and decode it without having to connect to the network or transmit anything.

Server programs (and related)

The server

The server consists of a multiplexing server. It sends out packets to the IP specified on the command line, and will listen on TCP port 2017 for clients. The server doesn't generate any packets itself; programs that connect to it will do that and the server will make sure everything is multiplexed, error-corrected and signed correctly.

bppsource

This is a small library for connecting to the server over port 2017. You can write applications that talk to the server using this.

blocksend

This is an application that talks to the server and tries to synchronize a file on the host system to a block device on the client systems. It tries to do this as intelligently as possible, sending only the blocks that have changed where it can.

hksend

Housekeeping server. For now, indicates only when the next catalog is. A catalog is losely defined as any protocol information the clients need to decide if they want to download more information or sleep until the next catalog.

lyric_test

Simple and stupid server that can send around the contents of a text file, line for line, over and over again.

Client programs

esp32-recv contains an example of the protocol. This app can update itself over the broadcast protocol, display lyrics, and use deep_sleep to save power. The actual client code is in components/bpp_recv.

Misc

The keys directory contains keys and a program to generate a new private/public keypair used to sign all packets of communication.

Compiling

Debian prequisites

sudo apt-get install libncurses5-dev flex bison gperf

Get submodules

git submodule init
git submodule update

Compiling libraries

make libraries

Compiling genkey and generating public and private key

make keys

Compiling the server agent and senders

make servers

Compiling and Flashing the ESP32 Client

source set_env.sh
cd esp32-recv
make defconfig
make menuconfig
# under 'Partition Table', select 'Factory app, two OTA definitions'
make flash

bpp's People

Contributors

annejan avatar raboof avatar spritetm avatar

Watchers

 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.