# jgaeddert/orbcomm_decoder architecture

> Architecture diagram of the GitHub repository jgaeddert/orbcomm_decoder, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jgaeddert/orbcomm_decoder
- Repository: https://github.com/jgaeddert/orbcomm_decoder

## Overview

ORBCOMM receiver captures satellite radio samples and decodes them into typed packets, either from saved recordings or in real time. The main path is satellite-pass selection and SDR capture, followed by signal recovery, bit/packet decoding, and packet interpretation. The README also describes long, decimated recordings and DSP training simulations. Some source is excerpted or unsampled, so unshown implementation links are omitted; documented capabilities are retained where the README establishes them.

Main entry points: [`realtime_receiver.py`](https://github.com/jgaeddert/orbcomm_decoder/blob/master/realtime_receiver.py) (Realtime receiver), [`record_orbcomm.py`](https://github.com/jgaeddert/orbcomm_decoder/blob/master/record_orbcomm.py) (Standard recorder), [`record_orbcomm_long.py`](https://github.com/jgaeddert/orbcomm_decoder/blob/master/record_orbcomm_long.py) (Long decimated recorder), [`file_decoder.py`](https://github.com/jgaeddert/orbcomm_decoder/blob/master/file_decoder.py) (Offline decoder)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_planning["Pass planning"]
  node_config["Station settings<br/>[CONFIG.py]"]
  node_satdb[("Active satellite catalog<br/>[sat_db.py]")]
  node_tleupdate["TLE updater"]
  node_tlefiles[("Satellite TLE files")]
end

subgraph group_capture["Signal capture"]
  node_recorder["Standard recorder<br/>[record_orbcomm.py]"]
  node_longrecorder["Long decimated recorder"]
  node_recordings[("IQ recording files")]
end

subgraph group_decode["Signal decoding"]
  node_filedecoder["Offline decoder<br/>[file_decoder.py]"]
  node_realtime["Realtime receiver"]
  node_rtdecoder["Realtime decoder"]
  node_helpers["DSP and geo helpers<br/>[helpers.py]"]
end

subgraph group_domain["Protocol and DSP"]
  node_packets["Packet definitions<br/>[orbcomm_packet.py]"]
  node_training["DSP simulations"]
  node_trainingutils["Simulation utilities<br/>[utilities.py]"]
end

node_operator(("Receiver operator"))
node_tleprovider["Celestrak TLE source"]
node_rtlsdr["RTL-SDR receiver"]

node_operator -->|"refreshes TLEs"| node_tleupdate
node_tleupdate -->|"downloads from"| node_tleprovider
node_operator -->|"starts capture"| node_recorder
node_operator -->|"starts capture"| node_longrecorder
node_operator -->|"decodes recording"| node_filedecoder
node_operator -->|"starts reception"| node_realtime
node_config -->|"configures station"| node_recorder
node_config -->|"configures station"| node_longrecorder
node_config -->|"configures station"| node_realtime
node_satdb -->|"selects satellites"| node_recorder
node_satdb -->|"selects satellites"| node_longrecorder
node_satdb -->|"selects satellites"| node_realtime
node_tlefiles -->|"supplies TLEs"| node_recorder
node_tlefiles -->|"supplies TLEs"| node_longrecorder
node_tlefiles -->|"supplies TLEs"| node_realtime
node_recorder -->|"captures samples"| node_rtlsdr
node_longrecorder -->|"captures samples"| node_rtlsdr
node_recorder -->|"saves IQ data"| node_recordings
node_longrecorder -->|"saves decimated data"| node_recordings
node_recordings -->|"loads recording"| node_filedecoder
node_realtime -->|"receives samples"| node_rtlsdr
node_realtime -->|"dispatches samples"| node_rtdecoder
node_filedecoder -->|"uses DSP functions"| node_helpers
node_filedecoder -->|"loads satellite data"| node_satdb
node_filedecoder -->|"interprets packet types"| node_packets
node_realtime -->|"uses geo and DSP functions"| node_helpers
node_rtdecoder -->|"uses DSP and checksum functions"| node_helpers
node_rtdecoder -->|"parses packet types"| node_packets
node_training -->|"uses simulation functions"| node_trainingutils

click node_config "https://github.com/jgaeddert/orbcomm_decoder/blob/master/CONFIG.py"
click node_satdb "https://github.com/jgaeddert/orbcomm_decoder/blob/master/sat_db.py"
click node_tleupdate "https://github.com/jgaeddert/orbcomm_decoder/blob/master/update_orbcomm_tle.py"
click node_tlefiles "https://github.com/jgaeddert/orbcomm_decoder/tree/master/tles"
click node_recorder "https://github.com/jgaeddert/orbcomm_decoder/blob/master/record_orbcomm.py"
click node_longrecorder "https://github.com/jgaeddert/orbcomm_decoder/blob/master/record_orbcomm_long.py"
click node_recordings "https://github.com/jgaeddert/orbcomm_decoder/tree/master/data"
click node_filedecoder "https://github.com/jgaeddert/orbcomm_decoder/blob/master/file_decoder.py"
click node_realtime "https://github.com/jgaeddert/orbcomm_decoder/blob/master/realtime_receiver.py"
click node_rtdecoder "https://github.com/jgaeddert/orbcomm_decoder/blob/master/realtime_decoder.py"
click node_helpers "https://github.com/jgaeddert/orbcomm_decoder/blob/master/helpers.py"
click node_packets "https://github.com/jgaeddert/orbcomm_decoder/blob/master/orbcomm_packet.py"
click node_training "https://github.com/jgaeddert/orbcomm_decoder/blob/master/dsp_training/timing_detection_demo.py"
click node_trainingutils "https://github.com/jgaeddert/orbcomm_decoder/blob/master/dsp_training/utilities.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_config,node_satdb,node_tleupdate,node_tlefiles toneBlue
class node_recorder,node_longrecorder,node_recordings toneAmber
class node_filedecoder,node_realtime,node_rtdecoder,node_helpers toneMint
class node_packets,node_training,node_trainingutils toneRose
class node_operator,node_tleprovider,node_rtlsdr toneIndigo
```

## Components

### Pass planning

- [Station settings](https://github.com/jgaeddert/orbcomm_decoder/blob/master/CONFIG.py): `CONFIG.py`
- [Active satellite catalog](https://github.com/jgaeddert/orbcomm_decoder/blob/master/sat_db.py): `sat_db.py`
- [TLE updater](https://github.com/jgaeddert/orbcomm_decoder/blob/master/update_orbcomm_tle.py): `update_orbcomm_tle.py`
- [Satellite TLE files](https://github.com/jgaeddert/orbcomm_decoder/tree/master/tles): `tles`

### Signal capture

- [Standard recorder](https://github.com/jgaeddert/orbcomm_decoder/blob/master/record_orbcomm.py): `record_orbcomm.py`
- [Long decimated recorder](https://github.com/jgaeddert/orbcomm_decoder/blob/master/record_orbcomm_long.py): `record_orbcomm_long.py`
- [IQ recording files](https://github.com/jgaeddert/orbcomm_decoder/tree/master/data): `data`

### Signal decoding

- [Offline decoder](https://github.com/jgaeddert/orbcomm_decoder/blob/master/file_decoder.py): `file_decoder.py`
- [Realtime receiver](https://github.com/jgaeddert/orbcomm_decoder/blob/master/realtime_receiver.py): `realtime_receiver.py`
- [Realtime decoder](https://github.com/jgaeddert/orbcomm_decoder/blob/master/realtime_decoder.py): `realtime_decoder.py`
- [DSP and geo helpers](https://github.com/jgaeddert/orbcomm_decoder/blob/master/helpers.py): `helpers.py`

### Protocol and DSP

- [Packet definitions](https://github.com/jgaeddert/orbcomm_decoder/blob/master/orbcomm_packet.py): `orbcomm_packet.py`
- [DSP simulations](https://github.com/jgaeddert/orbcomm_decoder/blob/master/dsp_training/timing_detection_demo.py): `dsp_training/timing_detection_demo.py`
- [Simulation utilities](https://github.com/jgaeddert/orbcomm_decoder/blob/master/dsp_training/utilities.py): `dsp_training/utilities.py`

### Other components

- **Receiver operator**
- **Celestrak TLE source**
- **RTL-SDR receiver**

## Connections

- Receiver operator → TLE updater: refreshes TLEs (evidence: `README.md`)
- TLE updater → Celestrak TLE source: downloads from (evidence: `README.md`)
- Receiver operator → Standard recorder: starts capture (evidence: `README.md`)
- Receiver operator → Long decimated recorder: starts capture (evidence: `README.md`)
- Receiver operator → Offline decoder: decodes recording (evidence: `README.md`)
- Receiver operator → Realtime receiver: starts reception (evidence: `README.md`)
- Station settings → Standard recorder: configures station (evidence: `record_orbcomm.py`)
- Station settings → Long decimated recorder: configures station (evidence: `record_orbcomm_long.py`)
- Station settings → Realtime receiver: configures station (evidence: `realtime_receiver.py`)
- Active satellite catalog → Standard recorder: selects satellites (evidence: `record_orbcomm.py`)
- Active satellite catalog → Long decimated recorder: selects satellites (evidence: `record_orbcomm_long.py`)
- Active satellite catalog → Realtime receiver: selects satellites (evidence: `realtime_receiver.py`)
- Satellite TLE files → Standard recorder: supplies TLEs (evidence: `record_orbcomm.py`)
- Satellite TLE files → Long decimated recorder: supplies TLEs (evidence: `record_orbcomm_long.py`)
- Satellite TLE files → Realtime receiver: supplies TLEs (evidence: `realtime_receiver.py`)
- Standard recorder → RTL-SDR receiver: captures samples (evidence: `record_orbcomm.py`)
- Long decimated recorder → RTL-SDR receiver: captures samples (evidence: `record_orbcomm_long.py`)
- Standard recorder → IQ recording files: saves IQ data (evidence: `record_orbcomm.py`)
- Long decimated recorder → IQ recording files: saves decimated data (evidence: `record_orbcomm_long.py`)
- IQ recording files → Offline decoder: loads recording (evidence: `README.md`)
- Realtime receiver → RTL-SDR receiver: receives samples (evidence: `realtime_receiver.py`)
- Realtime receiver → Realtime decoder: dispatches samples (evidence: `realtime_receiver.py`)
- Offline decoder → DSP and geo helpers: uses DSP functions (evidence: `file_decoder.py`)
- Offline decoder → Active satellite catalog: loads satellite data (evidence: `file_decoder.py`)
- Offline decoder → Packet definitions: interprets packet types (evidence: `file_decoder.py`)
- Realtime receiver → DSP and geo helpers: uses geo and DSP functions (evidence: `realtime_receiver.py`)
- Realtime decoder → DSP and geo helpers: uses DSP and checksum functions (evidence: `realtime_decoder.py`)
- Realtime decoder → Packet definitions: parses packet types (evidence: `realtime_decoder.py`)
- DSP simulations → Simulation utilities: uses simulation functions (evidence: `dsp_training/timing_detection_demo.py`)
