Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LEAF BMS: Add autodetect of LEAF Generation #132

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

dalathegreat
Copy link
Contributor

What

The LEAF has existed for many generations, and the CAN content varies depending on which gen you run on. This PR adds autodetect functionality for which generation we run on.

How

We now detect automatically between the following LEAF generations

  • ZE0 2011-2013 (24kWh)
  • AZE0 2013-2017 (24/30kWh)
  • ZE1 2018+ (40/62kWh)

Why

The temperature reading method currently in the code only works for ZE0. None of the other generations have the value in 0x5BC. Now that we determine generation automatically, we can on AZE0 read temperature from 0x5C0 message.

For further development, suggestion is to add active polling (0x7BB) to get values needed for 40/62kWh ZE1 batteries.

@damienmaguire damienmaguire merged commit 63a2d85 into damienmaguire:master Dec 5, 2024
1 check passed
@damienmaguire
Copy link
Owner

Thanks Dala

@dalathegreat dalathegreat deleted the improvement/LEAF branch December 5, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants