Nissan Leaf ZE1 AC compressor LIN

Nissan Leaf/e-NV200 drive stack topics
User avatar
tom91
Posts: 2391
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

This topic is to track the reverse engineering of the Nissan Leaf ZE1 AC compressor. This is the one from vehicles with a Heatpump.
Leaf AC comp ZE1 Heatpump.JPG
From Leaf model year 2017-2023

It is label Denso S1 ESB27C

The pinout is as follows:
Left most pin 12V ign, middle is ground, right is LIN
Leaf AC comp ZE1 Heatpump LV.JPG
Lin Speed 19200kbps
Leaf AC comp ZE1 Heatpump HV.JPG
HV, Red is positive Blue is negative

It will not communicate unless it has HV voltage going in, the logic must be HV powered.

So far I found it responds on ID 0x49, byte 2 is Voltage, scaled at 2V/bit.

Does anyone have the ability to log the LIN bus on a working ZE1 Leaf to assist me in finding the control ids?
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
aot93
Posts: 212
Joined: Mon Feb 15, 2021 5:45 pm
Location: UK, West Sussex
Has thanked: 8 times
Been thanked: 48 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by aot93 »

I have a ze1 leaf but no experience with logging lin bus.

If you have a pointer to a lin bus logging 101 I'll give it a go.
A quick Google didn't turn up much.
User avatar
tom91
Posts: 2391
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

Oh perfect.

Using https://www.saleae.com/pages/downloads

and cheap analyser https://www.amazon.co.uk/Logic-Analyzer ... 190&sr=8-6

Very easy to setup, if you need points gimme a shout and we can hop on a call.
image.png
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
aot93
Posts: 212
Joined: Mon Feb 15, 2021 5:45 pm
Location: UK, West Sussex
Has thanked: 8 times
Been thanked: 48 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by aot93 »

Thanks, ordered should be here on Sunday.

Looks pretty straightforward.
NickoSynergy
Posts: 6
Joined: Sun May 05, 2024 1:50 pm
Location: Gloucestershire UK
Has thanked: 6 times
Been thanked: 2 times
Contact:

Re: Nissan Leaf ZE1 AC compressor LIN

Post by NickoSynergy »

I have Kvaser CAN King Tom, over in Cirencester,m I have 2 x Leaf stacks there, but out of the car, but maybe we can test somehow.
User avatar
tom91
Posts: 2391
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

NickoSynergy wrote: Sat Oct 26, 2024 8:28 am but out of the car
No wont work I need a working system with refrigerant so the compressor actually runs.
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
Marat
Posts: 29
Joined: Wed Nov 16, 2022 6:24 pm
Has thanked: 2 times
Been thanked: 11 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by Marat »

char RX_BUF[80];
//char data[11] = {0x55,0x47,0x00,0x00,0xFD,0xFF,0xFF,0xFF,0xFF,0xFF,0x00};//COMPR-ZE1
//char data[11] = {0x55,0xFB,0xB3,0x05,0x00,0x90,0xFF,0x00,0x00,0x00,0x00};
//char data[11] = {0x55,0x3B,0x00,0x00,0x00,0xC0,0xFF,0x00,0x00,0x00,0x00};//HEAT-ZE0
char data[11] = {0x55,0xFB,0x00,0x00,0x63,0xC0,0xFF,0x00,0x00,0x00,0x00};//HEAT-AZE0
char dataRX[8];
User avatar
tom91
Posts: 2391
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

Marat wrote: Sat Oct 26, 2024 2:09 pm char RX_BUF[80];
//char data[11] = {0x55,0x47,0x00,0x00,0xFD,0xFF,0xFF,0xFF,0xFF,0xFF,0x00};//COMPR-ZE1
char dataRX[8];
So this the command request line for the compressor? Any details on what it contains?
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
Marat
Posts: 29
Joined: Wed Nov 16, 2022 6:24 pm
Has thanked: 2 times
Been thanked: 11 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by Marat »

//if((GPIOB->IDR & GPIO_Pin_4)==0){data[3]=5;}else{data[3]=0;}

uint16_t chk = 0;
for(int i=1; i<10; i++)
{
chk += (uint16_t) (data);
if (chk>255){chk -= 255;}
}
chk = (uint8_t)(0xFF - ((uint8_t) chk));
data[10] = chk;
Attachments
lin.png
User avatar
aot93
Posts: 212
Joined: Mon Feb 15, 2021 5:45 pm
Location: UK, West Sussex
Has thanked: 8 times
Been thanked: 48 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by aot93 »

Turns out LIN logging is quite straight forward, thanks for the pointers Tom.

You might already have what you need, but here is the data I just captured.

Bit hard to get the pump to cycle on and off in these temps, but I did a max heating, Max Cooling and off.

Let me know if you need more.
Attachments
ze1_AC_PUMP.zip
(249.62 KiB) Downloaded 473 times
User avatar
tom91
Posts: 2391
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

