GNU Affero General Public License v3.0

项目介绍

mr-manuel/venus-os_dbus-serialbattery 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 GNU Affero General Public License v3.0 许可证,目前获得 283 个 Star、118 次 Fork。

仓库全名
mr-manuel/venus-os_dbus-serialbattery
开源许可证
GNU Affero General Public License v3.0
Star 数
283
Fork 数
118
未关闭 Issue
33

README 摘要

dbus-serialbattery This driver is for Venus OS devices (any GX device sold by Victron or a Raspberry Pi running the Venus OS image). The driver will communicate with a Battery Management System (BMS) that support serial (RS232, RS485 or TTL UART) and Bluetooth communication (see BMS feature comparison for details). The data is then published to the Venus OS system (dbus). The main purpose is to act as a Battery…

完整内容见 GitHub 原始 README 或本页 。

常见问题

venus-os_dbus-serialbattery 用什么语言开发?

主要使用 Python 编写,采用 GNU Affero General Public License v3.0 许可证,目前有 283 个 Star。

venus-os_dbus-serialbattery 可以免费商用吗?

仓库标注的许可证为 GNU Affero General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 venus-os_dbus-serialbattery 的源码?

可以直接克隆仓库:git clone https://github.com/mr-manuel/venus-os_dbus-serialbattery.git,默认分支为 master;安装与运行步骤见仓库 README。

venus-os_dbus-serialbattery 最近还在维护吗?

仓库最近一次更新为 2 天前,当前有 33 个未关闭 Issue;Star 数为 283,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Battery Monitor driver for serial battery in VenusOS GX systems

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
537
价值分
205
活跃状态
活跃

语言占比

C
Java
Python
QML
Shell

Release

README

dbus-serialbattery

This driver is for Venus OS devices (any GX device sold by Victron or a Raspberry Pi running the Venus OS image).

The driver will communicate with a Battery Management System (BMS) that support serial (RS232, RS485 or TTL UART) and Bluetooth communication (see BMS feature comparison for details). The data is then published to the Venus OS system (dbus). The main purpose is to act as a Battery Monitor in your GX and supply State of Charge (SoC) and other values to the inverter/charger.

History

The first version of this driver was released by Louisvdw in September 2020.

In February 2023 I (mr-manuel) made my first PR, since Louis did not have time anymore to contribute to this project.

With the release of v1.0.0 I became the main developer of this project. From then on, I have been maintaining the project and developing it further. I’m also solving 99% of the issues on GitHub.

A big thanks to Louisvdw for the initiation of this project.

Support this project

This project takes a lot of time and effort to maintain, answering support requests, adding new features and so on. If you are using this driver and you are happy with it, please make a donation to support me and this project.

Documentation

Developer Remarks

To develop this project, install the requirements. This project makes use of velib_python which is pre-installed on Venus-OS Devices under /opt/victronenergy/dbus-systemcalc-py/ext/velib_python. To use the python files locally, git clone the velib_python project to velib_python and add velib_python to the PYTHONPATH environment variable.

Make sure the GitHub Actions run fine in your repository. In order to make the GitHub Actions run please select in your repository settings under Actions -> General -> Actions permissions the option Allow all actions and reusable workflows. Check also in your repository settings under Actions -> General -> Workflow permissions if Read and write permissions are selected. This will check your code for Flake8 and Black Lint errors. Here is a short instruction on how to set up Flake8 and Black Lint checks in VS Code. This will save you a lot of time.

See this checklist, if you want to add a new BMS

How it works
  • Each supported BMS needs to implement the abstract base class Battery from battery.py.
  • dbus-serialbattery.py tries to figure out the correct connected BMS by looping through all known implementations of Battery and executing its test_connection(). If this returns true, dbus-serialbattery.py sticks with this battery and then periodically executes dbushelpert.publish_battery(). publish_battery() executes Battery.refresh_data() which updates the fields of Battery. It then publishes those fields to dbus using dbushelper.publish_dbus()
  • The Victron Device will be “controlled” by the values published on /Info/ - namely:
    • /Info/MaxChargeCurrent
    • /Info/MaxDischargeCurrent
    • /Info/MaxChargeVoltage
    • /Info/BatteryLowVoltage
    • /Info/ChargeRequest (not implemented in dbus-serialbattery)

For more details on the Victron dbus interface see the official victron dbus documentation

Try it out — no setup required!

Curious what dbus-serialbattery looks and feels like in action? Explore the interactive demo and play around with all the settings — completely risk-free. Nothing is saved, nothing can go wrong, and no device is needed. It’s a great way to get familiar with the interface before or during your own setup.

Launch the interactive demo

Join the community on Discord

https://discord.gg/YXzFB8rSgx

Help translating to your language

Are you using this driver and you would like to have it in your language? Now you can help to translate it on POEditor.

评论

暂无评论