Comments (7)
@brendanwhitfield I might be able to help, as I have a car that currently has 4 DTCs. How do I query for the actual DTC codes?
from python-obd.
I've got a branch called dtc
going. Either fetch
or download it, and install pyserial
if you don't have it already. Run this snippet from the repo root to take it for a test drive:
import obd
obd.debug.console = True
o = obd.OBD()
print(o.query_DTC())
Please send me the debug output (the last line should be a list of error codes). There's a lot of development code in here, so if it crashes and burns, the debug should tell me everything I need to know.
Let me know how it goes!
from python-obd.
Darn, I wish I had seen the dtc branch before I spent a few hours getting this to work. I will run it again tomorrow. I see you made a lot of improvements.
This is a great refactor. Thanks for doing it.
from python-obd.
>>> conn.query_DTC()
[obd] Sending command: 0101: Status since DTCs cleared
[obd] write: '0101\r\n'
[obd] read: '48 6B 10 41 01 84 07 6D 00 FD \r\r'
[obd] Sending command: 03: Get DTCs
[obd] write: '03\r\n'
[obd] read: '48 6B 10 43 03 00 03 02 03 03 14 \r48 6B 10 43 03 04 00 00 00 00 0D \r\r'
[obd] Recieved multi-frame response. Can't parse those yet
[obd] Failed to retrieve DTCs
I do have two DTCs that are currently being thrown.
from python-obd.
Yeah, I was afraid of that. Protocol abstraction system isn't 100% yet. Apparently, DTCs overflow into more frames (per query), and you had 1 more than it could handle. Now that I have the raw tx/rx data though, I can do tests over here.
Thank you! This helps a lot
from python-obd.
Alright, master (856b5de) should be good to go. I tried it on your debug output and it parsed just fine.
from python-obd.
This decoder now handles multiple DTC messages from all ECU's. Slated for 0.5.0 release.
from python-obd.
Related Issues (20)
- Python 3.11 and collections HOT 18
- Clear specific Code HOT 1
- Dropping frame in multi-frame response not marked as FF or CF HOT 2
- Test of Mode-6 MIDS
- Some classes in the collections library are deprecated HOT 2
- Passing Through Raw Vehicle Response Info In Custom Commands HOT 1
- OBD Not Connecting MacOS
- b'0100': Supported PIDs [01-20] did not receive any acceptable messages HOT 3
- BUS INIT: STOPPED while trying to connect on Raspberry Pi HOT 6
- Add ID value to all STATUS-type messages
- Extended PIDs? HOT 2
- how to get the milage? HOT 2
- Value Returned Only on First Request - Then All Requests Lead to None.
- new 0.7.2 does not install due to pint version bug
- reading Odometer values HOT 5
- PID 34: 02 Sensor 1 WR Lambda Current - No Air-Fuel Equivalence
- Installing Packages in terminal HOT 1
- ATH1 did not return 'OK', or echoing is still ON
- Library not working with Bluetooth OBDs?
- Vehicle automation question - workflow idea HOT 4
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 python-obd.