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

Add compatibility with old BYD Battery-Box Commercial C130 hardware #1353

Merged
merged 1 commit into from
Jan 5, 2021

Conversation

sfeilmeier
Copy link
Contributor

  • dynamically add registers for "ModuleQty", "TotalVoltageOfSingleModule", "ChargeMaxVoltage" and "DischargeMinVoltage" only if they are available

  • for old hardware use default values "820 V" for ChargeMaxVoltage and "638 V" for DischargeMinVoltage

  • general cleanup: move enums to separate package

  • move readElementsOnce()-method to new "ModbusUtils" class

  • update Sunspec and Socomec implementations to use new ModbusUtils

  • remove unused ClusterRunState

- dynamically add registers for "ModuleQty", "TotalVoltageOfSingleModule", "ChargeMaxVoltage" and "DischargeMinVoltage" only if they are available
- for old hardware use default values "820 V" for ChargeMaxVoltage and "638 V" for DischargeMinVoltage

- general cleanup: move enums to separate package
- move readElementsOnce()-method to new "ModbusUtils" class
- update Sunspec and Socomec implementations to use new ModbusUtils
- remove unused ClusterRunState
@sfeilmeier
Copy link
Contributor Author

@ludwigasen and @huseyinsaht: FYI

Copy link
Contributor

@sebastianasen sebastianasen left a comment

Choose a reason for hiding this comment

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

Well done.

@sfeilmeier sfeilmeier merged commit f2d8388 into develop Jan 5, 2021
@sfeilmeier sfeilmeier deleted the feature/byd.commercial.c130-compatibility branch January 5, 2021 14:59
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