Nissan Leaf ZE1 AC compressor LIN

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

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

aot93 wrote: Wed Oct 30, 2024 1:59 pm or try to log / playback to the compressor not attached to the car.
You got a LIN setup with an arduino might be worth trying.

Playing back is not possible with the USB Analyser.
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 don't,
But I should have the bits to make a LIN setup, just a level shifter required by the looks of it?
Marat
Posts: 25
Joined: Wed Nov 16, 2022 6:24 pm
Has thanked: 1 time
Been thanked: 6 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by Marat »

Check CRC? ID47
Attachments
LIN_CRC.png
User avatar
tom91
Posts: 2170
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 190 times
Been thanked: 492 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

Marat wrote: Sat Nov 02, 2024 8:56 pmCheck CRC? ID47
The CRC is calculated as the Avanched LIN 2.0 CRC and it checks out as correct according to my Lin capture device. But can mess around a bit with this.
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
Marat
Posts: 25
Joined: Wed Nov 16, 2022 6:24 pm
Has thanked: 1 time
Been thanked: 6 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by Marat »

lin.png
User avatar
dimonlipko
Posts: 40
Joined: Thu Apr 02, 2020 9:28 pm
Location: Ukraine, Kiev
Has thanked: 3 times
Been thanked: 9 times
Contact:

Re: Nissan Leaf ZE1 AC compressor LIN

Post by dimonlipko »

I work with LIN, and have the same problem. I think your problem was wrong ID, because in LIN can be protected ID, and check CRC. I try any Arduino Lin library and some have problem with it.
User avatar
tom91
Posts: 2170
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 190 times
Been thanked: 492 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

Okay so you would not believe the issue. Message timing.

I reviewed logs and my code and noticed even though it is supposed to run even 100ms the loop was not being ran that fast. So adding it to a mytimer call back it now send the the LIN frames at 10Hz as per log. I believe you could theoretically run it at a slower speed, seems to try and go at 3Hz but need more testing.
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
tom91
Posts: 2170
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 190 times
Been thanked: 492 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

Marat wrote: Sat Nov 02, 2024 8:56 pmCheck CRC? ID47
Should have realised from your post too, each frame ever 100ms. (10hz)
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
tom91
Posts: 2170
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 190 times
Been thanked: 492 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by tom91 »

Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
abetanco
Posts: 20
Joined: Mon Oct 23, 2023 10:06 am
Has thanked: 9 times
Been thanked: 7 times

Re: Nissan Leaf ZE1 AC compressor LIN

Post by abetanco »

aot93 wrote: Wed Oct 30, 2024 2:06 pm I don't,
But I should have the bits to make a LIN setup, just a level shifter required by the looks of it?
Hello, this post may help you if you need to send LIN with an Arduino:
viewtopic.php?t=2136
Post Reply