IECUEthernet

Summary

Represents an Ethernet ECU object.

Methods
Properties

Structure

class IECUEthernet
find_consumed_service_instances(service_id: uint16) Array[IConsumedService]

Gets a list of consumed service objects found for the ECU that correspond to the service id given. An ECU can consume the same service id with different event groups, IPs and ports, and for each combination of these parameters a consumed service object is created.

Parameters

service_id (uint16) – Id of the desired service.

Returns

List of consumed services found.

Return type

Array[IConsumedService]

find_provided_service_instances(service_id: uint16) Array[IProvidedService]

Gets a list of provided service objects found for the ECU that correspond to the service id given.

Parameters

service_id (uint16) – Id of the desired service.

Returns

List of provided services found.

Return type

Array[IProvidedService]

get_consumed_services_by_ip(ip: str) Array[IConsumedService]

Extracts from the database the complete list of consumed services by a certain ECU. These consumed services contain info not only about the services itself, but also about the eventgroups used, transport info, etc.

Parameters

ip (str) – IP address of the desired ECU.

Returns

List of consumed services by the IP

Return type

Array[IConsumedService]

get_ips(filters: Array[Func[str, bool]]) IReadOnlyList[str]

Extracts a list of IPs from the network of the ECU by applying a list of filters.

Parameters

filters (Array[Func[str, bool]]) – Filters applied before extracting the list of IPs

Returns

A list of IPs

Return type

IReadOnlyList[str]

get_provided_services_by_ip(ip: str) Array[IProvidedService]

Extracts from the database the complete list of provided services by a certain ECU.

Parameters

ip (str) – IP address of the desired ECU.

Returns

List of services provided by the IP

Return type

Array[IProvidedService]

consumed_services

Gets the complete list of services consumed by the ECU.

Type

Array[IConsumedService]

couplings

list of coupling elements in ecu ethernet

Type

IReadOnlyCollection[CouplingElement]

diagnostic_addresses

The list of diagnostic addresses of the ECU.

Type

IReadOnlyList[TpAddress]

ecu_id

Extracts from the database the unique ID of the ECU.

Type

str

mac_unicast_addresses

A list of the MAC unicast addresses of the ECU.

Type

IReadOnlyList[str]

name

Extracts from the database the name of the ECU.

Type

str

provided_services

Gets the complete list of services provided by the ECU.

Type

Array[IProvidedService]

response_address

The response addresses of the ECU.

Type

TpAddress

uuid

Extracts from the database the UUID of the ECU.

Type

str