TrueSoln
Posts: 52
Joined: Mon Sep 30, 2019 2:44 am
Delivery Date: 01 Dec 2018

Re: LEAF CANbus decoding. (Open discussion)

Fri Oct 08, 2021 9:22 pm

Just been looking at the Decoded notes for messages,
ref https://github.com/dalathegreat/leaf_can_bus_messages
lot nicer that that the old google doc file, easy to work out visual how to check things with code.

But on the 1DB message from the HV battery is a note about Byte[3] Bit [0] saying
0->1:Cell Voltage Latch
1->0:Cell Voltage Latch
Can someone explain little more what it actual means ?

I have been testing message 1DB Byte[3] Bit [3] does let know about Interlock connection
0 = Not Inter Lock connected
1 = Inter Lock connected

Now that will show '0' no interlock connected,
if either the HV main lead or the heater lead is not connected with a Gen2 battery

But what I noticed was that data shows this
Byte[3] is Dec 170, 1010 1010 (Both in)
Byte[3] is Dec 162, 1010 0010 (HV in only)
Byte[3] is Dec 163, 1010 0011 (Heater in only)(Or both disconnected)

So as you can see Byte[3] Bit [3] is about if either interlock not in

But Byte[3] Bit [0] seem to be 1 if the HV interlock in not in also
Which why wonder about what this 'Cell Voltage Latch' actual means

mux
Posts: 325
Joined: Sat Jan 13, 2018 3:52 am
Delivery Date: 13 Oct 2011
Leaf Number: 6177

Re: LEAF CANbus decoding. (Open discussion)

Sun Oct 10, 2021 8:31 am

We don't actually know - this is straight from a nissan confidential datasheet and seems to be some kind of translation error as well as a nonfunctional bit in the Leaf LBC.

A similar bit exists for other AESC BMSes (Zoe, Kangoo, Fluence) and any transition signifies new cell voltage data is available. However, on those cars the live CAN data actually includes max/min cell voltage values, while in the Leaf you can only get cell voltage data in engineering data (which Nissan forbids to use except if the car is in a debugging session using their tools), so it's probably not functional outside of debug mode.

TrueSoln
Posts: 52
Joined: Mon Sep 30, 2019 2:44 am
Delivery Date: 01 Dec 2018

Re: LEAF CANbus decoding. (Open discussion)

Fri Oct 15, 2021 9:24 pm

mux wrote:
Sun Oct 10, 2021 8:31 am
We don't actually know - this is straight from a nissan confidential datasheet
Is this datasheet posted public anywhere ?

cgalpin
Posts: 4
Joined: Mon Aug 17, 2020 2:21 pm
Delivery Date: 17 Aug 2020

Re: LEAF CANbus decoding. (Open discussion)

Tue Nov 09, 2021 4:19 pm

HI Dala

I have read through this thread, but can't seem to find the equivalent minimal message(s) to get the cell voltages on a ZE0 pack like the 79B below. Do you have this handy too? Using the two 79B messages as shown below using savvyCAN is not doing it.

tia,
charles
Dala wrote:
Thu Mar 25, 2021 3:56 am
nickonck wrote:
Wed Mar 17, 2021 6:26 am
Hi,

Thank you very much for this thread, Im learning a lot about my new leaf.

I've bought a 2020 model (ZE1), and Im triying to make an application to connect a OBD plug with my phone and read some battery data. I know that the OBD is locked, and I need to query. I've tried to query with 79B messages that I found in https://docs.google.com/spreadsheets/d/ ... edit#gid=7 . With these querys I receive data, but I cant decode most of them, like the SOC, that I think it should be trivial. Somebody knows how can I get these parameter?
Hi, yes here is how:

