From db40010b933e3fd16cd2da6e2b18e4585e987697 Mon Sep 17 00:00:00 2001 From: Stefan Wahren Date: Sun, 31 Jan 2016 18:09:21 +0000 Subject: [PATCH] Add product strings of Berg DCMi, BLMi and BMB-10S0 --- mbus/mbus-protocol.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/mbus/mbus-protocol.c b/mbus/mbus-protocol.c index b9ec096..da3b9aa 100755 --- a/mbus/mbus-protocol.c +++ b/mbus/mbus-protocol.c @@ -893,6 +893,30 @@ mbus_data_product_name(mbus_data_variable_header *header) break; } } + else if (manufacturer == mbus_manufacturer_id("BEC")) + { + if (header->medium == MBUS_VARIABLE_DATA_MEDIUM_ELECTRICITY) + { + switch (header->version) + { + case 0x00: + strcpy(buff,"Berg DCMi"); + break; + case 0x07: + strcpy(buff,"Berg BLMi"); + break; + } + } + else if (header->medium == MBUS_VARIABLE_DATA_MEDIUM_UNKNOWN) + { + switch (header->version) + { + case 0x71: + strcpy(buff, "Berg BMB-10S0"); + break; + } + } + } else if (manufacturer == mbus_manufacturer_id("EFE")) { switch (header->version)