Need help reading GMLAN (SW-CAN 33.3kbps)
Posted: Mon Jul 17, 2023 2:15 pm
Hello,
I've been able to read the MS-CAN (95kbps) in my GM car using the next hardware combinations powered from a laptop's USB port:
-ESP32 devkitc V4 module + SN65HVD230 transceiver
-Arduino Uno + CAN board with controller MCP2515 (+TJA1050 transceiver)
I was also successful reading the LS-CAN (33.3kbps) with the Arduino Uno, by connecting CAN_L to ground and CAN_H to the single-wire bus.
However, when using the ESP32, no data is received, and what's worse, when CAN_L is connected to ground, the speedometer and headunit display (GID screen) get turned off! Why? Edit: I found out disconnecting the TX connection between uC and transceiver stops the problem.
I'm using Sandeep Mistry's Arduino-CAN library, but since it's unmaintained, I have mister0wl's fork which has support for the newer ESP32 chips, that allow configuring lower baud rates (<50kbps)
I was thinking about using the MCP2515 + SN65HVD230, but I'm not sure there are libraries out there that accept this combo along with low baud rates.
Has anyone been lucky doing this with the ESP32?
EDIT: I would like to use the TWAI driver and no 3rd party libraries. Can somebody help me setup the driver for this custom baudrate?
Thanks
I've been able to read the MS-CAN (95kbps) in my GM car using the next hardware combinations powered from a laptop's USB port:
-ESP32 devkitc V4 module + SN65HVD230 transceiver
-Arduino Uno + CAN board with controller MCP2515 (+TJA1050 transceiver)
I was also successful reading the LS-CAN (33.3kbps) with the Arduino Uno, by connecting CAN_L to ground and CAN_H to the single-wire bus.
However, when using the ESP32, no data is received, and what's worse, when CAN_L is connected to ground, the speedometer and headunit display (GID screen) get turned off! Why? Edit: I found out disconnecting the TX connection between uC and transceiver stops the problem.
I'm using Sandeep Mistry's Arduino-CAN library, but since it's unmaintained, I have mister0wl's fork which has support for the newer ESP32 chips, that allow configuring lower baud rates (<50kbps)
I was thinking about using the MCP2515 + SN65HVD230, but I'm not sure there are libraries out there that accept this combo along with low baud rates.
Has anyone been lucky doing this with the ESP32?
EDIT: I would like to use the TWAI driver and no 3rd party libraries. Can somebody help me setup the driver for this custom baudrate?
Thanks