Add rain detection

This commit is contained in:
Carsten Schmiemann 2022-05-08 20:43:17 +02:00
parent df8ffc1bc5
commit dcf134ba2e
2 changed files with 35 additions and 5 deletions

View file

@ -178,7 +178,7 @@ void OvmsVehicleRenaultZoePh2::IncomingBCM(uint16_t type, uint16_t pid, const ch
}
break;
}
case 0x60C6: { //Ignition relay (switch)
case 0x60C6: { //Ignition relay (switch), reliability TESTING
if ((bool)CAN_UINT(0)) {
ESP_LOGD(TAG, "60C6 Ignition relay: active");
} else {
@ -186,6 +186,34 @@ void OvmsVehicleRenaultZoePh2::IncomingBCM(uint16_t type, uint16_t pid, const ch
}
break;
}
case 0x6164: { //Interior front roof light, no actual usecase for
if ((bool)CAN_UINT(0)) {
ESP_LOGD(TAG, "6164 Interior front roof light: active");
} else {
ESP_LOGD(TAG, "6164 Interior front roof light: inactive");
}
break;
}
case 0x6166: { //Interior tailgate light, no actual usecase for
if ((bool)CAN_UINT(0)) {
ESP_LOGD(TAG, "6166 Interior tailgate light: active");
} else {
ESP_LOGD(TAG, "6166 Interior tailgate light: inactive");
}
break;
}
case 0x6098: { //Light sensor reading, no actual usecase for
ESP_LOGD(TAG, "6098 Light sensor reading: %d", CAN_UINT(0));
break;
}
case 0x6214: { //Interior tailgate light, no actual usecase for
if ((bool)CAN_UINT(0)) {
ESP_LOGD(TAG, "6214 Rain sensor: RAINING");
} else {
ESP_LOGD(TAG, "6214 Rain sensor: DRY");
}
break;
}
default: {
char *buf = NULL;

View file

@ -82,11 +82,13 @@ static const OvmsVehicle::poll_pid_t renault_zoe_polls[] = {
{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x61B3, { 0, 3, 3, 3 }, 0, ISOTP_STD }, // Rear right door
{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x609B, { 0, 3, 3, 3 }, 0, ISOTP_STD }, // Tailgate
{ 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, 0x4187, { 0, 5, 5, 5 }, 0, ISOTP_STD }, // Position lights (Tagfahrlicht), no actual usecase for
{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x6179, { 0, 5, 5, 5 }, 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), reliability TESTING
{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x6164, { 0, 3, 3, 3 }, 0, ISOTP_STD }, // Interior front roof light, no actual usecase for
{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x6166, { 0, 3, 3, 3 }, 0, ISOTP_STD }, // Interior tailgate light, no actual usecase for
{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x6164, { 0, 5, 5, 5 }, 0, ISOTP_STD }, // Interior front roof light, no actual usecase for
{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x6166, { 0, 5, 5, 5 }, 0, ISOTP_STD }, // Interior tailgate light, no actual usecase for
{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x6098, { 0, 5, 5, 5 }, 0, ISOTP_STD }, // Light sensor reading, no actual usecase for
{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x6214, { 0, 5, 5, 5 }, 0, ISOTP_STD }, // Rain detection, no actual usecase for
//LBC
//{ 0x18dadbf1, 0x18daf1db, VEHICLE_POLL_TYPE_OBDIISESSION, SESSION_DEFAULT, { 0, 60, 60, 60 }, 0, ISOTP_EXTFRAME }, // OBD Extended Diagnostic Session