ampledata / kiss

A pure-Python implementation of the KISS Protocol for communicating with serial TNC devices for use with Amateur Radio.
Other
84 stars 35 forks source link
amateur-radio aprs ham-radio python

kiss - Python KISS Module


kiss is a Python Module that implementations the KISS Protocol <https://en.wikipedia.org/wiki/KISS_(TNC)>_ for communicating with KISS-enabled devices (such as Serial or TCP TNCs).

Versions

Installation

Install from pypi using pip: pip install kiss

Usage Examples

Read & print frames from a TNC connected to '/dev/ttyUSB0' at 1200 baud::

import kiss

def p(x): print(x)  # prints whatever is passed in.

k = kiss.SerialKISS('/dev/ttyUSB0', 1200)
k.start()  # inits the TNC, optionally passes KISS config flags.
k.read(callback=p)  # reads frames and passes them to `p`.

See also: examples/ directory.

Testing

Run nosetests from a Makefile target::

make test

See Also

Similar Projects

Build Status

Master:

.. image:: https://travis-ci.org/ampledata/kiss.svg?branch=master :target: https://travis-ci.org/ampledata/kiss

Develop:

.. image:: https://travis-ci.org/ampledata/kiss.svg?branch=develop :target: https://travis-ci.org/ampledata/kiss

Source

Github: https://github.com/ampledata/kiss

Author

Greg Albrecht W2GMD oss@undef.net

http://ampledata.org/

Copyright

Copyright 2017 Greg Albrecht and Contributors

Automatic Packet Reporting System (APRS) <http://www.aprs.org/>_ is Copyright Bob Bruninga WB4APR wb4apr@amsat.org

License

Apache License, Version 2.0. See LICENSE for details.