tncd

Changelog

Home Documentation Blog GitHub Releases

v2.0.0

November 2026 release

First stable release of the Go line. tncd 2.0 is out of beta: the public apt.tncd.dev / rpm.tncd.dev repositories now serve the Go build, and the 1.3.x Python line becomes maintenance-only on the v1 branch. Windows, macOS and FreeBSD remain available only on the Go line.

Field-tested

  • Serial TNCs — Kantronics KPC+ family (KPC-3+ / KPC-9612+), Kenwood TS-2000 and TH-D7A, AEA PK-232: full Winlink CMS round-trips at 1200 baud.
  • Bluetooth — Mobilinkd TNC3 / TNC4 (SPP, including 10 KB attachment stress and reconnect behaviour), BTECH UV-PRO / Radioddity DB-50B (Benshi family).
  • Software — Dire Wolf (KISS over TCP and PTY), QTSoundModem.

New since v1.103-Beta

  • Rig control for Benshi-protocol radios (BTech UV-PRO, Radioddity GA-5WB / DB-50B, Vero NR N76): a hamlib-compatible rigctl server per port ([rigctl.N]) that speaks the radio's Gaia protocol over the same Bluetooth link the KISS bridge already holds — no second connection. Read and set frequency, with guards that refuse to touch named memory channels or a radio left in dual watch, and a managed-session mode (tncd rig session-acquire / session-hold) that puts the radio into a packet-safe state for the duration of a session and restores it afterwards. Optional PTT is off by default — and documented as inert on current UV-PRO firmware, which accepts the command but never keys the transmitter.
  • KISS transport hardening. Every write path is bounded by a deadline, so a wedged radio fails the port and reconnects instead of accepting writes that never reach the air while everything reports healthy. Compact shared-FEND framing from TNCs that use it now decodes correctly. A port can no longer report online over a phantom BLE link. Unpaired Bluetooth radios are reported once, with pairing instructions, instead of being probed forever.
  • Stall and flap fixes. Connection-setup retries are sized from FRACK; an unreachable station can no longer keep the link flapping (a futile-relink budget plus an RX-wedge watchdog); the T1 floor scales with link speed; and TX is paced by estimated air time so the link layer cannot retransmit a frame the TNC has not yet started sending (tx_pacing, on by default, per port).
  • Audit fixes. Zombie disconnects no longer exhaust the connection table; a stale reconnect dial can no longer orphan the live port; one panicking handler can no longer take every listener off the air; and the Windows installer is ACL-hardened and upgrade-capable.
  • Release engineering. CI and every published binary now build on a fully patched Go toolchain (govulncheck-clean), the Nix build works again, and the AUR PKGBUILD is coherent.

Known issues

  • Benshi-family radios (UV-PRO, DB-50B) carry firmware defects: they can progressively swallow handed-over frames under heavy Bluetooth connection churn — reproduced with a raw socket and no tncd involved at all — and their SDP records defeat bluez's browser on some hosts. If KISS goes silent after many reconnects, power-cycle the radio. Documented in the README and docs/followups.md; a firmware report is prepared for the vendor.

v1.103-Beta

September 2026 release
Beta — tncd 2.0 line. The pure-Go rewrite. Newer and not yet as thoroughly tested as the stable 1.3.x Python line, which remains the recommended version for production Linux stations. Windows and macOS are available only on this 2.0 beta line.

