-
Notifications
You must be signed in to change notification settings - Fork 133
Reading more values #208
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
Comments
That loop isn’t going to work. Have a look at the multiple pids example program. You need to manage the query state to only query one value at a time (repeatedly) until you get a result, then move to the next one. |
so this "should" work?
|
@Janek4, yes that looks like it "should" work. Give it a try! |
Am I missing something? How do i connect it to elm? |
This bit of code here is handling the connection.
If it's not working, try:
|
well now it works fine, but in serial monitor is this message "ASSERT_WARN(1 8), in lc_task.c at line 1408" code:
|
Your ESP32 may be faulty: #43 (comment) This may also provide some background (I haven't read the comments in detail, though): espressif/arduino-esp32#6193 |
well...thanks a lot :) |
@Janek4, I will just add a bit of info about what I see happening. The ELM327 datasheet (p. 88) says that "STOPPED" is returned if any OBD operation is interrupted by a received character. That might be a consequence of whatever is triggering the ASSERT_WARN message. Does your program continue to operate after seeing the ASSERT_WARN message? Also, I'm not sure if it's relevant, but your debug output shows a battery voltage query, so I will mention it: The battery voltage query/response is different to other PID requests in that the ELM does not get the value from the ECU. Instead, the ELM chip reads the voltage at its own power input pin (from the OBDII plug) and returns that. That can be important for 2 reasons depending on how you are is using that value:
|
@jimwhitelaw yes, it continues after that message. And no, it's not relevant to me |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I need to read and print more values like speed, rpms, traveled distance, bat. voltage, fuel consumption, etc....
I'm beginner in arduino and ESP.
So I modified the code and naively thought that maybe it could work.
I have ESP32-DevKitC and ELM327 v1.5
The text was updated successfully, but these errors were encountered: