VIN full response

This commit is contained in:
Carsten Schmiemann 2022-05-08 22:57:56 +02:00
parent b30cd3498f
commit 88130b05bc

View file

@ -215,17 +215,18 @@ void OvmsVehicleRenaultZoePh2::IncomingBCM(uint16_t type, uint16_t pid, const ch
break;
}
case 0x4060: { //Vehicle identificaftion number
for(int i=0; i<10; i++) {
//Debug full response
char *buf = NULL;
size_t rlen = len, offset = 0;
do {
rlen = FormatHexDump(&buf, data + offset, rlen, 16);
offset += 16;
ESP_LOGW(TAG, "OBD2: unhandled reply from BCM [%02x %02x]: %s", type, pid, buf ? buf : "-");
ESP_LOGW(TAG, "4060 Vehicle identificaftion number debug [%02x %02x]: %s", type, pid, buf ? buf : "-");
} while (rlen);
if (buf)
free(buf);
for(int i=0; i<10; i++) {
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %s", ((char*)CAN_NIB(i)));
}
break;