aot93 wrote: Sun Oct 27, 2024 8:27 pm Turns out LIN logging is quite straight forward, thanks for the pointers Tom.
I love LINbus for simple control of actuators. Also this setup is so easy to deploy and use for logging

The log will give me some "actual" working system values.
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
tom91
Posts: 2391
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

aot93 wrote: Sun Oct 27, 2024 8:27 pm Let me know if you need more.
Can you take a picture of you AC pump on your leaf you logged?
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
tom91
Posts: 2391
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

Trying to use the supplied info to get it working but I am having no luck on the bench.
image.png
Maybe the compressor needs to see pressures before it will spin up, some compressor do not care about this.
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
aot93
Posts: 212
Joined: Mon Feb 15, 2021 5:45 pm
Location: UK, West Sussex
Has thanked: 8 times
Been thanked: 48 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by aot93 »

[/quote]
Can you take a picture of you AC pump on your leaf you logged?
[/quote]

Here you go;
Attachments
PXL_20241028_180154712.MP.jpg
PXL_20241028_180227500.jpg
User avatar
tom91
Posts: 2391
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

Turns out it has HVIL monitoring inside, got some workshop info that highlights this.
Attachments
ALLDATA Vehicle Information.pdf
(213.69 KiB) Downloaded 478 times
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
tom91
Posts: 2391
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

There is no HVIL, so the search for why it does not work continues.
image.png
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
tom91
Posts: 2391
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

aot93 wrote: Sun Oct 27, 2024 8:27 pm Bit hard to get the pump to cycle on and off in these temps, but I did a max heating, Max Cooling and off.
Surprisingly I do see ID 0x07 (PID 0x47) which is indicated as the command from the info above.

However the response from the compressor, which should be ID 0x09 (PID 0x49) seems to be missing and very poor. How did you make the connection for logging? As I would not expect this on the bench it is very stable for me.
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
aot93
Posts: 212
Joined: Mon Feb 15, 2021 5:45 pm
Location: UK, West Sussex
Has thanked: 8 times
Been thanked: 48 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by aot93 »

I used back probes and confirmed connection through the plug with a multimeter.

Joined them to the analyser using wago connector should be fairly decent.

I can grab some more logs tonight to be sure.
User avatar
tom91
Posts: 2391
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

aot93 wrote: Tue Oct 29, 2024 2:24 pm I can grab some more logs tonight to be sure.
That be super, I have no clue why ID 0x09 is so random and inconsistent in nature. It varies in length and even has times where it not responds, all of which is very much unlike LIN bus.

Okay so the compressor should still have been properly connected to the network.
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
aot93
Posts: 212
Joined: Mon Feb 15, 2021 5:45 pm
Location: UK, West Sussex
Has thanked: 8 times
Been thanked: 48 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by aot93 »

What sample rate do you use / recommend for lin bus?

Could be the Amazon box is getting a little overwhelmed?
User avatar
tom91
Posts: 2391
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

aot93 wrote: Tue Oct 29, 2024 3:01 pm What sample rate do you use / recommend for lin bus?

Could be the Amazon box is getting a little overwhelmed?
Nope all other IDs and the waveforms match, this is why it is wierd.
image.png
The one with just the data request and id 0x09 us the short burst
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
aot93
Posts: 212
Joined: Mon Feb 15, 2021 5:45 pm
Location: UK, West Sussex
Has thanked: 8 times
Been thanked: 48 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by aot93 »

Here are another set of captures. 0x09 looks a little better in these to me?

To note - it sounds like the compressor is slowing down towards the end of these.
Attachments
Captures2.zip
(286.65 KiB) Downloaded 471 times
User avatar
tom91
Posts: 2391
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

aot93 wrote: Tue Oct 29, 2024 10:00 pm Here are another set of captures. 0x09 looks a little better in these to me?

To note - it sounds like the compressor is slowing down towards the end of these.
Unfortunately not :(
image.png
I have been playing back more and more info from your logs but it all does not seem to matter. Possibly my Compressor is dead?
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
tom91
Posts: 2391
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 563 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

Marat wrote: Sat Oct 26, 2024 8:30 pm "screenshot"
My AC compress shows the following:
|ID: 49- Data 0:0:C1:0:60:0:87:54:- Check: B8

Where C1 is the voltage of 386V, your screenshot shows mostly zeros except the end. Is this an indication there might be an issue with my AC compressor?

Mind sharing any more information you have on this?
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
aot93
Posts: 212
Joined: Mon Feb 15, 2021 5:45 pm
Location: UK, West Sussex
Has thanked: 8 times
Been thanked: 48 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by aot93 »

tom91 wrote: Wed Oct 30, 2024 1:05 pm Unfortunately not :(
That's dull.
Not really sure what else to try.

The climate in the car is working fine, there are no faults at all.

I could try to log the LIN without the compressor attached
or try to log / playback to the compressor not attached to the car.
Post Reply