SlimComponentManager Class

class ska_mid_cbf_mcs.slim.slim_component_manager.SlimComponentManager(*args: Any, **kwargs: Any)[source]

Bases: CbfComponentManager

Manages a Serial Lightweight Interconnect Mesh (SLIM).

start_communicating() None[source]

Establish communication with the component, then start monitoring.

stop_communicating() None[source]

Stop communication with the component.

property is_communicating: bool

Returns whether or not the SLIM can be communicated with.

Returns:

whether the SLIM is communicating

on() tuple[ska_tango_base.commands.ResultCode, str][source]

On command. Currently just returns OK. The device does nothing until mesh configuration is provided via the Configure command.

Returns:

A tuple containing a return code and a string message indicating status. The message is for information purpose only.

Return type:

(ResultCode, str)

off() tuple[ska_tango_base.commands.ResultCode, str][source]

Off command. Disconnects SLIM Links if mesh is configured, else returns OK.

Returns:

A tuple containing a return code and a string message indicating status. The message is for information purpose only.

Return type:

(ResultCode, str)

configure(config_str) tuple[ska_tango_base.commands.ResultCode, str][source]

Configure command. Parses the mesh configuration.

Parameters:

config_str – a string in YAML format describing the links to be created.

Returns:

A tuple containing a return code and a string message indicating status. The message is for information purpose only.

Return type:

(ResultCode, str)

get_configuration_string() str[source]

Returns the configurations string used to configure the SLIM.

Returns:

the SLIM configuration string

Return type:

str

Returns a list of SLIM Link FQDNs.

Returns:

the SLIM links assosiated with the mesh.

Return type:

list[str]

Returns a list of SLIM Link names, formatted ‘tx_device_name->rx_device_name’.

Returns:

the names of SLIM links assosiated with the mesh.

Return type:

list[str]

get_health_summary() list[ska_tango_base.control_model.HealthState][source]

Returns a list of HealthState enums describing the status of each link.

Returns:

the health state of each SLIM link in the mesh.

Return type:

list[HealthState]

get_bit_error_rate() list[float][source]

Returns a list containing the bit-error rates for each link.

Returns:

the bit-error rate (BER) of each SLIM link in the mesh.

Return type:

list[float]

get_device_counters() list[list[int]][source]

Returns a list containing the counters array for each link

Returns:

the counter array for each SLIM link in the mesh

Return type:

List[List[int]]

slim_test() tuple[ska_tango_base.commands.ResultCode, str][source]