Skip to content

Commit

Permalink
Add product strings of some electricity meters:
Browse files Browse the repository at this point in the history
* Berg DCMi
* Berg BLMi
* Janitza UMG 96S
  • Loading branch information
Stefan Wahren committed May 10, 2014
1 parent b94d0ce commit 6c23e1d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions mbus/mbus-protocol.c
Expand Up @@ -880,6 +880,21 @@ 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 (manufacturer == mbus_manufacturer_id("EFE"))
{
switch (header->version)
Expand Down Expand Up @@ -973,6 +988,18 @@ mbus_data_product_name(mbus_data_variable_header *header)
break;
}
}
else if (manufacturer == mbus_manufacturer_id("JAN"))
{
if (header->medium == MBUS_VARIABLE_DATA_MEDIUM_ELECTRICITY)
{
switch (header->version)
{
case 0x09:
strcpy(buff,"Janitza UMG 96S");
break;
}
}
}
else if (manufacturer == mbus_manufacturer_id("LUG"))
{
switch (header->version)
Expand Down

0 comments on commit 6c23e1d

Please sign in to comment.