wmbusmeters / wmbusmeters

Read the wired or wireless mbus protocol to acquire utility meter readings.
GNU General Public License v3.0
906 stars 221 forks source link

Apator NA-1 driver #1215

Open gitwoy opened 6 months ago

gitwoy commented 6 months ago

I want back to https://github.com/wmbusmeters/wmbusmeters/issues/793

Mine is Apator NA-1 water meter Meter ID 0x06414357 key: 00000000000000000000000000000000 unknown water counter readings, but for sure will not correspond with wmbus readings. Below is the actual time of the readings, so the counter should be identical or with a slight increase.

09:35:32 | [D] | [wmbus:176] | Meter ID [0x06414357] RSSI: -70 dBm LQI: 128 Frame: T1 A not found in configuration T: 1C440106574341061407A1E3004B277391923EE776069C110CE6F29BCB (29) 09:36:02 | [D] | [mbus:035] | Processing T1 A frame 09:36:02 | [D] | [wmbus:176] | Meter ID [0x06414357] RSSI: -74 dBm LQI: 128 Frame: T1 A not found in configuration T: 1C440106574341061407A1E6007BC6D26699199EDB64A663ABBBDB7238 (29) 09:36:11 | [D] | [mbus:035] | Processing T1 A frame 09:36:11 | [D] | [wmbus:176] | Meter ID [0x06414357] RSSI: -75 dBm LQI: 129 Frame: T1 A not found in configuration T: 1C440106574341061407A0E700474AF1742F5394F05F36AC1A6D4CC005 (29) 09:36:21 | [D] | [mbus:035] | Processing T1 A frame 09:36:22 | [D] | [wmbus:176] | Meter ID [0x06414357] RSSI: -74 dBm LQI: 128 Frame: T1 A not found in configuration T: 1C440106574341061407A0E800DC25BF6DAC4FD576D39FE6ED9056D0C0 (29) 09:36:51 | [D] | [mbus:035] | Processing T1 A frame 09:36:51 | [D] | [wmbus:176] | Meter ID [0x06414357] RSSI: -85 dBm LQI: 128 Frame: T1 A not found in configuration T: 1C440106574341061407A0EB006A5C5DB9AFDFF6F25111456769D71FA4 (29) 09:37:01 | [D] | [mbus:035] | Processing T1 A frame 09:37:01 | [D] | [wmbus:176] | Meter ID [0x06414357] RSSI: -63 dBm LQI: 128 Frame: T1 A not found in configuration T: 1C440106574341061407A1EC00FB831D6A1C5532022ED86262BD62A9CB

kzajac83 commented 6 months ago

How do you know that the key is all zeros?

Maybe try to contact Apator Telemetria from Słupsk (producer of all the overlays) about key or more information, this is division Apator Powogaz (water, heat gas meters) from Poznań/Jaryszki, I try for wired overlay but hard get some information but maybe you will be lucky.

gitwoy commented 6 months ago

Up to now all Apator's overlays (other than this one) I'm using have zeros, but I will try to contact the supplier.

gitwoy commented 6 months ago

According support the key is generated based of the serial no and for this overlay is B3E933C6F2681EA66CE76D082A057153. But even with this key none of the drivers work.

kzajac83 commented 6 months ago

Last days bought USB dongle with E07-900M10S chip (CC1101, inter alia to read 868MHz band) and found my APT-WMBUS-NA-1 main water meter.

Telegram from 24.03.2024 below:

[16:26:21][D][wmbus:182]: Meter ID [0x04913581] RSSI: -75 dBm LQI: 128 Frame: T1 A not found in configuration T: 1C440106813591041407A0B000266A705474DDB80D9A0EB9AE2EF29D96 (29)

[16:26:50][D][wmbus:182]: Meter ID [0x04913581] RSSI: -75 dBm LQI: 128 Frame: T1 A not found in configuration T: 1C440106813591041407A0B3003FA550900BDAF3D49FD2A13CA81A61ED (29)

[16:26:59][D][wmbus:182]: Meter ID [0x04913581] RSSI: -77 dBm LQI: 128 Frame: T1 A not found in configuration T: 1C440106813591041407A1B4009C87A8034F02E25E3CC161FC171A2D39 (29)

[16:27:19][D][wmbus:182]: Meter ID [0x04913581] RSSI: -75 dBm LQI: 128 Frame: T1 A not found in configuration T: 1C440106813591041407A0B600E63F50206F4062F253D80C4F762CAB51 (29)

[16:28:17][D][wmbus:182]: Meter ID [0x04913581] RSSI: -75 dBm LQI: 128 Frame: T1 A not found in configuration T: 1C440106813591041407A0BC002CA9A55981BE989CDBA3326154583F6B (29)

[16:30:04][D][wmbus:182]: Meter ID [0x04913581] RSSI: -76 dBm LQI: 128 Frame: T1 A not found in configuration T: 1C440106813591041407A0C700A1F6918F83A34FC2486AA4F57A57E9B9 (29)

ID 04913581 and from support.powogaz@apator.com got AES key

1F25361CDB14B6BC370CD77B2EC6517D

1F 25 36 1C DB 14  B6 BC 37 0C D7 7B 2E C6 51 7D

but results the same, somehow decoded:

https://wmbusmeters.org/analyze/1C440106813591041407A0B000266A705474DDB80D9A0EB9AE2EF29D96:auto:1F25361CDB14B6BC370CD77B2EC6517D

PS. What is interested the overlay have NFC and Android app from NXP "TagWriter" cannot read tag (phone read but data probably is also encrypted because no data visible).

weetmuts commented 6 months ago

So, its manufacturer specific data, however the two first bytes perhaps contains some continuously increasing value. 00E3 00E6 00E7 00EB 00EC its either a counter to make sure the encrypted block change even if the consumption does not change, or it is a reading.

Can you map these to your readings?

kzajac83 commented 6 months ago

