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#
- The radio's
aprsdecoder hears every AX.25 frame (300 and 1200 Bd run in parallel). A SABM addressed to one of the port's call-SSIDs is answered with UA. SPEEDBIRD then runs the AX.25 2.0 link itself: I frames, RR/RNR/REJ, windowk, T1 retries (up to N2), T3 keepalive polls, DISC/UA, DM, and FRMR handling (the link is re-established). -
The session appears on a VARA-style host port. This is the same host protocol as the SBP TNC ports (
docs/vara.md): command portport, data portport + 1. The application connects and sendsMYCALL <call>andLISTEN ON. When a station calls, the application receives:PENDING CONNECTED
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:
- KISS client on the same radio (
kiss:port with a client connected): stand down. Nothing is transmitted. The packet program owns the radio. - 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 asnot 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. - Channel ownership (per radio: none,
sbporax25): 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. - 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#
- AX.25 only. SBP already answers by itself (SBP modem with LISTEN). Answering software PACTOR is a later phase. Real SCS PACTOR (hardware modem protocol) is not supported.
- Mod-8 only (SABME/mod-128 is refused with DM, so the caller falls back to SABM). No SREJ, XID, segmentation or own-receiver-busy (RNR from our side).
- One session per radio. No digipeating for others.
- The SBP side does not yet look at the AX.25 owner. An SBP call can still arrive during an AX.25 session; the arbiter serializes the transmissions, but the channel is shared.
- Our own transmissions are not heard back (half duplex). A burst sent while the caller is still transmitting is lost, and T1 recovers.