Software for ESP32 to talk to Hoymiles/TSUN/Solenso Inverters
Go to file
ranma c523f066b3
feature: Add support for native pytes CAN protocol (#1196)
* Allow scaleValue() for 32bit values

* Victron: Implement CAN message 0x360

This one-byte message is set to 0xff to request charging below a
 certain SoC threshold (10% in my tests).

* Pytes: Add support for native CAN protocol

The recently added PytesCanReceiver.cpp implements the Victron CAN protocol.

This change additionally adds support for the native Pytes CAN
protocol messages.

Features only supported in Pytes protocol:
- High-resolution state of charge / full and remaining mAh
- Charge cycle counter
- Balancing state

Features only supported in Victron protocol:
- FW version
- Serial number

Note that the only known way to select the native Pytes protocol is
via the serial console (Cisco-compatible cables work):

```
login config
setprt PYTES
logout
```

to return to Victron protocol use:
```
login config
setprt VICTRON
logout
```

to return to DIP-switch based protocol setting:
```
login config
setprt DIP
logout
```
2024-10-10 18:04:58 +02:00
.github cpplint: use cpplint version 1.6.1 for now 2024-10-07 21:20:16 +02:00
.vscode Merge remote-tracking branch 'tbnobody/OpenDTU/master' into v24.3.15 2024-03-20 09:42:35 +01:00
docs Merge upstream tag 'v24.9.30' into development 2024-09-30 21:34:17 +02:00
include feature: Add support for native pytes CAN protocol (#1196) 2024-10-10 18:04:58 +02:00
lib Merge upstream tag 'v24.10.6' into development 2024-10-06 21:21:26 +02:00
pio-scripts Merge upstream tag 'v24.9.26' into development 2024-09-27 20:07:53 +02:00
src feature: Add support for native pytes CAN protocol (#1196) 2024-10-10 18:04:58 +02:00
test Initial commit 2022-04-09 11:05:14 +02:00
webapp Feature: show task details in system info view 2024-10-08 22:10:49 +02:00
.DS_Store First version 2022-08-11 17:26:00 +02:00
.editorconfig Added .editorconfig 2024-01-05 17:26:02 +01:00
.gitignore Implement webapp autocompile (#1193) 2024-09-05 23:02:42 +02:00
COPYING Updated license file to match right phrase 2022-07-15 19:35:08 +02:00
LICENSE Change License to GPLv2 as the RF24 lib uses GPL-2.0-only 2022-07-15 18:05:58 +02:00
partitions_custom_4mb.csv BREAKING CHANGE: repartition: double sketch size 2024-06-24 21:39:31 +02:00
partitions_custom_8mb.csv BREAKING CHANGE: repartition: double sketch size 2024-06-24 21:39:31 +02:00
partitions_custom_16mb.csv Feature: Added support for boards with 16MB flash and PSRAM 2024-02-02 20:33:42 +01:00
platformio_override.ini Merge branch 'pr/MalteSchm/144' into development 2023-03-27 22:16:53 +02:00
platformio.ini Fix: generic_esp32_8mb firmware did not boot 2024-10-08 22:04:05 +02:00
README_onBattery.md move documentation to opendtu-onbattery.net 2024-08-17 22:16:50 +02:00
README.md welcome to hoylabs: update README and URLs 2024-10-07 21:09:04 +02:00

OpenDTU-OnBattery

This is a fork of OpenDTU.

OpenDTU-OnBattery Build cpplint Yarn Linting

What is OpenDTU-OnBattery

OpenDTU-OnBattery is an extension of the original OpenDTU to support battery chargers, battery management systems (BMS) and power meters on a single ESP32. With the help of a Dynamic Power Limiter, the power production can be adjusted to the actual consumption. In this way, it is possible to implement a zero export policy.

Documentation

The canonical documentation of OpenDTU-OnBattery is hosted at https://opendtu-onbattery.net.

You may find additional helpful information in the project's community-maintained Github Wiki.

To find out what's new or improved have a look at the changelog of the releases.

State of the project

OpenDTU-OnBattery is actively maintained. Please note that OpenDTU-OnBattery may change significantly during its development. Bug reports, comments, feature requests and pull requests are welcome!

History of the project

The original OpenDTU project was started from a discussion on Mikrocontroller.net. It was the goal to replace the original Hoymiles DTU (Telemetry Gateway) to avoid using Hoymile's cloud. With a lot of reverse engineering the Hoymiles protocol was decrypted and analyzed.

In the summer of 2022 @helgeerbe bought a Victron MPPT charge cntroller, and didn't like the idea to set up a separate ESP32 to receive the charger's data. He decided to fork OpenDTU and extend it with battery charger support and a Dynamic Power Limiter.

In early October 2024, the project moved to the newly founded GitHub organisation hoylabs and is since maintained by multiple community members.

Acknowledgments

  • Special thanks to Thomas Basler (@tbnobody), the author of the upstream project, for hist continued effort!
  • Thanks to @helgeerbe for starting OpenDTU-OnBattery and his dedication to the project, as well as his trust in the current maintainers of the project, which act as part of the hoylabs GitHub organisation.
  • We like to thank all contributors. With your ideas and enhancements, you have made OpenDTU-OnBattery much more than @helgeerbe originally had in mind.