rscada / libmbus

Meter-bus library and utility programs
http://www.rscada.se/libmbus
BSD 3-Clause "New" or "Revised" License
217 stars 137 forks source link

Unrecognized VIF extension: 0x01 #77

Open maherma-adg opened 9 years ago

maherma-adg commented 9 years ago

Using a Engelmann SensoStar 2C we get a Unrecognized VIF extension: 0x01 from measures corresponding to energy in MWh Tracing VIFE decoding routine, I think there is an error in this function because don't cover al cases defined on 8.4.4 section of MBus spec.

Test frame of this device is: 68 A6 A6 68 08 00 72 56 03 88 32 C5 14 01 04 62 00 00 00 04 78 E4 B6 F5 01 04 6D 1A 16 D3 11 04 16 5C 16 01 00 04 FB 01 36 01 00 00 84 20 FB 01 00 00 00 00 84 30 FB 01 00 00 00 00 04 3E 52 00 00 00 04 2E 8A 01 00 00 02 5B 36 00 02 5F 32 00 04 61 A4 01 00 00 02 27 C3 00 01 FD 17 10 04 90 28 40 42 0F 00 42 6C BF 1C 44 16 DD AE 00 00 44 FB 01 CB 00 00 00 C4 20 FB 01 00 00 00 00 C4 30 FB 01 00 00 00 00 82 01 6C 00 00 84 01 16 00 00 00 00 84 01 FB 01 00 00 00 00 84 21 FB 01 00 00 00 00 84 31 FB 01 00 00 00 00 F7 16

lategoodbye commented 9 years ago

Hi maherma-adg,

thank you for notice. libmbus can handle the Engelmann SensoStar 2C with the M-Bus decoding from mbus-protocol-aux (normalized). Unfortunately the example binaries in the bin directory still using the old decoding function. I plan to fix this in future.

In the case you only need decoding of the hex file, please look in the test directory. The program mbus_parse_hex supports the improved M-Bus decoding:

mbus_parse_hex -n test-frames/sensostar2c.hex
maherma-adg commented 9 years ago

Hi lategoodbye, Units isn't problem because our application is monitoring values and didn't use units. Thank you, Manuel.