Network
- class mtf.libs.mtf_pybinder.Network
Com network class
- __init__(*args, **kwargs)
- __new__(**kwargs)
- clear_bursts(self: mtf.libs.mtf_pybinder.Network) None
Clear all previously configured bursts.
- configure_burst(self: mtf.libs.mtf_pybinder.Network, load_inputs: mtf.libs.mtf_pybinder.ComLoadInputs, load_config: mtf.libs.mtf_pybinder.ComLoadConfig) bool
- Configure a burst in a set of com channels (CAN or Ethernet) using the provides data inputs.
If a channel was previously configured, the old configuration will be overrided!!
- get_all_clusters(self: mtf.libs.mtf_pybinder.Network, cluster_type: mtf.libs.mtf_pybinder.mtf_cluster_type = <mtf_cluster_type.All: 7>) list[mtf.libs.mtf_pybinder.Cluster]
Get all available clusters based on the cluster type.
- get_all_db_consumed_services(self: mtf.libs.mtf_pybinder.Network) list[mtf.libs.mtf_pybinder.mtf_datamodel_services.ConsumedServiceAttribute]
Get all consumed services from the db.
- get_all_db_provided_services(self: mtf.libs.mtf_pybinder.Network) list[mtf.libs.mtf_pybinder.mtf_datamodel_services.ProvidedServiceAttribute]
Get all provided services from the db.
- get_all_ecus(self: mtf.libs.mtf_pybinder.Network) list[mtf.libs.mtf_pybinder.Ecu]
Get list of all ECU instances with respect to provided DB
- get_all_network_endpoints(self: mtf.libs.mtf_pybinder.Network) list[mtf.libs.mtf_pybinder.mtf_datamodel_system_topology.NetworkEndpoint]
Get all NetworkEndpoints from the db.
- get_all_out_npdus(self: mtf.libs.mtf_pybinder.Network, channel_name: str = '') list[mtf.libs.mtf_pybinder.NPdu]
Get all output npdus from all ecus.
- get_all_out_npdus_by_name(self: mtf.libs.mtf_pybinder.Network, pdu_name: str, channel_name: str = '') list[mtf.libs.mtf_pybinder.NPdu]
Get all output npdus from all ecus by pdu name.
- get_all_virtual_lans(self: mtf.libs.mtf_pybinder.Network) list[mtf.libs.mtf_pybinder.mtf_datamodel_system_topology.VirtualLan]
Get all VirtualLans from the db.
- start_bursts(self: mtf.libs.mtf_pybinder.Network) bool
Start all previously configured bursts synchronously.
- start_communication(self: mtf.libs.mtf_pybinder.Network, ecu_interface: mtf.libs.mtf_pybinder.mtf_ecu_interface, excluded_ecus: set[str] | None = None) None
start, depending on the chosen interface + excluded ECUs list, cyclic frames, NPDUs and SomeIP provided notifications transmission and subscribe to SomeIP consumed notifications taking into consideration the configured connected ECUs
- stop_communication(self: mtf.libs.mtf_pybinder.Network, ecu_interface: mtf.libs.mtf_pybinder.mtf_ecu_interface, excluded_ecus: set[str] | None = None) None
stop, depending on the chosen interface + excluded ECUs list cyclic frames, NPDUs and SomeIP provided notifications transmission and subscribe to SomeIP consumed notifications taking into consideration the configured connected ECUs
- try_get_channel_by_name(self: mtf.libs.mtf_pybinder.Network, channel_name: str) mtf.libs.mtf_pybinder.ComChannel
Get instance of ComChannel with reference to channel_name. Return None if no channel has the name channel_name
- try_get_cluster_by_name(self: mtf.libs.mtf_pybinder.Network, cluster_name: str) mtf.libs.mtf_pybinder.Cluster
Get instance of Cluster with reference to cluster_name. Return None if no cluster has the name cluster_name
- try_get_decoder(self: mtf.libs.mtf_pybinder.Network, service_name_or_id: int | str, message_name_or_id: int | str, is_input: bool = True) mtf.libs.mtf_pybinder.SomeIpMessageDecoder | None
Try getting a message decoder for specific SomeIp message. It returns None if this message does not exist. set is_input to false to get decoder for SomeIp method output parameters
- try_get_ecu_by_name(self: mtf.libs.mtf_pybinder.Network, ecu_name: str) mtf.libs.mtf_pybinder.Ecu
Get instance of Ecu with reference to ecu_name. Return None if no ecu has the name ecu_name
- try_get_ecu_channel_pairs_by_ip(self: mtf.libs.mtf_pybinder.Network, ip_address: str) list[tuple[mtf.libs.mtf_pybinder.Ecu, str]]
Attempt to get ECUs and their corresponding channel names based on a specific IP address. return: A list of tuples, each containing an ECU object and its corresponding channel name
- try_get_encoder(self: mtf.libs.mtf_pybinder.Network, service_name_or_id: int | str, message_name_or_id: int | str, is_input: bool = True) mtf.libs.mtf_pybinder.SomeIpMessageEncoder | None
Try getting a message encoder for specific SomeIp message. It returns None if this message does not exist. set is_input to false to get encoder for SomeIp method output parameters
- static try_get_instance() mtf.libs.mtf_pybinder.Network
Try get instance of com network. It returns None if the com layer is not configured