Commit Graph

1347 Commits

Author SHA1 Message Date
Thomas Basler
3504884836 Fix: xSemaphoreTake was useless
There was no check of the return value implemented therefore xSemaphoreTake was just executed and not locked
2023-04-28 21:02:10 +02:00
Timo Schindler
210a186c0c added opendtu breakout board to readme 2023-04-25 20:27:30 +02:00
Moritz
e88517df07
Update MQTT_Topics.md
typo
2023-04-25 20:20:03 +02:00
Timo Schindler
5b2e3ca05a added oepndtu breakout board to builds readme 2023-04-25 20:05:30 +02:00
Timo Schindler
92a4e25230 added some opendtu breakout board pictures 2023-04-25 20:05:09 +02:00
Thomas Basler
0441bbbe72 Fix: Queue consumed whole memory on inverter timeout
When the poll interval was e.g. 1sec it was possible that the queue ran full and consumed the whole memory.
Now new entries are only added to the queue automatically if the queue is empty.  This issue also caused a lot of "DTU command failed" messages.
2023-04-25 19:24:56 +02:00
Thomas Basler
5996fb0edf Fix: MQTT topics ac/yieldday and ac/yieldtotal are swapped
Fix #843
2023-04-25 18:43:56 +02:00
Moritz
6a4ad0446d
Update README.md
typo
2023-04-24 23:02:11 +02:00
Thomas Basler
bf648a586f Doc: Added new total MQTT topics 2023-04-24 22:55:20 +02:00
Thomas Basler
98da2b64e2 Rename FLD_PRA to FLD_Q 2023-04-24 22:29:59 +02:00
Thomas Basler
270a7f4933 Rename UNIT_VA to UNIT_VAR 2023-04-24 22:25:15 +02:00
Thomas Basler
8a85aea543 webapp: add app.js.gz 2023-04-24 20:33:24 +02:00
Thomas Basler
b2c249a711 webapp: Enable stricter error reporting 2023-04-24 20:31:24 +02:00
Thomas Basler
1da545725a webapp: Update dependencies 2023-04-24 20:21:51 +02:00
Thomas Basler
ece488cb2a Doc: Added hint regarding multiple DTUs per inverter
Fix #831
2023-04-24 18:54:52 +02:00
Thomas Basler
26cbc496a7 Feature: Implemented MQTT publishing of total values
If one or more inverter is not reachable the flag is_valid changes to zero. Disabled inverters are ignored.
2023-04-24 18:51:30 +02:00
Thomas Basler
793cd9db91 Fix: Possible crash when multiple tasks accessed the SPI bus
This could happen when  the main loop and the web server callback accessed the  SPI bus at the same time  (e.g. to show the isConnected status)
2023-04-22 10:59:32 +02:00
Thomas Basler
f5c15a445b Move byteAssignment to stack (avoid container) to save heap 2023-04-22 01:12:29 +02:00
Thomas Basler
0e9c666981 Implement method as static 2023-04-21 19:02:10 +02:00
Thomas Basler
8373a9cffb webapp: update dependencies 2023-04-20 23:16:38 +02:00
Thomas Basler
12d03f06b0 Added functionality to apply custom patch files during building
Usefull  to patch existing libraries
2023-04-20 23:13:18 +02:00
Thomas Basler
f5fc52b92f Move auto_firmware_version.py to pio-scripts subdirectory 2023-04-20 22:46:05 +02:00
Thomas Basler
04f62e03b8 BREAKING CHANGE: Web API Endpoint /api/eventlog/status no nested serial object
It's not required as the  eventlog just contains events from requested inverter
2023-04-20 22:41:55 +02:00
Thomas Basler
188d865671 Fix: Device profile "Olimex ESP32-POE with SH1106" used wrong display type. Fix #825 2023-04-19 23:37:06 +02:00
Thomas Basler
5d2656550c Optimize detection if RF module is configured
Use PinMapping method instead of dedicated method in Hoymiles lib --> Same result but reduces variables
2023-04-17 23:19:53 +02:00
Thomas Basler
ebc1b3aed2 webapp: add app.js.gz 2023-04-17 22:06:32 +02:00
Thomas Basler
a1d5f97efb Upgrade ArduinoJson from 6.21.1 to 6.21.2 2023-04-17 22:01:38 +02:00
Thomas Basler
15791b457a Doc: Add breaking change hint 2023-04-17 21:50:17 +02:00
Thomas Basler
18f880530f Apply correct order to extension.json items
VSCode applys this sorting anyways
2023-04-17 21:49:17 +02:00
Thomas Basler
59f43a82a8 BREAKING CHANGE: Web API Endpoint /api/devinfo/status requires GET parameter inv=
Only the requested inverter is sent to the client. This reduces the size of the json response --> Less memory.

