Comments (8)
If you already have a connection to your car, you can get the DTCs by sending the appropriate PIDs and parsing the response.
LTOBD2PID_PERMANENT_DTC_0A
LTOBD2PID_PENDING_DTC_07
LTOBD2PID_STORED_DTC_03
The exact command depends on the kind of DTC you want to read, as there may be some only relevant to a freeze frame, or some are stored permanently due to repeated errors.
Either way, if there are DTC reported, the response will have an array troubleCodes
which contains LTOBD2DTC
. These have a code
and an explanation
.
If the explanation is empty, it's probably a manufacturer-defined code: These are usually explained in your car maker's service/workshop manual.
from ltsupportautomotive.
Is there also the possibility to delete the error codes?
from ltsupportautomotive.
Yes, sending LTOBD2PID_CLEAR_STORED_DTC_04
will reset the MIL and erase the stored DTCs.
from ltsupportautomotive.
Hello @mickeyl , @thdankert
I am getting incorrect DTC in my code using this Library.
From Other App i am getting "P0441","P0442","P0446" and in my app using LTSupportAutomotive i am getting "C0104" "C0204"
Please help it's urgent.
from ltsupportautomotive.
@mukulpandey57 Is your issue related to this one? The OP asked for general information on using this library to read DTCs - he probably moved on, as this issue has not seen any activity in over a year...
Regarding your question: which DTCs does the other app read, and which ones did you read using this library? There are 3 different PIDs for reading them:
LTOBD2PID_PERMANENT_DTC_0A
LTOBD2PID_PENDING_DTC_07
LTOBD2PID_STORED_DTC_03
from ltsupportautomotive.
@thdankert , Thanks for your quick response. I was using all three PID ($03, $07,$0A) and only getting the C Codes and other wired scanner and apps getting the P Codes. Please assist.
Seems like something related to this #31
from ltsupportautomotive.
I'm afraid I am unable to assist you there. I don't know anything about your car, the code you wrote, and how the other applications read DTCs.
from ltsupportautomotive.
How to clear the DTC code ? "LTOBD2PID_CLEAR_STORED_DTC_04" any more explanation to this?
from ltsupportautomotive.
Related Issues (20)
- Doubt about how to implement new CAN Codes HOT 1
- Reading DTCs HOT 2
- Not able to read all DTC if vehicle having multiple ECU HOT 1
- Swift support for LTSupportAutomotive 1.1 HOT 3
- Connection Issue HOT 1
- UDS Support (cancelled) HOT 4
- Transmitting DTCs using Swift HOT 1
- Is it possible to get PID commands return data faster? HOT 15
- Adapter State Initializing HOT 1
- LELink Bluetooth Low Energy - stuck on "OBD2AdapterStateInitializing" state HOT 4
- Crash when adapter state changed HOT 2
- After Disconnect it didnt connect stuck on "Initializing" state.
- How to set IP address to connect OBD ELM327 through Wifi? HOT 2
- Any ideas about simulating DTC functions?
- got "Invalid or short line '83' found"?
- How can I get Trouble Code and Pending Code like android in iOS Swift ?
- Documentation refers to Swift-UDS which cannot be found on GitHub HOT 1
- Bug in LTOBD2ProtocolISO15765_4 HOT 1
- Crash on XCode 14.3, init is unavailable!
- How to read odometer from OBD2? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ltsupportautomotive.