wmbusmeters/README.md

59 wiersze
1.4 KiB
Markdown
Czysty Zwykły widok Historia

2017-08-06 17:20:59 +00:00
# wmbusmeters
2017-08-09 10:00:11 +00:00
The program receives and decodes C1 telegrams
(using the wireless mbus protocol) to acquire
utility meter readings. No configuration file
exists, you change main.cc, recompile and run
to output the values you are interested in,
typically to log and be processed by another tool.
Builds and runs on GNU/Linux:
2017-08-09 10:02:42 +00:00
2017-08-09 10:00:11 +00:00
make
2017-08-09 10:02:42 +00:00
2017-08-09 10:00:11 +00:00
./build/wmbusmeters
2017-08-09 10:02:42 +00:00
2017-08-09 10:00:11 +00:00
./build/wmbusmeters --verbose
make HOST=arm
2017-08-09 10:02:42 +00:00
2017-08-09 10:00:11 +00:00
./build_arm/wmbusmeters
make DEBUG=true
2017-08-09 10:02:42 +00:00
2017-08-09 10:00:11 +00:00
./build_debug/wmbusmeters
make DEBUG=true HOST=arm
2017-08-09 10:02:42 +00:00
2017-08-09 10:00:11 +00:00
./build_arm_debug/wmbusmeters
(After you insert the im871A USB stick, do:
2017-08-09 10:02:42 +00:00
2017-08-09 10:00:11 +00:00
chown me:me /dev/ttyUSB0
2017-08-09 10:02:42 +00:00
2017-08-09 10:00:11 +00:00
to avoid having to run the program as root.)
Currently only supports the USB stick receiver im871A
and the water meter Multical21. The source code is modular
and it should be relatively straightforward to add
more receivers (Amber anyone?) and meters.
Good documents on the wireless mbus protocol:
2017-08-09 10:02:42 +00:00
2017-08-09 10:00:11 +00:00
https://www.infineon.com/dgdl/TDA5340_AN_WMBus_v1.0.pdf
2017-08-09 10:02:42 +00:00
2017-08-09 10:00:11 +00:00
http://fastforward.ag/downloads/docu/FAST_EnergyCam-Protocol-wirelessMBUS.pdf
The AES source code is copied from:
2017-08-09 10:02:42 +00:00
2017-08-09 10:00:11 +00:00
https://github.com/kokke/tiny-AES128-C
The following two other github projects were of great help:
2017-08-09 10:02:42 +00:00
2017-08-09 10:00:11 +00:00
https://github.com/ffcrg/ecpiww
2017-08-09 10:02:42 +00:00
2017-08-09 10:00:11 +00:00
https://github.com/tobiasrask/wmbus-client
Code can print total water consumption! But everything else is
missing. CRC checks anyone? :-) Don't rely on these measurements
for anything really important!