sandeepmistry / arduino-OBD2

An Arduino library for reading OBD-II data from your car over CAN bus
MIT License
455 stars 103 forks source link

ESP32 stucks on OBD2.begin() #27

Open carlosmellado opened 6 months ago

carlosmellado commented 6 months ago

I'm trying to use this library with an MCP2515 and an ESP32. Code compiles properly but when calling to OBD2.begin(); the process stucks and I don't get any response.

Does anyone knows how to solve this?

Thanks!

carlosmellado commented 6 months ago

Seems like the problem is on the CAN library when using the CAN.extendedPacket On the PR https://github.com/sandeepmistry/arduino-CAN/pull/117 seems like it's fixed but still not working on my side.

carlosmellado commented 5 months ago

Okay, seems like this library only works with arduino + MCP2515 or ESP32 + SN65HVD230, and I was trying with ESP32 + MCP2515. Now I tried with arduino mega + MCP2515 and it worked fine but I'm not able to make it work with an ESP32 + SN65HVD230 even using the same code. Now it's not stuck on OBD2.begin() but this function is returning always false.

Can any of you help me in make it work on the ESP32 please...?

Thanks!