SlimLinkComponentManager Class
- class ska_mid_cbf_mcs.slim.slim_link_component_manager.SlimLinkComponentManager(*args: Any, **kwargs: Any)[source]
Bases:
CbfComponentManager
A component manager for a SLIM link, which is made up of a Tx and Rx device from the ds-slim-tx-rx HPS device server.
- property tx_device_name: str
The name of the HPS tx device that the link is associated with.
- Returns:
the tx device name.
- Return type:
- property rx_device_name: str
The name of the HPS rx device that the link is associated with.
- Returns:
the rx device name.
- Return type:
- property tx_idle_ctrl_word: int
The idle control word set in the tx device. Initially generated in the HPS by hashing the tx device’s FQDN.
- Returns:
the tx idle control word.
- Raises:
Tango exception – if the tx device is not set.
- Return type:
- property rx_idle_ctrl_word: int
The last idle control word received in the datastream by the HPS rx device.
- Returns:
the rx idle control word.
- Raises:
Tango exception – if the rx device is not set.
- Return type:
- property bit_error_rate: float
The bit-error rate in 66b-word-errors per second.
- Returns:
The bit error rate.
- Raises:
Tango exception – if the rx device is not set.
- Return type:
- property simulation_mode
Get the simulation mode.
- read_counters() list[int] [source]
An array holding the counter values from the HPS tx and rx devices in the order: [0] rx_word_count [1] rx_packet_count [2] rx_idle_word_count [3] rx_idle_error_count [4] rx_block_lost_count [5] rx_cdr_lost_count [6] tx_word_count [7] tx_packet_count [8] tx_idle_word_count
- start_communicating() None [source]
Establish communication with the component, then start monitoring.
- connect_slim_tx_rx() tuple[ska_tango_base.commands.ResultCode, str] [source]
Link the HPS tx and rx devices by synchronizing their idle control words and disabling serial loopback. Begin monitoring the Tx and Rx.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Return type:
(ResultCode, str)
- verify_connection() tuple[ska_tango_base.commands.ResultCode, str] [source]
Performs a health check on the SLIM link. No check is done if the link is not active; instead, the health state is set to UNKNOWN.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Return type:
(ResultCode, str)
- disconnect_slim_tx_rx() tuple[ska_tango_base.commands.ResultCode, str] [source]
Stops controlling and monitoring the HPS tx and rx devices. The link becomes inactive. Serial loopback is re-established.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Return type:
(ResultCode, str)