Default Receiver Antenna Gain Model (dra_ragain)
This section describes the functionality and implementation of the default model occupying stage six of the Radio Transceiver Pipeline. This model is named dra_ragain. The source code is provided in the file dra_ragain.ps.c, which resides in the <reldir>/models/std/wireless directory.
Invocation Context
The Radio Transceiver Pipeline determines the gain associated with a packet’s receiving antenna by invoking the receiver antenna gain model. This invocation logically follows the invocation of the propagation delay model, but these two stages are separated in time by a simulated duration equal to the propagation delay. The simulation time at invocation is the start time for the packet reception.
The result of the receiver antenna gain model for each packet is a floating point value specifying the gain of the receiver’s antenna in the direction of the transmitter of interest. This result is expressed in decibels (dB) and is expected by the Simulation Kernel in the packet’s OPC_TDA_RA_RX_GAIN transmission data attribute.
Receiver Antenna Gain Computation
Receiver antenna gain is computed using the same techniques found in the transmitter antenna gain model. The implementations of these two stages differ only in that receiver-related attributes are accessed in the packet rather than transmitter-related ones (e.g., OPC_TDA_RA_RX_PATTERN is used instead of OPC_TDA_RA_TX_PATTERN). In addition, the calculations are performed by placing the receiver in a coordinate system where it is at the origin, rather than the transmitter.