arduino-OBD2
arduino-OBD2 copied to clipboard
CANReceiver example works but OBD RMP and other codes are not working
Hi
My car is Suzuki produced in 2011.
The development board uses esp32-wroom-32, and the can transceiver uses vp230.
Some data can be obtained using the CANReceiver program, but all the other sample code does not work. Later, I started to try the OBD2 library, and all the sample programs stopped at OBD2.Begin(), specifically: the serial port output failed several times, and then stopped. If the vehicle is not connected, it always outputs failed. I tried all kinds of possibilities in a few days, but still only the canreceiver program can get some data:
Now I have changed a can transceiver, and now I use tja1050, which is 3.3V compatible. However, the phenomenon is still similar to that before. For this reason, I tested the voltages of canh and canl, as shown in the figure (it seems that the normal range is - > canh: 3.54v, canl: 1.10v). At the same time, another esp32 has been replaced, but the problem is still as above.
on file ODB2.cpp change the id 0x7df to 0x7e0 and try