Skip to content
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

How to implement custom PIDs? #278

Open
jumpjack opened this issue Feb 27, 2025 · 4 comments
Open

How to implement custom PIDs? #278

jumpjack opened this issue Feb 27, 2025 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@jumpjack
Copy link

Given these data:

Name PID Expression Unit Init
Soc 229002 [B4:B5] * 0.01 % ATSP7;ATSHDADBF1;ATFCSH18DADBF1;ATFCSM1;ATCRA18DAF1DB;

How do I implement in the source code the call to PID 229002? I.E. how do I get Service and PID from number 229002?

@jumpjack jumpjack added the question Further information is requested label Feb 27, 2025
@jimwhitelaw
Copy link
Collaborator

Have a look at this example sketch. ELMduino will parse the PID for you. (FYI, it's Service:0x22 and PID 0x9002 above).
https://github.com/PowerBroker2/ELMduino/blob/master/examples/ESP32_CustomHeader/ESP32_CustomHeader.ino

@Maximize0987
Copy link

Maximize0987 commented Mar 4, 2025

Have a look at this example sketch. ELMduino will parse the PID for you. (FYI, it's Service:0x22 and PID 0x9002 above). https://github.com/PowerBroker2/ELMduino/blob/master/examples/ESP32_CustomHeader/ESP32_CustomHeader.ino

So does jumpjack change myELM327.sendCommand("2204FE"); to myELM327.sendCommand("229002");

to get his desired input, then apply his needed math to get his desired value?

asking because I am looking for a ford transmission temp that is 221674 Thanks

@jimwhitelaw
Copy link
Collaborator

@Maximize0987, yes that’s correct. In your case you would call

myELM327.sendCommand("221674”);

@Maximize0987
Copy link

Maximize0987 commented Mar 5, 2025

any help on formulas? I am hoping to include these in a sketch would the call you stated return a and b?

ModeAndPID / Name / Min / Max Unit / Formula / Header

221674 / Trans Fluid Temp / 0 / 250 F / ((A*256)+B)/8 / 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants