Generating AX.25 code from the specification

AX.25 is the link-layer protocol most of amateur packet radio runs on. The v2.2 specification ends with a set of SDL diagrams (figures C4.1 to C4.7) that draw the connected-mode state machine: states like Disconnected, Awaiting Connection, Connected and Timer Recovery, with every event, guard and action on the arrows. Each AX.25 stack I know of is somebody’s reading of those figures, typed into a switch statement. The readings differ in small ways, and when two stacks disagree there is nothing executable to check against, because the reference is a PDF. ...

APRS libraries for C#, Rust, Python, TypeScript, C and Go

APRS is widely used and inconsistently implemented. The spec is several documents written over twenty-odd years (APRS 1.0.1, the 1.1 and 1.2 addenda, now merged into APRS12c), real-world packets often bend the rules, and in places the text contradicts itself. Every decoder is somebody’s own reading of all that, and they disagree with each other. I’ve written six APRS libraries, one each in C#, Rust, Python, TypeScript, C and Go, plus a shared set of test cases. All six give the same answer for every packet I’ve tested them with, with one stated exception: the C library has fixed sizes (512 bytes of information field, 16 path entries), more than anything sent on air, and says so plainly when a packet needs more. They’re all at version 1.3.0. (The Go library was added on 13 November.) ...