Module aprs

Module aprs 

Source
Expand description

TH-D75-specific APRS integration.

Generic packet-radio protocols live in their own workspace crates:

  • [kiss_tnc] — KISS TNC wire framing.
  • [ax25_codec] — AX.25 frame codec.
  • aprs — APRS parser, digipeater, SmartBeaconing, messaging, station list.
  • aprs_is — APRS-IS TCP client.

This module contains only the D75-specific glue: client::AprsClient owning a Radio and KissSession; mcp_bridge for MCP-memory ↔ runtime SmartBeaconingConfig conversion; and D75-specific helpers like ax25_ui_frame, ax25_to_kiss_wire, parse_digipeater_path, and default_digipeater_path.

§TH-D75 KISS TNC specifications (per Operating Tips §2.7.2, User Manual Chapter 15)

  • TX buffer: 4 KB, RX buffer: 4 KB.
  • Speeds: 1200 bps (AFSK) and 9600 bps (GMSK).
  • The built-in TNC does NOT support Command mode or Converse mode; it enters KISS mode directly.
  • The data band frequency defaults to Band A; changeable via Menu No. 506.
  • USB or Bluetooth interface is selectable via Menu No. 983.
  • To exit KISS mode: send KISS command C0,FF,C0 (192,255,192). To re-enter KISS mode from PC: send CAT command TN 2,0 (Band A) or TN 2,1 (Band B).

§References

Modules§

client
Integrated APRS client for the TH-D75.
mcp_bridge
Bridge between MCP (radio memory) and runtime APRS types.

Functions§

ax25_to_kiss_wire
Encode an Ax25Packet as a KISS-framed data frame ready for the wire. Equivalent to wrapping [build_ax25] in [encode_kiss_frame] with port = 0 and command = Data.
ax25_ui_frame
Build a minimal APRS UI frame with the given source, destination, path, and info field. Control = 0x03, PID = 0xF0.
default_digipeater_path
Build the default digipeater path as Ax25Address entries (WIDE1-1,WIDE2-1).
parse_digipeater_path
Parse a digipeater path string like "WIDE1-1,WIDE2-2" into addresses.