From 76e9d9738589fcc24d1e0863af52a5404b0ebaec Mon Sep 17 00:00:00 2001 From: Carsten Schmiemann Date: Sun, 8 May 2022 20:25:54 +0200 Subject: [PATCH] Add lights --- .../vehicle_renaultzoe_ph2/src/BCM_pids.cpp | 13 +++++++++++++ .../vehicle_renaultzoe_ph2/src/ph2_poller.h | 3 +++ 2 files changed, 16 insertions(+) diff --git a/OVMS.V3/components/vehicle_renaultzoe_ph2/src/BCM_pids.cpp b/OVMS.V3/components/vehicle_renaultzoe_ph2/src/BCM_pids.cpp index 34775fb..1ce65fd 100644 --- a/OVMS.V3/components/vehicle_renaultzoe_ph2/src/BCM_pids.cpp +++ b/OVMS.V3/components/vehicle_renaultzoe_ph2/src/BCM_pids.cpp @@ -153,6 +153,19 @@ void OvmsVehicleRenaultZoePh2::IncomingBCM(uint16_t type, uint16_t pid, const ch //ESP_LOGD(TAG, "609B Tailgate: %d", CAN_UINT(0)); break; } + 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)); + break; + } + case 0x4187: { //Position lights (Tagfahrlicht), no actual usecase for + ESP_LOGD(TAG, "4187 Position lights: %d", CAN_UINT(0)); + break; + } + case 0x6179: { //Rear fog lights, no actual usecase for + ESP_LOGD(TAG, "6179 Rear fog lights: %d", CAN_UINT(0)); + break; + } default: { char *buf = NULL; diff --git a/OVMS.V3/components/vehicle_renaultzoe_ph2/src/ph2_poller.h b/OVMS.V3/components/vehicle_renaultzoe_ph2/src/ph2_poller.h index 616c0f6..3158a48 100644 --- a/OVMS.V3/components/vehicle_renaultzoe_ph2/src/ph2_poller.h +++ b/OVMS.V3/components/vehicle_renaultzoe_ph2/src/ph2_poller.h @@ -81,6 +81,9 @@ static const OvmsVehicle::poll_pid_t renault_zoe_polls[] = { { 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x61B2, { 0, 3, 3, 3 }, 0, ISOTP_STD }, // Rear left door { 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 //LBC //{ 0x18dadbf1, 0x18daf1db, VEHICLE_POLL_TYPE_OBDIISESSION, SESSION_DEFAULT, { 0, 60, 60, 60 }, 0, ISOTP_EXTFRAME }, // OBD Extended Diagnostic Session