Comments (5)
CarDash interfaces via the ELM327 AT interface. You can find the commands here: https://www.sparkfun.com/datasheets/Widgets/ELM327_AT_Commands.pdf
The product that I got works perfectly with CarDash. I can't vouch for anything else, though technically anything with an ELM327 should be workable.
All the communication with the device happens here: https://github.com/jeffmcfadden/CarDash/blob/master/CarDash/FAOBD2Communicator.m
Cheers,
-- Jeff
from cardash.
Hello Jeff,
Thanks for your response.
PDF in first URL is yet not clear as of now what is the use of it in your source code. So can you elaborate more on it?
I have debugged your code and in FAOBD2Communicator.m i have found below code in which we get 14 digit data bytes. So we need to convert that NSData bytes to fetch PID?
NSString *message = [NSString stringWithFormat:@"01%@1\r", sensorPID];
NSData *data = [[NSData alloc] initWithData:[message dataUsingEncoding:NSASCIIStringEncoding]];
[self.outputStream write:[data bytes] maxLength:[data length]];
As i need to have a actual Diagnostic Code at last and for that i am also referring one pdf: https://www.elmelectronics.com/wp-content/uploads/2016/07//ELM323DS.pdf
Does the pdf make as sense to get Diagnostic Code from car?
So now i am stuck over here can you help me out for my above issue?
Regards,
Jiten
from cardash.
If you want to change which PIDs the code is requesting, then go to line 67: https://github.com/jeffmcfadden/CarDash/blob/master/CarDash/FAOBD2Communicator.m#L67
Change that line to be just the PIDs you want. You'll have to know what the data format is of the PIDs you're asking for so that you can parse the raw data that comes back from the unit. Parsing is done here: https://github.com/jeffmcfadden/CarDash/blob/master/CarDash/FAOBD2Communicator.m#L247
Common PIDs can be found here: https://en.wikipedia.org/wiki/OBD-II_PIDs
If all you want to do is read trouble codes, then CarDash is massive overkill. Just use Terminal.app and telnet
to the IP/Port of your adapter and send the raw AT codes, then decode them by hand.
Or get one of the many OBD2 apps on the app store and get the codes that way.
-- Jeff
from cardash.
Hello Jeff,
Thanks for your feedback.
Today I have tested Car Doctor App which i have downloaded from app store and connect it with ELM-327 Obd-II device. I worked properly by providing real time data.
Then i tried same thing with your code and i got some data but they were not correct and also without connecting your app with Obd device it still provides some sort of data. So can you let me know how is it possible that i can get data without connecting your app with Obd-II device.
Let me know your feedback.
Regards,
Jiten
from cardash.
Maybe you were getting cached data, or you had it in demo mode, or you were connected when you didn't think you were?
CarDash is really a hobby-level project at best, so I can't say it's reliable, sorry.
from cardash.
Related Issues (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 cardash.