Git Product home page Git Product logo

afsk-ax25's Introduction

afsk-ax25

Support files for a post about decoding FSK from scratch.

http://electronicayciencia.blogspot.com/

Files

  • nrzidec.c: Read a GPIO pin and writes 1's and 0's into stdout following a NRZI line code.

  • nrzienc.c: Read 1's and 0's from stdin and toggles a GPIO pin following NRZI line code. Useful to test nrzidec.

  • decode_ax25.c: Read 1's and 0's from stdin and tries to decode then as a AX25 packet.

  • test_data: Directory with some raw binary AX25 packets to test decode_ax25.

  • test_snd: Directory with some synthetic and real recorded frames.

  • misc: Auxiliary files.

Build

You will need a Raspberry and WiringPi library to compile nrzienc and nrzidec. Copy files to Rapsberry and run

make

Test

To test nrzienc and nrzidec you can connect GPIO 24 and 25 (or wathever GPIO pins you choose) using a resistor like this:

First schematic

Then run ./nrzidec in one terminal and sudo ./nrzienc in another one. nrzienc file requires sudo to ensure proper timing. You should see the same pattern in both of them.

To test only AX25 decoder file, just feed it with one of the sample packages in test_data.

./decode_ax25 < test_data/UI.dat

Usage

In one terminal:

./nrzidec | ./decode_ax25

In another terminal, for testing you can do:

./nrzienc < test_data/UI.dat

The intention is to use a hardware modem, like one based on TCM3105. You can use this simple schematic to begin with:

Second schematic

When you have one, just use ./nrzidec to proccess its output and feed it to decode_ax25.

./nrzidec | ./decode_ax25

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.