Add another source for ignition

This commit is contained in:
Carsten Schmiemann 2022-05-08 20:31:06 +02:00
parent 76e9d97385
commit bb58a0cb9f
2 changed files with 24 additions and 3 deletions

View File

@ -155,15 +155,35 @@ void OvmsVehicleRenaultZoePh2::IncomingBCM(uint16_t type, uint16_t pid, const ch
}
case 0x4186: { //Low beam lights
StandardMetrics.ms_v_env_headlights->SetValue((bool)CAN_UINT(0));
ESP_LOGD(TAG, "4186 Low beam lights: %d", CAN_UINT(0));
if ((bool)CAN_UINT(0)) {
ESP_LOGD(TAG, "4186 Low beam lights: active");
} else {
ESP_LOGD(TAG, "4186 Low beam lights: inactive");
}
break;
}
case 0x4187: { //Position lights (Tagfahrlicht), no actual usecase for
ESP_LOGD(TAG, "4187 Position lights: %d", CAN_UINT(0));
if ((bool)CAN_UINT(0)) {
ESP_LOGD(TAG, "4187 Position lights: active");
} else {
ESP_LOGD(TAG, "4187 Position lights: inactive");
}
break;
}
case 0x6179: { //Rear fog lights, no actual usecase for
ESP_LOGD(TAG, "6179 Rear fog lights: %d", CAN_UINT(0));
if ((bool)CAN_UINT(0)) {
ESP_LOGD(TAG, "6179 Rear fog lights: active");
} else {
ESP_LOGD(TAG, "6179 Rear fog lights: inactive");
}
break;
}
case 0x60C6: { //Ignition relay (switch)
if ((bool)CAN_UINT(0)) {
ESP_LOGD(TAG, "60C6 Ignition relay: active");
} else {
ESP_LOGD(TAG, "60C6 Ignition relay: inactive");
}
break;
}

View File

@ -84,6 +84,7 @@ static const OvmsVehicle::poll_pid_t renault_zoe_polls[] = {
{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x4186, { 0, 3, 3, 3 }, 0, ISOTP_STD }, // Low beam lights
{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x4187, { 0, 3, 3, 3 }, 0, ISOTP_STD }, // Position lights (Tagfahrlicht), no actual usecase for
{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x6179, { 0, 3, 3, 3 }, 0, ISOTP_STD }, // Rear fog lights, no actual usecase for
{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x60C6, { 0, 3, 3, 3 }, 0, ISOTP_STD }, // Ignition relay (switch)
//LBC
//{ 0x18dadbf1, 0x18daf1db, VEHICLE_POLL_TYPE_OBDIISESSION, SESSION_DEFAULT, { 0, 60, 60, 60 }, 0, ISOTP_EXTFRAME }, // OBD Extended Diagnostic Session