Fixed — Xastir now works

  • Xastir received nothing. Xastir asks for raw AX.25 frames with a k command and never enables the text monitor mode that tncd supported. tncd logged “not supported” and ignored it, so Xastir connected successfully and then sat silent with no error on either side. tncd now delivers every frame heard on the air to clients that ask for raw mode. (Reported in #2.)
  • Xastir transmitted nothing. Xastir sends its position beacons with an out-of-range port number; tncd validated the port and dropped the frame, so every transmission disappeared silently. tncd now does what Dire Wolf does — falls back to the first port and carries on — and logs the substitution.

Both were verified against a real Xastir on the air: it decoded live APRS stations through tncd, and its own beacon reached the global APRS-IS network via a receiving iGate.

v1.102-Beta

September 2026 release
Beta — tncd 2.0 line. The pure-Go rewrite. Newer and not yet as thoroughly tested as the stable 1.3.x Python line, which remains the recommended version for production Linux stations. Windows and macOS are available only on this 2.0 beta line.

Fixed — Windows Bluetooth transmit

  • Windows Bluetooth could transmit only the first frame after a link came up. A socket send-buffer option was applied to an already-connected RFCOMM socket, and every send after the first was accepted, reported as fully sent, and silently discarded — the port stayed online, counters advanced, and the log showed traffic going out with nothing on the air. Confirmed with an independent receiver monitoring the frequency: 1 frame transmitted before the fix, 40 after, with everything else held constant. Windows Bluetooth is now at parity with Linux: sustained 10 KB Winlink uploads complete on both, with matching frame counts and timing.
  • Send timeouts now actually apply on Windows. The timeout was being set through a call that fails unconditionally on Windows, so a stalled send could block indefinitely.
  • Partial writes no longer truncate a frame. A short write was reported as success, which could cut a KISS frame mid-stream.
  • Serial port discovery works on FreeBSD. tncd ports previously failed outright there.

New

  • BLE KISS transport (type = ble) on Linux, for radios exposing the BLE KISS service. Unlike classic Bluetooth SPP, each write is acknowledged by the radio itself.
  • Optional channel setting for Bluetooth ports. Leave it unset to discover the channel automatically; setting it skips that lookup, removing one step that can fail while connecting. Applies to Windows and FreeBSD.
  • Clearer Bluetooth connect diagnostics — connect attempts are retried briefly and logged with the precise error and how long each took, so a failure to connect says what actually went wrong.

Known limitation

  • Some radios queue frames inside the radio and release them minutes later, so tncd reports frames as transmitted while nothing reaches the air. This is a property of the radio, not of Bluetooth or of any one operating system — it behaves the same on Linux and Windows. tncd reports it and reconnects; if reconnecting does not restore traffic, power-cycle the radio. A radio that does this is not suitable for sustained transfers such as Winlink sessions. The Benshi/BTech UV-PRO is affected and has been reported to its vendor; the Mobilinkd TNC4 is not.

v1.101-Beta

August 2026 release
Beta — tncd 2.0 line. The pure-Go rewrite. Newer and not yet as thoroughly tested as the stable 1.3.x Python line, which remains the recommended version for production Linux stations. Windows and macOS are available only on this 2.0 beta line.

New Features — Windows, macOS & FreeBSD

  • Windows support — runs as a native Windows service (Service Control Manager, logging to the Event Log) with a self-installer GUI: double-click tncd.exe and a wizard collects your callsign and TNC (serial ports and paired Bluetooth devices are listed for you), installs the service, and starts it. Re-run to start/stop, open the config, open the web monitor, or uninstall.
  • Native Windows Bluetooth — connects to Bluetooth SPP TNCs directly over Winsock RFCOMM (AF_BTH); pair once in Windows Settings, no virtual COM port needed. Validated over the air with a connected-mode AX.25 BBS session.
  • Stable USB serial device references — device = usb:VID:PID survives Windows COM-port renumbering (and Linux /dev/tty* reordering); tncd resolves it to the live port at open time. Serial ports now auto-reconnect on unplug/replug, as Bluetooth already did.
  • macOS and FreeBSD builds — single static binaries (tarballs), run ./tncd -c tncd.ini. No OS service integration yet.
  • Cross-platform release artifacts — Windows .zip (amd64/arm64), macOS and FreeBSD .tar.gz, alongside the existing Linux packages, all on the GitHub Release.

Tested

  • Validated on a Windows 11 VM: service install/start/stop/uninstall, Event Log, device enumeration, serial disconnect/reconnect, and a live over-the-air connected-mode AX.25 session over Bluetooth (KISS to a UV-Pro, connecting to a BPQ node).

v1.100-Beta

July 2026 release
Beta — tncd 2.0 line. The pure-Go rewrite. Newer and not yet as thoroughly tested as the stable 1.3.x Python line, which remains the recommended version for production stations and is what the public apt.tncd.dev / rpm.tncd.dev repositories serve.

New Features

  • Read-only monitoring API — an optional HTTP API for dashboards and web tooling: GET /api/status (version, per-port state and live frame counters), GET /api/connections (active AX.25 connections with troubleshooting detail — sequence numbers, window, T1 retries, RNR, RTT, SREJ), and GET /api/events (a Server-Sent Events stream of rx / tx / connect / disconnect events with base64 payloads). New [api] section, disabled by default. It is unauthenticated, so it binds 127.0.0.1 by default — enable it only on a trusted host.

Tested

  • Both 2.0 frontends — the KISS-over-TCP passthrough and this API — validated over the air using Direwolf as the local TNC (PAT and a BPQ node sharing one radio through tncd, monitored live via the API).

v1.99-Beta

July 2026 release
Beta — tncd 2.0 line. The pure-Go rewrite. Newer and not yet as thoroughly tested as the stable 1.3.x Python line, which remains the recommended version for production stations and is what the public apt.tncd.dev / rpm.tncd.dev repositories serve.

New Features

  • KISS-over-TCP passthrough — a Direwolf-8001-style KISS listener lets KISS-native applications (woad, mobile clients, kissutil) share one TNC alongside AGWPE clients. Connected clients hear every frame received from the air and can transmit, sharing the same channel-timing discipline as the AX.25 engine. New [kisstcp] section, disabled by default (127.0.0.1:8001 when enabled). Client timing / SetHardware KISS commands are forwarded to the TNC; the exit-KISS command is never forwarded, so one client cannot take the shared TNC out of KISS mode.

Internal

  • Generalized frontend subscriber bus in the bridge; the AGWPE monitor is now a consumer of that bus (monitor output unchanged).

v1.98-Beta

July 2026 release
Beta — tncd 2.0 line. This is the pure-Go rewrite of tncd. It is newer and not yet as thoroughly tested as the stable 1.3.x Python line, which remains the recommended version for production stations (and is what the public apt.tncd.dev / rpm.tncd.dev repositories continue to serve). Try the 2.0 beta if you want the single static binary with no Python runtime — but keep 1.3.x if you need proven stability.

Bug Fixes

  • Clearer error when a serial port is busy — opening a port that is already in use (or exclusively locked by another program) now reports a plain "port is busy" message instead of a cryptic device or resource busy errno.
  • KISS-entry probe hardening — when an init_string is configured, tncd now retries the command-mode probe a few times (spaced by init_delay) to give a TNC time to finish rebooting after RESET. On no response it sends the init string anyway and logs an honest warning, instead of silently assuming the TNC was already in KISS mode and skipping initialization.

Internal

  • Defensive AX.25 SSID masking in the address encoder; additional codec test coverage (mod-128 short-frame handling, multi-SREJ XID round-trip) and comment cleanup.

v1.97-Beta

July 2026 release
Beta — first tncd 2.0 release. The initial pure-Go rewrite. See the note on v1.98-Beta above: the 1.3.x Python line remains the stable, recommended version.

New

  • Complete rewrite of tncd in Go — the daemon is now a single, fully static binary (CGO_ENABLED=0) with no python3 runtime dependency.
  • AX.25 v2.2 support: SABME / modulo-128 with automatic fallback to v2.0 modulo-8, XID parameter negotiation, and selective reject (SREJ) recovery — validated over the air against a Direwolf reference in both directions.
  • Native Bluetooth SPP support via BlueZ D-Bus (no rfcomm setup).
  • Packaging moves from fpm/Python to nfpm/Go cross-compilation; prebuilt .deb, .rpm, and static binaries for amd64, arm64, armhf, i386, and riscv64 on each GitHub release.

v1.3.2

July 2026 release

Bug Fixes

  • Shared-channel fix (recommended upgrade): tncd no longer transmits responses to frames overheard from other stations' sessions. Previously, an I-frame poll, DISC, SABM, or SABME addressed to a different station on the same frequency could trigger a DM or UA transmission from tncd — potentially tearing down or hijacking other stations' connections. All four paths now respond only when the frame is addressed to a callsign registered by a connected client application.

Notes

  • The stale-session DM (clearing remote sessions after a tncd restart) still works — it now requires the client application (e.g. PAT) to have reconnected and registered its callsign first.

v1.3.1

July 2026 release

New Features

  • KISS exit on shutdown — tncd now sends the standard KISS exit sequence (C0 FF C0) to serial TNCs on graceful shutdown so they return to command mode. Enabled by default; disable with send_kiss_exit = false.
  • New host_exit_string option (sent after exit_delay, default 1.0s) for TNCs that persist KISS mode in NVRAM — e.g. set host_exit_string = KISS OFF\r for the AEA PK-232MBX.

Tested

  • AEA PK-232 — OTA-verified at 1200 baud; programmatic KISS init via KISS ON\r + RESTART\r. Note: ships from the factory at 1200 7E1 — normalize to 8N1 before enabling KISS.
  • QtTermTCP — OTA-verified
  • AEA DSP-2232 — KISS init verified (same sequence as the PK-232); OTA untested due to station audio limitations

v1.3

July 2026 release

Bug Fixes

  • Stop retransmitting I-frames on receipt of an RR(P=1) poll — respond with RR(F=1) only, letting the remote's N(R) drive retransmission

v1.2

June 2026 release

Bug Fixes

  • Eliminate double retransmit on REJ P=1
  • Promote T1 retransmission logging to INFO for easier field debugging

v1.1

June 2026 release

Bug Fixes

  • Parallel Bluetooth startup — multiple BT TNCs now connect concurrently instead of serially blocking each other
  • Eliminate SIGABRT on shutdown by replacing the blocking D-Bus thread with an async call
  • Handle D-Bus UnknownObject errors during Bluetooth reconnect

v1.0

May 2026 release

First stable release. tncd is no longer beta — the AGWPE bridge, AX.25 v2.0 connected-mode state machine, UI-frame passthrough, multi-port operation, Bluetooth SPP, and security hardening from the 0.11.x series are all considered feature-complete and field-tested.

Tested

  • Kantronics KPC+ family (KPC-3+ / KPC-9612+) — OTA-verified at 1200 baud serial; programmatic KISS init via INTFACE KISS\r\nRESET\r with init_delay = 2.0

v0.11.1-BETA

May 2026 release

Security Hardening

  • Default listen_host changed from 0.0.0.0 to 127.0.0.1 — prevents unauthenticated remote access to the AGWPE server. Set to 0.0.0.0 in config if remote access is needed.
  • Maximum AGWPE payload size limit (64 KB) — disconnects clients sending oversized frames to prevent memory exhaustion
  • Maximum concurrent AX.25 connections limit (64) — prevents unbounded connection state accumulation
  • Outbound queue cap (512 entries per connection) — prevents memory exhaustion from rapid D frame sends

Bug Fixes

  • Fix incoming SABM handling at connection limit: send DM (reject) instead of UA followed by DM, per AX.25 §2.3.4

v0.9-BETA

May 2026 release

New Features

  • Native Bluetooth SPP via BlueZ D-Bus Profile API — connects directly to Bluetooth TNCs without rfcomm or tncd-rfcomm
  • New type = bluetooth connection type in [client] config
  • Auto-reconnect with exponential backoff for Bluetooth connections (configurable via reconnect, reconnect_delay, reconnect_max_delay)
  • RFCOMM channel auto-detection via SDP — no manual channel configuration needed
  • SABM retransmission via T1 timer during connection setup (AX.25 6.3.1)

Bug Fixes

  • Disconnect existing BLE auto-connection before SPP connect to prevent br-connection-page-timeout on dual-mode devices (e.g. Mobilinkd TNC3)
  • Run ConnectProfile in a background thread to avoid blocking asyncio on the expected D-Bus NoReply
  • Fix blocking_start() serial port guard: only access transport.serial for type = serial connections

Packaging

  • Nix: bluetoothSupport option on package, auto-enabled by NixOS module when bluetooth.enable = true
  • Arch PKGBUILD updated with python-dbus and python-gobject dependencies
  • Deprecated tncd-rfcomm helper (still included, will be removed in a future release)

Tested

  • Full Winlink CMS round-trip with 10KB binary attachment over Mobilinkd TNC3 Bluetooth SPP via KU0HN-10 gateway at 1200 baud

v0.8.1-BETA

May 2026 release

Bug Fixes

  • Fix init_string serial probe: pause asyncio reader during KISS mode entry to avoid consuming the TNC's response
  • Fix init_string to use the same serial connection (no re-open) and probe for command mode before sending
  • Fix HUPCL termios flag: prevent DTR reset on serial port close, which was kicking TNCs out of KISS mode

Tested

  • Kenwood TS-2000 built-in TNC: full OTA Winlink session at 1200 baud via init_string
  • Kenwood TH-D7A: OTA PASS with init_string probe

v0.8-BETA

May 2026 release

New Features

  • AX.25 spec compliance: RNR (Receive Not Ready) flow control, FRMR (Frame Reject) handling, N2 retry limit with automatic disconnect
  • Raw KISS serial spy for debugging TNC communication
  • Implicit connect on lost UA: if remote sends I-frames during CONNECTING state, promote to CONNECTED (the UA was lost OTA)

Bug Fixes

  • T1 poll-then-retransmit: first expiry sends RR poll only, second consecutive expiry also retransmits unacked I-frames (avoids flooding slow TNC buffers)

Tested

  • Mobilinkd TNC4: full OTA Winlink session via USB at 1200 baud

v0.7.1-Beta

May 2026 release

Bug Fixes

  • Fix download stall in AX.25 connected mode caused by duplicate RR responses flooding the half-duplex TX buffer
  • _send_rr_guarded() suppresses duplicate RR F=1 with same N(R) within 3s
  • Defer poll response via call_soon to let queued I-frames advance recv_seqno first
  • I-frame coalescing in _drain_outbound merges adjacent small payloads up to 256 bytes
  • Y-frame reports unacked + queued (matches Direwolf, fixes PAT flow control)
  • Guard against backwards N(R) from retransmitted frames
  • Send DM for I-frames to unknown connections (clears stale sessions after restart)

v0.7-Beta

May 2026 release

Bug Fixes

  • Retransmit unacked I-frames when remote polls with RR P=1
  • Fix tncd-rfcomm service PATH to include bluez binaries

Packaging

  • NixOS module imported from nix-ham-packages
  • Switched to nix-ham-packages overlay (removed local nix/overlay.nix)
  • Removed stale OBS packaging (releases now use Cloudflare Pages)

v0.6-Beta

May 2026 release

New Features

  • Dynamic T1/T2 timers calculated from over-the-air baud rate (ota_baudrate config option)
  • Piggybacked N(R) acknowledgement fix for connected mode
  • Direwolf compatibility verified (KISS-over-TCP and PTY modes)

Tested

  • First successful OTA Winlink session at 1200 baud

v0.5-Beta

May 2026 release

Bug Fixes

  • Fix incoming connected mode: SABME rejection (mod-128 not supported), owner assignment from registered callsigns, correct AGWPE notification format

Other

  • Added user-focused documentation website
  • Tabbed install section with NixOS, macOS, and Windows instructions

v0.3-Alpha

May 2026 release

New Features

  • AX.25 connected mode: window flow control, immediate RR, T1 retransmit timer
  • End-to-end test suite with PipeWire audio cross-linking, Direwolf pairs, PAT P2P messaging, and KISS PTY mode

v0.2-Alpha

April 2026 release

Other

  • Cloudflare Pages deployment for package repository and website
  • Cross-compiled .deb and .rpm packages for amd64, i386, armhf, arm64, riscv64

v0.1-Alpha

April 2026 release

Initial Release

  • AGWPE-to-KISS bridge with serial and TCP KISS support
  • AX.25 UI (unproto) frame forwarding
  • Multiple simultaneous AGWPE client support
  • Bluetooth RFCOMM helper (tncd-rfcomm)