API Definition
APIA2LExportSettings (class)
The A2L Export Settings API Object
Properties
Name |
Type |
Description |
---|---|---|
EtkXetkExport | bool | Enables or disables the export of the ETK XETK AML |
MinimumEtkXetkAmlVersion | ETK_XETK_AML_VERSION | Gets the minimum required ETK XETK AML Version for the configured features in the project |
MaximumEtkXetkAmlVersion | ETK_XETK_AML_VERSION | Gets the maximal possible ETK XETK AML Version for the configured features in the project |
SelectedEtkXetkAmlVersion | ETK_XETK_AML_VERSION | The selected ETK XETK AML Version for the export Enables the ETK XETK AML export if set |
XcpExportSupported | bool | Is the export of the XCP AML supported for this Project |
XcpExport | bool | Enables or disables the export of the XCP AML |
MinimumXcpAmlVersion | XCP_AML_VERSION | Gets the minimum required XCP AML Version for the configured features in the project |
MaximumXcpAmlVersion | XCP_AML_VERSION | Gets the maximal possible XCP AML Version for the configured features in the project |
SelectedXcpAmlVersion | XCP_AML_VERSION | The selected XCP AML Version for the export Enables the XCP AML export if set |
IncludeTdmRastersForXcp | bool | Enables or disables the export of TDM raster for the XCP AML export Enables the XCP AML export if enabled |
IpAddress | string | The IP address of the device for the XCP AML export Enables the XCP AML export if set |
Port | uint | The Port of the device for the XCP AML export Enables the XCP AML export if set |
Tcp | bool | Enables or disables the TCP protocol for the XCP AML export Enables the XCP AML export if enabled |
TransportLayerIntanceTcp | string | The name of the TCP transportlayer instance Enables the TCP protocol for the XCP AML export Enables the XCP AML export if set |
Udp | bool | Enables or disables the UDP protocol for the XCP AML export Enables the XCP AML export if enabled |
TransportLayerIntanceUdp | string | The name of the UDP transportlayer instance Enables the UDP protocol for the XCP AML export Enables the XCP AML export if set |
SyncDmaStimSupported | bool | Is the export of Sync DMA Stim supported for this Project |
SyncDmaStimExport | bool | Enables or disables the export of Sync DMA Stim |
APIConfiguration (class)
The Configuration API Object
Properties
Name |
Type |
Description |
---|---|---|
Name | String | The name of the configuration |
ModelIdentifier | String | The model identifier of the configuration |
Methods
ImportFlashConfiguration(String)
RemoveFlashConfiguration()
CreateXcpDeviceConfiguration(String)
APIDevice (class)
The API Device Object
Properties
Name |
Type |
Description |
---|---|---|
Alias | String | The alias of the device ATTENTION: Only supported for XETKs, returns empty String for every other device |
ModelIdentifier | String | The modelidentifier of the device |
Name | String | The name of the device |
PortNumber | int | The port number of the device |
SerialNumber | String | The serial number of the device |
IpAddress | String | The IPv4 Address of the device |
Methods
ControlEcuReset(Boolean)
SetAlias(String)
SetFixedNetworkSettings(String, String)
StartCalibrationWakeup(UInt32, UInt32, UInt32)
StopCalibrationWakeup()
RebootDevice()
GetHardwareInfo(HWINFO)
GetHardwareState(HWSTATE)
ReadStandardMonitorVariables()
ReadExtendedMonitorVariables()
ReadRawBytesFromECU(EcuMemoryPage, UInt64, UInt64)
WriteRawBytesToECU(EcuMemoryPage, UInt64, Byte[])
APIProject (class)
The API Project Object
Properties
Name |
Type |
Description |
---|---|---|
Configurations | List(APIConfiguration) | All the configurations of the project |
Methods
SaveAs(String)
ConvertToFixedProject(Boolean)
CreateA2LExportSettings()
WriteA2LFile(APIA2LExportSettings, APIConfiguration, String)
EcuMemoryPage (enumeration)
Memory page types used when reading/writing raw data from/to the ECU memory
Enumeration Values
Name |
Description |
---|---|
ReferencePage | Defines read/write access to the reference page of the ECU |
WorkingPage | Defines read/write access to the working page of the ECU |
RamPage | Defines read/write access to the RAM of the ECU |
Code | Defines read/write access to the code page of the ECU |
EcuAbsolute | Defines read/write access to the ECU memory page independent |
EtkXetkAmlVersion (enumeration)
Possible ETK XETK AML Versions
Enumeration Values
Name |
Description |
---|---|
ETK_XETK_AML_1_0_0 | ETK XETK AML Version 1.0.0 |
ETK_XETK_AML_1_1_0 | ETK XETK AML Version 1.1.0 |
ETK_XETK_AML_1_2_0 | ETK XETK AML Version 1.2.0 |
ETK_XETK_AML_1_3_0 | ETK XETK AML Version 1.3.0 |
ETK_XETK_AML_2_0_0 | ETK XETK AML Version 2.0.0 |
ETK_XETK_AML_2_1_0 | ETK XETK AML Version 2.1.0 |
ETK_XETK_AML_2_2_0 | ETK XETK AML Version 2.2.0 |
ETK_XETK_AML_2_2_1 | ETK XETK AML Version 2.2.1 |
ETK_XETK_AML_2_3_0 | ETK XETK AML Version 2.3.0 |
ETK_XETK_AML_2_4_0 | ETK XETK AML Version 2.4.0 |
ETK_XETK_AML_2_5_0 | ETK XETK AML Version 2.5.0 |
ETK_XETK_AML_2_6_0 | ETK XETK AML Version 2.6.0 |
ETK_XETK_AML_2_7_0 | ETK XETK AML Version 2.7.0 |
ETK_XETK_AML_2_8_0 | ETK XETK AML Version 2.8.0 |
HWINFO (enumeration)
Hardware Info enumeration types. Use this enumeration types for the API GetHardwareInfo to select the supported and required hardware information. The enumeration data type is 32-bit signed integer.
Enumeration Values
Name |
Description |
---|---|
Begin | Hardware Info begin enumeration which is reserved and not functional. |
HardwareRevision | Hardware Info enumeration HardwareRevision. Using this type with the API GetHardwareInfo the hardware revision of the ETAS device is returned as string. Example string "A010/01". |
DefaultIpAddress | Hardware Info enumeration DefaultIpAddress. Using this type with the API GetHardwareInfo the configured default IP address from the ETAS device is returned as string. The default IP address is part of the device manufacturing data set and must not match the active IP address. Example string "192.168.40.1". |
DefaultSubnetMask | Hardware Info enumeration DefaultSubnetMask. Using this type with the API GetHardwareInfo the configured default sub-net mask from the ETAS device is returned as string. The default sub-net mask is part of the device manufacturing data set and must not match the active sub-net mask. Example string "255.255.255.0". |
FirmwareVersion | Hardware Info enumeration FirmwareVersion. Using this type with the API GetHardwareInfo the FW component version of the ETAS device is returned as string. Returns the string value "-1" if FW component is not existing. Example string "1.0.0". |
EpldVersion | Hardware Info enumeration EpldVersion. Using this type with the API GetHardwareInfo the EPLD component version of the ETAS device is returned as string. Returns the string value "-1" if EPLD component is not existing. Example string "1.0.0". |
HdcVersion | Hardware Info enumeration HdcVersion (HDC: Hardware Development Code). Using this type with the API GetHardwareInfo the HDC component version of the ETAS device is returned as string. Returns the string value "-1" if FPGA component is not existing. Example string "1.0.0". |
ManufactoringId | Hardware Info enumeration ManufactoringId. Using this type with the API GetHardwareInfo the manufacturer identification of the ETAS device is returned as string. Example string "25". |
EcuResetBehavior | Hardware Info enumeration EcuResetBehavior. Using this type with the API GetHardwareInfo the ECU reset state during ETAS device boot phase is returned as string. Returns the string value "0" in case the ECU reset is disabled during the ETAS device boot phase. Returns the string value "1" in case the ECU reset is enabled during the ETAS device boot phase. Returns the string value "-1" in case feature is not supported by the ETAS device. |
A2LFileName | Hardware Info enumeraton A2LFileName. Returns the used A2L file name without path and exetension. |
A2LFilePath | Hardware Info enumeraton A2LFilePath. Returns the full file path of the used A2L file. |
A2LEPK | Hardware Info enumeraton A2LEPK. Returns the EPK identifier stored in the used A2L file |
End | Hardware Info end enumeration which is reserved and not functional. |
HWSTATE (enumeration)
Hardware State enumeration types. Use this types for the API GetHardwareState to select the supported and required hardare state. The enumeration data type is 32-bit signed integer.
Enumeration Values
Name |
Description |
---|---|
Begin | Hardware State begin enumeration which is reserved and not functional. |
EcuPage | Hardware State enumeration EcuPage. Using this type with the API GetHardwareState the detected ECU page from the ETAS device is returned. Returns the integer value 0 in case of detected ECU page is Reference Page. Returns the integer value 1 in case of detected ECU page is Working Page. Returns the integer value 2 in case of detected ECU page is Code Page. Returns the integer value 3 in case of detected ECU page is Measurement Page. Returns the integer value 4 in case of detected ECU pages are Reference and Working Page (both pages). Returns the integer value 255 in caes the ECU page could not be deteced and is therefore unknown. |
PageInitialization | Hardware State enumeration PageInitialization. Using this type with the API GetHardwareState the detected page initialization from the ETAS device is returned. Returns the integer value 0 in case of the page is write accessed after initialization from backup flash. Returns the integer value 1 in case of the page is initialized from backup flash. Returns the integer value 2 in case of the page is not initialized from backup flash. Returns the integer value -1 in case of the page initialization could not be detected and is unknown. |
Ignition | Hardware State enumeration Ignition. Using this type with the API GetHardwareState the detected ignition state from the ETAS device is returned. Returns the integer value 0 in case the ignition state OFF is detected. Returns the integer value 1 in case the ignition state ON is detecetd. Returns the integer value -1 in case the ignition state could not be detected and is therefore unknown. |
StandbyPower | Hardware State enumeration StandbyPower. Using this type with the API GetHardwareState the detected standby power state from the ETAS device is returned. Returns the integer value 0 in case the standby power state OFF is detected. Returns the integer value 1 in case the standby power state ON is detecetd. Returns the integer value -1 in case the standby power state could not be detected and is therefore unknown. |
PowerFail | Hardware State enumeration PowerFail. Using this type with the API GetHardwareState the detected power fail or calibration data state from the ETAS device is returned. Returns the integer value 0 in case no power fail is detected. For "serial interface" based ETAS devices the calibration data state is valid. For "parallel interface" based ETAS devices the calibration data state is modified. Returns the integer value 1 in case power fail is detecetd. For "serial interface" based ETAS devices the calibration data state is invalid. For "parallel interface" based ETAS devices the calibration data state is initialized form backup flash. Returns the integer value -1 in case the power fail state could not be detected and is therefore unknown. |
EcuReset | Hardware State enumeration EcuReset. Using this type with the API GetHardwareState the detected ECU reset state from the ETAS device is returned. Returns the integer value 0 in case the no active ECU reset is detected and the ECU is running. Returns the integer value 1 in case the the ETAS device drives the ECU reset and the ECU is not running. Returns the integer value 2 in case the ECU reset is driven by an external source and the ECU is not running. Returns the integer value 3 in case the ECU is halted and not running. Returns the integer value -1 in case the ECU reset state could not be detected and is therefore unknown. |
Reserved | Hardware State enumeration is reserved and not functional. |
EcuHandshake | Hardware State enumeration EcuHandshake. Using this type with the API GetHardwareState the detected hardware handshake state from the ETAS device. Returns the integer value 0 in case no hardware handshake was performed. Returns the integer value 1 in case the hardware handshake was performed by the ECU software. Returns the integer value 2 in case the hardware handshake was set to performed because of timeout condition. Returns the integer value -1 in case the hardware handshake state could not be detected and is therefore unknown. |
TraceInterface | Hardware State enumeration TraceInterface. Using this type with the API GetHardwareState the detected trace interface state from the ETAS device is returned. Returns the integer value 0 in case no trace interface is supported. Returns the integer value 1 in case of link is in reset. Returns the integer value 2 in case of signal on link received. Returns the integer value 3 in case of the physical layer was established. Returns the integer value 4 in case of the link is up. Returns the integer value 5 in case of a link communication error. Returns the integer value 6 in case of the link is shared with an external debugger. Returns the integer value -1 in case the trace interface state could not be detected and is therefore unknown. |
SerialInterface | Hardware State enumeration SerialInterface. Using this type with the API GetHardwareState the detected serial interface state from the ETAS device is returned. Returns the integer value 0 in case the serial interface state could not be detected and is therefore unknown. Returns the integer value 1 in case the serial interface is in active JTAG operation mode. Returns the integer value 2 in case the serial interface operation mode could not be switched from JTAG to LFAST. Returns the integer value 3 in case the serial interface is in active LFAST operation mode. |
End | Hardware State end enumeration which is reserved and not functional. |
XcpAmlVersion (enumeration)
Possible XCP AML Versions
Enumeration Values
Name |
Description |
---|---|
XCP_AML_1_0 | XCP AML Version 1.0 |
XCP_AML_1_1 | XCP AML Version 1.1 |
XCP_AML_1_2 | XCP AML Version 1.2 |
XCP_AML_1_3 | XCP AML Version 1.3 |
XCP_AML_1_4 | XCP AML Version 1.4 |
XCP_AML_1_5 | XCP AML Version 1.5 |
XCTAutomationAPI (class)
The XCT Automation API These are the exposed methods for use in a Python Script
Properties
Name |
Type |
Description |
---|---|---|
Version | String | Returns the version of the currently installed ETK Tools (including "Beta" label, if a beta version is installed). This version string is the same as displayed in the about dialog of the XCT UI application |
Methods
CompareConfigurations(APIConfiguration, APIDevice)
ControlEcuReset(APIDevice, Boolean)
DownloadToDevice(APIConfiguration, APIDevice, Boolean)
SetAlias(APIDevice, String)
LoadProject(String)
LoadA2LFileAndProjectConfigFile(String, String, IList{System.Int32})
LoadA2LFile(String, IList{System.Int32})
SearchForHardware()
XCTAutomationAPIException (class)
The exception that gets thrown by the API functions when errors occur
Properties
Name |
Type |
Description |
---|---|---|
ApiFunction | String | The API function throwing the exception |
Message | String | The message describing what went wrong |