Remove bus awake from poll

This commit is contained in:
Carsten Schmiemann 2022-04-16 13:41:45 +02:00
parent 2cb6362074
commit 464a2e4b39
2 changed files with 6 additions and 12 deletions

View file

@ -30,32 +30,24 @@ void OvmsVehicleRenaultZoePh2::IncomingEVC(uint16_t type, uint16_t pid, const ch
case 0x2006: { // Odometer (Total Vehicle Distance)
StandardMetrics.ms_v_pos_odometer->SetValue((float) CAN_UINT24(0), Kilometers);
ESP_LOGD(TAG, "2006 EVC ms_v_pos_odometer: %d", CAN_UINT24(0));
if (!mt_bus_awake) {
ESP_LOGI(TAG,"Zoe woke up (Successful poll on odometer)");
mt_bus_awake->SetValue(true);
StandardMetrics.ms_v_env_awake->SetValue(true);
car_on(true);
POLLSTATE_ON;
}
break;
}
case 0x2A8C: {
case 0x2A8C: { //12V Battery Current
StandardMetrics.ms_v_charge_12v_current->SetValue((float) (CAN_UINT(0)), Amps);
ESP_LOGD(TAG, "2A8C EVC ms_v_charge_12v_current: %d", CAN_UINT(0));
break;
}
case 0x2005: {
case 0x2005: { //12V Battery Voltage
StandardMetrics.ms_v_charge_12v_voltage->SetValue((float) (CAN_UINT(0) * 0.01), Volts);
ESP_LOGD(TAG, "2005 EVC ms_v_charge_12v_voltage: %f", CAN_UINT(0) * 0.01);
break;
}
case 0x21D0: {
case 0x21D0: { //12V Battery Charger/DCDC Temp
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(4) - 40);
break;
}
case 0x21CF: {
case 0x21CF: { //Inverter status
ESP_LOGD(TAG, "21CF EVC mt_inv_status: %d", CAN_NIBL(0));
if (CAN_NIBL(0) == 1) {
mt_inv_status->SetValue("Inverter off");

View file

@ -4,6 +4,8 @@ No polling was active at this state. Interesting....
Try1:
I (19804504) v-zoe-ph2: PID:18daf1db DATA: 05 62 92 10 00 6d aa aa
0x9210 Overall number of complete charge(Zxx_full_chg_ctr)
Data: 0x006d --> 109
I (19805104) v-zoe-ph2: PID:18daf1db DATA: 05 62 92 15 00 87 aa aa
I (19805704) v-zoe-ph2: PID:18daf1db DATA: 10 35 62 91 d1 00 00 00
I (19805804) v-zoe-ph2: PID:18daf1db DATA: 21 00 00 00 00 00 00 00