DTC's (Diagnostic Trouble Codes)
Procedure: ClearVehicleFaults
Description:
Clears all the diagnostic trouble codes (DTCs) for the entire vehicle.
Function: ClearFaults
Description:
Attempts to clear the diagnostic trouble codes (DTCs) from the ECU.
Return Value:
Returns true
if the DTCs were successfully cleared from the ECU, otherwise false
.
Usage Example | |
---|---|
Function: GetDtcCount
Description:
Retrieves the count of Diagnostic Trouble Codes (DTCs) based on the provided mask.
Parameters:
- mask
: The mask used to filter the DTCs. Default value is 0xAE
.
Return Value:
Returns an integer representing the count of DTCs that match the given mask. -1
if an error occured.
Usage Example | |
---|---|
Function: GetDtc
Description:
Retrieves the Diagnostic Trouble Codes (DTCs) raw data based on the provided mask.
Parameters:
- mask
: The mask used to filter the DTCs. Default value is 0xAE
.
Return Value:
Returns a byte array containing the DTCs raw data that match the given mask.
Usage Example | |
---|---|
Function: GetDtcList
Description:
Processes the provided data to generate a list of DTC codes and their corresponding statuses. Use GetDtc()
to read raw DTC data.
Parameters:
- data
: Byte array containing the raw DTC data.
Return Value:
Returns an array of tuples, where each tuple consists of a DTC code and its status.
Usage Example | |
---|---|
Function: GetDtcDescription
Description:
Retrieves a detailed description of a Diagnostic Trouble Code based on ECU address and DTC code.
Parameters:
- address
: The address of the ECU.
- code
: The code of the DTC.
Return Value:
Returns a tuple containing the SAE code, ODX text, and a descriptive text for the given DTC.