Nothing tell me this values, for my example telegrams there was about 345.19 m3 on counter for 24.03.2024 , in below table the same telegram plus some extra telegrams for midnight 25.03.2024 (unfortunately don't know what is value m3 for this date).

In table below 1st 11. bytes are (w)m-bus header of the telegram, bytes 12-29 is manufacturer specification. Also 11th byte sometime "A0" and another time "A1".

Can you tell me how you extract values "00E3 00E6 00E7 00EB 00EC" ?

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">

  | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- 2024-03-24T15:26:21Z | 1C440106813591041407A0B000266A705474DDB80D9A0EB9AE2EF29D96 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | B0 | 00 | 26 | 6A | 70 | 54 | 74 | DD | B8 | 0D | 9A | 0E | B9 | AE | 2E | F2 | 9D | 96 2024-03-24T15:26:50Z | 1C440106813591041407A0B3003FA550900BDAF3D49FD2A13CA81A61ED | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | B3 | 00 | 3F | A5 | 50 | 90 | 0B | DA | F3 | D4 | 9F | D2 | A1 | 3C | A8 | 1A | 61 | ED 2024-03-24T15:26:59Z | 1C440106813591041407A1B4009C87A8034F02E25E3CC161FC171A2D39 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A1 | B4 | 00 | 9C | 87 | A8 | 03 | 4F | 02 | E2 | 5E | 3C | C1 | 61 | FC | 17 | 1A | 2D | 39 2024-03-24T15:27:19Z | 1C440106813591041407A0B600E63F50206F4062F253D80C4F762CAB51 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | B6 | 00 | E6 | 3F | 50 | 20 | 6F | 40 | 62 | F2 | 53 | D8 | 0C | 4F | 76 | 2C | AB | 51 2024-03-24T15:28:17Z | 1C440106813591041407A0BC002CA9A55981BE989CDBA3326154583F6B | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | BC | 00 | 2C | A9 | A5 | 59 | 81 | BE | 98 | 9C | DB | A3 | 32 | 61 | 54 | 58 | 3F | 6B 2024-03-24T15:30:04Z | 1C440106813591041407A0C700A1F6918F83A34FC2486AA4F57A57E9B9 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | C7 | 00 | A1 | F6 | 91 | 8F | 83 | A3 | 4F | C2 | 48 | 6A | A4 | F5 | 7A | 57 | E9 | B9 2024-03-25T23:16:39Z | 1C440106813591041407A00400B43972592028BDAF1873A9F93E214C0B | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | 04 | 00 | B4 | 39 | 72 | 59 | 20 | 28 | BD | AF | 18 | 73 | A9 | F9 | 3E | 21 | 4C | 0B 2024-03-25T23:19:40Z | 1C440106813591041407A007007FEFD0A82910610A927AC951DAABB6C5 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | 07 | 00 | 7F | EF | D0 | A8 | 29 | 10 | 61 | 0A | 92 | 7A | C9 | 51 | DA | AB | B6 | C5 2024-03-25T23:22:41Z | 1C440106813591041407A00A00E92BE6146D1AEC80EB59B53484C1FFEB | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | 0A | 00 | E9 | 2B | E6 | 14 | 6D | 1A | EC | 80 | EB | 59 | B5 | 34 | 84 | C1 | FF | EB 2024-03-25T23:25:41Z | 1C440106813591041407A00D001851DB180314A9CFB2A0FEF15425D21E | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | 0D | 00 | 18 | 51 | DB | 18 | 03 | 14 | A9 | CF | B2 | A0 | FE | F1 | 54 | 25 | D2 | 1E 2024-03-25T23:26:41Z | 1C440106813591041407A10E00F10E584D50811D2DBB1C643B489828D4 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A1 | 0E | 00 | F1 | 0E | 58 | 4D | 50 | 81 | 1D | 2D | BB | 1C | 64 | 3B | 48 | 98 | 28 | D4 2024-03-25T23:27:41Z | 1C440106813591041407A00F00C29392E42D9DAEA6686D1BF5D150186C | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | 0F | 00 | C2 | 93 | 92 | E4 | 2D | 9D | AE | A6 | 68 | 6D | 1B | F5 | D1 | 50 | 18 | 6C 2024-03-25T23:?Z+60s | 1C440106813591041407A10E00F10E584D50811D2DBB1C643B489828D4 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A1 | 0E | 00 | F1 | 0E | 58 | 4D | 50 | 81 | 1D | 2D | BB | 1C | 64 | 3B | 48 | 98 | 28 | D4 2024-03-25T23:?Z+60s | 1C440106813591041407A00F00C29392E42D9DAEA6686D1BF5D150186C | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | 0F | 00 | C2 | 93 | 92 | E4 | 2D | 9D | AE | A6 | 68 | 6D | 1B | F5 | D1 | 50 | 18 | 6C 2024-03-25T23:?Z+60s | 1C440106813591041407A022004658CA87A76B5B37069B26BD49F975E2 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | 22 | 00 | 46 | 58 | CA | 87 | A7 | 6B | 5B | 37 | 06 | 9B | 26 | BD | 49 | F9 | 75 | E2 2024-03-25T23:?Z+60s | 1C440106813591041407A024008403BA640D80016D0C71302EA96A43D3 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | 24 | 00 | 84 | 03 | BA | 64 | 0D | 80 | 01 | 6D | 0C | 71 | 30 | 2E | A9 | 6A | 43 | D3

kzajac83 commented 6 months ago

Made one step forward, successfully encode AES 128 data from manufacturer spec. block.

General bytes in my cause: 1-10 - (w)M-Bus header 11 - values A0 or A1 only, part of header? Maybe alternative values every send telegram?? 12 - Manf block - counter sent telegrams. Every telegram inc value +1 to FF and jump to 00 13 - Manuf block - always zeros 14-29 - AES 128 decoded, KEY=16 x double zeros (KEY not from producer)

Encoded 14-29 bytes in last column. Now this block have sense, need focus on in below table.

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">

14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- 2E | 06 | CF | 61 | 91 | 28 | A4 | 96 | 9D | 91 | B9 | 15 | 9B | B0 | B0 | 30 2E | 05 | CF | 61 | 91 | 4D | A4 | 96 | 9E | 92 | BB | 15 | 98 | B3 | B3 | 33 2E | 02 | CF | 61 | 91 | 57 | A4 | 96 | 99 | 95 | BD | 12 | 9F | B4 | B4 | 34 2E | 01 | CF | 61 | 91 | 62 | A4 | 96 | 9B | 97 | BE | 11 | 9D | B6 | B6 | 36 2E | 08 | CF | 61 | 91 | A4 | A4 | 96 | 91 | 9D | B7 | 14 | 97 | BC | BC | 3C 2E | 06 | CE | 61 | 91 | 08 | A5 | 96 | EA | E6 | CE | 6E | EC | C7 | C7 | 47 2E | 0B | CD | 60 | 91 | 61 | D5 | 93 | 29 | 5D | 0E | A4 | 2B | 04 | 04 | 84 2E | 09 | CD | 60 | 91 | 1E | D6 | 93 | 2A | 5E | 0F | A6 | 28 | 07 | 07 | 87 2E | 06 | CC | 60 | 91 | CB | D6 | 93 | 27 | 53 | 03 | AB | 25 | 0A | 0A | 8A 2E | 06 | CC | 60 | 91 | 87 | D7 | 93 | 20 | 54 | 04 | AC | 22 | 0D | 0D | 8D 2E | 06 | CC | 60 | 91 | BB | D7 | 93 | 23 | 57 | 07 | AF | 21 | 0E | 0E | 8E 2E | 06 | CC | 60 | 91 | FF | D7 | 93 | 22 | 56 | 06 | AE | 20 | 0F | 0F | 8F 2E | 06 | CC | 60 | 91 | BB | D7 | 93 | 23 | 57 | 07 | AF | 21 | 0E | 0E | 8E 2E | 06 | CC | 60 | 91 | FF | D7 | 93 | 22 | 56 | 06 | AE | 20 | 0F | 0F | 8F 2E | 05 | CC | 60 | 91 | 6E | DC | 93 | 0F | 7B | 2A | 80 | 0D | 22 | 22 | A2 2E | 05 | CC | 60 | 91 | E5 | DC | 93 | 09 | 7D | 2C | 86 | 0B | 24 | 24 | A4 2E | 0B | 46 | 60 | 91 | FE | 12 | 91 | E9 | B4 | CE | 48 | F5 | C4 | C4 | 44 2E | 0B | 46 | 60 | 91 | 31 | 13 | 91 | E8 | B5 | CF | 49 | F4 | C5 | C5 | 45 2E | 0B | 46 | 60 | 91 | 24 | 1C | 91 | E4 | B9 | C3 | 45 | F8 | C9 | C9 | 49 2E | 0B | 46 | 60 | 91 | 5F | 1C | 91 | E7 | BA | C0 | 46 | FB | CA | CA | 4A 2E | 0B | 46 | 60 | 91 | 92 | 1C | 91 | E6 | BB | C1 | 47 | FA | CB | CB | 4B 2E | 0B | 46 | 60 | 91 | D5 | 1C | 91 | E1 | BC | C6 | 40 | FD | CC | CC | 4C 2E | 0B | 46 | 60 | 91 | 0F | 1D | 91 | E0 | BD | C7 | 41 | FC | CD | CD | 4D 2E | 0B | 46 | 60 | 91 | 42 | 1D | 91 | E3 | BE | C4 | 42 | FF | CE | CE | 4E 2E | 0B | 46 | 60 | 91 | B8 | 1D | 91 | FD | A0 | DA | 5C | E1 | D0 | D0 | 50 2E | 09 | 46 | 60 | 91 | 37 | 1E | 91 | FF | A2 | DA | 5F | E3 | D2 | D2 | 52 2E | 0A | 49 | 60 | 91 | 92 | 1F | 91 | F5 | A8 | D1 | 48 | E9 | D8 | D8 | 58 2E | 0A | 49 | 60 | 91 | D5 | 1F | 91 | F4 | A9 | D0 | 49 | E8 | D9 | D9 | 59 2E | 0A | 49 | 60 | 91 | 08 | 18 | 91 | F7 | AA | D3 | 4A | EB | DA | DA | 5A 2E | 0A | 49 | 60 | 91 | FE | 18 | 91 | F3 | AE | D7 | 4E | EF | DE | DE | 5E 2E | 0A | 49 | 60 | 91 | 31 | 19 | 91 | F2 | AF | D6 | 4F | EE | DF | DF | 5F

And all data in tables:

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">

Timestamp | Raw telegram | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | Substring from 14-29 col | Encoded substring AES 128  16th zeros | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- 2024-03-24T15:26:21Z | 1C440106813591041407A0B000266A705474DDB80D9A0EB9AE2EF29D96 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | B0 | 00 | 26 | 6A | 70 | 54 | 74 | DD | B8 | 0D | 9A | 0E | B9 | AE | 2E | F2 | 9D | 96 | 266A705474DDB80D9A0EB9AE2EF29D96 | 2E06CF619128A4969D91B9159BB0B030 | 2E | 06 | CF | 61 | 91 | 28 | A4 | 96 | 9D | 91 | B9 | 15 | 9B | B0 | B0 | 30 2024-03-24T15:26:50Z | 1C440106813591041407A0B3003FA550900BDAF3D49FD2A13CA81A61ED | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | B3 | 00 | 3F | A5 | 50 | 90 | 0B | DA | F3 | D4 | 9F | D2 | A1 | 3C | A8 | 1A | 61 | ED | 3FA550900BDAF3D49FD2A13CA81A61ED | 2E05CF61914DA4969E92BB1598B3B333 | 2E | 05 | CF | 61 | 91 | 4D | A4 | 96 | 9E | 92 | BB | 15 | 98 | B3 | B3 | 33 2024-03-24T15:26:59Z | 1C440106813591041407A1B4009C87A8034F02E25E3CC161FC171A2D39 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A1 | B4 | 00 | 9C | 87 | A8 | 03 | 4F | 02 | E2 | 5E | 3C | C1 | 61 | FC | 17 | 1A | 2D | 39 | 9C87A8034F02E25E3CC161FC171A2D39 | 2E02CF619157A4969995BD129FB4B434 | 2E | 02 | CF | 61 | 91 | 57 | A4 | 96 | 99 | 95 | BD | 12 | 9F | B4 | B4 | 34 2024-03-24T15:27:19Z | 1C440106813591041407A0B600E63F50206F4062F253D80C4F762CAB51 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | B6 | 00 | E6 | 3F | 50 | 20 | 6F | 40 | 62 | F2 | 53 | D8 | 0C | 4F | 76 | 2C | AB | 51 | E63F50206F4062F253D80C4F762CAB51 | 2E01CF619162A4969B97BE119DB6B636 | 2E | 01 | CF | 61 | 91 | 62 | A4 | 96 | 9B | 97 | BE | 11 | 9D | B6 | B6 | 36 2024-03-24T15:28:17Z | 1C440106813591041407A0BC002CA9A55981BE989CDBA3326154583F6B | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | BC | 00 | 2C | A9 | A5 | 59 | 81 | BE | 98 | 9C | DB | A3 | 32 | 61 | 54 | 58 | 3F | 6B | 2CA9A55981BE989CDBA3326154583F6B | 2E08CF6191A4A496919DB71497BCBC3C | 2E | 08 | CF | 61 | 91 | A4 | A4 | 96 | 91 | 9D | B7 | 14 | 97 | BC | BC | 3C 2024-03-24T15:30:04Z | 1C440106813591041407A0C700A1F6918F83A34FC2486AA4F57A57E9B9 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | C7 | 00 | A1 | F6 | 91 | 8F | 83 | A3 | 4F | C2 | 48 | 6A | A4 | F5 | 7A | 57 | E9 | B9 | A1F6918F83A34FC2486AA4F57A57E9B9 | 2E06CE619108A596EAE6CE6EECC7C747 | 2E | 06 | CE | 61 | 91 | 08 | A5 | 96 | EA | E6 | CE | 6E | EC | C7 | C7 | 47 2024-03-25T23:16:39Z | 1C440106813591041407A00400B43972592028BDAF1873A9F93E214C0B | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | 04 | 00 | B4 | 39 | 72 | 59 | 20 | 28 | BD | AF | 18 | 73 | A9 | F9 | 3E | 21 | 4C | 0B | B43972592028BDAF1873A9F93E214C0B | 2E0BCD609161D593295D0EA42B040484 | 2E | 0B | CD | 60 | 91 | 61 | D5 | 93 | 29 | 5D | 0E | A4 | 2B | 04 | 04 | 84 2024-03-25T23:19:40Z | 1C440106813591041407A007007FEFD0A82910610A927AC951DAABB6C5 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | 07 | 00 | 7F | EF | D0 | A8 | 29 | 10 | 61 | 0A | 92 | 7A | C9 | 51 | DA | AB | B6 | C5 | 7FEFD0A82910610A927AC951DAABB6C5 | 2E09CD60911ED6932A5E0FA628070787 | 2E | 09 | CD | 60 | 91 | 1E | D6 | 93 | 2A | 5E | 0F | A6 | 28 | 07 | 07 | 87 2024-03-25T23:22:41Z | 1C440106813591041407A00A00E92BE6146D1AEC80EB59B53484C1FFEB | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | 0A | 00 | E9 | 2B | E6 | 14 | 6D | 1A | EC | 80 | EB | 59 | B5 | 34 | 84 | C1 | FF | EB | E92BE6146D1AEC80EB59B53484C1FFEB | 2E06CC6091CBD693275303AB250A0A8A | 2E | 06 | CC | 60 | 91 | CB | D6 | 93 | 27 | 53 | 03 | AB | 25 | 0A | 0A | 8A 2024-03-25T23:25:41Z | 1C440106813591041407A00D001851DB180314A9CFB2A0FEF15425D21E | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | 0D | 00 | 18 | 51 | DB | 18 | 03 | 14 | A9 | CF | B2 | A0 | FE | F1 | 54 | 25 | D2 | 1E | 1851DB180314A9CFB2A0FEF15425D21E | 2E06CC609187D793205404AC220D0D8D | 2E | 06 | CC | 60 | 91 | 87 | D7 | 93 | 20 | 54 | 04 | AC | 22 | 0D | 0D | 8D 2024-03-25T23:26:41Z | 1C440106813591041407A10E00F10E584D50811D2DBB1C643B489828D4 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A1 | 0E | 00 | F1 | 0E | 58 | 4D | 50 | 81 | 1D | 2D | BB | 1C | 64 | 3B | 48 | 98 | 28 | D4 | F10E584D50811D2DBB1C643B489828D4 | 2E06CC6091BBD793235707AF210E0E8E | 2E | 06 | CC | 60 | 91 | BB | D7 | 93 | 23 | 57 | 07 | AF | 21 | 0E | 0E | 8E 2024-03-25T23:27:41Z | 1C440106813591041407A00F00C29392E42D9DAEA6686D1BF5D150186C | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | 0F | 00 | C2 | 93 | 92 | E4 | 2D | 9D | AE | A6 | 68 | 6D | 1B | F5 | D1 | 50 | 18 | 6C | C29392E42D9DAEA6686D1BF5D150186C | 2E06CC6091FFD793225606AE200F0F8F | 2E | 06 | CC | 60 | 91 | FF | D7 | 93 | 22 | 56 | 06 | AE | 20 | 0F | 0F | 8F 2024-03-25T23:?Z + 60s | 1C440106813591041407A10E00F10E584D50811D2DBB1C643B489828D4 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A1 | 0E | 00 | F1 | 0E | 58 | 4D | 50 | 81 | 1D | 2D | BB | 1C | 64 | 3B | 48 | 98 | 28 | D4 | F10E584D50811D2DBB1C643B489828D4 | 2E06CC6091BBD793235707AF210E0E8E | 2E | 06 | CC | 60 | 91 | BB | D7 | 93 | 23 | 57 | 07 | AF | 21 | 0E | 0E | 8E 2024-03-25T23:?Z + 60s | 1C440106813591041407A00F00C29392E42D9DAEA6686D1BF5D150186C | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | 0F | 00 | C2 | 93 | 92 | E4 | 2D | 9D | AE | A6 | 68 | 6D | 1B | F5 | D1 | 50 | 18 | 6C | C29392E42D9DAEA6686D1BF5D150186C | 2E06CC6091FFD793225606AE200F0F8F | 2E | 06 | CC | 60 | 91 | FF | D7 | 93 | 22 | 56 | 06 | AE | 20 | 0F | 0F | 8F 2024-03-25T23:?Z + 60s | 1C440106813591041407A022004658CA87A76B5B37069B26BD49F975E2 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | 22 | 00 | 46 | 58 | CA | 87 | A7 | 6B | 5B | 37 | 06 | 9B | 26 | BD | 49 | F9 | 75 | E2 | 4658CA87A76B5B37069B26BD49F975E2 | 2E05CC60916EDC930F7B2A800D2222A2 | 2E | 05 | CC | 60 | 91 | 6E | DC | 93 | 0F | 7B | 2A | 80 | 0D | 22 | 22 | A2 2024-03-25T23:?Z + 60s | 1C440106813591041407A024008403BA640D80016D0C71302EA96A43D3 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | 24 | 00 | 84 | 03 | BA | 64 | 0D | 80 | 01 | 6D | 0C | 71 | 30 | 2E | A9 | 6A | 43 | D3 | 8403BA640D80016D0C71302EA96A43D3 | 2E05CC6091E5DC93097D2C860B2424A4 | 2E | 05 | CC | 60 | 91 | E5 | DC | 93 | 09 | 7D | 2C | 86 | 0B | 24 | 24 | A4 2024-03-26T22:25:49Z | 1C440106813591041407A0C400DF29FB8809D6F020A8DA7043F5C7667C | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | C4 | 00 | DF | 29 | FB | 88 | 09 | D6 | F0 | 20 | A8 | DA | 70 | 43 | F5 | C7 | 66 | 7C | DF29FB8809D6F020A8DA7043F5C7667C | 2E0B466091FE1291E9B4CE48F5C4C444 | 2E | 0B | 46 | 60 | 91 | FE | 12 | 91 | E9 | B4 | CE | 48 | F5 | C4 | C4 | 44 2024-03-26T22:26:47Z | 1C440106813591041407A1C500C1E4DE9930CED817BC9171189A0D11B9 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A1 | C5 | 00 | C1 | E4 | DE | 99 | 30 | CE | D8 | 17 | BC | 91 | 71 | 18 | 9A | 0D | 11 | B9 | C1E4DE9930CED817BC9171189A0D11B9 | 2E0B466091311391E8B5CF49F4C5C545 | 2E | 0B | 46 | 60 | 91 | 31 | 13 | 91 | E8 | B5 | CF | 49 | F4 | C5 | C5 | 45 2024-03-26T22:30:43Z | 1C440106813591041407A0C900AD0088BEB69B3E52047216181BF64EFF | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | C9 | 00 | AD | 00 | 88 | BE | B6 | 9B | 3E | 52 | 04 | 72 | 16 | 18 | 1B | F6 | 4E | FF | AD0088BEB69B3E52047216181BF64EFF | 2E0B466091241C91E4B9C345F8C9C949 | 2E | 0B | 46 | 60 | 91 | 24 | 1C | 91 | E4 | B9 | C3 | 45 | F8 | C9 | C9 | 49 2024-03-26T22:31:41Z | 1C440106813591041407A0CA00B1DD1FA5A2C791D5D1C119AE3158BB5D | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | CA | 00 | B1 | DD | 1F | A5 | A2 | C7 | 91 | D5 | D1 | C1 | 19 | AE | 31 | 58 | BB | 5D | B1DD1FA5A2C791D5D1C119AE3158BB5D | 2E0B4660915F1C91E7BAC046FBCACA4A | 2E | 0B | 46 | 60 | 91 | 5F | 1C | 91 | E7 | BA | C0 | 46 | FB | CA | CA | 4A 2024-03-26T22:32:40Z | 1C440106813591041407A1CB00A33D421C8B1D8E9B3B3F37D21AB3CD8F | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A1 | CB | 00 | A3 | 3D | 42 | 1C | 8B | 1D | 8E | 9B | 3B | 3F | 37 | D2 | 1A | B3 | CD | 8F | A33D421C8B1D8E9B3B3F37D21AB3CD8F | 2E0B466091921C91E6BBC147FACBCB4B | 2E | 0B | 46 | 60 | 91 | 92 | 1C | 91 | E6 | BB | C1 | 47 | FA | CB | CB | 4B 2024-03-26T22:33:39Z | 1C440106813591041407A0CC00C08B71B9993542CB45B1F2E7919D8898 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | CC | 00 | C0 | 8B | 71 | B9 | 99 | 35 | 42 | CB | 45 | B1 | F2 | E7 | 91 | 9D | 88 | 98 | C08B71B9993542CB45B1F2E7919D8898 | 2E0B466091D51C91E1BCC640FDCCCC4C | 2E | 0B | 46 | 60 | 91 | D5 | 1C | 91 | E1 | BC | C6 | 40 | FD | CC | CC | 4C 2024-03-26T22:34:38Z | 1C440106813591041407A0CD007E9353347F4404E60126C8A0AD924B12 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | CD | 00 | 7E | 93 | 53 | 34 | 7F | 44 | 04 | E6 | 01 | 26 | C8 | A0 | AD | 92 | 4B | 12 | 7E9353347F4404E60126C8A0AD924B12 | 2E0B4660910F1D91E0BDC741FCCDCD4D | 2E | 0B | 46 | 60 | 91 | 0F | 1D | 91 | E0 | BD | C7 | 41 | FC | CD | CD | 4D 2024-03-26T22:35:37Z | 1C440106813591041407A1CE00843F267ABE6A15036E0583911195509E | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A1 | CE | 00 | 84 | 3F | 26 | 7A | BE | 6A | 15 | 03 | 6E | 05 | 83 | 91 | 11 | 95 | 50 | 9E | 843F267ABE6A15036E0583911195509E | 2E0B466091421D91E3BEC442FFCECE4E | 2E | 0B | 46 | 60 | 91 | 42 | 1D | 91 | E3 | BE | C4 | 42 | FF | CE | CE | 4E 2024-03-26T22:37:35Z | 1C440106813591041407A0D000B8176E73FB92C442F87F400BD25D8ED7 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | D0 | 00 | B8 | 17 | 6E | 73 | FB | 92 | C4 | 42 | F8 | 7F | 40 | 0B | D2 | 5D | 8E | D7 | B8176E73FB92C442F87F400BD25D8ED7 | 2E0B466091B81D91FDA0DA5CE1D0D050 | 2E | 0B | 46 | 60 | 91 | B8 | 1D | 91 | FD | A0 | DA | 5C | E1 | D0 | D0 | 50 2024-03-26T22:39:33Z | 1C440106813591041407A0D20008FC760862A36C7587EE68DBA611DFD9 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | D2 | 00 | 08 | FC | 76 | 08 | 62 | A3 | 6C | 75 | 87 | EE | 68 | DB | A6 | 11 | DF | D9 | 08FC760862A36C7587EE68DBA611DFD9 | 2E09466091371E91FFA2DA5FE3D2D252 | 2E | 09 | 46 | 60 | 91 | 37 | 1E | 91 | FF | A2 | DA | 5F | E3 | D2 | D2 | 52 2024-03-26T22:45:28Z | 1C440106813591041407A0D80073F57D5AA922166CA546318DA9B6E0EF | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | D8 | 00 | 73 | F5 | 7D | 5A | A9 | 22 | 16 | 6C | A5 | 46 | 31 | 8D | A9 | B6 | E0 | EF | 73F57D5AA922166CA546318DA9B6E0EF | 2E0A496091921F91F5A8D148E9D8D858 | 2E | 0A | 49 | 60 | 91 | 92 | 1F | 91 | F5 | A8 | D1 | 48 | E9 | D8 | D8 | 58 2024-03-26T22:46:28Z | 1C440106813591041407A0D900710C5D000A3A9EA1AFCF78B93B85D2CB | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | D9 | 00 | 71 | 0C | 5D | 00 | 0A | 3A | 9E | A1 | AF | CF | 78 | B9 | 3B | 85 | D2 | CB | 710C5D000A3A9EA1AFCF78B93B85D2CB | 2E0A496091D51F91F4A9D049E8D9D959 | 2E | 0A | 49 | 60 | 91 | D5 | 1F | 91 | F4 | A9 | D0 | 49 | E8 | D9 | D9 | 59 2024-03-26T22:47:27Z | 1C440106813591041407A1DA00AD2DB7B162CD2982788FAD53DBD3CDE2 | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A1 | DA | 00 | AD | 2D | B7 | B1 | 62 | CD | 29 | 82 | 78 | 8F | AD | 53 | DB | D3 | CD | E2 | AD2DB7B162CD2982788FAD53DBD3CDE2 | 2E0A496091081891F7AAD34AEBDADA5A | 2E | 0A | 49 | 60 | 91 | 08 | 18 | 91 | F7 | AA | D3 | 4A | EB | DA | DA | 5A 2024-03-26T22:51:24Z | 1C440106813591041407A0DE0069D1DA13BF0FDBBB207C3243E96164CE | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | DE | 00 | 69 | D1 | DA | 13 | BF | 0F | DB | BB | 20 | 7C | 32 | 43 | E9 | 61 | 64 | CE | 69D1DA13BF0FDBBB207C3243E96164CE | 2E0A496091FE1891F3AED74EEFDEDE5E | 2E | 0A | 49 | 60 | 91 | FE | 18 | 91 | F3 | AE | D7 | 4E | EF | DE | DE | 5E 2024-03-26T22:52:24Z | 1C440106813591041407A0DF0048911DE141FBB0AB5E224172DE9B4E7F | 1C | 44 | 01 | 06 | 81 | 35 | 91 | 04 | 14 | 07 | A0 | DF | 00 | 48 | 91 | 1D | E1 | 41 | FB | B0 | AB | 5E | 22 | 41 | 72 | DE | 9B | 4E | 7F | 48911DE141FBB0AB5E224172DE9B4E7F | 2E0A496091311991F2AFD64FEEDFDF5F | 2E | 0A | 49 | 60 | 91 | 31 | 19 | 91 | F2 | AF | D6 | 4F | EE | DF | DF | 5F

abusca commented 6 months ago

Hi @kzajac83

I have an APT-WMBUS-NA-1 connected to a meter that I can manipulate. I can paste my read telegrams if it helps.

kzajac83 commented 6 months ago

@abusca Today upgrade my excel spreadsheet to easier encode telegrams (earlier it was long manual work) so please send your telegrams, I will easy encode manufacturing specification part. I assume key = 16. zeros, if will be different I will let you know. Additional useful will be timestamp (data + time), value m3 (or liters), flow condition (on / off), magnets put or not (overlay recognize magnetic field) to each telegram. Maybe based on this information will be possible recognize encoded manuf. spec. My overlay is not my and I have hard access to it (in cellar) so your data will be helpful.

Have you maybe access to Inkasoid/Inkasent Apator app PC/Android? .
BTW. Because other Apator's overlay has been recognize then maybe answer is in other Apator's drivers, not checking this thread.

kzajac83 commented 6 months ago

PS. Many useful information is stored in specification: https://api.apator.com/uploads/oferta/woda-i-cieplo/systemy/radiowy/apt-wmbus-na-1/apt-wmbus-na-1-manual.pdf

apt-wmbus-na-1-manual.pdf

eg. regarding encryption

All RF data communication with the module is encrypted

The encryption of data exchanged over ISM 868 MHz RF transmission is based on AES-CBC with a static 128-bit encryption key with a dynamic trigger vector. To enable correct data communication with the universal RF module, the software/firmware of the external device must use the encryption key assigned to the same module.

Unidirectional (T1): metered usage (actual reading + 1 historical reading (the last saved one)); event flags

and the same in other part of document:

RF interface-based data reading and writing The universal RF module transmits a spontaneous T1 data frame every 10 seconds between 5:00 and 21:00 and every 60 seconds between 21:00 and 5:00. **The data frame contents follow:

  • Actual water meter indication and actual device date and time;
  • The last historical water meter indication with its save date and time;
  • Event flags (see details further in the Manual).**

The universal RF module can store up to 12 previous water meter indications, and the storage period is configurable (by choosing between one week, one month, or one year). Each spontaneous data frame (T1 mode) includes the last water meter indication. The full history of readings can be read (and includes 12 historical indications) in T2 mode (bidirectional communication) if triggered by an RF command or over NFC

Can try NFC but probably Inkasoid app is need to encode, when I try read NFC 3th part app then nothing read (there was "beep" for read but app nothing read). Via NFC you can check:

Some data exchanged over NFC is not encrypted, which includes:

  • Actual water meter indication
  • Actual device date and time
  • The last 12 historical water meter indications with their save date and time
  • Event flags
  • Event details
  • Device configuration

The following data is encrypted and requires an encryption key for processing:

  • Diagnostic data

There are also information events and type of it.

abusca commented 6 months ago

I'm using a modified version of wmbusmeters, because I'm developing an standalone embedded data recorder, so following logs may not follow standard wmbusmeters logs.

The water meter is not tied to any pipe. I have it in my hands, so I need to blow in order to change the reading...

First scenario: APT-WMBUS-NA-1 connected to water meter. Water meter shows 00000,102m3.

2024-03-27 20:21:08 --> 1C4401061426170414073D21A1B6002053209A6E49346F69A2B789559D5C384F1DECE300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

2024-03-27 20:21:18 --> 1C4401061426170414073D21A0B700F37D6A28AA9671B41200EFD0A0ABEC9813D0A1E100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

2024-03-27 20:21:37 --> 1C4401061426170414073D21A1B900F1158D30356DCE283ADE9D53134A387EBA59C2BB00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

2024-03-27 20:21:57 --> 1C4401061426170414073D21A0BB00692C2D9104F72ED93A029D9A9B1EF9F66784004600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Second scenario: APT-WMBUS-NA-1 connected to water meter. Water meter shows 00000,122m3.

2024-03-27 20:36:31 --> 1C4401061426170414073D21A1130014CBBA62E87B2E10ECED48F13B3BB4E9260969D200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

2024-03-27 20:36:51 --> 1C4401061426170414073D21A015008B9B7838D12317CF565B027ECB979F5E6446984E00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

2024-03-27 20:37:01 --> 1C4401061426170414073D21A1160012092099529918A97958995D07FFD75E9FCDE82100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

2024-03-27 20:37:31 --> 1C4401061426170414073D21A11900AA56EABE62B9DCA316330EF7BCEF1FC04006C42D00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Third scenario: APT-WMBUS-NA-1 NOT connected to water meter.

2024-03-27 20:42:17 --> 1C4401061426170414073D21A03600EEA0884A7DF9A501BB726D7AE68039AF9AB1EB9600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

2024-03-27 20:42:27 --> 1C4401061426170414073D21A13700659B027CB08951F7E1783B97AD48476666DEEAFB00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

2024-03-27 20:42:37 --> 1C4401061426170414073D21A03800D7DAF054E0B983A1EAB4B7D443EA69012FF021BE00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

2024-03-27 20:42:47 --> 1C4401061426170414073D21A0390035EBDAE7916E09BD80954409581C22E7D4E4ED3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
jacek27 commented 6 months ago

Those devices at least in principle should NOT have a 0 key. While having the proper key, please try to use the ultrimis driver, it should work at least for the current volume.

kzajac83 commented 6 months ago

@abusca Yes probably not standard, in bytes your telegram long is 35 bytes, I have 29 bytes total. Wmbusmeters decode mfct part to 33 bytes total (last 2 bytes is omitted, maybe to close telegram / communication ??). However this is still 4 bytes longer than my telegram and author of the issue. General I have 16 bytes decoded part, you have 20 bytes.

Therefore now don't know how encode longer longer telegram than 16 bytes in excel, sorry cannot help now, I need work on it.

Also is interested why you have longer telegram, I know 100% that my overlay have no errors and because you have removed the overlay then I'm sure appear error flag in your overlay and last flags seems are error flags.

kzajac83 commented 6 months ago

@jacek27 Key is not 0 but "00000000000000000000000000000000" in my cause. Maybe I wrong understood but key is string, not value. Also when use KEY from supplier then after AES encode got the same nonsense bytes when comparing telegram_n VS telegram_n-1 and telegram_n+1. Additional ultrimis driver not work for me, no any data encoded with KEY from Apator and zeros.

jacek27 commented 6 months ago

@kzajac83 Maybe some clarification is needed, Powogaz had 2 devices named NA-1 APT-WMBUS-NA1 and APT-OMS-NA-1, those are quite different devices. Based on info you provided this thread might not adress your device.

kzajac83 commented 6 months ago

@jacek27 we are speaking about this:

https://api.apator.com/thumbnails/gallery_post_main/uploads/oferta/woda-i-cieplo/systemy/radiowy/apt-wmbus-na-1/apt-wmbus-na-1.jpg

kzajac83 commented 6 months ago

Maybe someone help.

Looking into decoded AES values from manuf. spec. seems bytes 2 to 4 (5?) is current value (in liters?) from overlay. I take the data and using hex2byte convert hex values into binary string, next split the byte into two 4 bites and create columns 2a, 2b, 3a, 3b, 4a, 4b (and 5? - const hex value 91) for better view, is visible increasing value in sections, but cannot extract correct value form this data. From top form below table value on overlay is ~345.19 m3 and going down in the table value in the meter increase.

Value under 2a column should be last digit of the value (in liters?). Next digits (middle) of the value is under byte 3 (a+b) and first digits of the value are under byte 4 (a+b). Maybe 5 is also part of value because is constant (expect one occure 33 but maybe this is mistake).

Please note decoded manuf. spec. in the table is not one-by-one digest telegrams, the data come from many days for few minutes, sometime pieces of decoded values is one-by-one, but not always.

Additional manuf, spec. bytes (5?) 6 to 8 seems is timestamp but now leave it.

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">

2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |   | 2a | 2b | 3a | 3b | 4a | 4b | 5 -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- 06 | CF | 61 | 91 | 28 | A4 | 96 | 9D | 91 | B9 | 15 | 9B | B0 | B0 | 30 |   | 0000 | 0110 | 1100 | 1111 | 0110 | 0001 | 10010001 05 | CF | 61 | 91 | 4D | A4 | 96 | 9E | 92 | BB | 15 | 98 | B3 | B3 | 33 |   | 0000 | 0101 | 1100 | 1111 | 0110 | 0001 | 10010001 02 | CF | 61 | 91 | 57 | A4 | 96 | 99 | 95 | BD | 12 | 9F | B4 | B4 | 34 |   | 0000 | 0010 | 1100 | 1111 | 0110 | 0001 | 10010001 01 | CF | 61 | 91 | 62 | A4 | 96 | 9B | 97 | BE | 11 | 9D | B6 | B6 | 36 |   | 0000 | 0001 | 1100 | 1111 | 0110 | 0001 | 10010001 08 | CF | 61 | 91 | A4 | A4 | 96 | 91 | 9D | B7 | 14 | 97 | BC | BC | 3C |   | 0000 | 1000 | 1100 | 1111 | 0110 | 0001 | 10010001 06 | CE | 61 | 91 | 08 | A5 | 96 | EA | E6 | CE | 6E | EC | C7 | C7 | 47 |   | 0000 | 0110 | 1100 | 1110 | 0110 | 0001 | 10010001 0B | CD | 60 | 91 | 61 | D5 | 93 | 29 | 5D | 0E | A4 | 2B | 04 | 04 | 84 |   | 0000 | 1011 | 1100 | 1101 | 0110 | 0000 | 10010001 09 | CD | 60 | 91 | 1E | D6 | 93 | 2A | 5E | 0F | A6 | 28 | 07 | 07 | 87 |   | 0000 | 1001 | 1100 | 1101 | 0110 | 0000 | 10010001 06 | CC | 60 | 91 | CB | D6 | 93 | 27 | 53 | 03 | AB | 25 | 0A | 0A | 8A |   | 0000 | 0110 | 1100 | 1100 | 0110 | 0000 | 10010001 06 | CC | 60 | 91 | 87 | D7 | 93 | 20 | 54 | 04 | AC | 22 | 0D | 0D | 8D |   | 0000 | 0110 | 1100 | 1100 | 0110 | 0000 | 10010001 06 | CC | 60 | 91 | BB | D7 | 93 | 23 | 57 | 07 | AF | 21 | 0E | 0E | 8E |   | 0000 | 0110 | 1100 | 1100 | 0110 | 0000 | 10010001 06 | CC | 60 | 91 | FF | D7 | 93 | 22 | 56 | 06 | AE | 20 | 0F | 0F | 8F |   | 0000 | 0110 | 1100 | 1100 | 0110 | 0000 | 10010001 06 | CC | 60 | 91 | BB | D7 | 93 | 23 | 57 | 07 | AF | 21 | 0E | 0E | 8E |   | 0000 | 0110 | 1100 | 1100 | 0110 | 0000 | 10010001 06 | CC | 60 | 91 | FF | D7 | 93 | 22 | 56 | 06 | AE | 20 | 0F | 0F | 8F |   | 0000 | 0110 | 1100 | 1100 | 0110 | 0000 | 10010001 05 | CC | 60 | 91 | 6E | DC | 93 | 0F | 7B | 2A | 80 | 0D | 22 | 22 | A2 |   | 0000 | 0101 | 1100 | 1100 | 0110 | 0000 | 10010001 05 | CC | 60 | 91 | E5 | DC | 93 | 09 | 7D | 2C | 86 | 0B | 24 | 24 | A4 |   | 0000 | 0101 | 1100 | 1100 | 0110 | 0000 | 10010001 0B | 46 | 60 | 91 | FE | 12 | 91 | E9 | B4 | CE | 48 | F5 | C4 | C4 | 44 |   | 0000 | 1011 | 0100 | 0110 | 0110 | 0000 | 10010001 0B | 46 | 60 | 91 | 31 | 13 | 91 | E8 | B5 | CF | 49 | F4 | C5 | C5 | 45 |   | 0000 | 1011 | 0100 | 0110 | 0110 | 0000 | 10010001 0B | 46 | 60 | 91 | 24 | 1C | 91 | E4 | B9 | C3 | 45 | F8 | C9 | C9 | 49 |   | 0000 | 1011 | 0100 | 0110 | 0110 | 0000 | 10010001 0B | 46 | 60 | 91 | 5F | 1C | 91 | E7 | BA | C0 | 46 | FB | CA | CA | 4A |   | 0000 | 1011 | 0100 | 0110 | 0110 | 0000 | 10010001 0B | 46 | 60 | 91 | 92 | 1C | 91 | E6 | BB | C1 | 47 | FA | CB | CB | 4B |   | 0000 | 1011 | 0100 | 0110 | 0110 | 0000 | 10010001 0B | 46 | 60 | 91 | D5 | 1C | 91 | E1 | BC | C6 | 40 | FD | CC | CC | 4C |   | 0000 | 1011 | 0100 | 0110 | 0110 | 0000 | 10010001 0B | 46 | 60 | 91 | 0F | 1D | 91 | E0 | BD | C7 | 41 | FC | CD | CD | 4D |   | 0000 | 1011 | 0100 | 0110 | 0110 | 0000 | 10010001 0B | 46 | 60 | 91 | 42 | 1D | 91 | E3 | BE | C4 | 42 | FF | CE | CE | 4E |   | 0000 | 1011 | 0100 | 0110 | 0110 | 0000 | 10010001 0B | 46 | 60 | 91 | B8 | 1D | 91 | FD | A0 | DA | 5C | E1 | D0 | D0 | 50 |   | 0000 | 1011 | 0100 | 0110 | 0110 | 0000 | 10010001 09 | 46 | 60 | 91 | 37 | 1E | 91 | FF | A2 | DA | 5F | E3 | D2 | D2 | 52 |   | 0000 | 1001 | 0100 | 0110 | 0110 | 0000 | 10010001 0A | 49 | 60 | 91 | 92 | 1F | 91 | F5 | A8 | D1 | 48 | E9 | D8 | D8 | 58 |   | 0000 | 1010 | 0100 | 1001 | 0110 | 0000 | 10010001 0A | 49 | 60 | 91 | D5 | 1F | 91 | F4 | A9 | D0 | 49 | E8 | D9 | D9 | 59 |   | 0000 | 1010 | 0100 | 1001 | 0110 | 0000 | 10010001 0A | 49 | 60 | 91 | 08 | 18 | 91 | F7 | AA | D3 | 4A | EB | DA | DA | 5A |   | 0000 | 1010 | 0100 | 1001 | 0110 | 0000 | 10010001 0A | 49 | 60 | 91 | FE | 18 | 91 | F3 | AE | D7 | 4E | EF | DE | DE | 5E |   | 0000 | 1010 | 0100 | 1001 | 0110 | 0000 | 10010001 0A | 49 | 60 | 91 | 31 | 19 | 91 | F2 | AF | D6 | 4F | EE | DF | DF | 5F |   | 0000 | 1010 | 0100 | 1001 | 0110 | 0000 | 10010001 06 | CF | 61 | 91 | 28 | A4 | 96 | 9D | 91 | B9 | 15 | 9B | B0 | B0 | 30 |   | 0000 | 0110 | 1100 | 1111 | 0110 | 0001 | 10010001 06 | CF | 61 | 91 | 28 | A4 | 96 | 9D | 91 | B9 | 15 | 9B | B0 | B0 | 30 |   | 0000 | 0110 | 1100 | 1111 | 0110 | 0001 | 10010001 03 | 6C | 60 | 91 | 69 | B1 | 91 | 1B | 4D | 3C | 14 | 04 | 36 | 36 | B6 |   | 0000 | 0011 | 0110 | 1100 | 0110 | 0000 | 10010001 01 | 6C | 60 | 91 | 8F | B1 | 91 | 14 | 42 | 31 | 1A | 0B | 39 | 39 | B9 |   | 0000 | 0001 | 0110 | 1100 | 0110 | 0000 | 10010001 01 | 6C | 60 | 91 | 91 | B1 | 91 | 17 | 41 | 32 | 19 | 08 | 3A | 3A | BA |   | 0000 | 0001 | 0110 | 1100 | 0110 | 0000 | 10010001 0E | 6C | 60 | 91 | 9A | B1 | 91 | 16 | 40 | 32 | 18 | 09 | 3B | 3B | BB |   | 0000 | 1110 | 0110 | 1100 | 0110 | 0000 | 10010001 0F | 6C | 60 | 91 | B6 | B1 | 91 | 10 | 46 | 37 | 1E | 0F | 3D | 3D | BD |   | 0000 | 1111 | 0110 | 1100 | 0110 | 0000 | 10010001 0C | 6C | 60 | 91 | B8 | B1 | 91 | 13 | 45 | 35 | 1D | 0C | 3E | 3E | BE |   | 0000 | 1100 | 0110 | 1100 | 0110 | 0000 | 10010001 0D | 6C | 60 | 91 | C2 | B1 | 91 | 12 | 44 | 37 | 1B | 0D | 3F | 3F | BF |   | 0000 | 1101 | 0110 | 1100 | 0110 | 0000 | 10010001 0A | 6C | 60 | 91 | DD | B1 | 91 | 6C | 3A | 48 | 65 | 73 | 41 | 41 | C1 |   | 0000 | 1010 | 0110 | 1100 | 0110 | 0000 | 10010001 0B | 6C | 60 | 91 | E7 | B1 | 91 | 6F | 39 | 48 | 66 | 70 | 42 | 42 | C2 |   | 0000 | 1011 | 0110 | 1100 | 0110 | 0000 | 10010001 08 | 6C | 60 | 91 | F2 | B1 | 91 | 69 | 3F | 4F | 60 | 76 | 44 | 44 | C4 |   | 0000 | 1000 | 0110 | 1100 | 0110 | 0000 | 10010001 08 | 6C | 60 | 91 | 0E | B2 | 91 | 6B | 3D | 4D | 62 | 74 | 46 | 46 | C6 |   | 0000 | 1000 | 0110 | 1100 | 0110 | 0000 | 10010001 08 | 6C | 60 | 91 | 10 | B2 | 91 | 6A | 3C | 4C | 63 | 75 | 47 | 47 | C7 |   | 0000 | 1000 | 0110 | 1100 | 0110 | 0000 | 10010001 08 | 6C | 60 | 91 | 19 | B2 | 91 | 65 | 33 | 43 | 6C | 7A | 48 | 48 | C8 |   | 0000 | 1000 | 0110 | 1100 | 0110 | 0000 | 10010001 08 | 6C | 60 | 91 | 35 | B2 | 91 | 67 | 31 | 41 | 6E | 78 | 4A | 4A | CA |   | 0000 | 1000 | 0110 | 1100 | 0110 | 0000 | 10010001 08 | 6C | 60 | 91 | 40 | B2 | 91 | 61 | 37 | 47 | 68 | 7E | 4C | 4C | CC |   | 0000 | 1000 | 0110 | 1100 | 0110 | 0000 | 10010001 08 | 6C | 60 | 91 | 4A | B2 | 91 | 60 | 36 | 46 | 69 | 7F | 4D | 4D | CD |   | 0000 | 1000 | 0110 | 1100 | 0110 | 0000 | 10010001 08 | 6C | 60 | 91 | 5C | B2 | 91 | 63 | 35 | 45 | 6A | 7C | 4E | 4E | CE |   | 0000 | 1000 | 0110 | 1100 | 0110 | 0000 | 10010001 08 | 6C | 60 | 91 | 6F | B2 | 91 | 7D | 2B | 5B | 74 | 62 | 50 | 50 | D0 |   | 0000 | 1000 | 0110 | 1100 | 0110 | 0000 | 10010001 08 | 6C | 60 | 91 | 71 | B2 | 91 | 7C | 2A | 5A | 75 | 63 | 51 | 51 | D1 |   | 0000 | 1000 | 0110 | 1100 | 0110 | 0000 | 10010001 08 | 6C | 60 | 91 | 9F | B2 | 91 | 78 | 2E | 5E | 71 | 67 | 55 | 55 | D5 |   | 0000 | 1000 | 0110 | 1100 | 0110 | 0000 | 10010001 08 | 6C | 60 | 91 | A1 | B2 | 91 | 7B | 2D | 5D | 72 | 64 | 56 | 56 | D6 |   | 0000 | 1000 | 0110 | 1100 | 0110 | 0000 | 10010001 08 | 6C | 60 | 91 | C6 | B2 | 91 | 74 | 22 | 52 | 7D | 6B | 59 | 59 | D9 |   | 0000 | 1000 | 0110 | 1100 | 0110 | 0000 | 10010001 08 | 6C | 60 | 91 | C8 | B2 | 91 | 77 | 21 | 51 | 7E | 68 | 5A | 5A | DA |   | 0000 | 1000 | 0110 | 1100 | 0110 | 0000 | 10010001 08 | 6C | 60 | 91 | D1 | B2 | 91 | 76 | 20 | 50 | 7F | 69 | 5B | 5B | DB |   | 0000 | 1000 | 0110 | 1100 | 0110 | 0000 | 10010001 06 | 6F | 60 | 91 | ED | B2 | 91 | 70 | 26 | 54 | 78 | 6F | 5D | 5D | DD |   | 0000 | 0110 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 01 | B3 | 91 | 4D | 1B | 6A | 46 | 52 | 60 | 60 | E0 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 1D | B3 | 91 | 4F | 19 | 68 | 44 | 50 | 62 | 62 | E2 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 26 | B3 | 91 | 4E | 18 | 69 | 45 | 51 | 63 | 63 | E3 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 28 | B3 | 91 | 49 | 1F | 6E | 42 | 56 | 64 | 64 | E4 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 3B | B3 | 91 | 4B | 1D | 6C | 40 | 54 | 66 | 66 | E6 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 4D | B3 | 91 | 4A | 1C | 6D | 41 | 55 | 67 | 67 | E7 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 56 | B3 | 91 | 45 | 13 | 62 | 4E | 5A | 68 | 68 | E8 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 58 | B3 | 91 | 44 | 12 | 63 | 4F | 5B | 69 | 69 | E9 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 61 | B3 | 91 | 47 | 11 | 60 | 4C | 58 | 6A | 6A | EA |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 86 | B3 | 91 | 40 | 16 | 67 | 4B | 5F | 6D | 6D | ED |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 91 | B3 | 91 | 42 | 14 | 65 | 49 | 5D | 6F | 6F | EF |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | B6 | B3 | 91 | 5F | 09 | 78 | 54 | 40 | 72 | 72 | F2 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | C1 | B3 | 91 | 59 | 0F | 7E | 52 | 46 | 74 | 74 | F4 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | DC | B3 | 91 | 5B | 0D | 7C | 50 | 44 | 76 | 76 | F6 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | E5 | B3 | 91 | 5A | 0C | 7D | 51 | 45 | 77 | 77 | F7 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | EF | B3 | 91 | 55 | 03 | 72 | 5E | 4A | 78 | 78 | F8 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | FA | B3 | 91 | 57 | 01 | 70 | 5C | 48 | 7A | 7A | FA |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 03 | BC | 91 | 56 | 00 | 71 | 5D | 49 | 7B | 7B | FB |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 1E | BC | 91 | 50 | 06 | 77 | 5B | 4F | 7D | 7D | FD |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 20 | BC | 91 | 53 | 05 | 74 | 58 | 4C | 7E | 7E | FE |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 4E | BC | 91 | AF | F9 | 88 | A4 | B0 | 82 | 82 | 02 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 57 | BC | 91 | AE | F8 | 89 | A5 | B1 | 83 | 83 | 03 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 62 | BC | 91 | A8 | FE | 8F | A3 | B7 | 85 | 85 | 05 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 74 | BC | 91 | AB | FD | 8C | A0 | B4 | 86 | 86 | 06 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 7D | BC | 91 | AA | FC | 8D | A1 | B5 | 87 | 87 | 07 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 6F | 60 | 91 | 87 | BC | 91 | A5 | F3 | 82 | AE | BA | 88 | 88 | 08 |   | 0000 | 0011 | 0110 | 1111 | 0110 | 0000 | 10010001 00 | 6F | 60 | 91 | 92 | BC | 91 | A7 | F1 | 81 | AC | B8 | 8A | 8A | 0A |   | 0000 | 0000 | 0110 | 1111 | 0110 | 0000 | 10010001 00 | 6F | 60 | 91 | B8 | BC | 91 | A3 | F5 | 85 | A8 | BC | 8E | 8E | 0E |   | 0000 | 0000 | 0110 | 1111 | 0110 | 0000 | 10010001 03 | 7B | 9D | 33 | 71 | 04 | 90 | 5F | F1 | 78 | 19 | F0 | 72 | 7A | FA |   | 0000 | 0011 | 0111 | 1011 | 1001 | 1101 | 00110011 01 | AC | 63 | 91 | 08 | 07 | 90 | 5D | F3 | 78 | 53 | 43 | 70 | 70 | F0 |   | 0000 | 0001 | 1010 | 1100 | 0110 | 0011 | 10010001 01 | AC | 63 | 91 | 12 | 07 | 90 | 5C | F2 | 79 | 52 | 42 | 71 | 71 | F1 |   | 0000 | 0001 | 1010 | 1100 | 0110 | 0011 | 10010001 01 | AC | 63 | 91 | 1B | 07 | 90 | 5F | F1 | 7A | 51 | 41 | 72 | 72 | F2 |   | 0000 | 0001 | 1010 | 1100 | 0110 | 0011 | 10010001 01 | AC | 63 | 91 | 2D | 07 | 90 | 5E | F0 | 7B | 50 | 40 | 73 | 73 | F3 |   | 0000 | 0001 | 1010 | 1100 | 0110 | 0011 | 10010001 0E | AC | 63 | 91 | 41 | 07 | 90 | 5B | F5 | 7F | 55 | 45 | 76 | 76 | F6 |   | 0000 | 1110 | 1010 | 1100 | 0110 | 0011 | 10010001 0E | AC | 63 | 91 | 4B | 07 | 90 | 5A | F4 | 7E | 54 | 44 | 77 | 77 | F7 |   | 0000 | 1110 | 1010 | 1100 | 0110 | 0011 | 10010001 0E | AC | 63 | 91 | 5C | 07 | 90 | 55 | FB | 71 | 5B | 4B | 78 | 78 | F8 |   | 0000 | 1110 | 1010 | 1100 | 0110 | 0011 | 10010001 0E | AC | 63 | 91 | 66 | 07 | 90 | 54 | FA | 70 | 5A | 4A | 79 | 79 | F9 |   | 0000 | 1110 | 1010 | 1100 | 0110 | 0011 | 10010001 0E | AC | 63 | 91 | 6F | 07 | 90 | 57 | F9 | 73 | 59 | 49 | 7A | 7A | FA |   | 0000 | 1110 | 1010 | 1100 | 0110 | 0011 | 10010001 0E | AC | 63 | 91 | 71 | 07 | 90 | 56 | F8 | 72 | 58 | 48 | 7B | 7B | FB |   | 0000 | 1110 | 1010 | 1100 | 0110 | 0011 | 10010001 0E | AC | 63 | 91 | 7A | 07 | 90 | 51 | FF | 75 | 5F | 4F | 7C | 7C | FC |   | 0000 | 1110 | 1010 | 1100 | 0110 | 0011 | 10010001 0E | AC | 63 | 91 | 95 | 07 | 90 | 53 | FD | 77 | 5D | 4D | 7E | 7E | FE |   | 0000 | 1110 | 1010 | 1100 | 0110 | 0011 | 10010001 0E | AC | 63 | 91 | 9F | 07 | 90 | 52 | FC | 76 | 5C | 4C | 7F | 7F | FF |   | 0000 | 1110 | 1010 | 1100 | 0110 | 0011 | 10010001 0E | AC | 63 | 91 | A0 | 07 | 90 | AD | 03 | 89 | A3 | B3 | 80 | 80 | 00 |   | 0000 | 1110 | 1010 | 1100 | 0110 | 0011 | 10010001 0E | AC | 63 | 91 | CE | 07 | 90 | A9 | 07 | 8D | A7 | B7 | 84 | 04 | 04 |   | 0000 | 1110 | 1010 | 1100 | 0110 | 0011 | 10010001 0E | AC | 63 | 91 | D7 | 07 | 90 | A8 | 06 | 8C | A6 | B6 | 85 | 05 | 05 |   | 0000 | 1110 | 1010 | 1100 | 0110 | 0011 | 10010001 0E | AC | 63 | 91 | D9 | 07 | 90 | AB | 05 | 8F | A5 | B5 | 86 | 06 | 06 |   | 0000 | 1110 | 1010 | 1100 | 0110 | 0011 | 10010001 0E | AC | 63 | 91 | E2 | 07 | 90 | AA | 04 | 8E | A4 | B4 | 87 | 07 | 07 |   | 0000 | 1110 | 1010 | 1100 | 0110 | 0011 | 10010001 0E | AC | 63 | 91 | FD | 07 | 90 | A4 | 0A | 80 | AA | BA | 89 | 09 | 09 |   | 0000 | 1110 | 1010 | 1100 | 0110 | 0011 | 10010001 0E | AC | 63 | 91 | 24 | 00 | 90 | A0 | 0E | 84 | AE | BE | 8D | 0D | 0D |   | 0000 | 1110 | 1010 | 1100 | 0110 | 0011 | 10010001 0E | AC | 63 | 91 | 2D | 00 | 90 | A3 | 0D | 87 | AD | BD | 8E | 8E | 0E |   | 0000 | 1110 | 1010 | 1100 | 0110 | 0011 | 10010001 0C | AC | 63 | 91 | 38 | 00 | 90 | BD | 13 | 9B | B3 | A3 | 90 | 90 | 10 |   | 0000 | 1100 | 1010 | 1100 | 0110 | 0011 | 10010001 0D | AC | 63 | 91 | 42 | 00 | 90 | BC | 12 | 99 | B5 | A2 | 91 | 91 | 11 |   | 0000 | 1101 | 1010 | 1100 | 0110 | 0011 | 10010001 0B | AC | 63 | 91 | 5D | 00 | 90 | BE | 10 | 99 | B7 | A0 | 93 | 93 | 13 |   | 0000 | 1011 | 1010 | 1100 | 0110 | 0011 | 10010001 08 | AC | 63 | 91 | 66 | 00 | 90 | B9 | 17 | 9F | B0 | A7 | 94 | 94 | 14 |   | 0000 | 1000 | 1010 | 1100 | 0110 | 0011 | 10010001 09 | AC | 63 | 91 | 68 | 00 | 90 | B8 | 16 | 9D | B0 | A6 | 95 | 95 | 15 |   | 0000 | 1001 | 1010 | 1100 | 0110 | 0011 | 10010001 06 | AF | 63 | 91 | 7B | 00 | 90 | BA | 14 | 9E | B2 | A4 | 97 | 97 | 17 |   | 0000 | 0110 | 1010 | 1111 | 0110 | 0011 | 10010001 06 | AF | 63 | 91 | 8D | 00 | 90 | B5 | 1B | 91 | BD | AB | 98 | 98 | 18 |   | 0000 | 0110 | 1010 | 1111 | 0110 | 0011 | 10010001 07 | AF | 63 | 91 | 98 | 00 | 90 | B7 | 19 | 90 | BF | A9 | 9A | 9A | 1A |   | 0000 | 0111 | 1010 | 1111 | 0110 | 0011 | 10010001 07 | AF | 63 | 91 | A1 | 00 | 90 | B6 | 18 | 91 | BE | A8 | 9B | 9B | 1B |   | 0000 | 0111 | 1010 | 1111 | 0110 | 0011 | 10010001 07 | AF | 63 | 91 | AB | 00 | 90 | B1 | 1F | 96 | B9 | AF | 9C | 9C | 1C |   | 0000 | 0111 | 1010 | 1111 | 0110 | 0011 | 10010001 04 | AF | 63 | 91 | C6 | 00 | 90 | B3 | 1D | 95 | BB | AD | 9E | 9E | 1E |   | 0000 | 0100 | 1010 | 1111 | 0110 | 0011 | 10010001 04 | AF | 63 | 91 | C8 | 00 | 90 | B2 | 1C | 94 | BA | AC | 9F | 9F | 1F |   | 0000 | 0100 | 1010 | 1111 | 0110 | 0011 | 10010001 05 | AF | 63 | 91 | D1 | 00 | 90 | 8D | 23 | A8 | 86 | 93 | A0 | A0 | 20 |   | 0000 | 0101 | 1010 | 1111 | 0110 | 0011 | 10010001 02 | AF | 63 | 91 | DB | 00 | 90 | 8C | 22 | A8 | 87 | 92 | A1 | A1 | 21 |   | 0000 | 0010 | 1010 | 1111 | 0110 | 0011 | 10010001 02 | AF | 63 | 91 | EC | 00 | 90 | 8F | 21 | AB | 84 | 91 | A2 | A2 | 22 |   | 0000 | 0010 | 1010 | 1111 | 0110 | 0011 | 10010001 03 | AF | 63 | 91 | F6 | 00 | 90 | 8E | 20 | A9 | 85 | 90 | A3 | A3 | 23 |   | 0000 | 0011 | 1010 | 1111 | 0110 | 0011 | 10010001 03 | AF | 63 | 91 | F8 | 00 | 90 | 89 | 27 | AE | 82 | 97 | A4 | A4 | 24 |   | 0000 | 0011 | 1010 | 1111 | 0110 | 0011 | 10010001 00 | AF | 63 | 91 | 01 | 01 | 90 | 88 | 26 | AE | 83 | 96 | A5 | A5 | 25 |   | 0000 | 0000 | 1010 | 1111 | 0110 | 0011 | 10010001 01 | AF | 63 | 91 | 0B | 01 | 90 | 8B | 25 | AE | 81 | 95 | A6 | A6 | 26 |   | 0000 | 0001 | 1010 | 1111 | 0110 | 0011 | 10010001 01 | AF | 63 | 91 | 1D | 01 | 90 | 8A | 24 | AF | 80 | 94 | A7 | A7 | 27 |   | 0000 | 0001 | 1010 | 1111 | 0110 | 0011 | 10010001 0E | AF | 63 | 91 | 26 | 01 | 90 | 85 | 2B | A1 | 8F | 9B | A8 | A8 | 28 |   | 0000 | 1110 | 1010 | 1111 | 0110 | 0011 | 10010001 0E | AF | 63 | 91 | 28 | 01 | 90 | 84 | 2A | A0 | 8E | 9A | A9 | A9 | 29 |   | 0000 | 1110 | 1010 | 1111 | 0110 | 0011 | 10010001 0F | AF | 63 | 91 | 32 | 01 | 90 | 87 | 29 | A0 | 8D | 99 | AA | AA | 2A |   | 0000 | 1111 | 1010 | 1111 | 0110 | 0011 | 10010001 0C | AF | 63 | 91 | 3B | 01 | 90 | 86 | 28 | A0 | 8C | 98 | AB | AB | 2B |   | 0000 | 1100 | 1010 | 1111 | 0110 | 0011 | 10010001 0D | AF | 63 | 91 | 4D | 01 | 90 | 81 | 2F | A4 | 84 | 9F | AC | AC | 2C |   | 0000 | 1101 | 1010 | 1111 | 0110 | 0011 | 10010001 03 | EA | 63 | 91 | 04 | 4A | 90 | FD | 58 | DA | CA | E4 | D0 | D0 | 50 |   | 0000 | 0011 | 1110 | 1010 | 0110 | 0011 | 10010001 03 | EA | 63 | 91 | 3F | 4A | 90 | FC | 59 | DB | CB | E5 | D1 | D1 | 51 |   | 0000 | 0011 | 1110 | 1010 | 0110 | 0011 | 10010001 03 | EA | 63 | 91 | 72 | 4A | 90 | FF | 5A | D8 | C8 | E6 | D2 | D2 | 52 |   | 0000 | 0011 | 1110 | 1010 | 0110 | 0011 | 10010001 03 | EA | 63 | 91 | B6 | 4A | 90 | FE | 5B | D9 | C9 | E7 | D3 | D3 | 53 |   | 0000 | 0011 | 1110 | 1010 | 0110 | 0011 | 10010001 03 | EA | 63 | 91 | E9 | 4A | 90 | F9 | 5C | DE | CE | E0 | D4 | D4 | 54 |   | 0000 | 0011 | 1110 | 1010 | 0110 | 0011 | 10010001 03 | EA | 63 | 91 | 2C | 4B | 90 | F8 | 5D | DF | CF | E1 | D5 | D5 | 55 |   | 0000 | 0011 | 1110 | 1010 | 0110 | 0011 | 10010001 03 | EA | 63 | 91 | 67 | 4B | 90 | FB | 5E | DC | CC | E2 | D6 | D6 | 56 |   | 0000 | 0011 | 1110 | 1010 | 0110 | 0011 | 10010001 03 | EA | 63 | 91 | DE | 4B | 90 | F5 | 50 | D2 | C2 | EC | D8 | D8 | 58 |   | 0000 | 0011 | 1110 | 1010 | 0110 | 0011 | 10010001 03 | EA | 63 | 91 | 11 | 74 | 90 | F4 | 51 | D3 | C3 | ED | D9 | D9 | 59 |   | 0000 | 0011 | 1110 | 1010 | 0110 | 0011 | 10010001 03 | EA | 63 | 91 | 8F | 74 | 90 | F6 | 53 | D1 | C1 | EF | DB | DB | 5B |   | 0000 | 0011 | 1110 | 1010 | 0110 | 0011 | 10010001 03 | EA | 63 | 91 | 06 | 75 | 90 | F0 | 55 | D7 | C7 | E9 | DD | DD | 5D |   | 0000 | 0011 | 1110 | 1010 | 0110 | 0011 | 10010001 03 | EA | 63 | 91 | 7D | 75 | 90 | F2 | 56 | D5 | C5 | EB | DF | DF | 5F |   | 0000 | 0011 | 1110 | 1010 | 0110 | 0011 | 10010001 03 | EA | 63 | 91 | DA | 76 | 90 | C8 | 6C | EF | FF | D1 | E5 | E5 | 65 |   | 0000 | 0011 | 1110 | 1010 | 0110 | 0011 | 10010001 00 | EA | 63 | 91 | 0D | 70 | 90 | C7 | 63 | E1 | F0 | DE | EA | EA | 6A |   | 0000 | 0000 | 1110 | 1010 | 0110 | 0011 | 10010001 00 | EA | 63 | 91 | 85 | 70 | 90 | C1 | 65 | E7 | F6 | D8 | EC | EC | 6C |   | 0000 | 0000 | 1110 | 1010 | 0110 | 0011 | 10010001 00 | EA | 63 | 91 | B8 | 70 | 90 | C0 | 64 | E6 | F7 | D9 | ED | ED | 6D |   | 0000 | 0000 | 1110 | 1010 | 0110 | 0011 | 10010001 00 | EA | 63 | 91 | 74 | 71 | 90 | DD | 79 | FB | EA | C4 | F0 | F0 | 70 |   | 0000 | 0000 | 1110 | 1010 | 0110 | 0011 | 10010001 00 | EA | 63 | 91 | EC | 71 | 90 | DF | 7B | F9 | E8 | C6 | F2 | F2 | 72 |   | 0000 | 0000 | 1110 | 1010 | 0110 | 0011 | 10010001 00 | EA | 63 | 91 | 64 | 72 | 90 | D9 | 7D | FF | EE | C0 | F4 | F4 | 74 |   | 0000 | 0000 | 1110 | 1010 | 0110 | 0011 | 10010001 0F | ED | 63 | 91 | BE | 7C | 90 | D3 | 77 | F4 | E1 | CA | FE | FE | 7E |   | 0000 | 1111 | 1110 | 1101 | 0110 | 0011 | 10010001 0F | ED | 63 | 91 | 6B | 7D | 90 | 2C | 88 | 0B | 1E | 35 | 01 | 01 | 81 |   | 0000 | 1111 | 1110 | 1101 | 0110 | 0011 | 10010001 0F | ED | 63 | 91 | CE | 7F | 90 | 26 | 82 | 01 | 14 | 3F | 0B | 0B | 8B |   | 0000 | 1111 | 1110 | 1101 | 0110 | 0011 | 10010001 0F | ED | 63 | 91 | 6A | 79 | 90 | 3F | 9B | 18 | 0D | 26 | 12 | 12 | 92 |   | 0000 | 1111 | 1110 | 1101 | 0110 | 0011 | 10010001 0F | ED | 63 | 91 | D1 | 7A | 90 | 35 | 91 | 12 | 07 | 2C | 18 | 18 | 98 |   | 0000 | 1111 | 1110 | 1101 | 0110 | 0011 | 10010001 04 | 26 | 63 | 91 | D4 | 02 | 9F | 42 | FA | 64 | 66 | 5A | 6F | 6F | EF |   | 0000 | 0100 | 0010 | 0110 | 0110 | 0011 | 10010001 04 | 26 | 63 | 91 | D4 | 02 | 9F | 42 | FA | 64 | 66 | 5A | 6F | 6F | EF |   | 0000 | 0100 | 0010 | 0110 | 0110 | 0011 | 10010001 05 | 26 | 63 | 91 | DE | 02 | 9F | 5D | E5 | 78 | 7A | 45 | 70 | 70 | F0 |   | 0000 | 0101 | 0010 | 0110 | 0110 | 0011 | 10010001 00 | 26 | 63 | 91 | 04 | 03 | 9F | 59 | E1 | 7F | 7E | 41 | 74 | 74 | F4 |   | 0000 | 0000 | 0010 | 0110 | 0110 | 0011 | 10010001 0E | 26 | 63 | 91 | 17 | 03 | 9F | 5B | E3 | 7F | 7D | 43 | 76 | 76 | F6 |   | 0000 | 1110 | 0010 | 0110 | 0110 | 0011 | 10010001 0F | 26 | 63 | 91 | 18 | 03 | 9F | 5A | E2 | 7D | 7C | 42 | 77 | 77 | F7 |   | 0000 | 1111 | 0010 | 0110 | 0110 | 0011 | 10010001 0C | 26 | 63 | 91 | 2B | 03 | 9F | 54 | EC | 72 | 72 | 4C | 79 | 79 | F9 |   | 0000 | 1100 | 0010 | 0110 | 0110 | 0011 | 10010001 0D | 26 | 63 | 91 | 3D | 03 | 9F | 57 | EF | 72 | 76 | 4F | 7A | 7A | FA |   | 0000 | 1101 | 0010 | 0110 | 0110 | 0011 | 10010001 0A | 26 | 63 | 91 | 46 | 03 | 9F | 56 | EE | 72 | 77 | 4E | 7B | 7B | FB |   | 0000 | 1010 | 0010 | 0110 | 0110 | 0011 | 10010001 0A | 26 | 63 | 91 | 48 | 03 | 9F | 51 | E9 | 75 | 70 | 49 | 7C | 7C | FC |   | 0000 | 1010 | 0010 | 0110 | 0110 | 0011 | 10010001 0A | 26 | 63 | 91 | 5B | 03 | 9F | 53 | EB | 77 | 72 | 4B | 7E | 7E | FE |   | 0000 | 1010 | 0010 | 0110 | 0110 | 0011 | 10010001 0A | 26 | 63 | 91 | 6C | 03 | 9F | 52 | EA | 76 | 73 | 4A | 7F | 7F | FF |   | 0000 | 1010 | 0010 | 0110 | 0110 | 0011 | 10010001 0A | 26 | 63 | 91 | 76 | 03 | 9F | AD | 15 | 89 | 8C | B5 | 80 | 80 | 00 |   | 0000 | 1010 | 0010 | 0110 | 0110 | 0011 | 10010001 08 | 26 | 63 | 91 | 8A | 03 | 9F | AE | 16 | 88 | 8F | B6 | 83 | 83 | 03 |   | 0000 | 1000 | 0010 | 0110 | 0110 | 0011 | 10010001 09 | 26 | 63 | 91 | 9C | 03 | 9F | A9 | 11 | 8C | 89 | B1 | 84 | 84 | 04 |   | 0000 | 1001 | 0010 | 0110 | 0110 | 0011 | 10010001 06 | 29 | 63 | 91 | B0 | 03 | 9F | AA | 12 | 8E | 8A | B2 | 87 | 87 | 07 |   | 0000 | 0110 | 0010 | 1001 | 0110 | 0011 | 10010001 07 | 29 | 63 | 91 | BA | 03 | 9F | A5 | 1D | 82 | 85 | BD | 88 | 88 | 08 |   | 0000 | 0111 | 0010 | 1001 | 0110 | 0011 | 10010001 07 | 29 | 63 | 91 | C3 | 03 | 9F | A4 | 1C | 83 | 84 | BC | 89 | 89 | 09 |   | 0000 | 0111 | 0010 | 1001 | 0110 | 0011 | 10010001 05 | 29 | 63 | 91 | DE | 03 | 9F | A6 | 1E | 83 | 85 | BE | 8B | 8B | 0B |   | 0000 | 0101 | 0010 | 1001 | 0110 | 0011 | 10010001 02 | 29 | 63 | 91 | E0 | 03 | 9F | A1 | 19 | 85 | 82 | B9 | 8C | 8C | 0C |   | 0000 | 0010 | 0010 | 1001 | 0110 | 0011 | 10010001 03 | 29 | 63 | 91 | 17 | 0C | 9F | BC | 04 | 9B | 9F | A4 | 91 | 91 | 11 |   | 0000 | 0011 | 0010 | 1001 | 0110 | 0011 | 10010001 03 | 29 | 63 | 91 | 19 | 0C | 9F | BF | 07 | 98 | 9C | A7 | 92 | 92 | 12 |   | 0000 | 0011 | 0010 | 1001 | 0110 | 0011 | 10010001 03 | 29 | 63 | 91 | 3D | 0C | 9F | B8 | 00 | 9F | 9B | A0 | 95 | 95 | 15 |   | 0000 | 0011 | 0010 | 1001 | 0110 | 0011 | 10010001 03 | 29 | 63 | 91 | 47 | 0C | 9F | BB | 00 | 9C | 98 | A3 | 96 | 96 | 16 |   | 0000 | 0011 | 0010 | 1001 | 0110 | 0011 | 10010001 03 | 29 | 63 | 91 | 52 | 0C | 9F | B5 | 0E | 92 | 96 | AD | 98 | 98 | 18 |   | 0000 | 0011 | 0010 | 1001 | 0110 | 0011 | 10010001 03 | 29 | 63 | 91 | 64 | 0C | 9F | B4 | 0F | 93 | 97 | AC | 99 | 99 | 19 |   | 0000 | 0011 | 0010 | 1001 | 0110 | 0011 | 10010001 03 | 29 | 63 | 91 | 78 | 0C | 9F | B1 | 0A | 96 | 92 | A9 | 9C | 9C | 1C |   | 0000 | 0011 | 0010 | 1001 | 0110 | 0011 | 10010001 03 | 29 | 63 | 91 | B2 | 0C | 9F | 8F | 34 | A8 | AC | 97 | A2 | A2 | 22 |   | 0000 | 0011 | 0010 | 1001 | 0110 | 0011 | 10010001 03 | 29 | 63 | 91 | C4 | 0C | 9F | 8E | 35 | A9 | AD | 96 | A3 | A3 | 23 |   | 0000 | 0011 | 0010 | 1001 | 0110 | 0011 | 10010001 03 | 29 | 63 | 91 | CD | 0C | 9F | 89 | 32 | AE | AA | 91 | A4 | A4 | 24 |   | 0000 | 0011 | 0010 | 1001 | 0110 | 0011 | 10010001 03 | 29 | 63 | 91 | D9 | 0C | 9F | 8B | 30 | AC | A8 | 93 | A6 | A6 | 26 |   | 0000 | 0011 | 0010 | 1001 | 0110 | 0011 | 10010001 03 | 29 | 63 | 91 | F4 | 0C | 9F | 85 | 3E | A2 | A6 | 9D | A8 | A8 | 28 |   | 0000 | 0011 | 0010 | 1001 | 0110 | 0011 | 10010001 03 | 29 | 63 | 91 | FE | 0C | 9F | 84 | 3F | A3 | A7 | 9C | A9 | A9 | 29 |   | 0000 | 0011 | 0010 | 1001 | 0110 | 0011 | 10010001 03 | 29 | 63 | 91 | 09 | 0D | 9F | 86 | 3D | A1 | A5 | 9E | AB | AB | 2B |   | 0000 | 0011 | 0010 | 1001 | 0110 | 0011 | 10010001 00 | 29 | 63 | 91 | 13 | 0D | 9F | 81 | 3A | A7 | A2 | 99 | AC | AC | 2C |   | 0000 | 0000 | 0010 | 1001 | 0110 | 0011 | 10010001 00 | 29 | 63 | 91 | 43 | 0D | 9F | 9C | 27 | BA | BF | 84 | B1 | B1 | 31 |   | 0000 | 0000 | 0010 | 1001 | 0110 | 0011 | 10010001 00 | 29 | 63 | 91 | 55 | 0D | 9F | 9F | 24 | B9 | BC | 87 | B2 | B2 | 32 |   | 0000 | 0000 | 0010 | 1001 | 0110 | 0011 | 10010001 0E | 29 | 63 | 91 | 60 | 0D | 9F | 99 | 22 | BD | BB | 81 | B4 | B4 | 34 |   | 0000 | 1110 | 0010 | 1001 | 0110 | 0011 | 10010001 0F | 29 | 63 | 91 | 73 | 0D | 9F | 9B | 20 | BC | B9 | 83 | B6 | B6 | 36 |   | 0000 | 1111 | 0010 | 1001 | 0110 | 0011 | 10010001 0C | 29 | 63 | 91 | 8F | 0D | 9F | 95 | 2E | B3 | B7 | 8D | B8 | B8 | 38 |   | 0000 | 1100 | 0010 | 1001 | 0110 | 0011 | 10010001 0A | 29 | 63 | 91 | AC | 0D | 9F | 96 | 2D | B2 | AB | 8E | BB | BB | 3B |   | 0000 | 1010 | 0010 | 1001 | 0110 | 0011 | 10010001 08 | 29 | 63 | 91 | C1 | 0D | 9F | 93 | 28 | B5 | AE | 8B | BE | BE | 3E |   | 0000 | 1000 | 0010 | 1001 | 0110 | 0011 | 10010001 08 | 29 | 63 | 91 | CB | 0D | 9F | 92 | 29 | B4 | AF | 8A | BF | BF | 3F |   | 0000 | 1000 | 0010 | 1001 | 0110 | 0011 | 10010001 08 | 29 | 63 | 91 | E8 | 0D | 9F | EF | 54 | C9 | D2 | F7 | C2 | C2 | 42 |   | 0000 | 1000 | 0010 | 1001 | 0110 | 0011 | 10010001 07 | 28 | 63 | 91 | 04 | 0E | 9F | E9 | 52 | CE | D5 | F1 | C4 | C4 | 44 |   | 0000 | 0111 | 0010 | 1000 | 0110 | 0011 | 10010001 04 | 28 | 63 | 91 | 17 | 0E | 9F | EB | 50 | CD | D7 | F3 | C6 | C6 | 46 |   | 0000 | 0100 | 0010 | 1000 | 0110 | 0011 | 10010001 02 | 28 | 63 | 91 | 19 | 0E | 9F | EA | 51 | CE | D5 | F2 | C7 | C7 | 47 |   | 0000 | 0010 | 0010 | 1000 | 0110 | 0011 | 10010001 00 | 28 | 63 | 91 | 35 | 0E | 9F | E4 | 5F | C2 | DB | FC | C9 | C9 | 49 |   | 0000 | 0000 | 0010 | 1000 | 0110 | 0011 | 10010001 0F | 28 | 63 | 91 | 3F | 0E | 9F | E7 | 5C | C0 | D9 | FF | CA | CA | 4A |   | 0000 | 1111 | 0010 | 1000 | 0110 | 0011 | 10010001 0B | 28 | 63 | 91 | 4A | 0E | 9F | E1 | 5A | C6 | D8 | F9 | CC | CC | 4C |   | 0000 | 1011 | 0010 | 1000 | 0110 | 0011 | 10010001 08 | 28 | 63 | 91 | 5C | 0E | 9F | E0 | 5B | C6 | D9 | F8 | CD | CD | 4D |   | 0000 | 1000 | 0010 | 1000 | 0110 | 0011 | 10010001 06 | 2B | 63 | 91 | 72 | 0E | 9F | FD | 46 | D9 | C5 | E5 | D0 | D0 | 50 |   | 0000 | 0110 | 0010 | 1011 | 0110 | 0011 | 10010001 06 | 2B | 63 | 91 | 8D | 0E | 9F | FF | 44 | DB | C7 | E7 | D2 | D2 | 52 |   | 0000 | 0110 | 0010 | 1011 | 0110 | 0011 | 10010001 0C | 2A | 63 | 91 | 78 | 08 | 9F | 29 | 92 | 0F | 1F | 31 | 04 | 04 | 84 |   | 0000 | 1100 | 0010 | 1010 | 0110 | 0011 | 10010001 09 | 2A | 63 | 91 | FA | 08 | 9F | 3C | 87 | 19 | 0C | 24 | 11 | 11 | 91 |   | 0000 | 1001 | 0010 | 1010 | 0110 | 0011 | 10010001 04 | 2D | 63 | 91 | 97 | 09 | 9F | 0D | B6 | 2B | 3D | 15 | 20 | 20 | A0 |   | 0000 | 0100 | 0010 | 1101 | 0110 | 0011 | 10010001 06 | 2C | 63 | 91 | 10 | 0A | 9F | 00 | BB | 24 | 0C | 18 | 2D | 2D | AD |   | 0000 | 0110 | 0010 | 1100 | 0110 | 0011 | 10010001 06 | 2C | 63 | 91 | 3F | 0A | 9F | 1C | A7 | 38 | 10 | 04 | 31 | 31 | B1 |   | 0000 | 0110 | 0010 | 1100 | 0110 | 0011 | 10010001 06 | 2C | 63 | 91 | 5D | 0A | 9F | 19 | A2 | 3D | 15 | 01 | 34 | 34 | B4 |   | 0000 | 0110 | 0010 | 1100 | 0110 | 0011 | 10010001 01 | 2C | 63 | 91 | 6E | 0B | 9F | 7D | C6 | 58 | 73 | 65 | 50 | 50 | D0 |   | 0000 | 0001 | 0010 | 1100 | 0110 | 0011 | 10010001 01 | 2C | 63 | 91 | 79 | 0B | 9F | 7F | C4 | 5A | 71 | 67 | 52 | 52 | D2 |   | 0000 | 0001 | 0010 | 1100 | 0110 | 0011 | 10010001 01 | 2C | 63 | 91 | 83 | 0B | 9F | 7E | C5 | 5B | 70 | 66 | 53 | 53 | D3 |   | 0000 | 0001 | 0010 | 1100 | 0110 | 0011 | 10010001 01 | 2C | 63 | 91 | 95 | 0B | 9F | 79 | C2 | 5C | 77 | 61 | 54 | 54 | D4 |   | 0000 | 0001 | 0010 | 1100 | 0110 | 0011 | 10010001 01 | 2C | 63 | 91 | 01 | 34 | 9F | 4D | F6 | 68 | 43 | 55 | 60 | 60 | E0 |   | 0000 | 0001 | 0010 | 1100 | 0110 | 0011 | 10010001 01 | 2C | 63 | 91 | 1C | 34 | 9F | 4F | F4 | 6A | 41 | 57 | 62 | 62 | E2 |   | 0000 | 0001 | 0010 | 1100 | 0110 | 0011 | 10010001 01 | 2C | 63 | 91 | 25 | 34 | 9F | 4E | F5 | 6B | 40 | 56 | 63 | 63 | E3 |   | 0000 | 0001 | 0010 | 1100 | 0110 | 0011 | 10010001 01 | 2C | 63 | 91 | 2F | 34 | 9F | 49 | F2 | 6C | 47 | 51 | 64 | 64 | E4 |   | 0000 | 0001 | 0010 | 1100 | 0110 | 0011 | 10010001 01 | 2C | 63 | 91 | 31 | 34 | 9F | 48 | F3 | 6D | 46 | 50 | 65 | 65 | E5 |   | 0000 | 0001 | 0010 | 1100 | 0110 | 0011 | 10010001 01 | 2C | 63 | 91 | 55 | 34 | 9F | 45 | FE | 60 | 4B | 5D | 68 | 68 | E8 |   | 0000 | 0001 | 0010 | 1100 | 0110 | 0011 | 10010001 06 | 2F | 63 | 91 | 8F | 35 | 9F | A4 | 1F | 80 | AC | BC | 89 | 89 | 09 |   | 0000 | 0110 | 0010 | 1111 | 0110 | 0011 | 10010001 0F | 2F | 63 | 91 | B0 | 36 | 9F | 85 | 3E | A2 | 8F | 9D | A8 | A8 | 28 |   | 0000 | 1111 | 0010 | 1111 | 0110 | 0011 | 10010001 0B | 2F | 63 | 91 | D5 | 36 | 9F | 86 | 3D | A1 | 83 | 9E | AB | AB | 2B |   | 0000 | 1011 | 0010 | 1111 | 0110 | 0011 | 10010001 08 | 2F | 63 | 91 | 11 | 37 | 9F | 9F | 24 | B9 | 9A | 87 | B2 | B2 | 32 |   | 0000 | 1000 | 0010 | 1111 | 0110 | 0011 | 10010001 06 | 2E | 63 | 91 | 1A | 37 | 9F | 9E | 25 | BA | 9A | 86 | B3 | B3 | 33 |   | 0000 | 0110 | 0010 | 1110 | 0110 | 0011 | 10010001 00 | 2E | 63 | 91 | 41 | 37 | 9F | 9A | 21 | BC | 9D | 82 | B7 | B7 | 37 |   | 0000 | 0000 | 0010 | 1110 | 0110 | 0011 | 10010001 01 | 2E | 63 | 91 | 4B | 37 | 9F | 95 | 2E | B0 | 93 | 8D | B8 | B8 | 38 |   | 0000 | 0001 | 0010 | 1110 | 0110 | 0011 | 10010001 0F | 2E | 63 | 91 | 66 | 37 | 9F | 97 | 2C | B0 | 91 | 8F | BA | BA | 3A |   | 0000 | 1111 | 0010 | 1110 | 0110 | 0011 | 10010001 0C | 2E | 63 | 91 | 68 | 37 | 9F | 96 | 2D | B0 | 90 | 8E | BB | BB | 3B |   | 0000 | 1100 | 0010 | 1110 | 0110 | 0011 | 10010001 0D | 2E | 63 | 91 | A3 | 37 | 9F | EC | 57 | C9 | ED | F4 | C1 | C1 | 41 |   | 0000 | 1101 | 0010 | 1110 | 0110 | 0011 | 10010001 0B | 2E | 63 | 91 | CA | 37 | 9F | E8 | 53 | CF | E9 | F0 | C5 | C5 | 45 |   | 0000 | 1011 | 0010 | 1110 | 0110 | 0011 | 10010001 0B | 2E | 63 | 91 | DC | 37 | 9F | EB | 50 | CC | EA | F3 | C6 | C6 | 46 |   | 0000 | 1011 | 0010 | 1110 | 0110 | 0011 | 10010001 0B | 2E | 63 | 91 | E5 | 37 | 9F | EA | 51 | CD | EB | F2 | C7 | C7 | 47 |   | 0000 | 1011 | 0010 | 1110 | 0110 | 0011 | 10010001 0B | 2E | 63 | 91 | EF | 37 | 9F | E5 | 5E | C2 | E4 | FD | C8 | C8 | 48 |   | 0000 | 1011 | 0010 | 1110 | 0110 | 0011 | 10010001 0B | 2E | 63 | 91 | FB | 37 | 9F | E7 | 5C | C0 | E6 | FF | CA | CA | 4A |   | 0000 | 1011 | 0010 | 1110 | 0110 | 0011 | 10010001 0B | 2E | 63 | 91 | 0D | 30 | 9F | E6 | 5D | C1 | E7 | FE | CB | CB | 4B |   | 0000 | 1011 | 0010 | 1110 | 0110 | 0011 | 10010001 0B | 2E | 63 | 91 | 16 | 30 | 9F | E1 | 5A | C6 | E0 | F9 | CC | CC | 4C |   | 0000 | 1011 | 0010 | 1110 | 0110 | 0011 | 10010001 09 | 2E | 63 | 91 | 22 | 30 | 9F | E3 | 58 | C6 | E3 | FB | CE | CE | 4E |   | 0000 | 1001 | 0010 | 1110 | 0110 | 0011 | 10010001 06 | 31 | 63 | 91 | 3E | 30 | 9F | FD | 46 | D9 | FD | E5 | D0 | D0 | 50 |   | 0000 | 0110 | 0011 | 0001 | 0110 | 0011 | 10010001 00 | 31 | 63 | 91 | 65 | 30 | 9F | F9 | 42 | DF | FA | E1 | D4 | D4 | 54 |   | 0000 | 0000 | 0011 | 0001 | 0110 | 0011 | 10010001 01 | 31 | 63 | 91 | 6F | 30 | 9F | F8 | 43 | DD | FA | E0 | D5 | D5 | 55 |   | 0000 | 0001 | 0011 | 0001 | 0110 | 0011 | 10010001 0E | 31 | 63 | 91 | 7B | 30 | 9F | FA | 41 | DE | F8 | E2 | D7 | D7 | 57 |   | 0000 | 1110 | 0011 | 0001 | 0110 | 0011 | 10010001 0F | 31 | 63 | 91 | 8D | 30 | 9F | F5 | 4E | D2 | F7 | ED | D8 | D8 | 58 |   | 0000 | 1111 | 0011 | 0001 | 0110 | 0011 | 10010001 0F | 31 | 63 | 91 | 96 | 30 | 9F | F4 | 4F | D3 | F6 | EC | D9 | D9 | 59 |   | 0000 | 1111 | 0011 | 0001 | 0110 | 0011 | 10010001 0F | 31 | 63 | 91 | 98 | 30 | 9F | F7 | 4C | D0 | F5 | EF | DA | DA | 5A |   | 0000 | 1111 | 0011 | 0001 | 0110 | 0011 | 10010001 0F | 31 | 63 | 91 | CA | 30 | 9F | F2 | 49 | D5 | F0 | EA | DF | DF | 5F |   | 0000 | 1111 | 0011 | 0001 | 0110 | 0011 | 10010001 0F | 31 | 63 | 91 | DC | 30 | 9F | CD | 76 | EA | CF | D5 | E0 | E0 | 60 |   | 0000 | 1111 | 0011 | 0001 | 0110 | 0011 | 10010001 0F | 31 | 63 | 91 | E8 | 30 | 9F | CF | 74 | E8 | CD | D7 | E2 | E2 | 62 |   | 0000 | 1111 | 0011 | 0001 | 0110 | 0011 | 10010001 0F | 31 | 63 | 91 | F2 | 30 | 9F | CE | 75 | E9 | CC | D6 | E3 | E3 | 63 |   | 0000 | 1111 | 0011 | 0001 | 0110 | 0011 | 10010001 0F | 31 | 63 | 91 | FB | 30 | 9F | C9 | 72 | EE | CB | D1 | E4 | E4 | 64 |   | 0000 | 1111 | 0011 | 0001 | 0110 | 0011 | 10010001 0F | 31 | 63 | 91 | 23 | 31 | 9F | C5 | 7E | E2 | C7 | DD | E8 | E8 | 68 |   | 0000 | 1111 | 0011 | 0001 | 0110 | 0011 | 10010001 0D | 31 | 63 | 91 | 35 | 31 | 9F | C4 | 7F | E1 | D9 | DC | E9 | E9 | 69 |   | 0000 | 1101 | 0011 | 0001 | 0110 | 0011 | 10010001 01 | 30 | 63 | 91 | B9 | 31 | 9F | DA | 61 | FF | C4 | C2 | F7 | F7 | 77 |   | 0000 | 0001 | 0011 | 0000 | 0110 | 0011 | 10010001 0C | 30 | 63 | 91 | EB | 31 | 9F | D1 | 6A | F7 | CF | C9 | FC | FC | 7C |   | 0000 | 1100 | 0011 | 0000 | 0110 | 0011 | 10010001 0C | 35 | 63 | 91 | EE | 3C | 9F | 64 | DE | 42 | 76 | 7C | 49 | 49 | C9 |   | 0000 | 1100 | 0011 | 0101 | 0110 | 0011 | 10010001 09 | 34 | 63 | 91 | 8B | 3D | 9F | 77 | CD | 52 | 1F | 6F | 5A | 5A | DA |   | 0000 | 1001 | 0011 | 0100 | 0110 | 0011 | 10010001 09 | 34 | 63 | 91 | A8 | 3D | 9F | 70 | CA | 55 | 18 | 68 | 5D | 5D | DD |   | 0000 | 1001 | 0011 | 0100 | 0110 | 0011 | 10010001 06 | 37 | 63 | 91 | CD | 3D | 9F | 4D | F7 | 69 | 25 | 55 | 60 | 60 | E0 |   | 0000 | 0110 | 0011 | 0111 | 0110 | 0011 | 10010001 00 | 37 | 63 | 91 | 4B | 3E | 9F | 43 | F9 | 65 | 28 | 5B | 6E | 6E | EE |   | 0000 | 0000 | 0011 | 0111 | 0110 | 0011 | 10010001 0E | 37 | 63 | 91 | BC | 3E | 9F | 54 | EE | 70 | 3E | 4C | 79 | 79 | F9 |   | 0000 | 1110 | 0011 | 0111 | 0110 | 0011 | 10010001 0E | 37 | 63 | 91 | C5 | 3E | 9F | 57 | ED | 73 | 3D | 4F | 7A | 7A | FA |   | 0000 | 1110 | 0011 | 0111 | 0110 | 0011 | 10010001 04 | 36 | 63 | 91 | DA | 3F | 9F | B5 | 0F | 93 | D1 | AD | 98 | 98 | 18 |   | 0000 | 0100 | 0011 | 0110 | 0110 | 0011 | 10010001 04 | C3 | 6D | 91 | B0 | 2E | A7 | 70 | 1E | 5C | F6 | 5E | 5D | 5D | DD |   | 0000 | 0100 | 1100 | 0011 | 0110 | 1101 | 10010001 04 | C3 | 6D | 91 | CC | 2E | A7 | 72 | 1C | 5E | F4 | 5C | 5F | 5F | DF |   | 0000 | 0100 | 1100 | 0011 | 0110 | 1101 | 10010001 04 | C3 | 6D | 91 | D5 | 2E | A7 | 4D | 23 | 61 | CB | 63 | 60 | 60 | E0 |   | 0000 | 0100 | 1100 | 0011 | 0110 | 1101 | 10010001 04 | C3 | 6D | 91 | DF | 2E | A7 | 4C | 22 | 60 | CA | 62 | 61 | 61 | E1 |   | 0000 | 0100 | 1100 | 0011 | 0110 | 1101 | 10010001 04 | C3 | 6D | 91 | E0 | 2E | A7 | 4F | 21 | 63 | C9 | 61 | 62 | 62 | E2 |   | 0000 | 0100 | 1100 | 0011 | 0110 | 1101 | 10010001 05 | C3 | 6D | 91 | FC | 2E | A7 | 49 | 27 | 66 | CF | 67 | 64 | 64 | E4 |   | 0000 | 0101 | 1100 | 0011 | 0110 | 1101 | 10010001 02 | C3 | 6D | 91 | 0F | 2F | A7 | 4B | 25 | 65 | CD | 65 | 66 | 66 | E6 |   | 0000 | 0010 | 1100 | 0011 | 0110 | 1101 | 10010001 02 | C3 | 6D | 91 | 1A | 2F | A7 | 45 | 2B | 6B | C3 | 6B | 68 | 68 | E8 |   | 0000 | 0010 | 1100 | 0011 | 0110 | 1101 | 10010001 02 | C3 | 6D | 91 | 2C | 2F | A7 | 44 | 2A | 6A | C2 | 6A | 69 | 69 | E9 |   | 0000 | 0010 | 1100 | 0011 | 0110 | 1101 | 10010001 02 | C3 | 6D | 91 | 35 | 2F | A7 | 47 | 29 | 69 | C1 | 69 | 6A | 6A | EA |   | 0000 | 0010 | 1100 | 0011 | 0110 | 1101 | 10010001 02 | C3 | 6D | 91 | 40 | 2F | A7 | 41 | 2F | 6F | C7 | 6F | 6C | 6C | EC |   | 0000 | 0010 | 1100 | 0011 | 0110 | 1101 | 10010001 00 | C3 | 6D | 91 | 4A | 2F | A7 | 40 | 2E | 6C | C1 | 6E | 6D | 6D | ED |   | 0000 | 0000 | 1100 | 0011 | 0110 | 1101 | 10010001 01 | C3 | 6D | 91 | 53 | 2F | A7 | 43 | 2D | 6C | C2 | 6D | 6E | 6E | EE |   | 0000 | 0001 | 1100 | 0011 | 0110 | 1101 | 10010001 01 | C3 | 6D | 91 | 65 | 2F | A7 | 42 | 2C | 6D | C3 | 6C | 6F | 6F | EF |   | 0000 | 0001 | 1100 | 0011 | 0110 | 1101 | 10010001 0E | C3 | 6D | 91 | 7A | 2F | A7 | 5F | 31 | 71 | DE | 71 | 72 | 72 | F2 |   | 0000 | 1110 | 1100 | 0011 | 0110 | 1101 | 10010001 0E | C3 | 6D | 91 | 83 | 2F | A7 | 5E | 30 | 70 | DF | 70 | 73 | 73 | F3 |   | 0000 | 1110 | 1100 | 0011 | 0110 | 1101 | 10010001 0E | C3 | 6D | 91 | 95 | 2F | A7 | 59 | 37 | 77 | D8 | 77 | 74 | 74 | F4 |   | 0000 | 1110 | 1100 | 0011 | 0110 | 1101 | 10010001 0F | C3 | 6D | 91 | 9E | 2F | A7 | 58 | 36 | 75 | D8 | 76 | 75 | 75 | F5 |   | 0000 | 1111 | 1100 | 0011 | 0110 | 1101 | 10010001 0F | C3 | 6D | 91 | A0 | 2F | A7 | 5B | 35 | 76 | DB | 75 | 76 | 76 | F6 |   | 0000 | 1111 | 1100 | 0011 | 0110 | 1101 | 10010001 0F | C3 | 6D | 91 | A9 | 2F | A7 | 5A | 34 | 77 | DA | 74 | 77 | 77 | F7 |   | 0000 | 1111 | 1100 | 0011 | 0110 | 1101 | 10010001

kzajac83 commented 6 months ago

@abusca I'm stuck then focus on your examples and according WM-Bus/OMS spec and eg. this page:

https://doc.lobaro.com/display/PUB/Wireless+M-BUS

L-Field The first byte of the first block is the length field. The field specifies the number of subsequent user bytes, including control and address bytes, but not CRC bytes. If ((L-9) MOD 16) is not zero, then the last block must contain ((L-9) MOD 16) data bytes +2 CRC bytes. All other blocks, except the first block, must always contain 16 data bytes + 2 CRC bytes.

CRCs First crc after 10 bytes Then every 16 bytes one CRC of length 2 (= 18) Plus one crc at the end (unless ending on 16 byte block)

So your telegram is with CRCs

1C4401061426170414073D21A1B6002053209A6E49346F69A2B789559D5C384F1DECE300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

then cutting zeros and erase two CRC bytes after 10 byte get:

1C440106142617041407>>3D 21A << 1B6002053209A6E49346F69A2B789559D5C384F1DECE3`
1c440106813591041407a022004658ca87a76b5b37069b26bd49f975e2

After 16 bytes again 2 bytes for CRC and finsed CRC too and finally you get:

1C 44 01 06 14 26 17 04 14 07 >>3D 21 << A1 B6 00 20 53 20 9A 6E 49 34 6F 69 A2 B7 89 55 >> 9D 5C << 38 4F 1D >> EC E3 <<
1C 44 01 06 14 26 17 04 14 07                      A1 B6 00 20 53 20 9A 6E 49 34 6F 69 A2 B7 89 55                        38 4F 1D

Therfore below 29 bytes output.

First scenario: APT-WMBUS-NA-1 connected to water meter. Water meter shows 00000,102m3.

2024-03-27 20:21:08 --> 1c440106142617041407a1b6002053209a6e49346f69a2b78955384f1d

2024-03-27 20:21:18 --> 1c440106142617041407a0b700f37d6a28aa9671b41200efd0a09813d0

2024-03-27 20:21:37 --> 1c440106142617041407a1b900f1158d30356dce283ade9d53137eba59

2024-03-27 20:21:57 --> 1c440106142617041407a0bb00692c2d9104f72ed93a029d9a9bf66784
Second scenario: APT-WMBUS-NA-1 connected to water meter. Water meter shows 00000,122m3.

2024-03-27 20:36:31 --> 1c440106142617041407a1130014cbba62e87b2e10eced48f13be92609

2024-03-27 20:36:51 --> 1c440106142617041407a015008b9b7838d12317cf565b027ecb5e6446

2024-03-27 20:37:01 --> 1c440106142617041407a1160012092099529918a97958995d075e9fcd

2024-03-27 20:37:31 --> 1c440106142617041407a11900aa56eabe62b9dca316330ef7bcc04006
Third scenario: APT-WMBUS-NA-1 NOT connected to water meter.

2024-03-27 20:42:17 --> 1c440106142617041407a03600eea0884a7df9a501bb726d7ae6af9ab1

2024-03-27 20:42:27 --> 1c440106142617041407a13700659b027cb08951f7e1783b97ad6666de

2024-03-27 20:42:37 --> 1c440106142617041407a03800d7daf054e0b983a1eab4b7d443012ff0

2024-03-27 20:42:47 --> 1c440106142617041407a0390035ebdae7916e09bd8095440958e7d4e4

Decoded 16 zeros result is below, maybe encode values:

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">

mfc spec. 14-29 bytes | AES decoded 14-29 bytes | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- 2053209a6e49346f69a2b78955384f1d | 2E071226178B3F909BB1B4B6B6B6A6A2 | 2E | 07 | 12 | 26 | 17 | 8B | 3F | 90 | 9B | B1 | B4 | B6 | B6 | B6 | A6 | A2 f37d6a28aa9671b41200efd0a09813d0 | 2E071226179D3F909AB0B5B7B7B7A7A3 | 2E | 07 | 12 | 26 | 17 | 9D | 3F | 90 | 9A | B0 | B5 | B7 | B7 | B7 | A7 | A3 f1158d30356dce283ade9d53137eba59 | 2E07122617A83F9094BEBBB9B9B9A9AD | 2E | 07 | 12 | 26 | 17 | A8 | 3F | 90 | 94 | BE | BB | B9 | B9 | B9 | A9 | AD 692c2d9104f72ed93a029d9a9bf66784 | 2E07122617C43F9096BCB9BBBBBBABAF | 2E | 07 | 12 | 26 | 17 | C4 | 3F | 90 | 96 | BC | B9 | BB | BB | BB | AB | AF   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   14cbba62e87b2e10eced48f13be92609 | 2E031326172D3B903E14111613131307 | 2E | 03 | 13 | 26 | 17 | 2D | 3B | 90 | 3E | 14 | 11 | 16 | 13 | 13 | 13 | 07 8b9b7838d12317cf565b027ecb5e6446 | 2E03132617393B903812171015151501 | 2E | 03 | 13 | 26 | 17 | 39 | 3B | 90 | 38 | 12 | 17 | 10 | 15 | 15 | 15 | 01 12092099529918a97958995d075e9fcd | 2E03132617433B903B11141316161602 | 2E | 03 | 13 | 26 | 17 | 43 | 3B | 90 | 3B | 11 | 14 | 13 | 16 | 16 | 16 | 02 aa56eabe62b9dca316330ef7bcc04006 | 2E03132617613B90341E1B1C1919190D | 2E | 03 | 13 | 26 | 17 | 61 | 3B | 90 | 34 | 1E | 1B | 1C | 19 | 19 | 19 | 0D   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   eea0884a7df9a501bb726d7ae6af9ab1 | 2E031326178024901B31343336363222 | 2E | 03 | 13 | 26 | 17 | 80 | 24 | 90 | 1B | 31 | 34 | 33 | 36 | 36 | 32 | 22 659b027cb08951f7e1783b97ad6666de | 2E031326178A24901A30353237373323 | 2E | 03 | 13 | 26 | 17 | 8A | 24 | 90 | 1A | 30 | 35 | 32 | 37 | 37 | 33 | 23 d7daf054e0b983a1eab4b7d443012ff0 | 2E031326179C2490153F3A3D38383C2C | 2E | 03 | 13 | 26 | 17 | 9C | 24 | 90 | 15 | 3F | 3A | 3D | 38 | 38 | 3C | 2C 35ebdae7916e09bd8095440958e7d4e4 | 2E03132617A52490143E3B3C39393D2D | 2E | 03 | 13 | 26 | 17 | A5 | 24 | 90 | 14 | 3E | 3B | 3C | 39 | 39 | 3D | 2D

abusca commented 6 months ago

Thank you @kzajac83. Very valuable info. I recorded some frames at known values of water volume and decrypted them using your method.

00000,000 m3:
1C4401061426170414073D21A03B0317A709BEF8C162E4EA8FEEAEBCD876C934F18DE4
1C440106142617041407    A03B0317A709BEF8C162E4EA8FEEAEBC    C934F1
                              17A709BEF8C162E4EA8FEEAEBC    C934F1
                              2E 08 1B 78 48 5B D2 A4  16 D6 3A 23 3B 3B 3B 0D        <- Decrypted

1C4401061426170414073D21A13C036747298F44E34C4837F65191608566173179E968
1C440106142617041407    A13C036747298F44E34C4837F6519160    173179
                              6747298F44E34C4837F6519160    173179
                              2E 08 1B 78 48 6D D2 A4  11 D1 3D 24 3C 3C 3C 0A        <- Decrypted

99999,999 m3:
1C4401061426170414073D21A06503206BD2B5258F953EF2A09772C6BB06451C33A497
1C440106142617041407    A06503206BD2B5258F953EF2A09772C6    451C33
                              206BD2B5258F953EF2A09772C6    451C33
                              2E 0B 1B 78 48 F2 D3 A4  48 88 67 7D 65 65 65 53        <- Decrypted

1C4401061426170414073D21A1660325245DF44A2FDB45C9BB213714C66F37DD378CFE
1C440106142617041407    A1660325245DF44A2FDB45C9BB213714    37DD37
                              25245DF44A2FDB45C9BB213714    37DD37
                              2E 0B 1B 78 48 04 DC A4  4B 8B 64 7E 66 66 66 50        <- Decrypted

00000,001 m3:
1C4401061426170414073D21A085038B41A566DBD4744C68B71F350EC4EB5CF6FA3758
1C440106142617041407    A085038B41A566DBD4744C68B71F350E    5CF6FA
                              8B41A566DBD4744C68B71F350E    5CF6FA
                              2E 09 1B 78 48 23 DD A4  A8 68 85 9D 85 85 85 B3        <- Decrypted

1C4401061426170414073D21A086036C6977ABDE9B1246DD1CBB40B302DB2521C1113F
1C440106142617041407    A086036C6977ABDE9B1246DD1CBB40B3    2521C1
                              6C6977ABDE9B1246DD1CBB40B3    2521C1
                              2E 09 1B 78 48 35 DD A4  AB 6B 86 9E 86 86 86 B0        <- Decrypted

99999,998 m3:
1C4401061426170414073D21A1B1039248DE0BDCC0B144A94CCF43657F16F2F2E10129
1C440106142617041407    A1B1039248DE0BDCC0B144A94CCF4365    F2F2E1
                              9248DE0BDCC0B144A94CCF4365    F2F2E1
                              2E 0A 1B 78 48 C9 DE A4  9C 5C B2 A9 B1 B1 B1 87        <- Decrypted

1C4401061426170414073D21A0B3032163F520BEA4D8394227E37475756086F5AC4D7F
1C440106142617041407    A0B3032163F520BEA4D8394227E37475    86F5AC
                              2163F520BEA4D8394227E37475    86F5AC
                              2E 0A 1B 78 48 E4 DE A4  9E 5E B0 AB B3 B3 B3 85        <- Decrypted

00000,002 m3:
1C4401061426170414073D21A0D00356F8056ECCACED458E782EE6012FCE051554DBEE
1C440106142617041407    A0D00356F8056ECCACED458E782EE601    051554
                              56F8056ECCACED458E782EE601    051554
                              2E 06 14 26 17 F8 DF A4  FD 3E D3 C7 D0 D0 D0 E6        <- Decrypted

1C4401061426170414073D21A1D203FA78BBCE74B79FE15F88E2DED2D638BE0E9EB88E
1C440106142617041407    A1D203FA78BBCE74B79FE15F88E2DED2    BE0E9E
                              FA78BBCE74B79FE15F88E2DED2    BE0E9E
                              2E 06 14 26 17 0B D8 A4  FF 3C D1 C5 D2 D2 D2 E4        <- Decrypted

It looks like bytes 15-18 are part of the counter value, but I'm unable to find it...

kzajac83 commented 6 months ago

Agree, the same, cannot figured out how to decode it.

General what I see is below, bytes no: 11 -> A0 and A1 only, don't know what represent 12 -> counter sent telegrams, +1 for each telegram 13 -> 00, now I have 01 value for more than 366m3 14 -> always E2 15-18 -> actual value of liters/m3 19-21 - current timestamp 27 -> the same as 12th byte 26-28 -> somehow connected together (each 4 bites of each byte is connected with 4 bits of next to byte).
19 -> counter +1 for each telegram

According documantation in T1 should be:

  • Actual water meter indication and actual device date and time;
  • The last historical water meter indication with its save date and time;
  • Event flags (see details further in the Manual).

then in fields 22-26/27 should be historian value and event falg but this values is changing every telegram, cannot found constant part for historian value and event flag.

kzajac83 commented 6 months ago

@abusca - BTW you should check based on CRC does teleram is correct, not just erase CRC bytes from telegram and assume no issue in communcation.

kzajac83 commented 5 months ago

Still don't understood how actual value in 15-18 bytes is coded in telegram but below some tips, hope someone focus on it and help decode. Let's have below data (add also 14 byte, it is constant 0x2E but don't know is or not part of actual value). My analyse base on data from about one week (value about 367m3 plus/minus 10m3 for this period)

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">

14 | 15 | 16 | 17 | 18 -- | -- | -- | -- | -- 2E | 03 | 7E | 6E | 91 2E | 00 | 7E | 6E | 91 2E | 0D | 7E | 6E | 91 2E | 06 | 81 | 69 | 91 2E | 04 | 81 | 69 | 91 2E | 04 | 81 | 69 | 91

Byte 14

Constant 0x2E

Byte 15

Value that changed most faster in code, it is last digit/-s in actual value of m3/liters.

1st octet is always 0. 2nd octet assign all values 0-F

In my cause value change too fast to found some rule (overlay is on main water connection for multi-apartments building)

Byte 16

Increase value goes according below rule:

1st octet increase normal from 0 to F 2nd octet increase according below order

1, 0, 3, 2, 5, 4, 7, 6, 9, 8, B, A, D, C, F, E

Somehow connected with odd and even numbers, changed alternatives odd-even.

Change value form 0x7E -> 0x81 cause change value in next byte this mean in byte 17. Therefore seems 0x81 is value "0"

Byte 17

In my cause not many changes here but:

1st octet - too small data to found some rule (still 6 value in my cause) 2nd octet - changed according below order, partial data

1, 0, 3, D, C, F, E, 9, ??????

This mean 2nd octet changed in different order in byte 16 and byte 17, another logic of changes value.

Byte 18

No data to analyse, in my cause constant 0x91

@abusca are you sure value from overlay is equal to values in water meter?
Can I ask you to deliver minimum 16 telegrams for changes +1 liter each telegram? I'd like analyse changes for byte 15, in my cause changes is too big (my overlay is mounted on main water connection for building with 12 apartments, consumption of water is too high)

abusca commented 5 months ago

Hi @kzajac83 Here you have the telegrams:

00000,001 m3:
1C4401061426170414073D21A051038C69AAA65F765DCA4AB89055AC39CBE740495897
2E 09 1B 78 48 25 0A AB  7C D4 55 49 51 51 51 63

00000,002 m3:
1C4401061426170414073D21A07B037BC27A44248E36DF7F7762847F595CCD4A163E3A
2E 06 14 26 17 B0 0B AB  56 FE 7C 6C 7B 7B 7B 49

00000,003 m3:
1C4401061426170414073D21A185036616F62E534272A67CD26C982583FE831D045972
2E 07 14 26 17 17 34 AB  A8 00 83 92 85 85 85 B7

00000,004 m3:
1C4401061426170414073D21A18E03BC370AEB0CEBD644F161B77208C141024B419AB3
2E 04 14 26 17 6C 34 AB  A3 0B 8B 99 8E 8E 8E BC

00000,005 m3:
1C4401061426170414073D21A0980324A9EAB7D05E1E11DA7A3E8206404D9F08B59521
2E 05 14 26 17 CC 34 AB  B5 1D 9C 8F 98 98 98 AA

00000,006 m3:
1C4401061426170414073D21A0A40313CCBBE56498420E26656B72A07D6C1ECA26C0F7
2E 02 14 26 17 3F 35 AB  89 21 A3 B2 A4 A4 A4 96

00000,007 m3:
1C4401061426170414073D21A0AD03C9D5577CAE286D39EC111F914D6F73E4C83E2D4B
2E 03 14 26 17 96 35 AB  80 28 AB BB AD AD AD 9F

00000,008 m3:
1C4401061426170414073D21A0B3036E9A73A1402C8A51B0B863FF20502BE5020D1509
2E 00 14 26 17 C8 35 AB  9E 36 B6 A5 B3 B3 B3 81

00000,009 m3:
1C4401061426170414073D21A0B903CBD7840254ECC0CDFC975EF34459B2657B8AFD27
2E 01 14 26 17 02 36 AB  94 3C BD AF B9 B9 B9 8B

00000,010 m3:
1C4401061426170414073D21A0BF03A9F2ACC30334CACE358CBC2036EABEBAB0DC725B
2E 0E 14 26 17 45 36 AB  92 3A B8 AA BF BF BF 8D

00000,011 m3:
1C4401061426170414073D21A1C7031E30E6E7F02A242CE9E824B45FCA41254BA9D0C5
2E 0F 14 26 17 8B 36 AB  EA 42 C1 D2 C7 C7 C7 F5

00000,012 m3:
1C4401061426170414073D21A124039B77DC61A9CCE628165F0766A4138AAC6C238659
2E 0C 14 26 17 C9 5A AB  09 AC 21 31 24 24 24 16

00000,013 m3:
1C4401061426170414073D21A1270339A66D27DE527D22DFAFD77AA1D5A47BC22F0223
2E 0D 14 26 17 7B 5B AB  0A AE 23 32 27 27 27 15

00000,014 m3:
1C4401061426170414073D21A12A0310E81562072885CAD4C70689B8A5709568D75128
2E 0A 14 26 17 34 44 AB  07 A3 2D 3E 2A 2A 2A 18

00000,015 m3:
1C4401061426170414073D21A12D03A1ACFA7D61CAEF6FB0975977A7216EA979D99FAC
2E 0B 14 26 17 E6 44 AB  00 A4 2B 39 2D 2D 2D 1F

00000,016 m3:
1C4401061426170414073D21A02F03E33681507863DEB9473943A9DF0E28A10CA0E468
2E 08 14 26 17 5C 45 AB  02 A6 2A 3B 2F 2F 2F 1D

Let me know if you need a telegram for any particular value.

kzajac83 commented 5 months ago

thx but can you confirm that actual value in the water meter represent the same in overlay telegram? You are removed overlay earlier, in this time nothing change in water meter? Or has been not calibrated correctly in buying time? Asking because can be offset 2 or 1 liters looking into 18th byte because is dif comparing to others in this byte. Additional changes in 16th byte (2nd octet) from "B" to "4" never happened in my cause tell me that some offset real vs overly is possible for you.

Answering on above question will deliver answer where is total "0". Anyway again thx for data.

So byte 15th (2nd octet) changing according this order:

6, 7, 4, 5, 2, 3, 0, 1, E, F, C, D, A, B, 8, 9

Change value "9" -> "6" in 2nd octet of 15th byte increase +1 byte 16th. Additional order is reversed comparing to 2nd octet of 16th byte.

Quickly cannot found some math formula here, maybe just simple mapping like: 6=0 7=1 4=2 5=3 etc???

General can be simple mapping for each byte because byte 17th seems is different order of 2nd octet in my cause comparing to 2nd order for bytes 15th and 16th.

Now nothing more can deliver, I need buy WiFI camera to see my water meter with mounted overlay remotely (I have very difficult access to the water meter placed in cellar)

Perhaps someone will look at these values and find a way to decode them ;)

sgrzmiel commented 5 months ago

I have the same meter, would it help if I provide my telegrams as well? Or can I help in some other way?

kzajac83 commented 5 months ago

Any confirmed examples will help, if you can deliver some numbers of telegram+value from meter will be fine.

I have confirmed my value in meter with telegram (Aquanet guy last days show me values in smartphone, RTC timestamp also I have aligned with no error flags but 1st need buy WiFi cam to see what it's on water meter).

PS. The best to have inkasoid.apk or newer SPIDAP app, maybe someone can share it.

abusca commented 5 months ago

@kzajac83, you are right. I can't confirm wether the values are calibrated or not. I have no experience on water meters, so I missed the point of the needing a calibration, etc. If I have the chance of getting access to data from Apator's official software, I'll let you know.

saganos commented 3 months ago

Assuming that the key is known or the default zeros were not changed:

@gitwoy your telegram: 1C440106574341061407A1E3004B277391923EE776069C110CE6F29BCB

002 : 0106 dll-mfct (APA) - vendor 004 : 57434106 dll-id (06414357) - serial

Your iv (vendor + serial + zeros): 01065743410600000000000000000000

encrypted part: 4B277391923EE776069C110CE6F29BCB key: 00000000000000000000000000000000 decrypted: 2f01c520007ad781ceb9e58cf6e3e367

[0] [1] [2] [3] [4] ....
2f  01  c5  20  00 ....

formula: (0x01 & 0b00001111) | (0xc5 << 4) | (0x20 << 12) | (0x00 << 20) the reading is: 134225 (134,225)

===

@kzajac83

1C440106813591041407A0B000266A705474DDB80D9A0EB9AE2EF29D96

002 : 0106 dll-mfct (APA) 004 : 81359104 dll-id (04913581)

iv: 01068135910400000000000000000000 decrypted: 2f004e54002ca4969d91b9159bb0b030

formula: (0x00 & 0b00001111) | (0x4e << 4) | (0x54 << 12) | (0x00 << 20) the reading is: 345312 (345,312)

===

1c440106142617041407a1b6002053209a6e49346f69a2b78955384f1d reading: 97

1c440106142617041407a1130014cbba62e87b2e10eced48f13be92609 reading: 117

===

@abusca looks like your telegrams are different

===

It could be also decrypted with IV 00000000000000000000000000000000 and same key, and XOR the result with proper IV after decryption.

kzajac83 commented 3 months ago

Thnak you fro your answer, can you tell me for my example:

1C440106813591041407A0B000266A705474DDB80D9A0EB9AE2EF29D96

encrypted part is:

266A705474DDB80D9A0EB9AE2EF29D96

Using AES-128 CBC I got decrypted:

2E06CF619128A4969D91B9159BB0B030

but you provide:

2F004E54002CA4969D91B9159BB0B030

1st part if defferent, 2nd part is the same. Can you please explain what is souce of difference?

Probably IV is the key but in my decryptor has no IV option....

BR, Krzysiek

saganos commented 3 months ago

@kzajac83 try the XOR hex operation (e.g. https://xor.pw)

2E06CF619128A4969D91B9159BB0B030
XOR
1068135910400000000000000000000
=
2f004e54002ca4969d91b9159bb0b030

or find a way to provide Initialization vector (IV) to your decryptor - check this online tool (pick mode CBC http://aes.online-domain-tools.com/)

please keep in mind that the IV formula is certainly not filled with zeros, at least it has counter(s) - but it's enough to read the value. The second part is the same because zeros in XOR keep the initial value in certain octets.

saganos commented 3 months ago

@kzajac83 python example, requires pycryptodome

from Crypto.Cipher import AES
from binascii import unhexlify

frame = '1C440106813591041407A0B000266A705474DDB80D9A0EB9AE2EF29D96'
encrypted_part = frame[26:]
iv_part = frame[4:16]
iv_part_filled = iv_part + '00000000000000000000'
iv = unhexlify(iv_part_filled)
key = unhexlify('00000000000000000000000000000000')

ciphertext = unhexlify(encrypted_part)
cipher = AES.new(key, AES.MODE_CBC, iv)
plain = cipher.decrypt(ciphertext)

print('iv: ', iv_part_filled, 'encrypted:', encrypted_part, 'decrypted:', plain.hex())
print('plain part:', plain[4], plain[3], plain[2], plain[1])

print('result', plain[4] << 20 | plain[3] << 12 | plain[2] << 4 | (plain[1] & 0b00001111))
kzajac83 commented 3 months ago

@saganos respect and many thanks, seems general working for me but little difference value (my excel vs real value) I have:

Screenshot_14

1717976136588

Time on cam is OK, as I compare data and date&time with Apator inkasoid app it was also correct (~2 months ago), timestamp in excel is also correct (this is time arrive telegram to the reader, is fine checked) then 2nd decoded byte and operation in excel can be a issue:

=BITAND(HEX2BIN(AS114813;8);"00001111")

maybe the problem is on my site? Can you please calculate few below telegram and what value you get?

I have in excel 470,692 m3 vs real (from cam) 470,628 m3. General check in deep in night values because almost no changes here and in my example for many hours no change in water meter

The difference is 64 liters this mean 2^6.

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">

TS | RAW Telegram (without CRC) | 2 | 3 | 4 | 5 | SUM(2:5) -- | -- | -- | -- | -- | -- | -- 07.06.2024 01:37 | 1C440106813591041407A186010BC6D6B2D336269B277A56BF8A60CE09 | 68 | 3680 | 466944 | 0 | 470,692 07.06.2024 01:40 | 1C440106813591041407A1890154C5B045FABF6073936C34908F3E3BDF | 68 | 3680 | 466944 | 0 | 470,692 07.06.2024 01:41 | 1C440106813591041407A08A0186780E9711DD6487614F913DD9511C3F | 68 | 3680 | 466944 | 0 | 470,692 07.06.2024 01:48 | 1C440106813591041407A09101645BE8B4E1624CB6C417FCC51BB276A6 | 68 | 3680 | 466944 | 0 | 470,692 07.06.2024 01:56 | 1C440106813591041407A09A01AE8F02A6247DB50660A2EE9603EC41A3 | 68 | 3680 | 466944 | 0 | 470,692 07.06.2024 01:58 | 1C440106813591041407A09C016B05AC79015782F5CD004BFA178F4D75 | 68 | 3680 | 466944 | 0 | 470,692 07.06.2024 01:59 | 1C440106813591041407A09D01C7A2CDD9725C18B4CC170707A598F36D | 68 | 3680 | 466944 | 0 | 470,692 07.06.2024 02:01 | 1C440106813591041407A09F013B26FF4C166FEDAD4B33315DE7D6EF38 | 68 | 3680 | 466944 | 0 | 470,692 07.06.2024 02:03 | 1C440106813591041407A1A1016DD5930C48D8C636C09D39787D957956 | 68 | 3680 | 466944 | 0 | 470,692

kzajac83 commented 3 months ago

Change from

=BITAND(HEX2BIN(AS114811;8);"00001111")

to =BITAND(HEX2BIN(AS114811;8);"00111111")

this mean from your notation

(0x00 & 0b00001111)

to

(0x00 & 0b00111111)

working for me for some examples @saganos again many thanks :)

UPDATE: Today check more examples and found few issues, I work on MS Excel and easier to me change from shift bits and AND logic operator into match formulas. Finlay after check many examples CAM vs EXCEL for every-time check for me working below.

Decoded bytes:

Total is DEC sum of all above.

How build the driver ;) ??

saganos commented 3 months ago

@weetmuts could you help with the driver? I've tried but decrypt_TPL_AES_CBC_IV was not called and processContent does not have decrypted data

kzajac83 commented 3 months ago

@weetmuts can you help one comment higher ?

I've tried but decrypt_TPL_AES_CBC_IV was not called and processContent does not have decrypted data

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 2 month with no activity. Remove stale label or comment or this will be closed in 1 month.

saganos commented 1 month ago

I will continue to work on this

kzajac83 commented 1 month ago

As I see Mr Fredrik focus on own XMQ depends language driver for OMS-compliant devices only, unfortunately Apator Telemetria from Słupsk not fully or wrong understood OMS standard hence Weetmust ignore us in this cause, on the other hand you just ask for C++ developer help not understood or decode telegram frame because is done already.

@saganos if need help please let me, I'm not C++ developer but simple changes can implement like showed in old driver build instruction or made test.

BTW, XMQ drivers pushed out old drivers instruction from wmbusmeters pages, if help you can found in many places eg. here:

https://github.com/wmbusmeters/wmbusmeters/blob/debug_maccrap/doc/CreateDriver.md

teklabania commented 1 month ago

@kzajac83 python example, requires pycryptodome

from Crypto.Cipher import AES
from binascii import unhexlify

frame = '1C440106813591041407A0B000266A705474DDB80D9A0EB9AE2EF29D96'
encrypted_part = frame[26:]
iv_part = frame[4:16]
iv_part_filled = iv_part + '00000000000000000000'
iv = unhexlify(iv_part_filled)
key = unhexlify('00000000000000000000000000000000')

ciphertext = unhexlify(encrypted_part)
cipher = AES.new(key, AES.MODE_CBC, iv)
plain = cipher.decrypt(ciphertext)

print('iv: ', iv_part_filled, 'encrypted:', encrypted_part, 'decrypted:', plain.hex())
print('plain part:', plain[4], plain[3], plain[2], plain[1])

print('result', plain[4] << 20 | plain[3] << 12 | plain[2] << 4 | (plain[1] & 0b00001111))

This script returned fairly good meter reading for me. Does it mean we're close to get support for Apator NA-1?

kzajac83 commented 1 month ago

@teklabania need translate phyton code into C++ and fit to existing structure of driver code (use proper classes, function etc). So general we are know what we want achieve but (myself) don't know how to do. Hope developers C++ help here because is very close to build the driver. Sad is author of project don't want help us.

saganos commented 1 month ago

Pull request: https://github.com/wmbusmeters/wmbusmeters/pull/1346

kzajac83 commented 1 month ago

@saganos for me works, tested on more than 20 examples, thx for the driver, below one of my sample:

./build/wmbusmeters --debug --format=json --ppjson "1C440106813591041407A08E01CDD374ED8EE6335536996B9457090933" licznik apatorna1 04913581 NOKEY

essential output is

{
    "media":"water",
    "meter":"apatorna1",
    "name":"licznik",
    "id":"04913581",
    "total_m3":457.956,
    "timestamp":"2024-08-16T17:58:14Z"
}

Below full output for example

(drivers) added builtin driver elster
(drivers) added builtin driver iperl
(wmbusmeters) version: 1.16.1-12-g1f2cd10
(config) using device: <1C440106813591041407A08E01CDD374ED8EE6335536996B9457090933>:any
(config) number of meters: 1
(config) template licznik 04913581 apatorna1
(lookup) with file/hex "1C440106813591041407A08E01CDD374ED8EE6335536996B9457090933" unknown
(lookup) driver: simulation hex
(main) opening <1C440106813591041407A08E01CDD374ED8EE6335536996B9457090933>:any
Started config simulation listening on any
(simulation) in
(main) regular reset of simulation  will happen every 82800 seconds
(main) added  to files
(wmbus) no alarm (expected activity) for simulation
(serial) registered regular callback HOT_PLUG_DETECTOR(0) every 2 seconds
(simulation) from file "1C440106813591041407A08E01CDD374ED8EE6335536996B9457090933"
(mbus) checkMBUSFrame
 "1C440106813591041407A08E01CDD374ED8EE6335536996B9457090933"
(wmbus) checkWMBUSFrame "1C440106813591041407A08E01CDD374ED8EE6335536996B9457090933"
(simulator) is_mbus=false is_wmbus=true
(simulator) is wmbus telegram.
(meter) no meter handled  checking 1 templates.
(wmbus) parseDLL @0 29
(wmbus) parseELL @10 19
(wmbus) parseNWL @10 19
(wmbus) parseAFL @10 19
(wmbus) parseTPL @10 19
(meter) licznik: for me? 04913581.M=APA.V=14.T=07 in 04913581
(meter) licznik: yes for me
(meter) created licznik apatorna1 04913581 encrypted
(meter) used meter template licznik 04913581 apatorna1 to match 04913581.M=APA.V=14.T=07
(meter) started meter 1 (licznik 04913581 apatorna1) identity mode: id R04913581
(wmbus) parseDLL @0 29
(wmbus) parseELL @10 19
(wmbus) parseNWL @10 19
(wmbus) parseAFL @10 19
(wmbus) parseTPL @10 19
(meter) licznik: for me? 04913581.M=APA.V=14.T=07 in 04913581
(meter) licznik: yes for me
(meter) licznik(1) apatorna1  handling telegram from 04913581.M=APA.V=14.T=07
(meter) licznik 04913581.M=APA.V=14.T=07 "1C440106813591041407A08E01CDD374ED8EE6335536996B9457090933"
(wmbus) parseDLL @0 29
(telegram) DLL L=1c C=44 (from meter SND_NR) M=0601 (APA) A=04913581 VER=14 TYPE=07 (Water meter) (driver apatorna1) DEV= RSSI=0
(wmbus) parseELL @10 19
(wmbus) parseNWL @10 19
(wmbus) parseAFL @10 19
(wmbus) parseTPL @10 19
(telegram) TPL CI=a0
(meters) skipping field without matcher total(Volume)[0]...
(TPL) num encrypted blocks 0 (16 bytes and remaining unencrypted 0 bytes)
(TPL) AES CBC IV decrypting "CDD374ED8EE6335536996B9457090933"
(TPL) IV 01068135910414078E8E8E8E8E8E8E8E
(TPL) decrypted  "2F04CE6F008ACDEA2DC0099D2F000080"
Volume: 457.956
(apatorna1) 000   : 1c length (28 bytes)
(apatorna1) 001   : 44 dll-c (from meter SND_NR)
(apatorna1) 002   : 0106 dll-mfct (APA)
(apatorna1) 004   : 81359104 dll-id (04913581)
(apatorna1) 008   : 14 dll-version
(apatorna1) 009   : 07 dll-type (Water meter)
(apatorna1) 010   : a0 tpl-ci-field (Mfct specific)
(apatorna1) 011 C?: 8E01CDD374ED8EE6335536996B9457090933 mfct specific
{
    "media":"water",
    "meter":"apatorna1",
    "name":"licznik",
    "id":"04913581",
    "total_m3":457.956,
    "timestamp":"2024-08-16T18:05:03Z"
}
(serial) stopping manager
(serial) waiting for stop
(serial) EVENT thread interrupted
(serial) event loop stopped!
(serial) TIMER thread interrupted
(wmbus) deleted simulation
kzajac83 commented 1 month ago

FYI, don't want wait for merge then integrate with HA in below way. As I know there is no easy way to change HA add-on wmbusmeters files https://github.com/wmbusmeters/wmbusmeters/issues/1213#issuecomment-2002146515 hence go in below direction.

Device form @SzczepanLeon (ESP32+CC1101) send on port 1234/TCP frame rtlwmbus format, next on some machine with linux with wmbusmeters+new NA 1 driver is executed:

nohup nc -lk 1234 | wmbusmeters --selectfields=total_m3 --shell='/usr/bin/mosquitto_pub -h 192.168.15.20 -t licznik_glowny/water -m "$METER_JSON" -u USER -P PASSWD' stdin:rtlwmbus licznik_glowny apatorna1 04913581 NOKEY & Then in HA configuration.yaml add:

mqtt:
    sensor:
    - name: "total_m3"
      state_topic: "licznik_glowny/water"
      unit_of_measurement: "m³"
      device_class: "water"
      state_class: "total"
      value_template: "{{ value_json.total_m3 }}"
      #value_template: "{{ as_datetime(value) }}"
      unique_id: "unique_id_wodomierz"
      device:
        name: "Adapr NA 1"
        identifiers:
          - "04913581"

Result:

image

PS. @saganos I can put any value in KEY and always working because I have zeros-string as you. But if someone have "real" key then what?

kzajac83 commented 3 weeks ago

~6h ago the driver has been merge, please testing.

For me the driver working from 18.08.2024 until now 12.09.2024, more than 3 weeks and found one issue, not sure due to corrupted telegram somehow pass CRC validation or driver issue.

For issue corrupted data is between 599.036 and 599.04 where in the scope decrease to 598.784 (difference ~250 l) for one sample and back to correct one. I have backflow prevention valve (PL zawór antyskażeniowy) like this so should be no reverse flow.

image

image

And whole period image

SzczepanLeon commented 3 weeks ago

One issue is still issue 😢

It will be good to capture frames for future debug. Do you have that frame in history/logs?

kzajac83 commented 3 weeks ago

Unfortunately no store telegrams because storing telegrams replace by below code after appear the driver:

nohup nc -lk 1234 | wmbusmeters --selectfields=total_m3 --shell='/usr/bin/mosquitto_pub -h 192.168.15.20 -t licznik_glowny/water -m "$METER_JSON" -u USER -P PASSWD' stdin:rtlwmbus licznik_glowny apatorna1 04913581 NOKEY &

And will continue using above until you update your ESPhome device for new/missing drivers. After that I can start storing telegrams because will use ESPhome API for delivering data and will have free port for this.

But do you know how change the command to store telegrams parallel ?

Also cannot easy validate decoded data from overlay vs real because my main water meter is deep in cellars and I need again install IP camera on water meter. Also I know that telegram vs real is correct because water supply company read this data remotely and they see if something was wrong (eg. removed overlay from water meter or other manipulations).

PS. Check in SQLlite by command (metadata_id=1622 is my Apator NA 1 data).

SELECT STATE, last_reported_ts FROM "states" where metadata_id='1622' ORDER BY 'last_reported_ts'

This give more than 10k results. Simple check difference in excel give me only this one error

image

So one issue for 10000 samples. Not bad.