|
libSDRForge
|
Process 240 kSPS FM multiplex (or channelized IQ) into RDS groups. More...
Public Member Functions | |
| None | __init__ (self, *, int|None pair_phase=None, int loss_timeout_bits=2080, int ps_repetitions=2, bool persistent_sync=False, bool experimental_soft_pairs=False, float extractor_cutoff_hz=3_000.0) |
| Initialize the instance. | |
| None | reset (self, *, bool preserve_metadata=False) |
| Reset the component. | |
| RdsReceiverStatus | status (self) |
| Return the status. | |
| list[RdsGroup] | process_iq (self, np.ndarray iq) |
| Accept complex FM channel IQ sampled at 240 kSPS. | |
| list[RdsGroup] | process_multiplex (self, np.ndarray multiplex) |
| Accept real FM multiplex sampled at 240 kSPS. | |
| tuple[RdsGroup,...] | experimental_soft_last_groups (self) |
| Speculative groups from the last chunk, not trusted metadata. | |
| tuple[ExperimentalRadioText,...] | experimental_radio_text (self) |
| Per-phase provisional previews; never trusted station metadata. | |
| tuple[ConfirmedRdsFragment,...] | experimental_confirmed_fragments (self) |
| Newly corroborated experimental fragments, never trusted metadata. | |
| list[RdsGroup] | process_half_bits (self, np.ndarray halves) |
| Feed recovered half-bit symbols, including for hardware-free tests. | |
Protected Member Functions | |
| tuple[RdsPersistentSynchronizer, RdsPersistentSynchronizer] | _persistent_candidates (self) |
| tuple[dict[str, Any], dict[str, Any]]|None | _framing_diagnostics (self) |
Protected Attributes | |
| _persistent_sync_enabled = bool(persistent_sync) | |
| _pair_phase = pair_phase | |
| _experimental_soft_pairs = bool(experimental_soft_pairs) | |
| _loss_timeout_bits = loss_timeout_bits | |
| _fm = FmMultiplexDiscriminator() | |
| _extractor = RdsSubcarrierExtractor(cutoff_hz=extractor_cutoff_hz) | |
| _carrier = RdsCarrierRecovery() | |
| _timing = RdsSymbolTimingRecovery(symbol_rate_hz=2375.0) | |
| list | _biphases = [RdsBiphaseDecoder(pair_phase=i) for i in (0, 1)] |
| list[ | _block_candidates |
| tuple | _soft_biphases |
| tuple | _soft_blocks |
| tuple | _erasure_blocks |
| list | _erasure_counts = [0, 0] |
| list | _soft_last_groups = [] |
| list | _soft_group_counts = [0, 0] |
| tuple | _soft_confirmers |
| list | _soft_confirmed = [] |
| list | _biphase = self._biphases[pair_phase or 0] |
| list[ | _blocks = self._block_candidates[pair_phase or 0] |
| _locked_pair_phase = pair_phase | |
| int | _bits_since_group = 0 |
| _metadata = RdsMetadataDecoder(ps_repetitions=ps_repetitions) | |
| int | _sync_confidence = 0 |
| float | _rds_baseband_rms = 0.0 |
| float|None | _rds_band_excess_db = None |
| int | _diagnostic_blocks = 0 |
Process 240 kSPS FM multiplex (or channelized IQ) into RDS groups.
In automatic mode both half-bit pair phases run independently. The first CRC-validated group acquires lock; the alternate phase stays active so the receiver can reacquire after a sustained lack of valid groups. Real-world RDS BER remains a future validation gate. Use process_multiplex when another consumer already demodulates FM to avoid duplicating the FM discriminator.
| None sdrforge.protocols.rds.receiver_controller.RdsReceiverController.__init__ | ( | self, | |
| * | , | ||
| int | None | pair_phase = None, | ||
| int | loss_timeout_bits = 2080, | ||
| int | ps_repetitions = 2, | ||
| bool | persistent_sync = False, | ||
| bool | experimental_soft_pairs = False, | ||
| float | extractor_cutoff_hz = 3_000.0 ) |
Initialize the instance.
| self | The current instance. |
| pair_phase | The pair_phase value. |
| loss_timeout_bits | The loss_timeout_bits value. |
| ps_repetitions | The ps_repetitions value. |
| persistent_sync | The persistent_sync value. |
| experimental_soft_pairs | The experimental_soft_pairs value. |
| extractor_cutoff_hz | The extractor_cutoff_hz value. |
|
protected |
|
protected |
| tuple[ConfirmedRdsFragment, ...] sdrforge.protocols.rds.receiver_controller.RdsReceiverController.experimental_confirmed_fragments | ( | self | ) |
Newly corroborated experimental fragments, never trusted metadata.
| self | The current instance. |
| tuple[ExperimentalRadioText, ...] sdrforge.protocols.rds.receiver_controller.RdsReceiverController.experimental_radio_text | ( | self | ) |
Per-phase provisional previews; never trusted station metadata.
| self | The current instance. |
| tuple[RdsGroup, ...] sdrforge.protocols.rds.receiver_controller.RdsReceiverController.experimental_soft_last_groups | ( | self | ) |
Speculative groups from the last chunk, not trusted metadata.
| self | The current instance. |
| list[RdsGroup] sdrforge.protocols.rds.receiver_controller.RdsReceiverController.process_half_bits | ( | self, | |
| np.ndarray | halves ) |
Feed recovered half-bit symbols, including for hardware-free tests.
| self | The current instance. |
| halves | The halves value. |
| list[RdsGroup] sdrforge.protocols.rds.receiver_controller.RdsReceiverController.process_iq | ( | self, | |
| np.ndarray | iq ) |
Accept complex FM channel IQ sampled at 240 kSPS.
| self | The current instance. |
| iq | The complex IQ samples to process. |
| list[RdsGroup] sdrforge.protocols.rds.receiver_controller.RdsReceiverController.process_multiplex | ( | self, | |
| np.ndarray | multiplex ) |
Accept real FM multiplex sampled at 240 kSPS.
| self | The current instance. |
| multiplex | The multiplex value. |
| None sdrforge.protocols.rds.receiver_controller.RdsReceiverController.reset | ( | self, | |
| * | , | ||
| bool | preserve_metadata = False ) |
Reset the component.
| self | The current instance. |
| preserve_metadata | The preserve_metadata value. |
| RdsReceiverStatus sdrforge.protocols.rds.receiver_controller.RdsReceiverController.status | ( | self | ) |
Return the status.
| self | The current instance. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |