Metadata-Version: 2.4
Name: cqta
Version: 1.2
Summary: A Qt application for exchanging text over amateur radio links
License-Expression: MIT
Project-URL: Repository, https://github.com/sntfrc/cqta
Classifier: Environment :: X11 Applications :: Qt
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PySide6>=6.8
Dynamic: license-file

# CQta - Ham radio QSOs over IP radio links

CQta is a protocol and application for having ham radio QSOs over
IP radio links, such as KISS TNCs, Meshtastic tunnels, HSMM Wi-Fi, etc.
It assumes that the network interface already carries an IP
tunnel over the radio link, but also contains conveniences to start
KISS and Meshtastic tunnels directly from the application interface.
CQta itself sends UDP datagrams to an interface's broadcast address
on port **37373**.

It has been created mainly as a reference companion app to showcase
pytap3/kisstun functionality, but I hope the protocol can be useful
on his own anyway, and the app can be fun to use on-air.

The protocol uses a compact, human-readable text format. It
supports directed messages, broadcasts, per-direction numbering for each
`FROM>TO` pair, missing-message requests, and empty keepalive messages. See
[PROTOCOL.md](./PROTOCOL.md) for the wire format and current draft rules.

## Run the application

The cross-platform Qt application uses PySide6. With Python 3.10 or later,
install CQta as a package:

```sh
python -m pip install cqta
cqta
```

To run directly from a source checkout, use `python -m pip install .` and
`python -m cqta`.

Self-contained Linux AppImage, macOS DMG, and Windows executable builds are
available, and they bundle ``kisstun`` and ``meshtastic`` for convenience as
they are the two most typical use cases. Check [BUILD.md](./BUILD.md) for
details on how to invoke them from shell on various platforms if you need.

Choose the IPv4 network interface that is tunneled over the radio link and
enter your callsign. The default callsign is the reserved placeholder
`N0CALL`, which puts the application in listen-only mode: it will receive
traffic but never transmit. Enter your own callsign to enable sending.

The **Radio interface** list also offers **Start kisstun (pytap3) tunnel...**
and **Start Meshtastic tunnel...**. Choose one to configure and start the
bundled tunnel command; its output appears in a console window. If you use
the Dire Wolf integration, make sure that `direwolf` executable is on PATH,
and that the current directory contains the prepared `direwolf.conf` file.

The application listens for IP broadcasts on UDP port 37373.
Outgoing traffic is sent to the selected interface's broadcast address.

The application keeps QSO state in memory for the current run. It does not
persist message history or restore conversations after restart.

## Quick example

```text
W1ABC>N0XYZ 0:Hello, N0XYZ. This is W1ABC.
```

The message is sent as a UDP datagram to the interface broadcast address and
port 37373. The header identifies the sender, intended recipient, and
sender-local message number; the text after the colon is the message content.
Double-click a station to open a QSO tab. All valid packets heard update
the station list, including messages addressed to other stations. Enable
**Monitor** to also show all received
non-empty messages in the broadcast transcript, including messages directed
to others.
The **Beacon** option is enabled by default and sends an empty `QST` packet
immediately when manually checked, then at the selected interval, so other
stations can update Last Heard. Its remaining seconds (or `TX` when a beacon
is sent) appear on the right side of the status bar.
