mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 19:42:08 +02:00
Update comment on max value
This commit is contained in:
parent
6b129edd4b
commit
2c4f6f4a06
23 changed files with 89 additions and 89 deletions
|
@ -56,8 +56,8 @@ ModbusServerRTU MBserver(Serial2, 2000);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Common system parameters. Batteries map their values to these variables
|
// Common system parameters. Batteries map their values to these variables
|
||||||
uint32_t system_capacity_Wh = BATTERY_WH_MAX; //Wh, 0-250000 Wh
|
uint32_t system_capacity_Wh = BATTERY_WH_MAX; //Wh, 0-500000 Wh
|
||||||
uint32_t system_remaining_capacity_Wh = BATTERY_WH_MAX; //Wh, 0-250000 Wh
|
uint32_t system_remaining_capacity_Wh = BATTERY_WH_MAX; //Wh, 0-500000 Wh
|
||||||
int16_t system_temperature_max_dC = 0; //C+1, -50.0 - 50.0
|
int16_t system_temperature_max_dC = 0; //C+1, -50.0 - 50.0
|
||||||
int16_t system_temperature_min_dC = 0; //C+1, -50.0 - 50.0
|
int16_t system_temperature_min_dC = 0; //C+1, -50.0 - 50.0
|
||||||
int32_t system_active_power_W = 0; //Watts, -200000 to 200000 W
|
int32_t system_active_power_W = 0; //Watts, -200000 to 200000 W
|
||||||
|
@ -68,8 +68,8 @@ uint16_t system_min_design_voltage_dV = 2500; //V+1, 0-1000.0 (0-100
|
||||||
uint16_t system_scaled_SOC_pptt = 5000; //SOC%, 0-100.00 (0-10000)
|
uint16_t system_scaled_SOC_pptt = 5000; //SOC%, 0-100.00 (0-10000)
|
||||||
uint16_t system_real_SOC_pptt = 5000; //SOC%, 0-100.00 (0-10000)
|
uint16_t system_real_SOC_pptt = 5000; //SOC%, 0-100.00 (0-10000)
|
||||||
uint16_t system_SOH_pptt = 9900; //SOH%, 0-100.00 (0-10000)
|
uint16_t system_SOH_pptt = 9900; //SOH%, 0-100.00 (0-10000)
|
||||||
uint32_t system_max_discharge_power_W = 0; //Watts, 0 to 100000
|
uint32_t system_max_discharge_power_W = 0; //Watts, 0 to 200000
|
||||||
uint32_t system_max_charge_power_W = 4312; //Watts, 0 to 100000
|
uint32_t system_max_charge_power_W = 4312; //Watts, 0 to 200000
|
||||||
uint16_t system_cell_max_voltage_mV = 3700; //mV, 0-5000 , Stores the highest cell millivolt value
|
uint16_t system_cell_max_voltage_mV = 3700; //mV, 0-5000 , Stores the highest cell millivolt value
|
||||||
uint16_t system_cell_min_voltage_mV = 3700; //mV, 0-5000, Stores the minimum cell millivolt value
|
uint16_t system_cell_min_voltage_mV = 3700; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages. Oversized to accomodate all setups
|
uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages. Oversized to accomodate all setups
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
//#define BMW_I3_BATTERY
|
//#define BMW_I3_BATTERY
|
||||||
//#define CHADEMO_BATTERY
|
//#define CHADEMO_BATTERY
|
||||||
//#define IMIEV_CZERO_ION_BATTERY
|
//#define IMIEV_CZERO_ION_BATTERY
|
||||||
//#define KIA_HYUNDAI_64_BATTERY
|
#define KIA_HYUNDAI_64_BATTERY
|
||||||
//#define NISSAN_LEAF_BATTERY
|
//#define NISSAN_LEAF_BATTERY
|
||||||
//#define RENAULT_KANGOO_BATTERY
|
//#define RENAULT_KANGOO_BATTERY
|
||||||
//#define RENAULT_ZOE_BATTERY
|
//#define RENAULT_ZOE_BATTERY
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
#define BATTERY_SELECTED
|
#define BATTERY_SELECTED
|
||||||
|
|
||||||
// These parameters need to be mapped for the inverter
|
// These parameters need to be mapped for the inverter
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
|
@ -20,8 +20,8 @@ extern uint16_t system_min_design_voltage_dV; //V+1, 0-1000.0 (0-1
|
||||||
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
#define BATTERY_SELECTED
|
#define BATTERY_SELECTED
|
||||||
|
|
||||||
// These parameters need to be mapped for the inverter
|
// These parameters need to be mapped for the inverter
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
|
@ -20,8 +20,8 @@ extern uint16_t system_min_design_voltage_dV; //V+1, 0-1000.0 (0-1
|
||||||
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
#define BATTERY_SELECTED
|
#define BATTERY_SELECTED
|
||||||
|
|
||||||
// These parameters need to be mapped for the inverter
|
// These parameters need to be mapped for the inverter
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
|
@ -20,8 +20,8 @@ extern uint16_t system_min_design_voltage_dV; //V+1, 0-1000.0 (0-1
|
||||||
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
#define BATTERY_SELECTED
|
#define BATTERY_SELECTED
|
||||||
|
|
||||||
// These parameters need to be mapped for the inverter
|
// These parameters need to be mapped for the inverter
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
|
@ -20,8 +20,8 @@ extern uint16_t system_min_design_voltage_dV; //V+1, 0-1000.0 (0-1
|
||||||
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
#define MAX_CELL_DEVIATION_MV 500 //LED turns yellow on the board if mv delta exceeds this value
|
#define MAX_CELL_DEVIATION_MV 500 //LED turns yellow on the board if mv delta exceeds this value
|
||||||
|
|
||||||
// These parameters need to be mapped for the inverter
|
// These parameters need to be mapped for the inverter
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
|
@ -26,8 +26,8 @@ extern uint16_t system_min_design_voltage_dV; //V+1, 0-1000.0 (0-1
|
||||||
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
#define MAX_CELL_DEVIATION_MV 500 //LED turns yellow on the board if mv delta exceeds this value
|
#define MAX_CELL_DEVIATION_MV 500 //LED turns yellow on the board if mv delta exceeds this value
|
||||||
|
|
||||||
// These parameters need to be mapped for the inverter
|
// These parameters need to be mapped for the inverter
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
|
@ -26,8 +26,8 @@ extern uint16_t system_min_design_voltage_dV; //V+1, 0-1000.0 (0-1
|
||||||
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
#define BATTERY_SELECTED
|
#define BATTERY_SELECTED
|
||||||
|
|
||||||
// These parameters need to be mapped for the inverter
|
// These parameters need to be mapped for the inverter
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
|
@ -20,8 +20,8 @@ extern uint16_t system_min_design_voltage_dV; //V+1, 0-1000.0 (0-1
|
||||||
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
|
@ -19,10 +19,10 @@ extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_battery_voltage_dV; //V+1, 0-1000.0 (0-10000)
|
extern uint16_t system_battery_voltage_dV; //V+1, 0-1000.0 (0-10000)
|
||||||
extern int16_t system_battery_current_dA; //A+1, -1000 - 1000
|
extern int16_t system_battery_current_dA; //A+1, -1000 - 1000
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
#define MIN_PACK_VOLTAGE_LFP 2968 // V+1, if pack voltage goes below this, discharge stops
|
#define MIN_PACK_VOLTAGE_LFP 2968 // V+1, if pack voltage goes below this, discharge stops
|
||||||
|
|
||||||
// These parameters need to be mapped for the inverter
|
// These parameters need to be mapped for the inverter
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
|
@ -33,8 +33,8 @@ extern uint16_t system_min_design_voltage_dV; //V+1, 0-1000.0 (0-1
|
||||||
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
#define BATTERY_SELECTED
|
#define BATTERY_SELECTED
|
||||||
|
|
||||||
// These parameters need to be mapped for the inverter
|
// These parameters need to be mapped for the inverter
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
|
@ -20,8 +20,8 @@ extern uint16_t system_min_design_voltage_dV; //V+1, 0-1000.0 (0-1
|
||||||
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
#define BATTERY_SELECTED
|
#define BATTERY_SELECTED
|
||||||
|
|
||||||
// These parameters need to be mapped for the inverter
|
// These parameters need to be mapped for the inverter
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
|
@ -20,8 +20,8 @@ extern uint16_t system_min_design_voltage_dV; //V+1, 0-1000.0 (0-1
|
||||||
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern const char* version_number; // The current software version, shown on webserver
|
extern const char* version_number; // The current software version, shown on webserver
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_battery_current_dA; //A+1, -1000 - 1000
|
extern int16_t system_battery_current_dA; //A+1, -1000 - 1000
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
|
@ -29,8 +29,8 @@ extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-1
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_battery_voltage_dV; //V+1, 0-1000.0 (0-10000)
|
extern uint16_t system_battery_voltage_dV; //V+1, 0-1000.0 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000 , Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000 , Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
#include "../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"
|
#include "../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"
|
||||||
|
|
||||||
// These parameters need to be mapped for the inverter
|
// These parameters need to be mapped for the inverter
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
|
@ -18,8 +18,8 @@ extern uint16_t system_min_design_voltage_dV; //V+1, 0-1000.0 (0-1
|
||||||
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
#define MAX_POWER 40960 //BYD Modbus specific value
|
#define MAX_POWER 40960 //BYD Modbus specific value
|
||||||
|
|
||||||
extern uint16_t mbPV[MB_RTU_NUM_VALUES];
|
extern uint16_t mbPV[MB_RTU_NUM_VALUES];
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_battery_current_dA; //A+1, -1000 - 1000
|
extern int16_t system_battery_current_dA; //A+1, -1000 - 1000
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
|
@ -19,8 +19,8 @@ extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_battery_voltage_dV; //V+1, 0-1000.0 (0-10000)
|
extern uint16_t system_battery_voltage_dV; //V+1, 0-1000.0 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
extern bool batteryAllowsContactorClosing; //Bool, true/false
|
||||||
extern bool inverterAllowsContactorClosing; //Bool, true/false
|
extern bool inverterAllowsContactorClosing; //Bool, true/false
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
#define MB_RTU_NUM_VALUES 30000
|
#define MB_RTU_NUM_VALUES 30000
|
||||||
|
|
||||||
extern uint16_t mbPV[MB_RTU_NUM_VALUES];
|
extern uint16_t mbPV[MB_RTU_NUM_VALUES];
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
|
@ -18,8 +18,8 @@ extern uint16_t system_min_design_voltage_dV; //V+1, 0-1000.0 (0-1
|
||||||
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
#include "../devboard/config.h" // Needed for all defines
|
#include "../devboard/config.h" // Needed for all defines
|
||||||
#include "../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"
|
#include "../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"
|
||||||
|
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
|
@ -17,8 +17,8 @@ extern uint16_t system_min_design_voltage_dV; //V+1, 0-1000.0 (0-1
|
||||||
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
|
@ -11,10 +11,10 @@ extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_battery_voltage_dV; //V+1, 0-1000.0 (0-10000)
|
extern uint16_t system_battery_voltage_dV; //V+1, 0-1000.0 (0-10000)
|
||||||
extern int16_t system_battery_current_dA; //A+1, -1000 - 1000
|
extern int16_t system_battery_current_dA; //A+1, -1000 - 1000
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint8_t system_bms_status; //Enum 0-5
|
extern uint8_t system_bms_status; //Enum 0-5
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
#include "../devboard/config.h" // Needed for all defines
|
#include "../devboard/config.h" // Needed for all defines
|
||||||
#include "../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"
|
#include "../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"
|
||||||
|
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
|
@ -17,8 +17,8 @@ extern uint16_t system_min_design_voltage_dV; //V+1, 0-1000.0 (0-1
|
||||||
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
#include "../devboard/config.h" // Needed for all defines
|
#include "../devboard/config.h" // Needed for all defines
|
||||||
#include "../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"
|
#include "../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"
|
||||||
|
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
|
@ -17,8 +17,8 @@ extern uint16_t system_min_design_voltage_dV; //V+1, 0-1000.0 (0-1
|
||||||
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
#include "../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"
|
#include "../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"
|
||||||
|
|
||||||
// These parameters need to be mapped for the inverter
|
// These parameters need to be mapped for the inverter
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
|
@ -18,8 +18,8 @@ extern uint16_t system_min_design_voltage_dV; //V+1, 0-1000.0 (0-1
|
||||||
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
|
|
||||||
extern ACAN2515 can;
|
extern ACAN2515 can;
|
||||||
|
|
||||||
extern uint32_t system_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-250000Wh
|
extern uint32_t system_remaining_capacity_Wh; //Wh, 0-500000Wh
|
||||||
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_min_dC; //C+1, -50.0 - 50.0
|
||||||
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
extern int16_t system_temperature_max_dC; //C+1, -50.0 - 50.0
|
||||||
extern int32_t system_active_power_W; //W, -200000 to 200000
|
extern int32_t system_active_power_W; //W, -200000 to 200000
|
||||||
|
@ -20,8 +20,8 @@ extern uint16_t system_min_design_voltage_dV; //V+1, 0-1000.0 (0-1
|
||||||
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_scaled_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
extern uint16_t system_real_SOC_pptt; //SOC%, 0-100.00 (0-10000)
|
||||||
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
extern uint16_t system_SOH_pptt; //SOH%, 0-100.00 (0-10000)
|
||||||
extern uint32_t system_max_discharge_power_W; //W, 0-100000
|
extern uint32_t system_max_discharge_power_W; //W, 0-200000
|
||||||
extern uint32_t system_max_charge_power_W; //W, 0-100000
|
extern uint32_t system_max_charge_power_W; //W, 0-200000
|
||||||
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
extern uint16_t system_cell_max_voltage_mV; //mV, 0-5000, Stores the highest cell millivolt value
|
||||||
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
extern uint16_t system_cell_min_voltage_mV; //mV, 0-5000, Stores the minimum cell millivolt value
|
||||||
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
extern uint16_t system_cellvoltages_mV[MAX_AMOUNT_CELLS]; //Array with all cell voltages in mV
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue