|
libSDRForge
|
Experimental NOAA SAME AFSK demodulator for captured mono audio. More...
Classes | |
| class | SameDecodeResult |
| Provide SameDecodeResult behavior. More... | |
Functions | |
| np.ndarray | synthesize_same_audio (bytes payload, int sample_rate=24000, *, float amplitude=0.7, float baud=BAUD) |
| Generate continuous-phase AFSK with 8N1 framing for testing. | |
| np.ndarray | _classify_bits (np.ndarray audio, int sample_rate, float offset, float baud=BAUD) |
| np.ndarray | _symbol_confidences (np.ndarray audio, int sample_rate, float offset, float baud=BAUD) |
| float | _uart_confidence (np.ndarray metrics) |
| bytes | _uart_bytes (np.ndarray bits) |
| tuple[int, int, int, int] | _candidate_score (bytes candidate) |
| SameDecodeResult | decode_same_audio_diagnostic (np.ndarray audio, int sample_rate, *, tuple[float,...] baud_offsets=(0.0,)) |
| Return selected candidate and clock hypothesis for diagnostics. | |
| bytes | decode_same_audio (np.ndarray audio, int sample_rate, *, tuple[float,...] baud_offsets=(0.0,)) |
| Return decoded bytes; candidates are NOT validated emergency alerts. | |
Variables | |
| float | BAUD = 520.8333333333334 |
| float | SPACE_HZ = 1562.5 |
| float | MARK_HZ = 2083.3333333333335 |
Experimental NOAA SAME AFSK demodulator for captured mono audio.
|
protected |
Rank structurally complete headers above partial sync words. This is candidate ranking only, NOT repeated-header alert confirmation. Avoid treating incidental printable bytes as equivalent to a valid header.
|
protected |
Noncoherent matched-tone energy per symbol, no phase assumptions.
|
protected |
Signed normalized mark-minus-space energies, one value per symbol. Positive means mark (1), negative means space (0). Values near zero indicate an ambiguous decision. These are not calibrated probabilities.
|
protected |
Recover 8N1 bytes, resynchronizing at each valid start bit.
|
protected |
Average confidence of UART framing and data decisions. Uses observed magnitudes, not any assumed header payload. Start/stop symbols must agree with UART framing. No bits are corrected here.
| bytes sdrforge.weather.same_afsk.decode_same_audio | ( | np.ndarray | audio, |
| int | sample_rate, | ||
| * | , | ||
| tuple[float, ...] | baud_offsets = (0.0,) ) |
Return decoded bytes; candidates are NOT validated emergency alerts.
| audio | The audio value. |
| sample_rate | The sample rate value. |
| baud_offsets | The baud offsets value. |
| SameDecodeResult sdrforge.weather.same_afsk.decode_same_audio_diagnostic | ( | np.ndarray | audio, |
| int | sample_rate, | ||
| * | , | ||
| tuple[float, ...] | baud_offsets = (0.0,) ) |
Return selected candidate and clock hypothesis for diagnostics.
| audio | The audio value. |
| sample_rate | The sample rate value. |
| baud_offsets | The baud offsets value. |
| np.ndarray sdrforge.weather.same_afsk.synthesize_same_audio | ( | bytes | payload, |
| int | sample_rate = 24000, | ||
| * | , | ||
| float | amplitude = 0.7, | ||
| float | baud = BAUD ) |
Generate continuous-phase AFSK with 8N1 framing for testing.
| payload | The payload value. |
| sample_rate | The sample rate value. |
| amplitude | The amplitude value. |
| baud | The baud value. |
| float sdrforge.weather.same_afsk.BAUD = 520.8333333333334 |
| float sdrforge.weather.same_afsk.MARK_HZ = 2083.3333333333335 |
| float sdrforge.weather.same_afsk.SPACE_HZ = 1562.5 |