It should also fix #814.
2023-04-17 21:48:16 +02:00
Thomas Basler
af3a277e30 Introduced HoymilesRadio property to determine if a configuration attempt was done 2023-04-17 18:59:56 +02:00
Thomas Basler
1416efc6f9 Fix: Endless loop when CMT module was configured but not connected 2023-04-17 18:58:23 +02:00
Thomas Basler
481bc00f28 webapp: add app.js.gz 2023-04-15 11:05:57 +02:00
Thomas Basler
34ac6faefc webapp: Update dependencies 2023-04-15 11:01:40 +02:00
Thomas Basler
7c37d289c0 Enabled additional statistics data for HMT inverters
Not yet shown in web ui and mqtt
2023-04-15 10:55:48 +02:00
Thomas Basler
6856ba9972 Fix: Change defines to get a correct calculation if base frequency of CMT module is different compared to Hoymiles base frequency 2023-04-15 10:55:48 +02:00
Thomas Basler
f3942bb647 Fix: Set correct frequency when changing it via web ui
Previously it could happen that the frequency was changed between saving old and recovering new frequency. Therefor an invalid frequency was saved in the CMT module
2023-04-15 10:55:48 +02:00
Thomas Basler
f1f4322db5 Doc: Added MPP-Tracker count 2023-04-15 10:55:48 +02:00
Thomas Basler
d15b6ffe67 Doc: Added some remarks regarding the CMT2300A module 2023-04-15 10:55:48 +02:00
Thomas Basler
71e88e6f73 Doc: Added some device profiles containing the CMT2300A pin assignment 2023-04-15 10:55:48 +02:00
Thomas Basler
5448a6d0ba Doc: Added new supported inverters 2023-04-15 10:55:48 +02:00
Thomas Basler
8356db94b9 Send ChannelChangeCommand only once per cycle as the inverter will not response at all 2023-04-15 10:55:48 +02:00
Thomas Basler
ac7b5dba11 Resend and Retransmit count is now implementable per command 2023-04-15 10:55:48 +02:00
Thomas Basler
e2aa29f117 Remove cmtProocess method and move RF logic into the cmt2300wrapper class 2023-04-15 10:55:48 +02:00
Thomas Basler
f5767e61ef Implement CMD56 as own command.
By doing so, it's possible to send all packets via the sendEsbPacket method. A lot of stuff could be removed which is no more used.
2023-04-15 10:55:48 +02:00
Thomas Basler
cfb37906ca Rename cmtFreqToChan to getChannelFromFrequency and simplify handling of current channel 2023-04-15 10:55:48 +02:00
Thomas Basler
1259f09503 Replace multiple print calls by a single printf in HoymilesRadio_NRF 2023-04-15 10:55:48 +02:00
Thomas Basler
a11ee472c6 Optimize cmtChToFreq method to return float instead of string. Renamed also to getFrequencyFromChannel 2023-04-15 10:55:48 +02:00
Thomas Basler
2a92f67a9a Implement get and set channel in cmt2300 wrapper class 2023-04-15 10:55:48 +02:00
Thomas Basler
fffd872b20 Replace HOY_BASE_FREQ by CMT_BASE_FREQ 2023-04-15 10:55:48 +02:00