python-aprs / kiss3

A pure-Python implementation of serial KISS and KISS-over-TCP protocols for communicating with TNC devices
Other
2 stars 1 forks source link

kiss3 - Python KISS Module


.. image:: https://github.com/python-aprs/kiss3/actions/workflows/pytest.yml/badge.svg :target: https://github.com/python-aprs/kiss3/actions

kiss3 is a Python Module that implements the KISS Protocol <https://en.wikipedia.org/wiki/KISS_(TNC)>_ for communicating with KISS-enabled devices (such as Serial or TCP TNCs) and provides support for encoding and decoding AX.25 frames.

Versions

Previous versions were released by ampledata as kiss:

Installation

Install from pypi using pip: pip install kiss3

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 tox::

tox

See Also

Similar Projects

Source

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

Authors

Greg Albrecht W2GMD oss@undef.net

http://ampledata.org/

Masen Furer KF7HVM kf7hvm@0x26.net

Copyright

Copyright 2022 Masen Furer and Contributors

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.