Open vcba79 opened 1 week ago
I found this patch will display values after charging started. Please correct me if I am doing wrong.
diff --git a/src/evse.cpp b/src/evse.cpp index a0261d6..3310300 100644 --- a/src/evse.cpp +++ b/src/evse.cpp @@ -119,14 +119,13 @@ void Evse::setup() { }
auto curStatus = getChargePointStatus(connectorId);
if (status.compare(MicroOcpp::cstrFromOcppEveState(curStatus))) {
status = MicroOcpp::cstrFromOcppEveState(curStatus);
}
bool simulate_isCharging = ocppPermitsCharge(connectorId) && trackEvPluggedBool->getBool() && trackEvReadyBool->getBool() && trackEvseReadyBool->getBool();
simulate_isCharging &= limit_power >= 720.f; //minimum charging current is 6A (720W for 120V grids) according to J1772
diff --git a/src/evse.h b/src/evse.h index eaf37dc..bf028d5 100644 --- a/src/evse.h +++ b/src/evse.h @@ -26,11 +26,11 @@ private: std::string trackEvseReadyKey;
const float SIMULATE_POWER_CONST = 11000.f;
float simulate_energy = 1;
std::string status; public:
Hi,
I am evaluating this simulator. Simulator and web are built smoothly but energy, power, current, voltage in web are always 0, before charge and after charge. I searched around but can not find a solution. Do I have to modify any file to get those values displayed? I modify evse.h and evse.cpp and those values can display constantly but setchargingprofile will not limit power value.
any hint?
Thanks,