diff --git a/OVMS.V3/components/vehicle_renaultzoe_ph2_obd/src/EVC_pids.cpp b/OVMS.V3/components/vehicle_renaultzoe_ph2_obd/src/EVC_pids.cpp index cb51de2..65b9441 100644 --- a/OVMS.V3/components/vehicle_renaultzoe_ph2_obd/src/EVC_pids.cpp +++ b/OVMS.V3/components/vehicle_renaultzoe_ph2_obd/src/EVC_pids.cpp @@ -254,11 +254,11 @@ void OvmsVehicleRenaultZoePh2OBD::IncomingEVC(uint16_t type, uint16_t pid, const //ESP_LOGD(TAG, "2B8A EVC ms_v_charge_voltage: %f", (CAN_UINT(0) * 0.5)); break; } - case 0x21CD: { // User SOC + /*case 0x21CD: { // User SOC mt_bat_user_soc->SetValue((float) (CAN_UINT(0)), Percentage); //ESP_LOGD(TAG, "21CD EVC mt_bat_user_soc: %f", (float) CAN_UINT(0)); break; - } + }*/ default: { char *buf = NULL; diff --git a/OVMS.V3/components/vehicle_renaultzoe_ph2_obd/src/LBC_pids.cpp b/OVMS.V3/components/vehicle_renaultzoe_ph2_obd/src/LBC_pids.cpp index df6fa86..b29a9a9 100644 --- a/OVMS.V3/components/vehicle_renaultzoe_ph2_obd/src/LBC_pids.cpp +++ b/OVMS.V3/components/vehicle_renaultzoe_ph2_obd/src/LBC_pids.cpp @@ -45,7 +45,7 @@ void OvmsVehicleRenaultZoePh2OBD::IncomingLBC(uint16_t type, uint16_t pid, const break; } case 0x9002: { //Battery SOC - mt_bat_lbc_soc->SetValue((float) (CAN_UINT(0)) * 0.01, Percentage); + StandardMetrics.ms_v_bat_soc->SetValue((float) (CAN_UINT(0)) * 0.01, Percentage); StandardMetrics.ms_v_bat_cac->SetValue(Bat_cell_capacity * CAN_UINT(0) * 0.0001); //ESP_LOGD(TAG, "9002 LBC mt_bat_lbc_soc: %f", CAN_UINT(0) * 0.01); break; diff --git a/OVMS.V3/components/vehicle_renaultzoe_ph2_obd/src/ph2_poller.h b/OVMS.V3/components/vehicle_renaultzoe_ph2_obd/src/ph2_poller.h index a9e4453..a5c8693 100644 --- a/OVMS.V3/components/vehicle_renaultzoe_ph2_obd/src/ph2_poller.h +++ b/OVMS.V3/components/vehicle_renaultzoe_ph2_obd/src/ph2_poller.h @@ -59,7 +59,7 @@ static const OvmsVehicle::poll_pid_t renault_zoe_polls[] = { { 0x18dadaf1, 0x18daf1da, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x300D, { 0, 10, 300, 3 }, 0, ISOTP_EXTFRAME }, // AC mains current { 0x18dadaf1, 0x18daf1da, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x300B, { 0, 2, 300, 10 }, 0, ISOTP_EXTFRAME }, // AC phases { 0x18dadaf1, 0x18daf1da, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x2B8A, { 0, 2, 300, 10 }, 0, ISOTP_EXTFRAME }, // AC mains voltage -{ 0x18dadaf1, 0x18daf1da, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x21CD, { 0, 10, 10, 10 }, 0, ISOTP_EXTFRAME }, // User SOC +//{ 0x18dadaf1, 0x18daf1da, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x21CD, { 0, 10, 10, 10 }, 0, ISOTP_EXTFRAME }, // User SOC //BCM //{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIISESSION, SESSION_DEFAULT, { 0, 60, 60, 60 }, 0, ISOTP_STD }, // OBD Extended Diagnostic Session diff --git a/OVMS.V3/components/vehicle_renaultzoe_ph2_obd/src/rz2_web.cpp b/OVMS.V3/components/vehicle_renaultzoe_ph2_obd/src/rz2_web.cpp index 51a641e..6db4497 100644 --- a/OVMS.V3/components/vehicle_renaultzoe_ph2_obd/src/rz2_web.cpp +++ b/OVMS.V3/components/vehicle_renaultzoe_ph2_obd/src/rz2_web.cpp @@ -46,14 +46,13 @@ using namespace std; void OvmsVehicleRenaultZoePh2OBD::WebCfgCommon(PageEntry_t& p, PageContext_t& c) { std::string error, rangeideal, battcapacity; - bool UseBMScalculation, UseBMSsoc; + bool UseBMScalculation; if (c.method == "POST") { rangeideal = c.getvar("rangeideal"); battcapacity = c.getvar("battcapacity"); //UseCarTrip = (c.getvar("UseCarTrip") == "no"); UseBMScalculation = (c.getvar("UseBMScalculation") == "no"); - UseBMSsoc = (c.getvar("UseBMSsoc") == "no"); if (!rangeideal.empty()) { int v = atoi(rangeideal.c_str()); @@ -66,7 +65,6 @@ void OvmsVehicleRenaultZoePh2OBD::WebCfgCommon(PageEntry_t& p, PageContext_t& c) MyConfig.SetParamValue("xrz2o", "battcapacity", battcapacity); //MyConfig.SetParamValueBool("xrz2o", "UseCarTrip", UseCarTrip); MyConfig.SetParamValueBool("xrz2o", "UseBMScalculation", UseBMScalculation); - MyConfig.SetParamValueBool("xrz2o", "UseBMSsoc", UseBMSsoc); c.head(200); c.alert("success", "
Renault Zoe Ph2 battery setup saved.
"); @@ -85,7 +83,6 @@ void OvmsVehicleRenaultZoePh2OBD::WebCfgCommon(PageEntry_t& p, PageContext_t& c) battcapacity = MyConfig.GetParamValue("xrz2o", "battcapacity", "52000"); //UseCarTrip = MyConfig.GetParamValueBool("xrz2o", "UseCarTrip", false); UseBMScalculation = MyConfig.GetParamValueBool("xrz2o", "UseBMScalculation", false); - UseBMSsoc = MyConfig.GetParamValueBool("xrz2o", "UseBMSsoc", false); c.head(200); } @@ -118,11 +115,6 @@ void OvmsVehicleRenaultZoePh2OBD::WebCfgCommon(PageEntry_t& p, PageContext_t& c) c.input_radio_option("UseBMScalculation", "BMS-based calculation", "no", UseBMScalculation == true); c.input_radio_end(""); - c.input_radio_start("State of Charge - Display", "UseBMSsoc"); - c.input_radio_option("UseBMSsoc", "User SOC from EVC", "yes", UseBMSsoc == false); - c.input_radio_option("UseBMSsoc", "Real SOC from BMS", "no", UseBMSsoc == true); - c.input_radio_end(""); - c.fieldset_end(); c.print("