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

Initial support for Lynx Smart BMS #49

Merged
merged 1 commit into from
May 31, 2024
Merged

Conversation

stefanor
Copy link
Contributor

Summary 📝

New Device: Lynx Smart BMS

Details

Only observed one state.
No flags decoded yet.

Checks

  • Tested Changes
  • Stakeholder Approval

assert actual.get_consumed_ah() == 4.4
assert actual.get_soc() == 99.5
assert actual.get_alarm_flags() == 5205 # ??
assert actual.get_io_status() == 5525 # ??
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get 5461 for io_status.

If this matches that dbus/mqtt structure, IO encompasses the following things:

  • Programmable Contact (null in my case)
  • Allowed to Discharge (1 in my case)
  • External Relay (null in my case)
  • Allowed to Charge (1 in my case)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

16 bits is a lot of space for just these four things. Perhaps this also contains the status of attached Lynx Distributors?

If it's helpful, I have one distributor attached (Distributor A) with all four fuses in the OK state.

Unfortunately it's not so convenient to get to it and start pulling fuses to experiment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid I don't have any distributors to test with.

assert actual.get_battery_temperature() is None
assert actual.get_consumed_ah() == 4.4
assert actual.get_soc() == 99.5
assert actual.get_alarm_flags() == 5205 # ??
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also get 5205, with as far as I can tell, no alarms.

@keshavdv keshavdv merged commit d6d67d8 into keshavdv:main May 31, 2024
4 checks passed
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.

3 participants