Comments (10)
Hi!
Check the data that you are getting.
Print the bytes one to one and try to do the calculations by hand.
It could be also that your OBD2 dongle is not sending the data.
I'm not totally sure if B8 PIDs are different from B7 but at least the standard one must be the same.
BR,
yango
from dpf.
After few tests:
- oilTemp is not supported in my car
- getSMC() function retrieve correct value (checked with VCDS), but after call this funtion it's completly stop refreshing data.
from dpf.
Ok, I made a little debuging
getRpm();
getSpeed();
getBattery();
getTurboPressure();
getEngineLoad();
getEGT();
getCoolant();
works perfect and give reliable data until I call getSMC();
SEND_BLE("ATSH7E0\r"); cause that I got reliable data for DPF, but completly random for these above.
from dpf.
Make sure you only send ATSH7E0 once. This sets the ELM327 to use 7bits CAN messages, if I'm not wrong.
And remember to reset all stored values in ELM327.
from dpf.
I'm using initODB() from your code - so ATD is sent.
And funny thing - you send ATSH7E0 twice ;)
https://github.com/yangosoft/dpf/blob/master/src/dpf.cpp#L275
https://github.com/yangosoft/dpf/blob/master/src/dpf.cpp#L487
from dpf.
My source code:
https://github.com/Dropsik/dpf/blob/master/arduino/obd2/obd2.ino
from dpf.
@Dropsik did you manage to get fully working?
from dpf.
Unfortunately no.
I assume, that my elm327 adapter is ok (works with android app and show values). But I have no idea how to resolve problem
from dpf.
@yangosoft If you have any ideas or maybe the can try my code I'll be appreciated help.
from dpf.
Sadly I sold my nice car a few months ago and I don't have access to a CAGA engine.
Try to debug the Bluetooh traffic between an app and the device: https://stackoverflow.com/questions/23877761/sniffing-logging-your-own-android-bluetooth-traffic this should give you a hint about the correct sequence of commands.
from dpf.
Related Issues (1)
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 dpf.