Hardware-free ADS-B receiver diagnostics.
More...
|
| 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.
|
Hardware-free ADS-B receiver diagnostics.
Usage: python -m sdrforge.adsb.receiver_cli –source synthetic
◆ main()
| int sdrforge.adsb.receiver_cli.main |
( |
Sequence[str] | None | argv = None | ) |
|
Handle main.
- Parameters
-
- 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
-
| path | The path value. |
| sample_rate | The sample rate value. |
| chunk_samples | The chunk samples value. |
| verbose | The verbose value. |
| emit | The 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
-
| cycles | The cycles value. |
| interval | The interval value. |
| verbose | The verbose value. |
| emit | The emit value. |
| sleep | The sleep value. |
- Returns
- Receiver statistics for the synthetic run.
◆ SYNTHETIC_FRAMES
| tuple sdrforge.adsb.receiver_cli.SYNTHETIC_FRAMES |
Initial value: 1= (
2 "8D40621D58C382D690C8AC2863A7",
3 "8D40621D58C386435CC412692AD6",
4 "8D4840D6202CC371C32CE0576098",
5 "8D485020994409940838175B284F",
6)