Fix EVC pids
This commit is contained in:
parent
3e086fc99b
commit
81319297ec
1 changed files with 12 additions and 13 deletions
|
@ -82,7 +82,7 @@ static const OvmsVehicle::poll_pid_t renault_zoe_polls[] = {
|
||||||
//EVC-HCM-VCM
|
//EVC-HCM-VCM
|
||||||
//{ 0x18dadaf1, 0x18daf1da, VEHICLE_POLL_TYPE_OBDIISESSION, SESSION_EXTDIAG, { 60, 60, 60, 60 }, 0, ISOTP_EXTFRAME }, // OBD Extended Diagnostic Session
|
//{ 0x18dadaf1, 0x18daf1da, VEHICLE_POLL_TYPE_OBDIISESSION, SESSION_EXTDIAG, { 60, 60, 60, 60 }, 0, ISOTP_EXTFRAME }, // OBD Extended Diagnostic Session
|
||||||
{ 0x18dadaf1, 0x18daf1da, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x2006, { 180, 10, 10, 300 }, 0, ISOTP_EXTFRAME }, // Odometer
|
{ 0x18dadaf1, 0x18daf1da, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x2006, { 180, 10, 10, 300 }, 0, ISOTP_EXTFRAME }, // Odometer
|
||||||
{ 0x18dadaf1, 0x18daf1da, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x29FD, { 0, 10, 5, 3 }, 0, ISOTP_EXTFRAME }, // 12Battery Current
|
{ 0x18dadaf1, 0x18daf1da, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x2A8C, { 0, 10, 5, 3 }, 0, ISOTP_EXTFRAME }, // 12Battery Current
|
||||||
{ 0x18dadaf1, 0x18daf1da, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x2005, { 0, 10, 5, 3 }, 0, ISOTP_EXTFRAME }, // 12Battery Voltage
|
{ 0x18dadaf1, 0x18daf1da, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x2005, { 0, 10, 5, 3 }, 0, ISOTP_EXTFRAME }, // 12Battery Voltage
|
||||||
{ 0x18dadaf1, 0x18daf1da, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x21D0, { 0, 10, 10, 3 }, 0, ISOTP_EXTFRAME }, // DCDC Temperature
|
{ 0x18dadaf1, 0x18daf1da, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x21D0, { 0, 10, 10, 3 }, 0, ISOTP_EXTFRAME }, // DCDC Temperature
|
||||||
{ 0x18dadaf1, 0x18daf1da, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x21CF, { 0, 10, 10, 300 }, 0, ISOTP_EXTFRAME }, // Inverter Status
|
{ 0x18dadaf1, 0x18daf1da, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x21CF, { 0, 10, 10, 300 }, 0, ISOTP_EXTFRAME }, // Inverter Status
|
||||||
|
@ -297,10 +297,9 @@ void OvmsVehicleRenaultZoePh2::IncomingEVC(uint16_t type, uint16_t pid, const ch
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0x29FD: {
|
case 0x2A8C: {
|
||||||
StandardMetrics.ms_v_charge_12v_current->SetValue((float) (CAN_UINT(0) - 327.675), Amps);
|
StandardMetrics.ms_v_charge_12v_current->SetValue((float) (CAN_UINT(0)), Amps);
|
||||||
ESP_LOGD(TAG, "29FD EVC ms_v_charge_12v_current: %d", CAN_UINT(0));
|
ESP_LOGD(TAG, "2A8C EVC ms_v_charge_12v_current: %d", CAN_UINT(0));
|
||||||
ESP_LOGD(TAG, "29FD EVC ms_v_charge_12v_current: %f", CAN_UINT(0) - 327.675);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0x2005: {
|
case 0x2005: {
|
||||||
|
@ -309,8 +308,8 @@ void OvmsVehicleRenaultZoePh2::IncomingEVC(uint16_t type, uint16_t pid, const ch
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0x21D0: {
|
case 0x21D0: {
|
||||||
StandardMetrics.ms_v_charge_12v_temp->SetValue((float) (CAN_UINT(0) - 40), Celcius);
|
StandardMetrics.ms_v_charge_12v_temp->SetValue((float) (CAN_UINT(4) - 40), Celcius);
|
||||||
ESP_LOGD(TAG, "21D0 EVC ms_v_charge_12v_temp: %d", CAN_UINT(0) - 40);
|
ESP_LOGD(TAG, "21D0 EVC ms_v_charge_12v_temp: %d", CAN_UINT(4) - 40);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0x21CF: {
|
case 0x21CF: {
|
||||||
|
@ -331,18 +330,18 @@ void OvmsVehicleRenaultZoePh2::IncomingEVC(uint16_t type, uint16_t pid, const ch
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0xF446: { // Ambient temperature
|
case 0xF446: { // Ambient temperature
|
||||||
StandardMetrics.ms_v_env_temp->SetValue((float) (CAN_UINT(0) - 40) * 0.01, Celcius);
|
StandardMetrics.ms_v_env_temp->SetValue((float) (CAN_UINT(4) - 40) * 0.01, Celcius);
|
||||||
ESP_LOGD(TAG, "F446 EVC ms_v_env_temp: %f", (CAN_UINT(0) - 40) * 0.01);
|
ESP_LOGD(TAG, "F446 EVC ms_v_env_temp: %f", (CAN_UINT(4) - 40) * 0.01);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0x2A09: { // Power consumption by consumer
|
case 0x2A09: { // Power consumption by consumer
|
||||||
mt_aux_power_consumer->SetValue((float) CAN_UINT(0) * 10, Watts);
|
mt_aux_power_consumer->SetValue((float) CAN_UINT(4) * 10, Watts);
|
||||||
ESP_LOGD(TAG, "2A09 EVC mt_aux_power_consumer: %d", CAN_UINT(0) * 10);
|
ESP_LOGD(TAG, "2A09 EVC mt_aux_power_consumer: %d", CAN_UINT(4) * 10);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0x2191: { // Power consumption by ptc
|
case 0x2191: { // Power consumption by ptc
|
||||||
mt_aux_power_ptc->SetValue((float) CAN_UINT(0) * 10, Watts);
|
mt_aux_power_ptc->SetValue((float) CAN_UINT(4) * 10, Watts);
|
||||||
ESP_LOGD(TAG, "2191 EVC mt_aux_power_ptc: %d", CAN_UINT(0) * 10);
|
ESP_LOGD(TAG, "2191 EVC mt_aux_power_ptc: %d", CAN_UINT(4) * 10);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue