The OBDII.DTC is a .NET standard library that provides a collection of generic (non-manufacturer specific) categorized On-board Diagnostics II (OBDII) Diagnostic Trouble Codes (DTCs) along with code descriptions. DTCs are categorised as Powertrain (P codes), Chassis (C codes), Body (B codes), or Network Communication (U codes). Each code has a hex value based on its category as defined in ISO1 and SAE2 standards, Powertrain (0x0000 - 0x3FFF), Chassis (0x4000 - 0x7FFF), Body (0x8000 - 0xBFFF), Network Communication (0xC000 - 0xFFFF).
- Enumerated DTCs with thousands of codes.
- Extension methods
DTC.GetDescription()andDTC.GetCategory()to fetch the description and the category of a particular DTC.
Install this package from nuget:
dotnet add package OBDII.DTCAfter installing the package, the DTC enum can be used to reference the trouble codes. For example:
DTC code = DTC.P0100;
Console.WriteLine(code.GetDescription()); // Outputs: "Mass or Volume Air Flow Sensor A Circuit Range/Performance"
Console.WriteLine(code.GetCategory()); // Outputs: "Powertrain"If any codes are incorrect or missing, contributions are greatly appreciated to help improve this library.
OBDII.DTC is released under the MIT License.
For any questions or issues, please create an issue on the GitHub page.