collin80 / ESP32RET

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

ESP32 dev board, connecting to savvyCAN but not giving frames #16

Open Landennelson06 opened 1 year ago

Landennelson06 commented 1 year ago

so I’m using a ESP32 dev board, using the AP mode on the esp to connect to savvyCAN, and savvyCAN will connect and only has one bus (as expected), but I receive no CAN frames and it the only thing in the device console is write to serial -> f1 9 Got data from serial. Len = 4 f1 09 de ad over and over again. Any ideas?

embenix commented 1 year ago

I had the same problem for a long time and the only solution I could find was to use A0 system type. settings.systemType = 0; This fixed my problem and I started receive the messages on SavvyCAN software. But now I have stuck to a different problem. SavvyCAN software stops updating the frames after some time. Time is not fixed and it can stop at any point. However, the console stays getting new messages over the serial port.

DNThomas commented 8 months ago

Had the exact same issue. Just hacked up a bare ESP32 dev module with a transceiver IC and could connect with the same repeating "Got data from serial. Len = 4 f1 09 de ad" messages.

Looking at embenix's solution, all I could see is that currently, the system type 1 for the ESP doesn't explicitly set the CAN pins as the A0 version does.

I just added this line to the bottom of the ESP settings and it happily started loggin the bus:

    CAN0.setCANPins(GPIO_NUM_4, GPIO_NUM_5);
zygimantasmik commented 8 months ago

Hello @DNThomas, I have been facing probably the same issue as @Landennelson06 and described it here https://github.com/collin80/ESP32RET/issues/26#issuecomment-1877309749

I am using systemType == 0 and the pins assignments are defined CAN0.setCANPins(GPIO_NUM_4, GPIO_NUM_5); but only thing I am getting is write to serial -> f1 9 Got data from serial. Len = 4 f1 09 de ad over and over again

I don't know if it is related issue but had problems when using ESP32 boards and CAN libraries that the CAN speed was half of set one.

Board I am using is image