Home

Awesome

Nissan LEAF CAN bus messages (in .DBC format!)

This is an evolution of the spreadsheet found at https://docs.google.com/spreadsheets/d/1EHa4R85BttuY4JZ-EnssH4YZddpsDVu6rUFm0P7ouwg/edit#gid=1

Proper CAN database files are also found in this repository along with the original excel spreadsheet. The .dbc files are easier to use when working with CAN messages. Please note that there are major differences between ZE0,AZEO and ZE1 LEAFs

Please fork the repo and make changes in your repo before creating a pullrequest, or message me if you have some CAN findings to share.

LEAF generations explained

How to browse the database?

Download 'Kvaser Database Editor 3' https://www.kvaser.com/download/ With this tool you can open the .DBC files and explore the frames and the position of the data inside the frame. alt text

DBC files are also extremely useful for reverse engineering, if you playback a CAN log these files can be used directly for translating the data.

Some notes about CRC/CSUM/MPRUN

Nissan places a few error checking methods into the communication. This video explains the functions of these: IMAGE ALT TEXT HERE

What about active CAN-polling?

Actively asking the different control units for info is another thing. The database files here won't help you (those are for passive listening), but here is a list of the different control units query and response IDs. Please note that the availability of the control modules varies depending on model year (Only ZE0 has 'Shift' module for instance)

Control UnitID QueryID Response
Consult3+0x7D2
VCM0x7970x79A
BCM0x7450x765
ABS0x7400x760
LBC(BMS)0x79B0x7BB
INVERTER/MC0x7840x78C
M&A (Meter)0x7430x763
HVAC0x7440x764
BRAKE0x70E0x70F
VSP0x73F0x761
EPS0x7420x762
TCU0x7460x783
Multi AV0x7470x767
IPDM E/R0x74D0x76D
AIRBAG0x7520x772
CHARGER0x7920x793
SHIFT0x79D0x7BD
AVM0x7B7

List on ZE1 (2018+) CAN polling: https://drive.google.com/file/d/1jH9cgm5v23qnqVnmZN3p4TvdaokWKPjM/view

Here's an example of a request, checking which gear is selected from the VCM:

Description: Gear position (1=Park, 2=Reverse, 3=Neutral, 4=Drive, 7=Eco). The fifth reply byte value is the gear value. In the example gear is 1.

Query: 0x797 03 22 11 56 00 00 00 00

Answer: 0x79A 04 62 11 56 01 00 00 00