Code Monkey home page Code Monkey logo

pocsag-encoder's Introduction

pocsag-encoder

Encode pocsag messages to dump to a file. This project is designed to make it easier to understand how pocsag works, with a heavily-commented implementation.

Takes input as a series of lines, one line per message.

Message format is as follows:

address:message

where address is an integer, and message is contents to be encoded.

Adds a random delay to the output feed of 1 to 10 seconds by default. This is configurable in pocsag.c near the bottom of the file by the MIN\_DELAY and MAX\_DELAY defines.

pocsag reads from stdin and writes signed 16 bit little-endian samples to stdout.

Example Usage

If you haven't copied pocsag to /bin:

echo -e "1:hello\n2:world" | ~/pocsag-encoder/pocsag

If you want to access pocsag on a global level:

cp ~/pocsag-encoder/pocsag /bin

Then run it as:

echo -e "1:hello\n2:world" | pocsag

Compilation

pocsag doesn't rely on any dependencies but the C standard libraries. Use make to compile, or run your own C compiler manually.

pocsag-encoder's People

Contributors

faithanalog avatar unknownloner 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.