Configuration
Details on the channel parameters used here can be found
in core
.
- class excentis.xra31.configuration.Detection(xra31)
Access the upstream channel list detected by the XRA-31.
- property ofdma: Iterable[OfdmaChannel]
Get the OFDMA channels.
- property a_tdma: Iterable[ATdmaChannel]
Get the A-TDMA channels.
- property upstream: Iterable[UpstreamChannel]
Get the upstream channels.
- wait_for_channel(channel_parameters: UpstreamChannel = None, *, channel_type: ChannelType = None, ucid: int = - 1, frequency: float = 0.0, timeout: float = None) Optional[UpstreamChannel]
Wait for an upstream channel to be detected by the XRA-31.
- Parameters
channel_parameters (core.UpstreamChannel, optional) – A channel containing the parameters.
channel_type (core.ChannelType, optional) – The type of channel.
ucid (int, optional) – DOCSIS Upstream Channel ID.
frequency (float, optional) – The frequency of the channel (MHz).
timeout (float, optional) – Number of seconds to wait before giving up; by default it will wait indefinitely.
- Returns
The upstream channel if successful,
None
otherwise.- Return type
- class excentis.xra31.configuration.Configuration(xra31)
Add and remove XRA-31 channels (OFDM, SC-QAM, OFDMA, A-TDMA), and monitor their status.
- detection
Channels detected by the XRA-31.
- property ofdm: Iterable[OfdmChannel]
Get the OFDM channels.
- property sc_qam: Iterable[ScQamChannel]
Get the downstream SC-QAM channels.
- property ofdma: Iterable[OfdmaChannel]
Get the OFDMA channels.
- property a_tdma: Iterable[ATdmaChannel]
Get the A-TDMA channels.
- add_ofdm(plc_frequency: int, fft_size: int = 4096, cyclic_prefix: int = 192) bool
Add an
OfdmChannel
.
- add_sc_qam(frequency: float, modulation: ChannelModulation = ChannelModulation.QAM256) bool
Add an
ScQamChannel
.- Parameters
frequency (float) – Center frequency (MHz).
modulation (core.ChannelModulation, optional) –
ChannelModulation
, defaults to 256-QAM.
- Returns
True
if successful,False
otherwise.- Return type
- add_ofdma(channel_parameters: Channel = None, *, xra31_id: int = - 1, ucid: int = - 1, frequency: float = 0.0) bool
Add an
OfdmaChannel
.- Parameters
channel_parameters (core.Channel, optional) – A channel containing the relevant parameters.
xra31_id (int, optional) – Channel identifier at the XRA-31.
ucid (int, optional) – DOCSIS Upstream Channel ID.
frequency (float, optional) – Center frequency (MHz).
- Returns
True
if successful,False
otherwise.- Return type
- add_a_tdma(channel_parameters: Channel = None, *, xra31_id: int = - 1, ucid: int = - 1, frequency: float = 0.0) bool
Add an
ATdmaChannel
.- Parameters
channel_parameters (core.Channel, optional) – A channel containing the relevant parameters.
xra31_id (int, optional) – Channel identifier at the XRA-31.
ucid (int, optional) – DOCSIS Upstream Channel ID.
frequency (float, optional) – Center frequency (MHz).
- Returns
True
if successful,False
otherwise.- Return type
- remove(channel_parameters: Channel = None, *, channel_type: ChannelType = None, xra31_id: int = - 1, ucid: int = - 1, frequency: float = 0.0) bool
Remove a channel.
- Parameters
channel_parameters (core.Channel, optional) – A channel containing the relevant parameters.
channel_type (core.ChannelType, optional) – The
ChannelType
.xra31_id (int, optional) – ID on the XRA-31.
ucid (int, optional) – DOCSIS Upstream Channel ID.
frequency (float, optional) – PLC (OFDM) or center frequency (MHz).
- Returns
True
if successful,False
otherwise.- Return type
- remove_ofdm(channel_parameters: Channel = None, *, xra31_id: int = - 1, frequency: float = 0.0) bool
Remove an
OfdmChannel
.- Parameters
channel_parameters (core.Channel, optional) – A channel containing the relevant parameters.
xra31_id (int, optional) – Channel identifier at the XRA-31.
frequency (float, optional) – PLC frequency (MHz).
- Returns
True
if successful,False
otherwise.- Return type
- remove_sc_qam(channel_parameters: Channel = None, *, xra31_id: int = - 1, frequency: float = 0.0) bool
Remove an
ScQamChannel
.- Parameters
channel_parameters (core.Channel, optional) – A channel containing the relevant parameters.
xra31_id (int, optional) – Channel identifier at the XRA-31.
frequency (float, optional) – Center frequency (MHz).
- Returns
True
if successful,False
otherwise.- Return type
- remove_ofdma(channel_parameters: Channel = None, *, xra31_id: int = - 1, ucid: int = - 1, frequency: float = 0.0) bool
Remove an
OfdmaChannel
.- Parameters
channel_parameters (core.Channel, optional) – A channel containing the relevant parameters.
xra31_id (int, optional) – Channel identifier at the XRA-31.
ucid (int, optional) – DOCSIS Upstream Channel ID.
frequency (float, optional) – Center frequency (MHz).
- Returns
True
if successful,False
otherwise.- Return type
- remove_a_tdma(channel_parameters: Channel = None, *, xra31_id: int = - 1, ucid: int = - 1, frequency: float = 0.0) bool
Remove an
ATdmaChannel
.- Parameters
channel_parameters (core.Channel, optional) – A channel containing the relevant parameters.
xra31_id (int, optional) – Channel identifier at the XRA-31.
ucid (int, optional) – DOCSIS Upstream Channel ID.
frequency (float, optional) – Center frequency (MHz).
- Returns
True
if successful,False
otherwise.- Return type
- wait_for_state(channel_parameters: Channel = None, state: ChannelState = ChannelState.LOCKED, *, channel_type: ChannelType = None, xra31_id: int = - 1, ucid: int = - 1, frequency: float = 0.0, timeout: float = None) bool
Wait for a channel to arrive in state
ChannelState
.- Parameters
channel_parameters (core.Channel, optional) – A channel containing the relevant parameters.
state (core.ChannelState, optional) – The target state, defaults to
LOCKED
.channel_type (core.ChannelType, optional) – The
ChannelType
.xra31_id (int, optional) – Channel identifier at the XRA-31.
ucid (int, optional) – DOCSIS Upstream Channel ID.
frequency (float, optional) – PLC (OFDM) or center frequency (MHz).
timeout (float, optional) – Number of seconds to wait before giving up; by default it will wait indefinitely.
- Returns
True
if successful,False
otherwise.- Return type
- set_reference(channel_parameters: Channel = None, *, channel_type: ChannelType = None, xra31_id: int = - 1, frequency: float = 0.0) bool
Select the reference downstream channel. Note that this removes all upstream channels.
- Parameters
channel_parameters (core.Channel, optional) – A channel containing the relevant parameters.
channel_type (core.ChannelType, optional) – The channel’s type.
xra31_id (int, optional) – ID on the XRA-31.
frequency (float, optional) – PLC (OFDM) or center frequency (MHz).
- Returns
True
if successful,False
otherwise.- Return type
- apply(description: dict, downstream: bool = True, upstream: bool = True, timeout: float = None)
Apply a configuration.
- Parameters
description (dict) – The configuration description (
describe()
).downstream (bool, optional) – Whether or not to apply downstream channel configuration.
upstream (bool, optional) – Whether or not to apply upstream channel configuration.
timeout (float, optional) – Timeout before which upstream channels must have been detected (s), defaults to
None
(unlimited).