Skip to main content

AX.25 Frame Encoding and Decoding & Socket Support

Project description

PyHam AX.25

Overview

This package provides a set of modules for working with AX.25 packets in an amateur packet radio environment. The package comprises two functionally distinct components.

  • The ax25 and ax25.netrom modules provide structure definitions together with methods to pack and unpack native AX.25 frames and NET/ROM routing table updates. These modules work on all platforms, and can be used together with the transport mechanism(s) of your choice.

  • The ax25.ports and ax25.socket modules provide facilities for working with the Linux native AX.25 stack. Unlike other Python AX.25 packages, this includes the creation and use of connected-mode sessions, and thus it is not limited to unproto (UI frame) usage.

This package does not include implementations of transport mechanisms such as KISS or AGWPE. However, other PyHam packages do provide this, or you can use this package in conjunction with any other such software of your choosing.

It is expected that developers working with this package will have some level of knowledge of the AX.25 protocol. Those less familiar with the protocol may wish to refer to the AX.25 protocol specification in conjunction with the documentation for this package.

Author: Martin F N Cooper, KD6YAM
License: MIT License

Limitations

  • The ax25 module supports almost all of the AX.25 v2.2 protocol. The sole exception is that only modulo 8 control fields are supported; modulo 128 control fields are not yet supported.

  • The ax25.netrom module currently supports only routing broadcasts. That is, NET/ROM I-frame packets are not yet supported.

Installation

Important: This package requires Python 3.7 or later.

The PyHam AX.25 package is distributed on PyPI, and should be installed with pip as follows:

$ pip install pyham_ax25

Then the modules you require may be imported with the appropriate subset of the following:

import ax25
import ax25.netrom
import ax25.ports
import ax25.socket

The source code is available from the GitHub repository:

$ git clone https://github.com/mfncooper/pyham_ax25

Documentation

Full documentation is available online and includes the following:

User Guide
The User Guide walks through some use cases for the package, starting from the basics and adding capability as it progresses.
Examples
Complete example applications are included, in order that a developer can observe the usage of the package in a real-world scenario.
API Reference
If you are looking for information on a specific function, class, or method, this part of the documentation is for you.

Discussion

If you have questions about how to use this package, the documentation should be your first point of reference. If the User Guide, API Reference, or Examples don't answer your questions, or you'd simply like to share your experiences or generally discuss this package, please join the community on the PyHam AX.25 Discussions forum.

Note that the GitHub Issues tracker should be used only for reporting bugs or filing feature requests, and should not be used for questions or general discussion.

References

AX.25 v2.2 protocol reference:
http://www.tapr.org/pdf/AX25.2.2.pdf
NET/ROM protocol reference:
https://packet-radio.net/wp-content/uploads/2017/04/netrom1.pdf

About PyHam

PyHam is a collection of Python packages targeted at ham radio enthusiasts who are also software developers. The name was born out of a need to find unique names for these packages when the most obvious names were already taken.

PyHam packages aim to provide the kind of functionality that makes it much simpler to build sophisticated ham radio applications without having to start from scratch. In addition to the packages, PyHam aims to provide useful real-world ham radio applications for all hams.

See the PyHam home page for more information, and a list of currently available libraries and applications.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyham_ax25-1.0.2.tar.gz (43.6 kB view details)

Uploaded Source

Built Distribution

pyham_ax25-1.0.2-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file pyham_ax25-1.0.2.tar.gz.

File metadata

  • Download URL: pyham_ax25-1.0.2.tar.gz
  • Upload date:
  • Size: 43.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for pyham_ax25-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d54ebe9b61403759231253d1fd0593ad31623fed17ae2112cbedcb109ccff26e
MD5 38d722607caddcf725ef13110d05db8b
BLAKE2b-256 f56640f4b46525ce21ec4c04d6e29ac027b6d523ca44b1f697fc930a2a9891f8

See more details on using hashes here.

File details

Details for the file pyham_ax25-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyham_ax25-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for pyham_ax25-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b6e7f79c4eff2179221e6d8ca474a1c2c061ce9de4789a7efb905df0280faf8d
MD5 0dfa2019372dd99a7ccaa5d784837bac
BLAKE2b-256 5a1f5a111e52f5975281eaf138718127415a382ce5cfdbc64a72d7ec3a9c2c45

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page