Satellites data receiver based on GNURadio
This program is written to automate the process of receiving signals from
various orbiting satellites on your SDR. The basis for digital signal
processing is GNU Radio - a free software development toolkit that provides
signal processing blocks to implement software-defined radios and
signal-processing systems. [wikipedia]
For example, this program is perfect for receiving weather
satellites like NOAA (image below).
If you have ideas or knowledge on how to improve this project, feel free to submit issues or pull requests.
The program has only been tested on Linux. Work on Windows is not guaranteed!
- Python>=3.10 (or lower, see below)
- GNURadio>=3.10 (or lower if gr-soapy installed); GUI-modules is not required
- librtlsdr (if you use RTL-SDR)
I recommended to use miniconda. So, first of all, install it.
cd sats-receiver
conda create -n sats-receiver-env
conda activate sats-receiver-env
conda config --env --add channels conda-forge
conda config --env --set channel_priority strict
conda env update -f environment.yml
pip install -r requirements.txt
conda create -n sats-receiver-env python
conda activate sats-receiver-env
conda config --env --add channels conda-forge
conda config --env --set channel_priority strict
conda install gnuradio gnuradio-satellites
pip install sats-receiver
First, activate conda environment:
conda activate sats-receiver-env
python -u -m sats_receiver [-h, --help] [--exec EXECUTOR --exec_config CONFIG] [--log LOG] [--sysu SYSU] config
configConfig file path. See Configure-h, --helpHelp message--exec EXECUTORPython script path containing specified executor namedExecutor--exec_config CONFIGExecutor specific config file path--log LOGLogging level, INFO default--sysu SYSUSystem Usages debug info timeout in seconds, 1 hour default
For example, simple command line to launch program:
python -u -m sats_receiver /path/to/config.json
You can copy the default.json config file from the root of the repository to a
location of your choice
Program home directory is ~/sats_receiver
Logfile saved to program home directory (~/sats_receiver/logs)
Tle files stored to program home directory (~/sats_receiver/tle)
The configuration file is in JSON format.
You can copy the default.json file from the root of the repository to a
location of your choice and edit it.
| Field | Type | Description |
|---|---|---|
| observer | Object | Observer/receiver parameters (see observer) |
| tle | Object | TLE data parameters (see tle) |
| receivers | Array of Object | List of receivers parameters (see receivers) |
| Field | Type | Description |
|---|---|---|
| latitude | Number | Receiver Latitude, degrees |
| longitude | Number | Receiver Longitude, degrees |
| elevation | Number or null | Receiver Elevation, meters. null means that the height will be obtained from the weather information or set to 0 |
| weather | Boolean | Whether to receive weather information from the Internet. The weather will be taken from the service open-meteo.com |
| Field | Type | Description |
|---|---|---|
| url | String | URL to TLE file |
| update_period | Number | TLE Update period, hours. |
| ignore_checksum | Boolean | Optional. Ignore TLE checksum. false by default |
Each receiver object contain:
| Field | Type | Description |
|---|---|---|
| name | String | Name of the Receiver |
| source | String | String value for gr-soapy driver key, e.g. rtlsdr, lime, uhd, remote |
| tune | Number | Receiver tune frequency, Hz |
| samp_rate | Number | Receiver sample rate, Hz |
| output_directory | String | Directory to save received files. You also might specify ~ symbol to specify User home directory |
| sats | Array of Object | List of Satellites configurations (see sats) |
| decim_power | Integer | Optional. Power (for 2) sample rate decimation. 0 by default |
| dc_block | Boolean | Optional. Enable DC correction. false by default |
| enabled | Boolean | Optional. Enable or Disable this Receiver. true by default |
| serial | String | Optional. Serial number of the receiver. Empty by default |
| biast | Boolean | Optional. Bias-T enable/disable. false by default. WARNING! Be careful when enabling this option! Use only if you know what it is and why! |
| gain | Number, Map | Optional. Receiver gain, dB. 0 by default. It could also be a dictionary {name: value} |
| freq_correction | Number | Optional. Receiver frequency correction, PPM. 0.0 by default |
| freq_correction_hz | Integer | Optional. Receiver frequency correction, Hz. 0 by default |
| wf_minmax | Array of Number | Optional. Waterfall min/max 2-array value. [null, null] by default |
Each satellite object contain:
| Field | Type | Description |
|---|---|---|
| name | String | Name or NORAD number of the satellite. Note: name/norad-number must be contained in the above TLE file |
| frequencies | Array of Object | List of frequency configuration (see frequencies) |
| enabled | Boolean | Optional. Enable/Disable this frequency. true by default |
| min_elevation | Number | Optional. Elevation angle above the horizon, degrees. 0 by default. Negative number is equivalent to 0 |
| doppler | Boolean | Optional. Enable/Disable doppler correction. true by default |
| tle_strings | 2-String Array | Optional. Specific TLE strings. null by default |
Each frequency object contain:
| Field | Type | Description |
|---|---|---|
| freq | Number | Basic signal frequency, Hz |
| bandwidth | Number | Received signal bandwidth, Hz |
| demode_out_sr | Number | Optional. Demodulator out samplerate. Equal to bandwidth by default |
| enabled | Boolean | Optional. Enable/Disable this frequency. true by default |
| subname | String | Optional. Subname added to result filename. Empty by default |
| freq_correction | Boolean | Optional. Correction for basic frequency, Hz. 0 by default |
| mode | String | Optional. Modulation option (see modulations). RAW by default |
| decode | String | Optional. Decoder option (see decoders). RAW by default |
| iq_waterfall | Object | Optional. Write also IQ waterfall for bandwidth. none by default. See below for object info |
| iq_dump | Boolean | Optional. Dump and send IQ file for current bandwidth. false by default |
| channels | Array of Number | Required only for FSK, GFSK, GMSK mode. Demodulation baudrates, bps. [1200, 2400, 4800, 9600] by default |
| deviation_factor | Number | Required only for FSK, GFSK, GMSK, QUAD2FSK mode. Deviation frequency factor (baudrate / factor), 5 by default |
| fsk_baudrate | Integer | Optional. Required for QUAD2FSK mode. |
| proto_mode | String | Optional. Required for QUAD2FSK mode. |
| grs_file | String | Optional. Only for SATS decoder. See gr-satellites for details |
| grs_name | String | Optional. Only for SATS decoder. See gr-satellites for details |
| grs_norad | Integer | Optional. Only for SATS decoder. See gr-satellites for details |
| grs_tlm_decode | Boolean | Optional. Only for SATS decoder. Save decoded telemetry. true by default |
| qpsk_baudrate | Number | Required only for (O)QPSK mode. (O)QPSK Baudrate, bps |
| qpsk_excess_bw | Number | Optional. Only for (O)QPSK mode. (O)QPSK Excess bandwidth. 0.35 by default |
| qpsk_ntaps | Integer | Optional. Only for (O)QPSK mode. (O)QPSK number of taps. 33 by default |
| qpsk_costas_bw | Number | Optional. Only for (O)QPSK mode. (O)QPSK Costas bandwidth. 0.005 by default |
| sstv_wsr | Number | Optional. Only for SSTV decoder. SSTV work samplerate. 16000 by default |
| sstv_sync | Number | Optional. Only for SSTV decoder. SSTV syncing. true by default |
| sstv_live_exec | Number | Optional. Only for SSTV decoder. SSTV live executing. false by default |
| ccc_frame_size | Number | Optional. Only for CCSDSCC decoder. Frame size, bytes. 892 by default |
| ccc_pre_deint | Boolean | Optional. Only for CCSDSCC decoder. Pre-Deinterleaving. false by default |
| ccc_diff | Boolean | Optional. Only for CCSDSCC decoder. Differential Decoding. true by default |
| ccc_rs_dualbasis | Boolean | Optional. Only for CCSDSCC decoder. Reed-Solomon Dualbasis. false by default |
| ccc_rs_interleaving | Number | Optional. Only for CCSDSCC decoder. Reed-Solomon Interleaving. 4 by default |
| ccc_derandomize | Boolean | Optional. Only for CCSDSCC decoder. Descrambling. true by default |
| quad_gain | Number | Optional. Only for QUAD, SSTV_QUAD, QUAD2FSK modes. Quadrature demodulation gain. 1.0 by default |
| raw_out_format | String | Optional. Only for RAW decoder. WAV output format. WAV by default |
| raw_out_subformat | String | Optional. Only for RAW decoder. WAV output subformat. FLOAT by default |
| proto_deframer | String | Optional. Only for PROTO decoder. Name of the gr-satellites deframer. See proto for detail. |
| proto_options | String | Optional. Only for PROTO decoder. Deframer options. See proto for detail. |
| ssb_bandwidth | Number | Optional. Only for SSB-family mode. SSB Bandwidth, Hz. 4600 for DSB nd 2800 foa another by default |
| ssb_out_sr | Number | Optional. Only for SSB-family mode. SSB out sample rate, Hz. 8000 by default |
iq_waterfallCreate waterfall. Mapping with options (might be empty):fft_sizeFFT size (int)4096by defaultmodeWaterfall mode:MEAN(default)MAX_HOLDDECIMATION
RAWAMFMWFMWFM_STEREOQUADQUAD2FSKSSTV_QUADQPSKOQPSKFSKGFSKGMSKUSBLSBDSB
RAWSaved to 2-channel float32 WAV file withbandwidthsample rate. Other parameters:raw_out_formatWAV output format:NONEdo no writeWAVdefaultWAV64OGG
raw_out_subformatWAV output subformat:FLOATdefaultDOUBLEPCM_16PCM_24PCM_32PCM_U8VORBIScodec, only forOGGOPUScodec, only forOGG
CSOFTConstellation Soft Decoder - 1-channel binary int8. Suitable for further processing, for example, in SatDump. Only for constellation-mode.CCSDSCCCCSDS Conv Concat Decoder - CADU data. Suitable for further processing, for example, in SatDump. Only for constellation-mode.APTSats-Receiver APT binary file format. See APTSSTVSSTV saved to PNG image with EXIF. Supported modes:- Robot (24, 36, 72)
- Martin (M1, M2, M3, M4)
- PD (50, 90, 120, 160, 180, 240, 290)
- Scottie (S1, S2, S3, S4)
SATSSee gr-satellites for detailsPROTOSatellite deframer based decoder. KISS file on output. See proto for detail. Only for *FSK mode.PROTO_RAWNot implemented yetLRPT
See gr-satellites Documentation
IMPORTANT: For this decoder need to leave the modulation on RAW
This decoder need to specify one of the parameters for recognize satellite option:
- grs_file - Path to your own SatYAML-file
- grs_name - Satellite name (may different from sats name)
- grs_norad - Satellite NORAD ID
List of builtin supported satellites
Additionally supported satellites can be found in the satyaml directory of this repository
IMPORTANT: For this decoder the modulation need to be set on *FSK!
Supported deframers and their options:
AALTO1:syncword_threshold: number of bit errors allowed in syncword (int),4by default
AAUSAT4:syncword_threshold:8by default
AISTECHSAT_2:syncword_threshold:4by default
AO40_FEC:syncword_threshold:8by defaultshort_frames: use short frames (used in SMOG-P) (bool),falseby defaultcrc: use CRC-16 ARC (used in SMOG-P) (bool),falseby default
AO40_UNCODED:syncword_threshold:3by default
ASTROCAST_FX25:syncword_threshold:8by defaultnrzi: use NRZ-I instead of NRZ (bool),trueby default
AX100:mode: mode to use ('RS' or 'ASM') (string) REQUIRED!scrambler: scrambler to use, eitherCCSDSornone(only for ASM mode) (str),CCSDSby defaultsyncword: syncword to use (str),10010011000010110101000111011110by defaultsyncword_threshold:4by default
AX25:g3ruh_scrambler: use G3RUH descrambling (boolean). REQUIRED!
AX5043BINAR1:syncword_threshold:0by default
CCSDS_CONCATENATED:frame_size: frame size (not including parity check bytes) (int)223by defaultprecoding: eithernoneordifferentialfor differential precoding (str)noneby defaultrs_en: If Reed-Solomon should be enabled or not (bool)trueby defaultrs_basis: Reed-Solomon basis, eitherconventionalordual(str)dualby defaultrs_interleaving: Reed-Solomon interleaving depth (int)1by defaultscrambler: scrambler to use, eitherCCSDSornone(str)CCSDSby defaultconvolutional: convolutional code to use (str)CCSDSby default. One of the following:CCSDSNASA-DSNCCSDS uninvertedNASA-DSN uninverted
syncword_threshold:4by default
CCSDS_RS:frame_size: frame size (not including parity check bytes) (int)223by defaultprecoding: eithernoneordifferentialfor differential precoding (str)noneby defaultrs_en: If Reed-Solomon should be enabled or not (bool)trueby defaultrs_basis: Reed-Solomon basis, eitherconventionalordual(str)dualby defaultrs_interleaving: Reed-Solomon interleaving depth (int)1by defaultscrambler: scrambler to use, eitherCCSDSornone(str)CCSDSby defaultsyncword_threshold:4by default
DIY1ENDUROSAT:syncword_threshold:0by default
ESEO:syncword_threshold:0by default
FOSSASAT:syncword_threshold:0by default
GEOSCAN:syncword_threshold:4by default
GRIZU263A:syncword_threshold:8by default
HADES:syncword_threshold:0by default
HSU_SAT1IDEASSATK2SAT:syncword_threshold:0by default
LILACSAT_1:syncword_threshold:4by default
LUCKY7:syncword_threshold:1by default
:MOBITEXnx: use NX mode (bool)falseby default
NGHAM:decode_rs: use Reed-Solomon decoding (bool)falseby defaultsyncword_threshold:4by default
NUSAT:syncword_threshold:0by default
OPS_SATREAKTOR_HELLO_WORLD:syncword_threshold:4by defaultsyncword:reaktor hello worldorlight-1(str)reaktor hello worldby default
SANOSAT:syncword_threshold:0by default
SAT_3CAT_1:syncword_threshold:4by default
SMOGP_RA:frame_size: size of the frame before FEC (int) REQUIRED!variant: variant of the protocol to use (SMOG-P(0),SMOG-1(6) orMRC-100(4)) (str)SMOG-1by defaultsyncword_threshold:-1by default. Usevariantdefaults when <0
SMOGP_SIGNALLING:new_protocol: enable new protocol used in SMOG-1 (bool)falseby defaultsyncword_threshold:8by default
SNET:buggy_crc: use buggy CRC implementation of S-NET (bool)trueby defaultsyncword_threshold:4by default
SPINO:syncword_threshold:0by default
SWIATOWID:syncword_threshold:0by default
TT64:syncword_threshold:1by default
U482C:syncword_threshold:4by default
UA01USP:syncword_threshold:13by default
YUSAT
Map shapes config file map_shapes.json can be found at the root of this repository.
Shapefiles can be downloaded from Natural Earth
| Field | Type | Description |
|---|---|---|
| shapes | Array of Array | Optional. List of shapes data (see shapes) |
| shapes_dir | String | Optional. Only when shapes specified. Path to directory contains shapes file |
| points | Object of Object | Optional. Additional points to draw on map (see points) |
| line_width | Number | Optional. Overlay lines width, pixels. 1 by default |
Each shape contain:
| Offset | Field | Type | Description |
|---|---|---|---|
| 0 | order | Number | Num in order of drawing. The more, the later it will be drawn. |
| 1 | shapefile | String | Filename of shapefile in shapes dir. Can be separates file or ZIP archive |
| 2 | color | String or Array of Integer | Color. Can be string representing (red e.g.), web hex (#abcdef e.g.) or 3-4-Array 0-255 ([0, 127, 255] e.g.) |
Each point object has name.
If name is observer, then lonlat field is filled with lonlat from apt-file.
Each point object contain:
| Field | Type | Description |
|---|---|---|
| color | String or Array of Integer | Color. Can be string representing (red e.g.), web hex (#abcdef e.g.) or 3-4-Array 0-255 ([0, 127, 255] e.g.) |
| type | String | Type of marker view. Can be +, o |
| size | Integer or Array of Integer | If type is + then Array with line width and line length, pixels. If type is o then Integer as radius of circle, pixels |
| lonlat | Array of Number | Optional. Only for non-observer name. 2-Array of point longitude and latitude, degrees |
| order | Number | Optional. Same as in shapes. Default to last |
