acan-esp32 icon indicating copy to clipboard operation
acan-esp32 copied to clipboard

Auto reinitialize can bus speed on the fly

Open Gcopper22 opened this issue 2 years ago • 19 comments

I have a standalone automotive ecu with obd2 can bus protocol and i can change the baud rate speeds on the fly.In the other hand i use an esp32 with built in can bus controller to read the PID (RPM,VSS...)When i change the can bus speed on the ecu , i have an option to reinitialize the can bus speed on eps32 so it can reconnect. I just cycle in every 1sec the acan.begin with the additional can bus speeds (128,250,500,1000) and pid request transmit. The problem is that it cannot reconnect to the bus although i get message "Configuration ESP32 OK!" . I think its stops transmitting the buffer. If i use acan 2515 with external controller (MCP 2515) the problem disappear and succeffully connected to the bus.The mc2515 was without interrupts using 2515.poll();

Maybe the transmit buffer is over the limit? Please can you help me?

Gcopper22 avatar Jul 19 '22 23:07 Gcopper22