mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-19 03:46:11 +02:00
Merge branch 'development03' into main
This commit is contained in:
commit
5fae7fa9e8
34 changed files with 2594 additions and 1774 deletions
|
@ -18,11 +18,11 @@ The ahoy dtu will publish on the following topics
|
|||
|U_AC | 233.300|actual AC Voltage in Volt|
|
||||
|I_AC | 0.300 | actual AC Current in Ampere|
|
||||
|P_AC | 71.000| actual AC Power in Watt|
|
||||
|P_ACr | 21.200| actual AC reactive power in VAr|
|
||||
|Freq | 49.990|actual AC Frequency in 1/s|
|
||||
|Pct | 95.800|actual AC Power factor in %|
|
||||
|Q_AC | 21.200| actual AC reactive power in var|
|
||||
|F_AC | 49.990| actual AC Frequency in Hz|
|
||||
|PF_AC | 95.800| actual AC Power factor|
|
||||
|Temp | 19.800|Temperature of inverter in Celsius|
|
||||
|LARM_MES_ID | 9.000|Last Alarm Message Id|
|
||||
|EVT | 9.000|Last Event/Alarm Message Index|
|
||||
|YieldDay | 51.000|Energy converted to AC per day in Watt hours (measured on DC)|
|
||||
|YieldTotal | 465.294|Energy converted to AC since reset Watt hours (measured on DC)|
|
||||
|P_DC | 74.600|actual DC Power in Watt|
|
||||
|
@ -92,17 +92,17 @@ To set the active power limit (controled value is the AC Power of the inverter)
|
|||
The implementation allows to set any of the available `<DevControlCmdType>` Commands:
|
||||
```C
|
||||
typedef enum {
|
||||
TurnOn = 0, // 0x00
|
||||
TurnOff = 1, // 0x01
|
||||
Restart = 2, // 0x02
|
||||
Lock = 3, // 0x03
|
||||
Unlock = 4, // 0x04
|
||||
ActivePowerContr = 11, // 0x0b
|
||||
ReactivePowerContr = 12, // 0x0c
|
||||
PFSet = 13, // 0x0d
|
||||
TurnOn = 0, // 0x00
|
||||
TurnOff = 1, // 0x01
|
||||
Restart = 2, // 0x02
|
||||
Lock = 3, // 0x03
|
||||
Unlock = 4, // 0x04
|
||||
ActivePowerContr = 11, // 0x0b
|
||||
ReactivePowerContr = 12, // 0x0c
|
||||
PFSet = 13, // 0x0d
|
||||
CleanState_LockAndAlarm = 20, // 0x14
|
||||
SelfInspection = 40, // 0x28, self-inspection of grid-connected protection files
|
||||
Init = 0xff
|
||||
SelfInspection = 40, // 0x28, self-inspection of grid-connected protection files
|
||||
Init = 0xff
|
||||
} DevControlCmdType;
|
||||
```
|
||||
The MQTT payload will be set on first to bytes and `<DATA2>`, which is taken from the topic path will be set on the second two bytes if the corresponding DevControlCmdType supports 4 byte data.
|
||||
|
@ -215,8 +215,8 @@ Internally this values will be set for the second two bytes for MainCmd: 0x51 Su
|
|||
typedef enum {
|
||||
AbsolutNonPersistent = 0x0000, // 0
|
||||
RelativNonPersistent = 0x0001, // 1
|
||||
AbsolutPersistent = 0x0100, // 256
|
||||
RelativPersistent = 0x0101 // 257
|
||||
AbsolutPersistent = 0x0100, // 256
|
||||
RelativPersistent = 0x0101 // 257
|
||||
} PowerLimitControlType;
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue