Fix startup bus activity and LBC logging

This commit is contained in:
Carsten Schmiemann 2022-04-16 19:44:44 +02:00
parent 3fbcb7015f
commit a2f5a09069
2 changed files with 106 additions and 2 deletions

View file

@ -107,46 +107,57 @@ void OvmsVehicleRenaultZoePh2::IncomingLBC(uint16_t type, uint16_t pid, const ch
} }
case 0x9132: { case 0x9132: {
BmsSetCellTemperature(2, CAN_UINT(0) * 0.625 - 40); BmsSetCellTemperature(2, CAN_UINT(0) * 0.625 - 40);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.625 - 40);
break; break;
} }
case 0x9133: { case 0x9133: {
BmsSetCellTemperature(3, CAN_UINT(0) * 0.625 - 40); BmsSetCellTemperature(3, CAN_UINT(0) * 0.625 - 40);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.625 - 40);
break; break;
} }
case 0x9134: { case 0x9134: {
BmsSetCellTemperature(4, CAN_UINT(0) * 0.625 - 40); BmsSetCellTemperature(4, CAN_UINT(0) * 0.625 - 40);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.625 - 40);
break; break;
} }
case 0x9135: { case 0x9135: {
BmsSetCellTemperature(5, CAN_UINT(0) * 0.625 - 40); BmsSetCellTemperature(5, CAN_UINT(0) * 0.625 - 40);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.625 - 40);
break; break;
} }
case 0x9136: { case 0x9136: {
BmsSetCellTemperature(6, CAN_UINT(0) * 0.625 - 40); BmsSetCellTemperature(6, CAN_UINT(0) * 0.625 - 40);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.625 - 40);
break; break;
} }
case 0x9137: { case 0x9137: {
BmsSetCellTemperature(7, CAN_UINT(0) * 0.625 - 40); BmsSetCellTemperature(7, CAN_UINT(0) * 0.625 - 40);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.625 - 40);
break; break;
} }
case 0x9138: { case 0x9138: {
BmsSetCellTemperature(8, CAN_UINT(0) * 0.625 - 40); BmsSetCellTemperature(8, CAN_UINT(0) * 0.625 - 40);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.625 - 40);
break; break;
} }
case 0x9139: { case 0x9139: {
BmsSetCellTemperature(9, CAN_UINT(0) * 0.625 - 40); BmsSetCellTemperature(9, CAN_UINT(0) * 0.625 - 40);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.625 - 40);
break; break;
} }
case 0x913A: { case 0x913A: {
BmsSetCellTemperature(10, CAN_UINT(0) * 0.625 - 40); BmsSetCellTemperature(10, CAN_UINT(0) * 0.625 - 40);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.625 - 40);
break; break;
} }
case 0x913B: { case 0x913B: {
BmsSetCellTemperature(11, CAN_UINT(0) * 0.625 - 40); BmsSetCellTemperature(11, CAN_UINT(0) * 0.625 - 40);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.625 - 40);
break; break;
} }
case 0x913C: { case 0x913C: {
BmsSetCellTemperature(12, CAN_UINT(0) * 0.625 - 40); BmsSetCellTemperature(12, CAN_UINT(0) * 0.625 - 40);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.625 - 40);
break; break;
} }
case 0x9021: { case 0x9021: {
@ -156,382 +167,477 @@ void OvmsVehicleRenaultZoePh2::IncomingLBC(uint16_t type, uint16_t pid, const ch
} }
case 0x9022: { case 0x9022: {
BmsSetCellVoltage(2, CAN_UINT(0) * 0.001); BmsSetCellVoltage(2, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9023: { case 0x9023: {
BmsSetCellVoltage(3, CAN_UINT(0) * 0.001); BmsSetCellVoltage(3, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9024: { case 0x9024: {
BmsSetCellVoltage(4, CAN_UINT(0) * 0.001); BmsSetCellVoltage(4, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9025: { case 0x9025: {
BmsSetCellVoltage(5, CAN_UINT(0) * 0.001); BmsSetCellVoltage(5, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9026: { case 0x9026: {
BmsSetCellVoltage(6, CAN_UINT(0) * 0.001); BmsSetCellVoltage(6, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9027: { case 0x9027: {
BmsSetCellVoltage(7, CAN_UINT(0) * 0.001); BmsSetCellVoltage(7, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9028: { case 0x9028: {
BmsSetCellVoltage(8, CAN_UINT(0) * 0.001); BmsSetCellVoltage(8, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9029: { case 0x9029: {
BmsSetCellVoltage(9, CAN_UINT(0) * 0.001); BmsSetCellVoltage(9, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x902A: { case 0x902A: {
BmsSetCellVoltage(10, CAN_UINT(0) * 0.001); BmsSetCellVoltage(10, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x902B: { case 0x902B: {
BmsSetCellVoltage(11, CAN_UINT(0) * 0.001); BmsSetCellVoltage(11, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x902C: { case 0x902C: {
BmsSetCellVoltage(12, CAN_UINT(0) * 0.001); BmsSetCellVoltage(12, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x902D: { case 0x902D: {
BmsSetCellVoltage(13, CAN_UINT(0) * 0.001); BmsSetCellVoltage(13, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x902E: { case 0x902E: {
BmsSetCellVoltage(14, CAN_UINT(0) * 0.001); BmsSetCellVoltage(14, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x902F: { case 0x902F: {
BmsSetCellVoltage(15, CAN_UINT(0) * 0.001); BmsSetCellVoltage(15, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9030: { case 0x9030: {
BmsSetCellVoltage(16, CAN_UINT(0) * 0.001); BmsSetCellVoltage(16, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9031: { case 0x9031: {
BmsSetCellVoltage(17, CAN_UINT(0) * 0.001); BmsSetCellVoltage(17, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9032: { case 0x9032: {
BmsSetCellVoltage(18, CAN_UINT(0) * 0.001); BmsSetCellVoltage(18, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9033: { case 0x9033: {
BmsSetCellVoltage(19, CAN_UINT(0) * 0.001); BmsSetCellVoltage(19, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9034: { case 0x9034: {
BmsSetCellVoltage(20, CAN_UINT(0) * 0.001); BmsSetCellVoltage(20, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9035: { case 0x9035: {
BmsSetCellVoltage(21, CAN_UINT(0) * 0.001); BmsSetCellVoltage(21, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9036: { case 0x9036: {
BmsSetCellVoltage(22, CAN_UINT(0) * 0.001); BmsSetCellVoltage(22, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9037: { case 0x9037: {
BmsSetCellVoltage(23, CAN_UINT(0) * 0.001); BmsSetCellVoltage(23, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9038: { case 0x9038: {
BmsSetCellVoltage(24, CAN_UINT(0) * 0.001); BmsSetCellVoltage(24, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9039: { case 0x9039: {
BmsSetCellVoltage(25, CAN_UINT(0) * 0.001); BmsSetCellVoltage(25, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x903A: { case 0x903A: {
BmsSetCellVoltage(26, CAN_UINT(0) * 0.001); BmsSetCellVoltage(26, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x903B: { case 0x903B: {
BmsSetCellVoltage(27, CAN_UINT(0) * 0.001); BmsSetCellVoltage(27, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x903C: { case 0x903C: {
BmsSetCellVoltage(28, CAN_UINT(0) * 0.001); BmsSetCellVoltage(28, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x903D: { case 0x903D: {
BmsSetCellVoltage(29, CAN_UINT(0) * 0.001); BmsSetCellVoltage(29, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x903E: { case 0x903E: {
BmsSetCellVoltage(30, CAN_UINT(0) * 0.001); BmsSetCellVoltage(30, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x903F: { case 0x903F: {
BmsSetCellVoltage(31, CAN_UINT(0) * 0.001); BmsSetCellVoltage(31, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9041: { case 0x9041: {
BmsSetCellVoltage(32, CAN_UINT(0) * 0.001); BmsSetCellVoltage(32, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9042: { case 0x9042: {
BmsSetCellVoltage(33, CAN_UINT(0) * 0.001); BmsSetCellVoltage(33, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9043: { case 0x9043: {
BmsSetCellVoltage(34, CAN_UINT(0) * 0.001); BmsSetCellVoltage(34, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9044: { case 0x9044: {
BmsSetCellVoltage(35, CAN_UINT(0) * 0.001); BmsSetCellVoltage(35, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9045: { case 0x9045: {
BmsSetCellVoltage(36, CAN_UINT(0) * 0.001); BmsSetCellVoltage(36, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9046: { case 0x9046: {
BmsSetCellVoltage(37, CAN_UINT(0) * 0.001); BmsSetCellVoltage(37, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9047: { case 0x9047: {
BmsSetCellVoltage(38, CAN_UINT(0) * 0.001); BmsSetCellVoltage(38, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9048: { case 0x9048: {
BmsSetCellVoltage(39, CAN_UINT(0) * 0.001); BmsSetCellVoltage(39, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9049: { case 0x9049: {
BmsSetCellVoltage(40, CAN_UINT(0) * 0.001); BmsSetCellVoltage(40, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x904A: { case 0x904A: {
BmsSetCellVoltage(41, CAN_UINT(0) * 0.001); BmsSetCellVoltage(41, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x904B: { case 0x904B: {
BmsSetCellVoltage(42, CAN_UINT(0) * 0.001); BmsSetCellVoltage(42, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x904C: { case 0x904C: {
BmsSetCellVoltage(43, CAN_UINT(0) * 0.001); BmsSetCellVoltage(43, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x904D: { case 0x904D: {
BmsSetCellVoltage(44, CAN_UINT(0) * 0.001); BmsSetCellVoltage(44, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x904E: { case 0x904E: {
BmsSetCellVoltage(45, CAN_UINT(0) * 0.001); BmsSetCellVoltage(45, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x904F: { case 0x904F: {
BmsSetCellVoltage(46, CAN_UINT(0) * 0.001); BmsSetCellVoltage(46, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9050: { case 0x9050: {
BmsSetCellVoltage(47, CAN_UINT(0) * 0.001); BmsSetCellVoltage(47, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9051: { case 0x9051: {
BmsSetCellVoltage(48, CAN_UINT(0) * 0.001); BmsSetCellVoltage(48, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9052: { case 0x9052: {
BmsSetCellVoltage(49, CAN_UINT(0) * 0.001); BmsSetCellVoltage(49, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9053: { case 0x9053: {
BmsSetCellVoltage(50, CAN_UINT(0) * 0.001); BmsSetCellVoltage(50, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9054: { case 0x9054: {
BmsSetCellVoltage(51, CAN_UINT(0) * 0.001); BmsSetCellVoltage(51, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9055: { case 0x9055: {
BmsSetCellVoltage(52, CAN_UINT(0) * 0.001); BmsSetCellVoltage(52, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9056: { case 0x9056: {
BmsSetCellVoltage(53, CAN_UINT(0) * 0.001); BmsSetCellVoltage(53, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9057: { case 0x9057: {
BmsSetCellVoltage(54, CAN_UINT(0) * 0.001); BmsSetCellVoltage(54, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9058: { case 0x9058: {
BmsSetCellVoltage(55, CAN_UINT(0) * 0.001); BmsSetCellVoltage(55, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9059: { case 0x9059: {
BmsSetCellVoltage(56, CAN_UINT(0) * 0.001); BmsSetCellVoltage(56, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x905A: { case 0x905A: {
BmsSetCellVoltage(57, CAN_UINT(0) * 0.001); BmsSetCellVoltage(57, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x905B: { case 0x905B: {
BmsSetCellVoltage(58, CAN_UINT(0) * 0.001); BmsSetCellVoltage(58, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x905C: { case 0x905C: {
BmsSetCellVoltage(59, CAN_UINT(0) * 0.001); BmsSetCellVoltage(59, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x905D: { case 0x905D: {
BmsSetCellVoltage(60, CAN_UINT(0) * 0.001); BmsSetCellVoltage(60, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x905E: { case 0x905E: {
BmsSetCellVoltage(61, CAN_UINT(0) * 0.001); BmsSetCellVoltage(61, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x905F: { case 0x905F: {
BmsSetCellVoltage(62, CAN_UINT(0) * 0.001); BmsSetCellVoltage(62, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9061: { case 0x9061: {
BmsSetCellVoltage(63, CAN_UINT(0) * 0.001); BmsSetCellVoltage(63, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9062: { case 0x9062: {
BmsSetCellVoltage(64, CAN_UINT(0) * 0.001); BmsSetCellVoltage(64, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9063: { case 0x9063: {
BmsSetCellVoltage(65, CAN_UINT(0) * 0.001); BmsSetCellVoltage(65, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9064: { case 0x9064: {
BmsSetCellVoltage(66, CAN_UINT(0) * 0.001); BmsSetCellVoltage(66, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9065: { case 0x9065: {
BmsSetCellVoltage(67, CAN_UINT(0) * 0.001); BmsSetCellVoltage(67, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9066: { case 0x9066: {
BmsSetCellVoltage(68, CAN_UINT(0) * 0.001); BmsSetCellVoltage(68, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9067: { case 0x9067: {
BmsSetCellVoltage(69, CAN_UINT(0) * 0.001); BmsSetCellVoltage(69, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9068: { case 0x9068: {
BmsSetCellVoltage(70, CAN_UINT(0) * 0.001); BmsSetCellVoltage(70, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9069: { case 0x9069: {
BmsSetCellVoltage(71, CAN_UINT(0) * 0.001); BmsSetCellVoltage(71, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x906A: { case 0x906A: {
BmsSetCellVoltage(72, CAN_UINT(0) * 0.001); BmsSetCellVoltage(72, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x906B: { case 0x906B: {
BmsSetCellVoltage(73, CAN_UINT(0) * 0.001); BmsSetCellVoltage(73, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x906C: { case 0x906C: {
BmsSetCellVoltage(74, CAN_UINT(0) * 0.001); BmsSetCellVoltage(74, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x906D: { case 0x906D: {
BmsSetCellVoltage(75, CAN_UINT(0) * 0.001); BmsSetCellVoltage(75, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x906E: { case 0x906E: {
BmsSetCellVoltage(76, CAN_UINT(0) * 0.001); BmsSetCellVoltage(76, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x906F: { case 0x906F: {
BmsSetCellVoltage(77, CAN_UINT(0) * 0.001); BmsSetCellVoltage(77, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9070: { case 0x9070: {
BmsSetCellVoltage(78, CAN_UINT(0) * 0.001); BmsSetCellVoltage(78, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9071: { case 0x9071: {
BmsSetCellVoltage(79, CAN_UINT(0) * 0.001); BmsSetCellVoltage(79, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9072: { case 0x9072: {
BmsSetCellVoltage(80, CAN_UINT(0) * 0.001); BmsSetCellVoltage(80, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9073: { case 0x9073: {
BmsSetCellVoltage(81, CAN_UINT(0) * 0.001); BmsSetCellVoltage(81, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9074: { case 0x9074: {
BmsSetCellVoltage(82, CAN_UINT(0) * 0.001); BmsSetCellVoltage(82, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9075: { case 0x9075: {
BmsSetCellVoltage(83, CAN_UINT(0) * 0.001); BmsSetCellVoltage(83, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9076: { case 0x9076: {
BmsSetCellVoltage(84, CAN_UINT(0) * 0.001); BmsSetCellVoltage(84, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9077: { case 0x9077: {
BmsSetCellVoltage(85, CAN_UINT(0) * 0.001); BmsSetCellVoltage(85, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9078: { case 0x9078: {
BmsSetCellVoltage(86, CAN_UINT(0) * 0.001); BmsSetCellVoltage(86, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9079: { case 0x9079: {
BmsSetCellVoltage(87, CAN_UINT(0) * 0.001); BmsSetCellVoltage(87, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x907A: { case 0x907A: {
BmsSetCellVoltage(88, CAN_UINT(0) * 0.001); BmsSetCellVoltage(88, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x907B: { case 0x907B: {
BmsSetCellVoltage(89, CAN_UINT(0) * 0.001); BmsSetCellVoltage(89, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x907C: { case 0x907C: {
BmsSetCellVoltage(90, CAN_UINT(0) * 0.001); BmsSetCellVoltage(90, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x907D: { case 0x907D: {
BmsSetCellVoltage(91, CAN_UINT(0) * 0.001); BmsSetCellVoltage(91, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x907E: { case 0x907E: {
BmsSetCellVoltage(92, CAN_UINT(0) * 0.001); BmsSetCellVoltage(92, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x907F: { case 0x907F: {
BmsSetCellVoltage(93, CAN_UINT(0) * 0.001); BmsSetCellVoltage(93, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9081: { case 0x9081: {
BmsSetCellVoltage(94, CAN_UINT(0) * 0.001); BmsSetCellVoltage(94, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9082: { case 0x9082: {
BmsSetCellVoltage(95, CAN_UINT(0) * 0.001); BmsSetCellVoltage(95, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }
case 0x9083: { case 0x9083: {
BmsSetCellVoltage(96, CAN_UINT(0) * 0.001); BmsSetCellVoltage(96, CAN_UINT(0) * 0.001);
ESP_LOGD(TAG, "%x: %f C", pid, CAN_UINT(0) * 0.001);
break; break;
} }

View file

@ -73,8 +73,6 @@ OvmsVehicleRenaultZoePh2::OvmsVehicleRenaultZoePh2() {
mt_bat_max_charge_power = MyMetrics.InitFloat("zph2.b.max.charge.power", SM_STALE_MID, 0, kW); mt_bat_max_charge_power = MyMetrics.InitFloat("zph2.b.max.charge.power", SM_STALE_MID, 0, kW);
mt_hvac_compressor_speed = MyMetrics.InitFloat("zph2.h.compressor.speed", SM_STALE_MID, 0); mt_hvac_compressor_speed = MyMetrics.InitFloat("zph2.h.compressor.speed", SM_STALE_MID, 0);
mt_bus_awake->SetValue(true);
// BMS configuration: // BMS configuration:
BmsSetCellArrangementVoltage(96, 8); BmsSetCellArrangementVoltage(96, 8);
BmsSetCellArrangementTemperature(12, 1); BmsSetCellArrangementTemperature(12, 1);