SPEEDBIRD

Auto-answer (Phase 1: AX.25 connected mode)#

SPEEDBIRD can answer incoming AX.25 connected-mode calls (300 Bd HF packet, 1200 Bd VHF/UHF packet) on a radio by itself, and hand the session to an application as a byte stream. One auto-answer port per radio.

What Phase 1 does#

After that, everything the caller sends arrives byte-exact on the data port, and everything the application writes to the data port is sent to the caller in I frames. BUFFER <n> reports how many bytes are not yet acknowledged. DISCONNECT ends the session gracefully: queued data is acknowledged first, then DISC is sent. ABORT sends DISC at once. DISCONNECTED reports the end of the session, from either side. * CONNECT <my-call> <target> [VIA <digi> ...] from the application places an outgoing AX.25 call. <my-call> must be one of the port's calls. * Every transmission is AFSK at the port's baud on the radio's current frequency, keyed through the TX arbiter. The arbiter applies TX enable, band and power limits, the timeout and the station log. The source address of every frame is the called call-SSID (97.119). * GET /api/autoanswer shows, for each port: state, peer, channel owner, counters, the last refusal reason, the auto-control verdict for the current frequency, link variables, and recent events.

Configuration (speedbird.yaml)#

autoanswer:
  # HF packet, 300 Bd (1600/1800 Hz). Tune the radio to an automatic-control sub-band, e.g. 14.105 MHz USB.
  - {radio: ic7610, port: 8600, calls: [N0CALL-7], baud: 300}
  # VHF packet 1200 Bd, operator present (no sub-band restriction)
  - {radio: ic9700, port: 8602, calls: [N0CALL-1, N0CALL-2], baud: 1200, attended: true}
key default meaning
radio, port required radio id; host command port (data port = port + 1, or data_port)
calls station call call-SSIDs this port answers for; the base call must be the station call
baud 1200 300 (HF) or 1200 (VHF). Frames heard at the other baud are ignored
attended false operator present: skip the automatic-control sub-band check
require_host true refuse calls (DM) unless a host program is connected and has sent LISTEN ON
host 127.0.0.1 bind address. Exposing it lets anyone on that network key your transmitter
k, paclen, t1, t2, t3, n2 per baud link parameters, see below
max_s, txdelay_ms 20, 300/250 per-burst TX limit; preamble length

The radio has to run the aprs decoder on the packet frequency (start a decode activity for it), as for the KISS ports.

Safety rules#

Every incoming SABM is checked in this order:

  1. KISS client on the same radio (kiss: port with a client connected): stand down. Nothing is transmitted. The packet program owns the radio.
  2. Part 97 automatic control (97.221): unless attended: true, the radio's frequency must lie inside an automatic-control sub-band of its band (channels.SEGMENTS[band]["auto"]. 6 m, 2 m and 70 cm allow it anywhere. 160 m and 60 m have no such sub-band). Outside one, nothing is transmitted. The refusal shows as not answering: automatic control not allowed here (...). The rule is checked again before every burst. If the radio moves out of the sub-band during a session, the session ends locally without transmitting.
  3. Channel ownership (per radio: none, sbp or ax25): while an SBP session is active on the radio, the caller gets DM (busy). While an AX.25 session is active, a second caller gets DM.
  4. No host program listening (with require_host): DM.

Timers (defaults)#

These are derived from the baud rate, a 0.6 s TX overhead (PTT, preamble, arbiter lead/tail) and a 1 s decode latency allowance.

300 Bd 1200 Bd
window k / paclen 2 / 64 4 / 128
T2 (wait after the last heard frame before replying) 2.8 s 1.5 s
T1 (after the end of our burst; +0..50 % random) 9.7 s 7.4 s
T3 keepalive / N2 retries 180 s / 10 180 s / 10

T2 exists because there is no carrier detect yet. The reply waits until a full frame of the peer's burst could still be on the air. A received poll or U command (SABM, DISC, ...) ends a burst, and gets an answer after 0.3 s. All frames due in one turn (acknowledgement, retransmissions, new I frames) go out in one burst.

The AX.25 decoder suppresses identical frames for 3 s, because its parallel slicers and digipeaters both produce copies. For connected-mode (non-UI) frames that window is now 0.5 s, so retransmissions get through.

Limits / not in Phase 1#