Trouble reading Motec ECU Can messages #12208
acca84
announced in
Announcements
Replies: 1 comment
|
Hi @acca84 Could you please specify the version more clearly? Thanks |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Board
ESP32 s2 mini
Device Description
ESP32-S2-mini <-> CJMCU230 transceiver <-> Motec ECU <-> Motec USB to CAN module
Hardware Configuration
CAN H and CAN L connected to CJMCU230
CJMCU and ESP32 S2 mini as below :
RX_PIN <-> GPIO6
TX_PIN <-> GPIO7
GND <-> GND
3V3 <-> 3V3
Version
latest stable Release (if not listed below)
Type
Question
IDE Name
Arduino IDE
Operating System
Windows 11
Flash frequency
NC
PSRAM enabled
yes
Upload speed
NC
Description
Hello,
I'm trying to use esp32 and CJMCU-230 can transceiver to read data from a Motec car ECU
the ECU is connected to Motec USB to CAN module and to CJMCU-230 through RX and TX lines.
I'm using twisted pairs, the bus is around 50cm long and each device has a termination resistor
Everything works ok with the "TWAI receive" sketch below.
But sometimes, i have CAN bus errors (coming from Spark coil EMI, whereas my setup is in a metal box connected to ESP32 ground)
When those errors occurs, i have the following message in the Serial console, then nothing more :
For recovering CAN BUS reading, i have to POWER OFF then ON my Motec ECU.
The weird thing is that the CANBUS to USB module continues to receive data without the need of this restart (but maybe it works on another CAN channel).
How can i recover my program without restarting ECU please ?
And maybe someone have advices to avoid CAN errors ?
Sorry for my poor English
Thanks
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
All reactions