collin80 / ESP32RET

CAN Reverse engineering tool for ESP32 based boards (specifically EVTV ESP32Due)
MIT License
178 stars 52 forks source link

ESP32RET communications problems #18

Open bryaninkster opened 1 year ago

bryaninkster commented 1 year ago

I have recently moved from using the DUE to ESP32 and have had problems with the fast 1,000,000 baud rate which is used on ESP32RET. I have solved my difficulties and the information might save others some head scratching. Using ESP32 modules from various online sources, I managed to program the code ok but it failed to connect to Savvycan and showed a lot of errors in the Arduino serial terminal. I basically got garbage on the display. The problem turned out to be the CP2102 USB/serial adapter used on all my units and indeed the majority of ebay units. These did not produce the correct baud rate when set to 1M baud. They in fact produce about 900,000 Kbaud! No good! I shopped around for an ESP32 which had a CH340G USB/serial chip and that worked perfectly. So beware which units you run this code on.

LoloTheJeeper commented 1 year ago

Thank you SO much @bryaninkster. I've been struggling with this issue for a while now. I changed the serial speed in esp32ret.ino to something lower than 1.000.000 bauds and it started working instantly :) Thank you SO much @collin80 for your great work. It's really impressive !