Query to LBC:
0x79B 02 21 01 00 00 00 00 00
0x79B 30 00 00 00 00 00 00 00
Answer from LBC:
0x7BB 10 35 61 01 FF FF FC 18
0x7BB 21 02 AF FF FF FB 62 FF
0x7BB 22 FF F0 DD 0B 1C 30 D4
0x7BB 23 95 1D 33 06 03 95 00
0x7BB 24 01 70 00 26 9A 00 0C
0x7BB 25 44 B5 00 11 0B B8 80
0x7BB 26 00 01 FF FF FB 62 FF
0x7BB 27 FF FC AA 01 AD FF FF

Name: SOC (%)
Type: Integer
Description: State of Charge (SOC) of the HV Battery
Formula:
0x7BB 24 01 70 00 26 9A 00 0C
0x7BB 25 44 B5 00 11 0B B8 80
SOC = (data 24[7] << 16 | ((data 25[1] << 8) | data 25[2]))/10000

gorgo
Posts: 12
Joined: Tue Jul 07, 2020 6:11 am
Delivery Date: 07 Jul 2020

Re: LEAF CANbus decoding. (Open discussion)

Wed Nov 10, 2021 2:47 am

cgalpin wrote:
Tue Nov 09, 2021 4:19 pm
HI Dala

I have read through this thread, but can't seem to find the equivalent minimal message(s) to get the cell voltages on a ZE0 pack like the 79B below. Do you have this handy too? Using the two 79B messages as shown below using savvyCAN is not doing it.

tia,
charles

Hi cgalpin, in order to get cell voltage, the requests are:

0x79B 02 21 02 00 00 00 00 00
and
0x79B 30 00 00 00 00 00 00 00 to get all the messages.

The answers are:
0x7BB 10 C6 61 02 10 6F 10 6E
0x7BB 21 10 6D 10 6F 10 6E 10
0x7BB 22 6F 10 70 10 6E 10 6F
....

with all the voltages in two bytes:

CV array[0] = (( data 10[4] << 8 ) | data 10[5] ) //10 6F
CV array[1] = (( data 10[6] << 8 ) | data 10[7] ) //10 6E
CV array[2] = (( data 21[1] << 8 ) | data 21[2] ) //10 6D
CV array[3] = (( data 21[3] << 8 ) | data 21[4] ) //10 6F
CV array[4] = (( data 21[5] << 8 ) | data 21[6] )
CV array[5] = (( data 21[7] << 8 ) | data 22[1] )

cgalpin
Posts: 4
Joined: Mon Aug 17, 2020 2:21 pm
Delivery Date: 17 Aug 2020

Re: LEAF CANbus decoding. (Open discussion)

Wed Nov 10, 2021 4:03 pm

Thanks a lot, this works great! I notice the 3rd byte is 02 and not 01, but I think it must have been a error on my part before (although I did not try with 01 again today - just glad it's working :) )

bkvszomorito
Posts: 17
Joined: Sun Jul 22, 2018 2:45 pm
Delivery Date: 22 Jul 2013
Leaf Number: 403789

Re: LEAF CANbus decoding. (Open discussion)

Tue Nov 30, 2021 11:02 am

Hi All,

I would like to ask, if someone already figured out the status parameter / HEX code for the D ECO and B ECO modes in case of Acenta/TEKNA (SV/SL) model variants?

Image

Thanks!

gorgo
Posts: 12
Joined: Tue Jul 07, 2020 6:11 am
Delivery Date: 07 Jul 2020

Re: LEAF CANbus decoding. (Open discussion)

Tue Nov 30, 2021 12:27 pm

Hi bkvszomorito,
I suggest to get D/B with Gear query:

Code: Select all

0x797 03 22 11 56 00 00 00 00
and you will get

Code: Select all

0x79A 04 62 11 56 01 00 00 00
where 5th byte is the gear value. (1=Park, 2=Reverse, 3=Neutral, 4=Drive).

Could you check what's byte value for B mode? 7?

To get ECO ON/OFF you can ask

Code: Select all

0x797 03 22 13 18 00 00 00 00
with

Code: Select all

0x79A 05 62 13 1B 10 39 00 00
as response.
5th byte is 10 or 11 if ECO is ON.

Return to “LEAF CANBus”