xcp_controller
- class mtf.libs.mtf_pybinder.xcp_controller
- __init__(self: mtf.libs.mtf_pybinder.xcp_controller, ecu_name: str, channel_name: str, connection_info: mtf.libs.mtf_pybinder.xcp_connection, a2l_file: str) None
- __new__(**kwargs)
- configure(self: mtf.libs.mtf_pybinder.xcp_controller, option: mtf.libs.mtf_pybinder.XcpConfigOption, value: int) bool
Set a configuration option for the given ECU/channel
- connect(self: mtf.libs.mtf_pybinder.xcp_controller, callback: Callable[[str, bool], None]) bool
Establish connection to the ECU over Ethernet (XCP on TCP or XCP on UDP)
callback: Function to be called every time the connection state change (true -> connected, false -> disconnected)
- daq_configure(self: mtf.libs.mtf_pybinder.xcp_controller, configuration: dict[int, tuple[int, list[list[str]]]]) bool
Set DAQ configuration
- daq_decode_payload(self: mtf.libs.mtf_pybinder.xcp_controller, payload: list[int]) list[mtf.libs.mtf_pybinder.xcp_daq_sample]
Decode a DAQ event payload
- daq_enable(self: mtf.libs.mtf_pybinder.xcp_controller) bool
Enable DAQ and read configuration from ECU
- daq_poll(self: mtf.libs.mtf_pybinder.xcp_controller, measurement: str, interval_ms: int) bool
Add data object to poll
- daq_remove_callback(self: mtf.libs.mtf_pybinder.xcp_controller, handle: int) bool
Remove a DAQ callback
- daq_set_callback(self: mtf.libs.mtf_pybinder.xcp_controller, callback: Callable[[int, str, xcp_value], None]) int
Set callback for updated measurements
- daq_set_list_options(self: mtf.libs.mtf_pybinder.xcp_controller, list_index: int, options: mtf.libs.mtf_pybinder.xcp_daq_list_options) bool
Set DAQ list options
- daq_start(self: mtf.libs.mtf_pybinder.xcp_controller) bool
Start data acquisition
- daq_stop(self: mtf.libs.mtf_pybinder.xcp_controller) bool
Stop data acquisition
- daq_validate_configuration(self: mtf.libs.mtf_pybinder.xcp_controller, try_fix: bool) bool
Validate DAQ configuration
- daq_watch(self: mtf.libs.mtf_pybinder.xcp_controller, measurements: list[str]) bool
Set measurements to watch
- detect_ecus(self: mtf.libs.mtf_pybinder.xcp_controller) list[str]
Get list of available Ecus (List[Dict[str, Any]])
- disconnect(self: mtf.libs.mtf_pybinder.xcp_controller) bool
Close connection to the ECU
- get_all_characteristics(self: mtf.libs.mtf_pybinder.xcp_controller) list[str]
Get list of ECU characteristics defined on the A2L file
- get_all_ecu_names(self: mtf.libs.mtf_pybinder.xcp_controller) list[str]
Get list of ECU defined on the A2L file.
- get_all_measurements(self: mtf.libs.mtf_pybinder.xcp_controller) list[str]
Get list of ECU measurements defined on the A2L file
- get_daq_event_channels(self: mtf.libs.mtf_pybinder.xcp_controller) list[mtf.libs.mtf_pybinder.xcp_daq_event_channel]
Get DAQ event channels for this ECU/channel
- get_object_data_type(self: mtf.libs.mtf_pybinder.xcp_controller, a2l_obj_name: str) mtf.libs.mtf_pybinder.XcpDataType
Get data type for an A2L object of this ECU/channel
- read_physical_value(self: mtf.libs.mtf_pybinder.xcp_controller, variable_name: str) xcp_value
Read out variable (characteristic or measurement) complex physical value from the ECU
variable_name: characteristic/measurement like defined in the a2l file
- read_raw_value(self: mtf.libs.mtf_pybinder.xcp_controller, variable_name: str) xcp_value
Read out variable (characteristic or measurement) complex raw value from the ECU
variable_name: characteristic/measurement like defined in the a2l file
- read_simple_physical_value(self: mtf.libs.mtf_pybinder.xcp_controller, variable_name: str) tuple[float, bool]
Read out variable (characteristic or measurement) physical value from the ECU
variable_name: characteristic/measurement like defined in the a2l file
- read_simple_raw_value(self: mtf.libs.mtf_pybinder.xcp_controller, variable_name: str) tuple[float, bool]
Read out variable (characteristic or measurement) raw value from the ECU
variable_name: characteristic/measurement like defined in the a2l file
- write_physical_value(self: mtf.libs.mtf_pybinder.xcp_controller, variable_name: str, value: xcp_value) bool
Set the ECU internal (characteristic or measurement) complex physical value
variable_name: characteristic/measurement like defined in the a2l file value: numpy array
- write_raw_value(self: mtf.libs.mtf_pybinder.xcp_controller, variable_name: str, value: xcp_value) bool
Set the ECU internal (characteristic or measurement) complex raw value
variable_name: characteristic/measurement like defined in the a2l file value: numpy array
- write_simple_physical_value(self: mtf.libs.mtf_pybinder.xcp_controller, variable_name: str, value: float) bool
Set the ECU internal (characteristic or measurement) physical value
variable_name: characteristic/measurement like defined in the a2l file value: float value
- write_simple_raw_value(self: mtf.libs.mtf_pybinder.xcp_controller, variable_name: str, value: float) bool
Set the ECU internal (characteristic or measurement) raw value
variable_name: characteristic/measurement like defined in the a2l file value: float value