Generic modem physical layer agent for simulation.
Services:
Capabilities:
Parameters:
Indexed Parameters:
Modifiers | Name | Description |
---|---|---|
float |
basebandRate |
Baseband sampling rate (Hz). |
float |
basebandRxDuration |
Baseband reception duration (s). |
float |
carrierFrequency |
Carrier frequency (Hz). |
ChannelModel |
channel |
Channel model to use for simulating transmission, reception and interference. |
float[] |
dataRate |
Communication link data rate (bps) for CONTROL and DATA channels. |
static String |
description |
|
int[] |
frameLength |
Frame length (bytes) for CONTROL and DATA channels. |
int |
headerLength |
Frame header length in bytes. |
boolean[] |
janus |
Support for JANUS frames. |
int[] |
maxFrameLength |
Maximum frame length (bytes) for CONTROL and DATA channels. |
float |
maxPowerLevel |
Maximum allowable transmit power level (dB re refPowerLevel). |
int |
maxSignalLength |
Maximum allowable baseband signal length. |
float |
minPowerLevel |
Minimum allowable transmit power level (dB re refPowerLevel). |
float[] |
powerLevel |
Transmit power level (dB re refPowerLevel) for CONTROL and DATA channels. |
float |
preambleDuration |
Frame detection preamble duration in seconds. |
float |
refPowerLevel |
Reference transmit power level (dB re uPa @ 1m). |
float |
rxSensitivity |
Reference receive sensitivity (dB re uPa). |
float |
signalPowerLevel |
Transmit power level (dB re refPowerLevel) for baseband signals. |
int |
timestampLength |
Timestamp length in bytes, for timestamped frames. |
float |
timestampedTxDelay |
Transmission delay in seconds when scheduling transmission of a timestamped packet. |
static String |
title |
|
Tracer |
tracer |
Tracer to use for logging events. |
float |
txDelay |
Transmission delay in seconds when switching from receive to transmit mode. |
Type Params | Return Type | Name and description |
---|---|---|
|
def |
HalfDuplexModem() |
|
float |
getBasebandRate() Gets the baseband sampling rate. |
|
float |
getBasebandRxDuration() Gets the baseband recording duration when baseband preamble is received. |
|
boolean |
getBusy() Checks if modem is busy transmitting/receiving. |
|
float |
getCarrierFrequency() Gets the default carrier frequency. |
|
float |
getClockOffset() Gets time offset of this node's clock. |
|
Float |
getDataRate(int type) Gets the frame data rate for data or control channel. |
|
Integer |
getErrorDetection(int type) Get error detection. |
|
Integer |
getFec(int type) Get FEC. |
|
List<String> |
getFecList(int type) Get FEC list. |
|
Float |
getFrameDuration(int type) Get frame duration. |
|
Integer |
getFrameLength(int type) Gets the frame length for data or control channel. |
|
Boolean |
getJanus(int type) Checks for support for JANUS frames. |
|
Boolean |
getLlr(int type) Checks for support for log-likelihood ratio reporting. |
|
Integer |
getMTU() Get maximum frame size for CONTROL channel. |
|
Integer |
getMTU(int type) Get maximum frame size. |
|
Integer |
getMaxFrameLength(int type) Gets the maximum possible frame length. |
|
Float |
getMaxPowerLevel(int type) Gets maximum possible power level. |
|
int |
getMaxPreambleID() Gets the number of preambles supported. |
|
int |
getMaxSignalLength() Gets the maximum length of a baseband signal. |
|
Float |
getMinPowerLevel(int type) Gets minimum possible power level. |
|
protected List<Parameter> |
getParameterList() |
|
protected List<Parameter> |
getParameterList(int index) |
|
Float |
getPowerLevel(int type) Gets power level for data or control channel. |
|
float |
getPreambleDuration() Gets the preamble duration in seconds. |
|
float |
getPropagationSpeed() Get signal propagation speed. |
|
float |
getRefPowerLevel() Gets reference power level. |
|
boolean |
getRxEnable() Checks if reception is enabled. |
|
float |
getRxSensitivity() Gets reference receive sensitivity. |
|
Float |
getSignalPowerLevel() Gets power level for baseband signal transmission. |
|
long |
getTime() Get current physical layer clock. |
|
float |
getTimestampedTxDelay() Get transmission delay incurred for a timestamped transmission. |
|
protected void |
processMessage(Message msg) |
|
protected Message |
processRequest(Message msg) |
|
float |
setBasebandRxDuration(float value) Sets the baseband recording duration when baseband preamble is received. |
|
float |
setClockOffset(float t) Sets time offset of this node's clock. |
|
Float |
setDataRate(int type, int value) Sets the frame data rate for data or control channel. |
|
Integer |
setFrameLength(int type, int value) Sets the frame length for data or control channel. |
|
Boolean |
setJanus(int type, boolean value) Enables/disables support for JANUS frames. |
|
Integer |
setMaxFrameLength(int type, int value) Gets the maximum possible frame length. |
|
Float |
setPowerLevel(int type, float value) Sets power level for data or control channel. |
|
boolean |
setRxEnable(boolean value) Enables or disables reception. |
|
Float |
setSignalPowerLevel(float value) Sets power level for baseband signal transmission. |
|
protected void |
setup() |
|
protected void |
startup() |
Baseband sampling rate (Hz).
Baseband reception duration (s).
Carrier frequency (Hz).
Channel model to use for simulating transmission, reception and interference.
Communication link data rate (bps) for CONTROL and DATA channels.
Frame length (bytes) for CONTROL and DATA channels.
Frame header length in bytes.
Support for JANUS frames.
Maximum frame length (bytes) for CONTROL and DATA channels.
Maximum allowable transmit power level (dB re refPowerLevel).
Maximum allowable baseband signal length.
Minimum allowable transmit power level (dB re refPowerLevel).
Transmit power level (dB re refPowerLevel) for CONTROL and DATA channels.
Frame detection preamble duration in seconds.
Reference transmit power level (dB re uPa @ 1m).
Reference receive sensitivity (dB re uPa).
Transmit power level (dB re refPowerLevel) for baseband signals.
Timestamp length in bytes, for timestamped frames.
Transmission delay in seconds when scheduling transmission of a timestamped packet.
Tracer to use for logging events.
Transmission delay in seconds when switching from receive to transmit mode.
Gets the baseband sampling rate.
Gets the baseband recording duration when baseband preamble is received.
Checks if modem is busy transmitting/receiving.
Gets the default carrier frequency.
Gets time offset of this node's clock.
Gets the frame data rate for data or control channel.
type
- DATA or CONTROLGet error detection.
Get FEC.
type
- DATA or CONTROLGet FEC list.
type
- DATA or CONTROL
return empty list.Get frame duration.
type
- DATA or CONTROLGets the frame length for data or control channel.
type
- DATA or CONTROLChecks for support for JANUS frames.
type
- DATA or CONTROLChecks for support for log-likelihood ratio reporting.
type
- DATA or CONTROLGet maximum frame size for CONTROL channel.
Get maximum frame size.
type
- DATA or CONTROLGets the maximum possible frame length.
type
- DATA or CONTROLGets maximum possible power level.
type
- DATA or CONTROLGets the number of preambles supported.
Gets the maximum length of a baseband signal.
Gets minimum possible power level.
type
- DATA or CONTROLGets power level for data or control channel.
type
- DATA or CONTROLGets the preamble duration in seconds.
Get signal propagation speed.
Gets reference power level. @ 1m
Checks if reception is enabled.
Gets reference receive sensitivity.
Gets power level for baseband signal transmission.
Get current physical layer clock.
Get transmission delay incurred for a timestamped transmission.
Sets the baseband recording duration when baseband preamble is received.
value
- duration in secondsSets time offset of this node's clock.
t
- offset in secondsSets the frame data rate for data or control channel.
type
- DATA or CONTROLvalue
- frame data rate in bpsSets the frame length for data or control channel.
type
- DATA or CONTROLvalue
- frame length in bytesEnables/disables support for JANUS frames.
type
- DATA or CONTROLvalue
- true to enable, false to disabletrue,
- if supported, false otherwiseGets the maximum possible frame length.
type
- DATA or CONTROLSets power level for data or control channel.
type
- DATA or CONTROLvalue
- value in dB re reference power levelEnables or disables reception.
value
- true to enable, false to disable receptionSets power level for baseband signal transmission.
value
- value in dB re reference power level