|
libSDRForge
|
Decode CRC-validated Mode S and ADS-B Extended Squitter frames. More...
Classes | |
| class | AdsbMessage |
| Parsed ADS-B frame fields and optional aircraft telemetry. More... | |
Functions | |
| int | modes_crc (bytes message) |
| Calculate the Mode S CRC remainder including transmitted parity. | |
| bytes | append_crc (bytes payload) |
| Append a plain CRC to an eleven-byte DF17 payload. | |
| int | _field (int frame, int total_bits, int start, int length) |
| AdsbMessage|None | decode_message (bytes|str message) |
| Decode a CRC-valid DF17 frame without inferring missing telemetry. | |
Variables | |
| int | _POLY = 0xFFF409 |
| str | _CHARSET = "#ABCDEFGHIJKLMNOPQRSTUVWXYZ#####_###############0123456789######" |
Decode CRC-validated Mode S and ADS-B Extended Squitter frames.
Only DF17 messages with a valid 24-bit parity are accepted. This first milestone decodes identification, barometric altitude and airborne velocity. It does not demodulate IQ, decode CPR coordinates, or track aircraft.
|
protected |
Extract a field using the specification's 1-based, MSB-first positions.
| bytes sdrforge.adsb.protocol.append_crc | ( | bytes | payload | ) |
Append a plain CRC to an eleven-byte DF17 payload.
| payload | Eleven-byte payload. |
| AdsbMessage | None sdrforge.adsb.protocol.decode_message | ( | bytes | str | message | ) |
Decode a CRC-valid DF17 frame without inferring missing telemetry.
| message | Frame bytes or hexadecimal text. |
Strings may contain hex bytes, optionally wrapped in *...; as used by common text-based Mode S feeds.
| int sdrforge.adsb.protocol.modes_crc | ( | bytes | message | ) |
Calculate the Mode S CRC remainder including transmitted parity.
| message | Seven- or fourteen-byte Mode S frame. |
A valid plain-CRC DF17 frame has remainder zero. Other Mode S downlink formats can use ICAO-address parity and are not supported here.
|
protected |
|
protected |