-
Notifications
You must be signed in to change notification settings - Fork 125
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
help on code conversion from ELMduino 2.x to 3.x #263
Comments
Can you post the entire sketch plus the debug output? Also note that the examples have been updated along with the codebase to help the 2.x to 3.x conversion |
I don't have debug yet, I was dumping the results on screen only. I didn't manage to run any ELM emulator successfully :/ I just thought there is some major flaw in my understanding of above code... |
the sketch is pretty much modified version of what we discussed years ago :) Will try and get the dump tomorrow... I guess I may found what the issue is (without connecting to real OBD, but running debugs) #4 (comment) but in 3.x version and above code I can see it's converted to 2230391 (1 at the end...) : |
debug from ESP module : |
I think this is correct output of debug piece of code reading and displaying values below (first I assigned values from -9 to -5) float tempRPM = myELM327.rpm(); float tempKm = myELM327.processPID(34, 12345, 1, 1); float tempLitersLeft = myELM327.processPID(34, 4906, 1, 1); etc etc. |
I think I may know what's happening there - the number of payload characters is being miscalculated in the response. In previous examples of custom PID queries, the ECU would add extra padding in the response, but yours is not doing that so then the number of expected payload chars is incorrect and you're getting the warning message and 0 value. I've assigned the issue to myself and I'll work on a fix. Edit: I've spent some time investigating and what I thought might be happening is not the case. I still don't understand why you see the warning message. Also, if you believe you have discovered a problem with ELMulator, please file an issue here. thx |
is there any way I can help ? |
Please post the entire sketch (in tags!) you're running so that we can better make sense of what's happening in the debug log |
with removed unneccessary display code..
|
Since the 3.X version of the code is non-blocking, you can't call the queries for multiple PIDs one after another before ensuring you've either parsed a response or errored one PID at a time (if that makes any sense). Go back to the updated examples to see how to properly query multiple PIDs with the 3.X code. |
Hi folks
For long time I used successfuly the ELMduino 2.x code, with custom PIDs (suggested by PowerBroker2) as below :
I tried to understand and convert the same to ELMduino 3.x but the results are gibberish (not the same as on ELMduino 2.x)
my approach
Can someone help me on this ?
I'd like to test new features like DTC from 3.x...
The text was updated successfully, but these errors were encountered: