Switch headers for each PID #7
Replies: 1 comment 4 replies
-
thank you for your case design. |
Beta Was this translation helpful? Give feedback.
-
thank you for your case design. |
Beta Was this translation helpful? Give feedback.
-
I have a 2016 Subaru Forester XT with a CVT transmission. It is interesting to have some CVT information on the ESP32 OBDII Gauge, but the PIDs from the CVT come from the transmission control unit (TCU) while every other PID comes from the engine control unit (ECU).
It is possible to switch the address in which the ELM327 looks for the PIDs using the command AT SH = Set Header. The default header for every car is 7E0, which is the ECU. So if you just send any PID without specifying a header, 7E0 (ECU) will be the one answering. To get PIDs from the TCU, all you need to do is send the command AT SH 7E1 and then ELM327 will get pids from there, but it no longer talks to the ECU after that.
In order to get PIDs from ecu again, you need to send the command AT SH 7E0.
So I have already managed to get PIDs from both the TCU and ECU, but not at the sime time, and thats what i need to do in order to have all PIDs i want in the ESP32 gauge.
If anyone can help me modifying the code in order to do so, it will be greatly appreciated.
Also, I've developed a 3d printed case that attachs to subarus AC vent, i'll make them available for everyone.
Case Esp32.zip
Beta Was this translation helpful? Give feedback.
All reactions