(2018+) TCU Decoding and Emulating

My Nissan Leaf Forum

Help Support My Nissan Leaf Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

aless1616

New member
Joined
Jul 27, 2021
Messages
4
Hi,
I recently started working on the TCU of my Leaf (2020 62kWh) to decode the CAN messages it is sending on the EV-CAN. For now what I undestood is that it is sending on address 0x56e a 4 byte message containing various types of data. I am also trying to decode this message but I don't have a lot of experience with that. I will post the messages I saw in the bus.
For now everything went ok, I am able to receive all the messages but the problems start when I start to emulate those messages trough an Arduino + MCP2515 + TJA1050. When I send back the same sequence that I recorded from the TCU I only get the car to "activate" for a few seconds but nothing else happens. For example I recorded the messages that make the lights flash but when I replicate them they don't do anything.
Does anyone have any clue about what is happening here or is willing to help me understand?

Received codes on 0x56e:
- Flash lights:
About 10 times
Code:
0x46 0x08 0x12 0xf0
Then 3 times
Code:
0x46 0x09 0x12 0x10
(Flash lights)
Then many times
Code:
0x46 0x08 0x12 0x00

- Flash lights and horn:
About 10 times
Code:
0x46 0x08 0x12 0xf0
Then 3 times
Code:
0x46 0x0b 0x12 0x10
(Flash lights and horn)
Then many times
Code:
0x46 0x08 0x12 0x00

- HVAC 16°C ON and Then OFF
About 10 times
Code:
0x46 0x08 0x12 0xf0
Then many times
Code:
0x4e 0x08 0x00 0x00
(Turn on at 16°C)
Then many times
Code:
0x46 0x08 0x00 0x00
Then many times
Code:
0x56 0x08 0x12 0x00
(Turn off)
Then many times
Code:
0x46 0x08 0x12 0x00

- HVAC 21°C ON and Then OFF
About 10 times
Code:
0x46 0x08 0x12 0xf0
Then many times
Code:
0x4e 0x08 0x0a 0x00
(Turn on at 21°C)
Then many times
Code:
0x46 0x08 0x0a 0x00
Then many times
Code:
0x56 0x08 0x12 0x00
(Turn off)
Then many times
Code:
0x46 0x08 0x12 0x00

- HVAC 17°C ON and Then OFF
About 10 times
Code:
0x46 0x08 0x12 0xf0
Then many times
Code:
0x4e 0x08 0x02 0x00
(Turn on at 17°C)
Then many times
Code:
0x46 0x08 0x02 0x00
Then many times
Code:
0x56 0x08 0x12 0x00
(Turn off)
Then many times
Code:
0x46 0x08 0x12 0x00

From what I understand the first byte is kind of a command for the HVAC and a status for other things.
The second bytes represents what to flash by setting specific bits
The third byte is the (HVAC temperature / 2) + 16 in °C but I don't know why it goes back to 0x12 then...
The fourth byte is the command that says to start flashing what is declared on byte two but I'm not really sure about this one

I hope this thread will also be helpful to OVMS to implement the Leaf 2018+ models in their system.
THANK YOU ALL IN ADVANCE FOR YOUR HELP.
 
Have you unplugged the TCU while testing? At least on the older Leafs the TCU would send ”idle” messages which override anything you send.
 
I tried both ways: with TCU unplugged and with TCU plugged. Nothing changes.
Actually the TCU is NOT sending anything while the car is turned off unless I trigger it via the NissanConnect app.
 
Back
Top