libSDRForge
Loading...
Searching...
No Matches
sdrforge.adsb.receiver_cli Namespace Reference

Hardware-free ADS-B receiver diagnostics. More...

Functions

ReceiverStatistics run_synthetic (*, int cycles=1, float interval=0.0, bool verbose=False, Callable[[str], object] emit=print, Callable[[float], object] sleep=time.sleep)
 Run known CRC-valid frames through the real decoder and tracker.
ReceiverStatistics run_iq_replay (*, str|Path path, float sample_rate=2e6, int chunk_samples=16384, bool verbose=False, Callable[[str], object] emit=print)
 Replay raw interleaved unsigned 8-bit RTL-SDR I/Q samples.
int main (Sequence[str]|None argv=None)
 Handle main.

Variables

tuple SYNTHETIC_FRAMES

Detailed Description

Hardware-free ADS-B receiver diagnostics.

Usage: python -m sdrforge.adsb.receiver_cli –source synthetic

Function Documentation

◆ main()

int sdrforge.adsb.receiver_cli.main ( Sequence[str] | None argv = None)

Handle main.

Parameters
argvThe argv value.
Returns
Process exit status.

◆ run_iq_replay()

ReceiverStatistics sdrforge.adsb.receiver_cli.run_iq_replay ( * ,
str | Path path,
float sample_rate = 2e6,
int chunk_samples = 16384,
bool verbose = False,
Callable[[str], object] emit = print )

Replay raw interleaved unsigned 8-bit RTL-SDR I/Q samples.

Each pair of bytes is I,Q centered at 127.5. The final odd byte, if present, is discarded; no SDR hardware or background service is used.

Parameters
pathThe path value.
sample_rateThe sample rate value.
chunk_samplesThe chunk samples value.
verboseThe verbose value.
emitThe emit value.
Returns
Receiver statistics for the replay.

◆ run_synthetic()

ReceiverStatistics sdrforge.adsb.receiver_cli.run_synthetic ( * ,
int cycles = 1,
float interval = 0.0,
bool verbose = False,
Callable[[str], object] emit = print,
Callable[[float], object] sleep = time.sleep )

Run known CRC-valid frames through the real decoder and tracker.

Parameters
cyclesThe cycles value.
intervalThe interval value.
verboseThe verbose value.
emitThe emit value.
sleepThe sleep value.
Returns
Receiver statistics for the synthetic run.

Variable Documentation

◆ SYNTHETIC_FRAMES

tuple sdrforge.adsb.receiver_cli.SYNTHETIC_FRAMES
Initial value:
1= (
2 "8D40621D58C382D690C8AC2863A7",
3 "8D40621D58C386435CC412692AD6",
4 "8D4840D6202CC371C32CE0576098",
5 "8D485020994409940838175B284F",
6)