-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
5,646 additions
and
2,771 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,24 @@ | ||
v0.5.14 | ||
- Toggeln des Triggergrundes im Log behoben | ||
v0.6.0 | ||
Neue Funktionen/Verbesserungen bei der Laderegelung: | ||
- Absorbtion/Float Ladespannung | ||
- Autobalancing | ||
- CutOff (Überarbeitet) | ||
- Funktion "Ladesstrom reduzieren - SoC" erweitert um "Mindest Ladestrom in A" (#101) | ||
|
||
v0.5.13 | ||
- Remove WebUI v2 | ||
- Anpassungen für HW2.4.1 | ||
Weitere neue Features/Verbesserungen: | ||
- Neues BMS: Seplos V3 (#81) | ||
- Neues Wechselrichter CAN-Protokoll: BYD Protocol (SolarEdge RWS) | ||
- Passwortschutz für das WebUI (#93) | ||
Username: bsc | ||
Passwort: admin | ||
|
||
- Problem beim Runden des SoC behoben (Fix 100% SOC bei Seplos) (#113) | ||
- Kleinere Änderungen/Verbesserungen in den Menüs des WebUI (z.B. Invertermenü aufgeteilt zu bessern Übersichtlichkeit) | ||
- Größere Änderungen im Unterbau des BSC | ||
|
||
|
||
Wichtiger Hinweis! | ||
Folgende Werte müssen nach dem Update kontrolliert und ggf. angepasst werden: | ||
- Absorption Ladespannung | ||
- Ladestrom reduzieren - SoC; Pro 1% um x A reduzieren | ||
- Cut-Off Strom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// Copyright (c) 2024 Tobias Himmler | ||
// | ||
// This software is released under the MIT License. | ||
// https://opensource.org/licenses/MIT | ||
|
||
#ifndef INC_MDOBUSRTU_H | ||
#define INC_MDOBUSRTU_H | ||
|
||
#include "Arduino.h" | ||
|
||
namespace modbusrtu | ||
{ | ||
class ModbusRTU | ||
{ | ||
public: | ||
enum class fCode : uint8_t | ||
{ | ||
READ_COIL_01 = 0x01, | ||
//WRITE_COIL_0F = 0x0F, | ||
READ_CMD_04 = 0x04 | ||
//WRITE_CMD_10 = 0x10 | ||
}; | ||
|
||
// Konstruktor | ||
ModbusRTU(Stream *port, void (*callback)(uint8_t, uint8_t), uint8_t devNr); | ||
|
||
// Destruktor | ||
~ModbusRTU(); | ||
|
||
bool readData(uint8_t addr, fCode cmd, uint16_t startRegister, uint16_t len, uint8_t *retData); | ||
|
||
bool getBitValue(uint16_t address, uint8_t b); | ||
uint8_t getU8Value(uint16_t address); | ||
uint16_t getU16Value(uint16_t address); | ||
int16_t getI16Value(uint16_t address); | ||
|
||
private: | ||
Stream *mPort; | ||
void (*mCallback)(uint8_t, uint8_t); | ||
uint8_t mSerialPortNr; | ||
|
||
uint16_t mStartRegAdr; | ||
uint8_t *mRetData; | ||
uint8_t retDataLen; | ||
|
||
enum class modbusRxState : uint8_t | ||
{ | ||
WAIT_START = 0x0, | ||
RECV_DATA = 0x1 | ||
}; | ||
|
||
void buildSendMsg(uint8_t addr, fCode cmd, uint16_t startRegister, uint16_t len); | ||
bool readSerialData(); | ||
}; | ||
|
||
} // namespace modbusrtu | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
#include <Arduino.h> | ||
#include <WebServer.h> | ||
#include <WebSettings.h> | ||
#include <webUtility.h> | ||
|
||
class OTAupdater { | ||
public: | ||
bool init(WebServer *server, const char *path, bool enUpdatePage); | ||
bool init(WebServer *server, WebSettings *webSettings, const char *path, bool enUpdatePage); | ||
|
||
private: | ||
bool isInit; | ||
|
||
void delayWithHandleClient(WebServer *server, uint16_t delay_ms); | ||
void setHttpRoutes(WebServer *server, const char *path, bool enUpdatePage); | ||
void setHttpRoutes(WebServer *server, WebSettings *webSettings, const char *path, bool enUpdatePage); | ||
}; | ||
|
||
extern OTAupdater otaUpdater; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.