-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PIDS #51
Comments
Not all ECU's support all PID's, you can query your ECU to determine what PIDs it supports. See the supportedPID example. |
ok i got the supported pid example up and running but yet im still having trouble understanding. i was able to connect initally but right after is spit out data all it wants to do is loop now and no success? also the data display is 0x1 0x2 0x3 so on follows by a 1 or a 0. im assuming this states whats avalible? after the first connection it loops and will not connect agian unless i turn off the ecu and turn it back on, when cycled the data output is the same and previous connection. im working on a 04 allroad me7.1.1 if that helps |
ok i got the supported pid example up and running but yet im still having trouble understanding. i was able to connect initally but right after is spit out data all it wants to do is loop now and no success? also the data display is 0x1 0x2 0x3 so on follows by a 1 or a 0. im assuming this states whats avalible? after the first connection it loops and will not connect agian unless i turn off the ecu and turn it back on, when cycled the data output is the same and previous connection. im working on a 04 allroad me7.1.1 if that helps
Edit by Ivor; put the output in triple backticks (```) to get monospace formatting. |
Yep, the 0 denotes not available, the 1 denotes available. This section on PID 01 on wikipedia is most helpful, it describes how to interpret the response to PID 00 (the So now you can look in the show current data section of wikipedia to see what data you can retrieve, and how to interpret it. For example, your car reports |
Ok so I do understand all of that I guess the biggest question now at the
moment is why can I not see anything past 20 let's say such as 0x42 control
module voltage or other pids?
…On Tue, Dec 12, 2023, 5:08 PM Ivor Wanders ***@***.***> wrote:
also the data display is 0x1 0x2 0x3 so on follows by a 1 or a 0. im
assuming this states whats avalible?
Yep, the 0 denotes not available, the 1 denotes available. This section
on PID 01
<https://en.wikipedia.org/wiki/OBD-II_PIDs#Service_01_PID_00_-_Show_PIDs_supported>
on wikipedia is most helpful, it describes how to interpret the response to
PID 00 (the
0xBF9FB110 you got).
So now you can look in the show current data
<https://en.wikipedia.org/wiki/OBD-II_PIDs#Service_01> section of
wikipedia to see what data you can retrieve, and how to interpret it. For
example, your car reports 0x10: 1, so PID 0x10 (first column in the
table) shows that you can retrieve the mass air flow rate. The other
columns describe how to interpret that data.
—
Reply to this email directly, view it on GitHub
<#51 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASPDSGF2F37XJXGGFOXXTDDYJDPYRAVCNFSM6AAAAABAQ4OR46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJSHE2TIMZQGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
That |
When calling display.println(getCurrentPID(0x10, 2)); (address, byte
length) no matter available or not the return value displayed is 1 is there
a way to call the actual PID that I'm not understanding?
Also on a nother ECU Im trying to connect to is the med9.1 2007 but I'm
unable to initialize a connection with that ECU though it is canbus if I
remember correctly the Kline is the way to read dtc and clear them. I know
that parts a bit off subject but yet I will need to figure out the Kline
connection as well so if you have pointers on that that would be awesome!
…On Tue, Dec 12, 2023, 6:41 PM Ivor Wanders ***@***.***> wrote:
That show current data section on wikipedia is basically the PID
description table, if you look there of 0x20, you'll see that PID 0x20
has the description PIDs supported [$21 - $40], given that PID 0x00
states that 0x20 is not supported, there's no PID's available on your ECU
beyond the first block of 0x00-0x20.
—
Reply to this email directly, view it on GitHub
<#51 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASPDSGAL4APYKTFSX2M4T7DYJD2VLAVCNFSM6AAAAABAQ4OR46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJTGA4DKMRUHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yes... please consider looking at examples a bit. The Getting a PID is always a two step procedure, first you request it from the ECU, then you read the value from the buffer. Like the example clearly shows: OBD9141/examples/reader/reader.ino Lines 38 to 42 in ff2d795
This library cannot do anything with a CAN bus, you'll need something else than this library for that. |
Hey there ive been trying to get the pid call to work with no luck. im currectly connected but when calling ny other address then the 3that are in the example i get nothing displaying. like nothing at all the whole line is blan. is there a trick im missing or do i need to some how add to the library in order to read the pid i request? if so mind hinting off how to do so please
The text was updated successfully, but these errors were encountered: