Physical Device Dummy#
- class PhysicalDeviceDummy(max_receive_delay=0.0, antennas=None, noise_power=None, receive_transmission=True, **kwargs)[source]#
Bases:
SimulatedDevice
,PhysicalDevice
,Serializable
Physical device dummy for testing and demonstration.
The physical device dummy always receives back its most recent transmission.
- Parameters:
scenario (Scenario, optional) – Scenario this device is attached to. By default, the device is considered floating.
antennas (SimulatedAntennas, optional) – Antenna array model of the device. By default, a single ideal istropic antenna is assumed.
rf_chain (RfChain, optional) – Model of the device’s radio frequency amplification chain. If not specified, a chain with ideal hardware models will be assumed.
isolation (Isolation, optional) – Model of the device’s transmit-receive isolations. By default, perfect isolation is assumed.
coupling (Coupling, optional) – Model of the device’s antenna array mutual coupling. By default, ideal coupling behaviour is assumed.
trigger_model (TriggerModel, optional) – The assumed trigger model. By default, a
StaticTrigger
is assumed.sampling_rate (float, optional) – Sampling rate at which this device operates. By default, the sampling rate of the first operator is assumed.
carrier_frequency (float, optional) – Center frequency of the mixed signal in rf-band in Hz. Zero by default.
snr (float, optional) – Signal-to-noise ratio of the device. By default, the device is assumed to be noiseless.
snr_type (SNRType, optional) – Type of the signal-to-noise ratio. By default, the signal-to-noise ratio is specified in terms of the power of the noise to the expected power of the received signal.
pose (Transformation, optional) – Initial pose of the moveable with respect to its reference coordinate frame. By default, a unit transformation is assumed.
velocity (np.ndarray, optional) – Initial velocity of the moveable in local coordinates. By default, the moveable is assumed to be resting.
*args – Device base class initialization parameters.
**kwargs – Device base class initialization parameters.
- process_input(impinging_signals=None, cache=True, trigger_realization=None, snr=inf, snr_type=SNRType.PN0, leaking_signal=None)[source]#
Process input signals at this device.
- Parameters:
impinging_signals (DeviceInput | Signal | Sequence[Signal] | ChannelPropagation | Sequence[ChannelPropagation] | SimulatedDeviceOutput) – List of signal models arriving at the device. May also be a two-dimensional numpy object array where the first dimension indicates the link and the second dimension contains the transmitted signal as the first element and the link channel as the second element.
cache (bool, optional) – Cache the resulting device reception and operator inputs. Enabled by default.
trigger_realization (TriggerRealization, optional) – Trigger realization modeling the time delay between a drop start and frame start. Perfect triggering is assumed by default.
snr (float, optional) – Signal to noise power ratio. Infinite by default, meaning no noise will be added to the received signals.
snr_type (SNRType, optional) – Type of signal to noise ratio. If not specified, the device’s default
snr_type
will be assumed.leaking_signal (Signal, optional) – Signal leaking from transmit to receive chains.
- Return type:
ProcessedSimulatedDeviceInput
Returns: The processed device input.
- receive(impinging_signals=None, *args, **kwargs)[source]#
Receive information at this device.
- Parameters:
impinging_signals (DeviceInput | Signal | Sequence[Signal] | ChannelPropagation | Sequence[ChannelPropagation] | SimulatedDeviceOutput) – List of signal models arriving at the device. May also be a two-dimensional numpy object array where the first dimension indicates the link and the second dimension contains the transmitted signal as the first element and the link channel as the second element.
cache (bool, optional) – Cache the resulting device reception and operator inputs. Enabled by default.
trigger_realization (TriggerRealization, optional) – Trigger realization modeling the time delay between a drop start and frame start. Perfect triggering is assumed by default.
- Return type:
Returns: The processed device input.
- transmit(cache=True, trigger_realization=None)[source]#
Transmit over this device.
- Parameters:
cache (bool, optional) – Cache the transmitted information. Enabled by default.
trigger_realization (TriggerRealization, optional) – Trigger realization modeling the time delay between a drop start and frame start. Perfect triggering is assumed by default.
- Return type:
Returns: Information transmitted by this device.
- trigger_direct(signal, calibrate=True)[source]#
Trigger a direct transmission and reception.
Bypasses the operator abstraction layer and directly transmits the given signal.
- Parameters:
- Return type:
Returns: The received signal.
- Raises:
ValueError – If the signal’s carrier frequency or sampling rate does not match the device’s.