2021-06-26 10:24:30 +00:00
2017-08-06 17:20:59 +00:00
# wmbusmeters
2021-04-09 19:49:33 +00:00
2019-06-16 20:07:22 +00:00
The program receives and decodes C1,T1 or S1 telegrams
2017-08-09 10:00:11 +00:00
(using the wireless mbus protocol) to acquire
2018-11-25 11:33:14 +00:00
utility meter readings. The readings can then be published using
2019-02-26 08:33:10 +00:00
MQTT, curled to a REST api, inserted into a database or stored in a log file.
2019-04-28 11:55:21 +00:00
[FAQ/WIKI/MANUAL pages ](https://weetmuts.github.io/wmbusmeterswiki/ )
2018-01-05 16:54:51 +00:00
2020-04-21 16:07:46 +00:00
The program runs on GNU/Linux, MacOSX, FreeBSD, and Raspberry Pi.
2018-12-28 19:31:52 +00:00
2021-02-03 11:02:35 +00:00
| System | Status |
| ------------ |:-------------:|
| Ubuntu | [![Build Ubuntu Status ](https://github.com/weetmuts/wmbusmeters/workflows/Build%20Ubuntu/badge.svg )](https://github.com/weetmuts/wmbusmeters/actions)|
| MacOSX | [![Build MacOSX Status ](https://github.com/weetmuts/wmbusmeters/workflows/Build%20MacOSX/badge.svg )](https://github.com/weetmuts/wmbusmeters/actions)|
|Docker |[![CircleCI>](https://circleci.com/gh/weetmuts/wmbusmeters.svg?style=shield)](https://circleci.com/gh/weetmuts/wmbusmeters)|
|Snap |[![wmbusmeters](https://snapcraft.io//wmbusmeters/badge.svg)](https://snapcraft.io/wmbusmeters)|
2020-05-11 10:14:28 +00:00
2020-04-01 17:15:55 +00:00
# Distributions
2021-04-09 19:49:33 +00:00
2020-04-01 17:15:55 +00:00
**wmbusmeters** package is available on [Fedora ](https://src.fedoraproject.org/rpms/wmbusmeters ) _(version 31 or newer)_ and can be simply installed by using:
2021-06-28 20:29:38 +00:00
```shell
2021-06-28 20:21:28 +00:00
dnf install wmbusmeters
2020-04-01 17:15:55 +00:00
```
2021-06-28 20:27:38 +00:00
2020-04-01 17:15:55 +00:00
Availability of **wmbusmeters** for other Linux distributions can be checked on [release-monitoring ](https://release-monitoring.org/project/88654/ ) project page.
2019-01-04 22:07:52 +00:00
2021-04-09 19:51:30 +00:00
# Docker
Experimental docker containers are available here: https://hub.docker.com/r/weetmuts/wmbusmeters
# Snap
Experimental snaps are available here: https://snapcraft.io/wmbusmeters
2021-04-09 19:56:42 +00:00
Read the wiki for more info on how to use the snap: https://weetmuts.github.io/wmbusmeterswiki/SNAP.html
2021-04-09 19:51:30 +00:00
2021-04-09 19:56:42 +00:00
# Build from source and run as a daemon
2019-02-26 08:33:10 +00:00
2021-04-09 19:56:42 +00:00
Building and installing from source is easy and recommended since the
development progresses quickly. First remove the wmbus dongle
(im871a,amb8465,cul,rc1180) or the generic rtlsdr dongle (RTL2832U)
from your computer. Then do:
2019-02-26 08:33:10 +00:00
2020-10-04 20:52:05 +00:00
`./configure; make; sudo make install` will install wmbusmeters as a daemon.
2020-09-02 12:36:10 +00:00
Check the contents of your `/etc/wmbusmeters.conf` file, assuming it
2021-04-09 20:16:02 +00:00
has `device=auto:t1` and you are using a im871a,amb8465,rc1180 or cul device,
2020-10-04 20:52:05 +00:00
then you can now start the daemon with `sudo systemctl start wmbusmeters`
2021-04-09 20:16:02 +00:00
or you can try it from the command line `wmbusmeters auto:t1`
2020-09-02 12:36:10 +00:00
2020-10-04 20:52:05 +00:00
Wmbusmeters will scan for wmbus devices every few seconds and detect whenever
a device is plugged in or removed.
2020-09-02 12:36:10 +00:00
2020-10-04 20:52:05 +00:00
To have the wmbusmeters daemon start automatically when the computer boots do:
2020-09-02 12:36:10 +00:00
`sudo systemctl enable wmbusmeters`
You can trigger a reload of the config files with `sudo killall -HUP wmbusmetersd`
2019-03-12 19:57:13 +00:00
(Note! make install only works for GNU/Linux. For MacOSX try to start
2020-10-04 20:52:05 +00:00
`wmbusmetersd /tmp/thepidfile` from a script instead.)
2019-02-26 08:33:10 +00:00
2020-11-01 14:18:13 +00:00
Check the config file /etc/wmbusmeters.conf and edit the device. For example:
2021-04-09 20:16:02 +00:00
`auto:c1` or `im871a:c1,t1` or `im871a[457200101056]:t1` or `/dev/ttyUSB2:amb8465:c1,t1`
2020-11-01 14:18:13 +00:00
2020-11-11 23:38:27 +00:00
Adding a device like auto or im871a will trigger an automatic probe of all serial ttys
to auto find or to find on which tty the im871a resides.
2020-11-01 14:18:13 +00:00
If you specify a full device path like `/dev/ttyUSB0:im871a:c1` or `rtlwmbus` or `rtl433`
then it will not probe the serial devices. If you must be really sure that it will not probe something
you can add `donotprobe=/dev/ttyUSB0` or `donotprobe=all` .
You can specify combinations like: `device=rc1180:t1` `device=auto:c1`
to set the rc1180 dongle to t1 but any other auto-detected dongle to c1.
2021-06-28 20:25:33 +00:00
```ini
2019-02-26 08:33:10 +00:00
loglevel=normal
2020-11-01 14:18:13 +00:00
# Search for a wmbus device and set it to c1.
device=auto:c1
# But do not probe this serial tty.
donotprobe=/dev/ttyACM2
2019-02-26 08:33:10 +00:00
logtelegrams=false
2019-04-03 15:31:51 +00:00
format=json
2019-02-26 21:19:16 +00:00
meterfiles=/var/log/wmbusmeters/meter_readings
2019-04-03 15:31:51 +00:00
meterfilesaction=overwrite
2019-06-20 12:28:52 +00:00
meterfilesnaming=name
2019-12-11 17:58:44 +00:00
meterfilestimestamp=day
2019-02-26 08:33:10 +00:00
logfile=/var/log/wmbusmeters/wmbusmeters.log
2019-04-03 15:31:51 +00:00
shell=/usr/bin/mosquitto_pub -h localhost -t wmbusmeters/$METER_ID -m "$METER_JSON"
2020-08-01 19:56:46 +00:00
alarmshell=/usr/bin/mosquitto_pub -h localhost -t wmbusmeters_alarm -m "$ALARM_TYPE $ALARM_MESSAGE"
alarmtimeout=1h
alarmexpectedactivity=mon-sun(00-23)
2021-02-20 21:21:01 +00:00
ignoreduplicates=true
2019-02-26 08:33:10 +00:00
```
Then add a meter file in /etc/wmbusmeters.d/MyTapWater
2021-06-28 20:25:33 +00:00
```ini
2019-02-26 08:33:10 +00:00
name=MyTapWater
id=12345678
key=00112233445566778899AABBCCDDEEFF
```
2021-03-07 19:40:41 +00:00
Meter driver detection will be automatic. You can also provide an
2021-03-08 07:40:48 +00:00
explicit driver name with: `driver=multical21:c1` or explicitly state
that driver detection is automatic: `driver=auto` .
2021-03-07 19:40:41 +00:00
2021-06-28 20:27:38 +00:00
Now plugin your wmbus dongle.
2021-06-29 14:54:12 +00:00
Wmbusmeters should start automatically, check with `tail -f /var/log/syslog` and `tail -f /var/log/wmbusmeters/wmbusmeters.log`
2021-06-28 20:27:38 +00:00
(If you are using an rtlsdr dongle, then make sure that either the binaries `/usr/bin/rtl_sdr` and
2021-08-26 10:51:59 +00:00
`/usr/bin/rtl_wmbus` exists and are executable. Or that the executable `rtl_sdr/rtl_wmbus` binaries
exists inside the same directory as the wmbusmeters executable. If not you will see the
2021-03-06 13:16:47 +00:00
error message `(rtlwmbus) error: when starting as daemon, wmbusmeters looked for .../rtl_wmbus and /usr/bin/rtl_wmbus, but found neither!`
2020-02-17 17:09:27 +00:00
and the daemon will refuse to start.)
2019-02-26 08:33:10 +00:00
2021-06-28 20:27:38 +00:00
The latest reading of the meter can also be found here: `/var/log/wmbusmeters/meter_readings/MyTapWater`
2019-02-26 08:33:10 +00:00
2019-03-05 20:19:05 +00:00
You can use several ids using `id=1111111,2222222,3333333` or you can listen to all
2019-06-06 16:16:24 +00:00
meters of a certain type `id=*` or you can suffix with star `id=8765*` to match
2019-09-16 14:32:24 +00:00
all meters with a given prefix. If you supply at least one positive match rule, then you
can add negative match rules as well. For example `id=*,!2222*`
which will match all meter ids, except those that begin with 2222.
2019-03-05 20:19:05 +00:00
2021-06-28 20:27:38 +00:00
You can add the static json data `"address":"RoadenRd 456","city":"Stockholm"` to every json message with the
2019-10-20 17:19:17 +00:00
wmbusmeters.conf setting:
2021-06-28 20:25:33 +00:00
```ini
2021-08-01 21:12:52 +00:00
field_address=RoadenRd 456
field_city=Stockholm
2019-10-20 17:19:17 +00:00
```
2021-06-28 20:27:38 +00:00
2021-08-01 21:12:52 +00:00
If you add `field_floor=5` to the meter file `MyTapWater` , then you can have the meter tailored static json `"floor":"5"` added to telegrams handled by that particular meter. (The old prefix json_ still works.)
2019-10-20 17:19:17 +00:00
2019-05-21 16:00:21 +00:00
If you are running on a Raspberry PI with flash storage and you relay the data to
2021-06-28 20:27:38 +00:00
another computer using a shell command (`mosquitto_pub` or `curl` or similar) then you might want to remove `meterfiles` and `meterfilesaction` to minimize the writes to the local flash file system.
2019-05-21 16:00:21 +00:00
2021-08-08 16:48:37 +00:00
Also when using the Raspberry PI it can get confused by the serial ports, in particular the bluetooth port might come and
go as a serial tty depending on the config. Therefore it can be advantageous to use the auto device to find the proper tty
(eg /dev/ttyUSB0) and then specify this tty device explicitly in the config file, instead of using auto. This assumes that
you only have a single usb dongle otherwise the USB tty names can change depending on how and when the devices are
unplugged/replugged and the pi restarted. If you have multiple devies with different antennas, then you should instead
use donotprobe to avoid the ttys that can never have a wmbus dongle.
2021-06-28 20:27:38 +00:00
If you specify `--meterfilesaction=append --meterfilestimestamp=day` then wmbusmeters will append all todays received telegrams in for example the file `Water_2019-12-11` , the day after the telegrams will be recorded in `Water_2019-12-12` . You can change the resolution to day,hour,minute and micros. Micros means that every telegram gets their own file.
2019-12-11 17:56:34 +00:00
2021-04-10 16:39:13 +00:00
The purpose of the alarm shell and timeout is to notify you about
problems within wmbusmeters and the wmbus dongles, not the meters
themselves. Thus the timeout is for a dongle to receive some telegram
at all. It does not matter from which meter.
2019-02-26 08:33:10 +00:00
# Run using config files
If you cannot install as a daemon, then you can also start
2021-06-28 20:27:38 +00:00
wmbusmeters in your terminal using the config files in `/etc/wmbusmeters` .
2021-06-28 20:25:33 +00:00
```shell
2019-03-01 14:41:11 +00:00
wmbusmeters --useconfig=/
2019-02-26 08:33:10 +00:00
```
Or you can start wmbusmeters with your own config files:
2021-06-28 20:25:33 +00:00
```shell
2019-02-26 08:33:10 +00:00
wmbusmeters --useconfig=/home/me/.config/wmbusmeters
```
2020-11-01 21:02:52 +00:00
If you already have config with a device specified, and you want to use
the config with another device. You might have multiple meters in the config
2021-06-28 20:27:38 +00:00
that you want to listen to. Then you can add `--device` to override the settings
2020-11-01 21:02:52 +00:00
in the config. Like this:
2021-06-28 20:25:33 +00:00
```shell
2020-10-04 20:52:05 +00:00
wmbusmeters --useconfig=/home/me/.config/wmbusmeters --device=rtlwmbus
2020-01-19 22:36:19 +00:00
```
2021-06-28 20:27:38 +00:00
You must have both `--useconfig=` and `--device=` for it to work.
2020-01-19 22:36:19 +00:00
2019-02-26 08:33:10 +00:00
The files/dir should then be located here:
`/home/me/.config/wmbusmeters/etc/wmbusmeters.conf` and
`/home/me/.config/wmbusmeters/etc/wmbusmeters.d`
2019-06-11 16:52:41 +00:00
When running using config files then you can trigger a reload of the config files
2019-06-11 17:15:12 +00:00
using `sudo killall -HUP wmbusmetersd` or `killall -HUP wmbusmeters`
2019-06-11 16:52:41 +00:00
depending on if you are running as a daemon or not.
2019-02-26 08:34:21 +00:00
# Running without config files, good for experimentation and test.
2021-06-28 20:27:38 +00:00
2019-02-26 08:33:10 +00:00
```
2021-08-09 10:17:38 +00:00
wmbusmeters version: 1.4.0
2021-03-08 07:40:48 +00:00
Usage: wmbusmeters {options} < device > ( [meter_name] [meter_driver]{:< modes > } [meter_id] [meter_key] )*
2019-02-26 21:19:16 +00:00
As < options > you can use:
2019-08-14 09:10:51 +00:00
--addconversions=< unit > + add conversion to these units to json and meter env variables (GJ)
2020-09-21 19:55:21 +00:00
--alarmexpectedactivity=mon-fri(08-17),sat-sun(09-12) Specify when the timeout is tested, default is mon-sun(00-23)
2020-09-18 18:05:59 +00:00
--alarmshell=< cmdline > invokes cmdline when an alarm triggers
--alarmtimeout=< time > Expect a telegram to arrive within < time > seconds, eg 60s, 60m, 24h during expected activity.
2021-12-25 13:19:27 +00:00
--analyze Analyze a telegram to find the best driver.
2019-02-26 21:19:16 +00:00
--debug for a lot of information
2021-06-26 10:28:17 +00:00
--device=< device > override device in config files. Use only in combination with --useconfig= option
2020-11-01 14:18:13 +00:00
--donotprobe=< tty > do not auto-probe this tty. Use multiple times for several ttys or specify "all" for all ttys.
2019-02-26 21:19:16 +00:00
--exitafter=< time > exit program after time, eg 20h, 10m 5s
--format=< hr / json / fields > for human readable, json or semicolon separated fields
2021-06-26 10:24:30 +00:00
--help list all options
--ignoreduplicates=< bool > ignore duplicate telegrams, remember the last 10 telegrams
2021-08-27 09:04:59 +00:00
--field_xxx=yyy always add "xxx"="yyy" to the json output and add shell env METER_xxx=yyy (--json_xxx=yyy also works)
2021-06-26 10:24:30 +00:00
--license print GPLv3+ license
--listento=< mode > listen to one of the c1,t1,s1,s1m,n1a-n1f link modes
--listento=< mode > ,< mode > listen to more than one link mode at the same time, assuming the dongle supports it
2021-03-08 07:40:48 +00:00
--listenvs=< meter_driver > list the env variables available for the given meter driver
--listfields=< meter_driver > list the fields selectable for the given meter driver
--listmeters list all meter drivers
--listmeters=< search > list all meter drivers containing the text < search >
2021-08-27 09:04:59 +00:00
--listunits list all unit suffixes that can be used for typing values
2021-06-26 10:24:30 +00:00
--logfile=< file > use this file for logging
2019-02-26 21:19:16 +00:00
--logtelegrams log the contents of the telegrams for easy replay
2021-03-13 08:09:07 +00:00
--logtimestamps=< when > add log timestamps: always never important
2019-02-26 21:19:16 +00:00
--meterfiles=< dir > store meter readings in dir
--meterfilesaction=(overwrite|append) overwrite or append to the meter readings file
2019-06-20 12:28:52 +00:00
--meterfilesnaming=(name|id|name-id) the meter file is the meter's: name, id or name-id
2019-12-11 17:56:34 +00:00
--meterfilestimestamp=(never|day|hour|minute|micros) the meter file is suffixed with a
timestamp (localtime) with the given resolution.
2020-11-12 00:03:45 +00:00
--nodeviceexit if no wmbus devices are found, then exit immediately
2019-02-26 21:19:16 +00:00
--oneshot wait for an update from each meter, then quit
2020-09-26 11:52:24 +00:00
--resetafter=< time > reset the wmbus dongle regularly, default is 23h
2021-08-01 22:22:13 +00:00
--selectfields=id,timestamp,total_m3 select only these fields to be printed (--listfields=< meter > to list available fields)
2019-02-26 21:19:16 +00:00
--separator=< c > change field separator to c
--shell=< cmdline > invokes cmdline with env variables containing the latest reading
2020-11-11 18:29:00 +00:00
--silent do not print informational messages nor warnings
2021-06-26 10:24:30 +00:00
--trace for tons of information
2019-02-26 21:19:16 +00:00
--useconfig=< dir > load config files from dir/etc
2020-09-13 14:55:22 +00:00
--usestderr write notices/debug/verbose and other logging output to stderr (the default)
--usestdoutforlogging write debug/verbose and logging output to stdout
2019-02-26 21:19:16 +00:00
--verbose for more information
2021-06-26 10:24:30 +00:00
--version print version
2020-11-11 23:38:27 +00:00
```
2019-02-26 21:19:16 +00:00
2021-03-07 19:49:56 +00:00
As device you can use:
2019-10-20 18:39:12 +00:00
2021-06-28 20:27:38 +00:00
`auto:c1` , to have wmbusmeters probe for devices: im871a, amb8465, cul, rc1180 or rtlsdr (spawns rtlwmbus).
2020-11-11 23:38:27 +00:00
2021-06-28 20:27:38 +00:00
`im871a:c1` to start all connected *im871a* devices in *c1* mode, ignore all other devices.
2020-10-12 18:34:15 +00:00
2021-06-28 20:27:38 +00:00
`/dev/ttyUSB1:amb8465:c1` to start only this device on this tty. Do not probe for other devices.
2020-11-11 23:38:27 +00:00
If you have two im871a you can supply both of them with their unique id:s and set different listening modes:
2021-06-28 20:27:38 +00:00
`im871a[12345678]:c1` `im871a[11223344]:t1`
2020-10-12 18:34:15 +00:00
You can also specify rtlwmbus and if you set the serial in the rtlsdr
dongle using `rtl_eeprom -s 1234` you can also refer to a specific
rtlsdr dongle like this `rtlwmbus[1234]` .
2019-10-20 18:39:12 +00:00
2021-06-28 20:27:38 +00:00
`/dev/ttyUSB0:amb8465` , if you have an amb8465 dongle assigned to ttyUSB0. Other suffixes are im871a,cul.
2019-02-26 21:19:16 +00:00
2021-06-28 20:27:38 +00:00
`/dev/ttyUSB0` , to have wmbusmeters auto-detect amb8465, im871a, rc1180 or cul device.
2019-11-03 15:31:30 +00:00
2021-06-28 20:27:38 +00:00
`/dev/ttyUSB0:38400` , to have wmbusmeters set the baud rate to 38400 and listen for raw wmbus telegrams.
2020-03-22 17:43:09 +00:00
These telegrams are expected to have the data link layer crc bytes removed already!
2019-11-03 15:31:30 +00:00
2021-06-28 20:27:38 +00:00
`rtlwmbus` , to spawn the background process: `rtl_sdr -f 868.625M -s 1600000 - 2>/dev/null | rtl_wmbus -s`
2021-03-06 15:28:42 +00:00
for each attached rtlsdr dongle. This will listen to S1,T1 and C1 meters in parallel.
2019-11-03 15:31:30 +00:00
2021-06-28 20:27:38 +00:00
Note that this uses a noticeable amount of CPU time by rtl_wmbus.
You can therefore use a tailored rtl_wmbus command that is more suitable for your needs.
2021-06-09 10:22:09 +00:00
2021-06-28 20:27:38 +00:00
`rtlwmbus:CMD(<command line>)` , to specify the entire background
2021-06-09 10:22:09 +00:00
process command line that is expected to produce rtlwbus compatible
2021-06-28 20:27:38 +00:00
output.
The command line cannot contain parentheses.
Likewise for rtl433.
2021-06-09 10:22:09 +00:00
2021-06-09 10:26:25 +00:00
Here is an example command line that reduces the rtl_wmbus CPU usage if you only need T1/C1 telegrams.
2021-06-28 20:27:38 +00:00
It disable S1 decoding (`-p s`) and trades lower cpu usage for reception performance (`-a`):
2021-06-09 10:26:25 +00:00
2021-06-09 10:22:09 +00:00
`rtlwmbus:CMD(rtl_sdr -f 868.95M -s 1600000 - 2>/dev/null | rtl_wmbus -p s -a)`
2021-06-28 20:27:38 +00:00
`rtlwmbus(ppm=17)` , to tune your rtlsdr dongle accordingly.
Use this to tune your dongle and at the same time listen to S1,T1 and C1.
2021-03-06 15:28:42 +00:00
2021-06-28 20:27:38 +00:00
`rtlwmbus:433M` , to tune to this fq instead.
This will listen to exactly to what is on this frequency.
2019-11-03 15:31:30 +00:00
2021-06-28 20:27:38 +00:00
`rtl433` , to spawn the background process: `rtl_433 -F csv -f 868.95M`
2020-08-19 08:59:14 +00:00
2021-06-28 20:27:38 +00:00
`rtl433(ppm=17)` , to tune your rtlsdr dongle accordingly.
2021-03-06 15:28:42 +00:00
2021-06-28 20:27:38 +00:00
`rtl433:433M` , to tune to this fq instead.
2020-08-19 08:59:14 +00:00
2021-06-28 20:27:38 +00:00
`stdin` , to read raw binary telegrams from stdin.
2020-03-22 17:43:09 +00:00
These telegrams are expected to have the data link layer crc bytes removed already!
2019-11-03 15:31:30 +00:00
2021-06-28 20:27:38 +00:00
`telegrams.bin` , to read raw wmbus telegrams from this file.
2020-03-22 17:43:09 +00:00
These telegrams are expected to have the data link layer crc bytes removed already!
2019-11-03 15:31:30 +00:00
2021-09-12 17:51:33 +00:00
`stdin:hex` , to read hex characters wbus telegrams from stdin.
These telegrams are expected to have the data link layer crc bytes removed laready!
`telegrams.txt:hex` , to read hex characters wmbus telegrams from this file.
These telegrams are expected to have the data link layer crc bytes removed already!
2021-06-28 20:27:38 +00:00
`stdin:rtlwmbus` , to read telegrams formatted using the rtlwmbus format from stdin. Works for rtl433 as well.
2019-11-03 15:31:30 +00:00
2021-06-28 20:27:38 +00:00
`telegrams.msg:rtlwmbus` , to read rtlwmbus formatted telegrams from this file. Works for rtl433 as well.
2019-11-03 22:43:29 +00:00
2021-06-28 20:27:38 +00:00
`simulation_abc.txt` , to read telegrams from the file (the file must have a name beginning with simulation_....)
expecting the same format that is the output from `--logtelegrams` . This format also supports replay with timing.
2021-11-08 19:12:21 +00:00
The telegrams are allowed to have valid dll crcs, which will be automatically stripped.
2019-02-26 21:19:16 +00:00
As meter quadruples you specify:
2019-11-03 15:31:30 +00:00
2021-06-28 20:27:38 +00:00
* `<meter_name>` : a mnemonic for this particular meter (!Must not contain a colon ':' character!)
* `<meter_driver>` : use `auto` or one of the supported meters (can be suffixed with `:<mode>` to specify which mode you expect the meter to use when transmitting)
* `<meter_id>` : an 8 digit mbus id, usually printed on the meter
2021-06-29 14:54:12 +00:00
* `<meter_key>` : an encryption key unique for the meter
2021-06-28 20:27:38 +00:00
if the meter uses no encryption, then supply `NOKEY`
2019-02-26 08:33:10 +00:00
2020-11-11 23:38:27 +00:00
```
2019-11-03 15:31:30 +00:00
Supported wmbus dongles:
2020-03-22 13:20:47 +00:00
IMST 871a (im871a)
Amber 8465 (amb8465)
CUL family (cul)
2020-11-01 08:34:18 +00:00
Radiocraft (RC1180)
2020-08-19 08:59:14 +00:00
rtl_wmbus (rtlwmbus)
rtl_433 (rtl433)
2019-11-03 15:31:30 +00:00
2018-12-28 19:20:30 +00:00
Supported water meters:
2021-07-02 17:43:09 +00:00
Aventies (aventieswm)
2020-02-23 17:41:21 +00:00
Apator at-wmbus-08 (apator08) (non-standard protocol)
2020-11-03 17:15:51 +00:00
Apator at-wmbus-16-2 (apator162) (non-standard protocol, spurious decoding errors)
Apator Ultrimis (ultrimis)
2020-09-02 11:17:52 +00:00
Aquametro/Integra Topas Es Kr (topaseskr)
2021-08-08 16:31:36 +00:00
Axioma W1 (q400)
2020-09-02 11:17:52 +00:00
Bmeters Hydrodigit (hydrodigit) (partly non-standard protocol)
2020-01-27 15:53:18 +00:00
Diehl/Sappel IZAR RC 868 I R4 PL (izar) (non-standard protocol)
2019-11-26 13:24:17 +00:00
Diehl HYDRUS (hydrus)
2021-04-10 15:58:32 +00:00
Diehl IZAR RC I G4 (dme_07)
2020-11-14 09:48:49 +00:00
Elster Merlin 868 (emerlin868)
Elster V200H (ev200)
2021-01-26 21:22:59 +00:00
Maddalena EVO 868 (evo868)
2020-01-27 15:53:18 +00:00
Honeywell Q400 (q400)
2020-09-02 11:17:52 +00:00
Kamstrup Multical 21 (multical21)
2020-10-25 18:48:07 +00:00
Kamstrup flowIQ 2200 (flowiq2200)
2020-09-02 11:17:52 +00:00
Kamstrup flowIQ 3100 (flowiq3100)
2021-04-13 10:05:59 +00:00
Qundis QWater5.5 (lse_07_17)
2020-09-02 11:17:52 +00:00
Sontex Supercom 587 (supercom587)
Sensus iPERL (iperl)
2020-11-25 10:01:27 +00:00
Techem MK Radio 3 and 4 (mkradio3,mkradio4) (non-standard protocols)
2020-07-30 10:19:54 +00:00
Waterstar M (waterstarm)
2021-12-01 06:12:27 +00:00
Zenner Minomess (minomess)
2018-12-28 19:20:30 +00:00
2020-09-04 10:13:06 +00:00
Currently not supported, please help!
Diehl/Sappel ACQUARIUS/IZAR R3 (izar3)
2019-05-22 18:06:05 +00:00
Supported heat cost allocators:
2019-06-11 17:12:01 +00:00
Innotas EurisII (eurisii)
2020-09-02 11:17:52 +00:00
Qundis Q caloric (qcaloric)
2020-10-31 14:16:14 +00:00
Sontex 868 (sontex868)
2020-02-11 21:35:57 +00:00
Techem FHKV data II/III (fhkvdataiii)
2021-01-26 16:17:29 +00:00
Siemens WHE542 (whe5x)
2019-03-01 14:51:54 +00:00
2021-01-24 10:18:54 +00:00
Supported heat meters:
2021-01-22 22:38:35 +00:00
Heat meter Techem Compact V / Compact Ve (compact5) (non-standard protocol)
2019-05-04 20:39:45 +00:00
Heat meter Techem Vario 4 (vario451) (non-standard protocol)
2019-11-26 15:12:32 +00:00
Heat meter Kamstrup Multical 302 (multical302) (in C1 mode, please open issue for T1 mode)
2020-08-18 16:56:08 +00:00
Heat and Cooling meter Kamstrup Multical 403 (multical403) (in C1 mode)
2021-11-06 22:13:39 +00:00
Heat and Cooling meter Kamstrup Multical 602 (multical602) (in C1 mode)
2020-10-25 17:54:03 +00:00
Heat and Cooling meter Kamstrup Multical 603 (multical603) (in C1 mode)
2020-12-05 11:01:33 +00:00
Heat and Cooling meter Kamstrup Multical 803 (multical803) (in C1 mode)
2021-02-14 21:55:25 +00:00
Heat meter Apator Elf (elf)
2021-02-20 07:29:48 +00:00
Heat meter Diehl Sharky 775 (sharky)
2021-10-02 09:36:33 +00:00
Heat and Cooling meter BMeters Hydrocal-M3 (hydrocalm3)
2021-11-06 21:35:21 +00:00
Heat meter Qundis Q heat 5.5 (qheat)
2019-05-04 06:52:25 +00:00
2019-10-20 18:39:12 +00:00
Supported room sensors:
2019-10-20 19:39:42 +00:00
Bmeters RFM-AMB Thermometer/Hygrometer (rfmamb)
2020-01-27 15:53:18 +00:00
Elvaco CMa12w Thermometer (cma12w)
2020-09-02 11:17:52 +00:00
Lansen Thermometer/Hygrometer (lansenth)
2021-10-16 18:44:14 +00:00
Weptech Munia Thermometer/Hygrometer (munia)
2019-10-20 18:39:12 +00:00
2020-06-22 08:44:47 +00:00
Supported smoke detectors:
Lansen Smoke Detector (lansensm)
2021-03-06 06:53:48 +00:00
Ei Electronics Smoke Detector ei6500-oms (ei6500) (work in progress)
2020-06-22 08:44:47 +00:00
2020-06-30 09:29:55 +00:00
Supported door/window detectors:
Lansen Door/Window Detector (lansendw)
2020-06-30 14:12:20 +00:00
Supported pulse counter:
Lansen Pulse Counter (lansenpu)
2019-03-20 21:16:45 +00:00
Supported electricity meters:
2020-01-29 06:42:24 +00:00
Easy Meter ESYS-WM20 (esyswm)
2020-02-06 12:14:46 +00:00
eBZ wMB-E01 (ebzwmbe)
2020-09-02 11:17:52 +00:00
EMH Metering (ehzp)
Tauron Amiplus (amiplus) (includes vendor apator and echelon)
2020-09-24 17:49:45 +00:00
Gavazzi EM24 (em24)
2021-01-30 07:52:25 +00:00
Gransystems 301 and 303 (gransystems)
2020-12-28 16:47:21 +00:00
Kamstrup Omnipower (omnipower)
2021-09-25 09:01:51 +00:00
Support gas meters:
uniSMART (unismart)
2017-08-31 09:15:12 +00:00
```
2017-08-09 10:00:11 +00:00
2021-03-18 21:44:50 +00:00
The wmbus dongle im871a can listen to either s1, c1 or t1.
2021-04-13 11:20:31 +00:00
However with the latest firmware version (0x15) im871a can
2021-03-18 21:44:50 +00:00
also listen to c1 and t1 telegrams at the same time.
2021-06-28 20:27:38 +00:00
(Use `--verbose` to see your dongles firmware version.)
2021-04-13 11:20:31 +00:00
If you have the older firmware you can download the upgrader here:
https://wireless-solutions.de/downloadfile/wireless-m-bus-software/
2019-06-11 16:52:41 +00:00
2021-03-18 21:44:50 +00:00
The amb8465 dongle can listen to either s1, c1 or t1. However it
can also listen to c1 and t1 at the same time.
With the latest rtlwmbus you can listen to s1, c1 and t1 at
the same time.
The cul dongle can listen to either s1, c1 or t1, but only
one at a time.
2017-08-09 10:02:42 +00:00
2021-04-13 11:25:40 +00:00
The rc1180 dongle can listen only to t1.
2018-03-05 11:21:55 +00:00
# Usage examples
2017-09-02 21:26:57 +00:00
2021-06-28 20:25:33 +00:00
```shell
2020-11-26 17:46:20 +00:00
wmbusmeters auto:c1
2019-09-25 08:43:24 +00:00
```
2020-11-26 17:46:20 +00:00
Listens for C1 telegrams using any of your available wmbus dongles:
2020-09-04 09:31:49 +00:00
```
2020-09-04 09:36:51 +00:00
Received telegram from: 12345678
2020-09-04 09:31:49 +00:00
manufacturer: (KAM) Kamstrup Energi (0x2c2d)
2021-12-27 13:32:09 +00:00
device type: Cold water meter (0x16) encrypted
2020-09-04 09:36:51 +00:00
device ver: 0x1b
2020-10-24 19:59:16 +00:00
device: im871a[12345678]
rssi: -77 dBm
driver: multical21
2020-09-04 09:31:49 +00:00
```
2021-12-27 13:32:09 +00:00
You can see that this telegram is encrypted and therefore you need a key.
2021-03-07 19:40:41 +00:00
Now listen to this specific meter, since the driver is auto-detected, we can use `auto` for the meter driver.
2019-09-25 08:43:24 +00:00
2021-06-28 20:25:33 +00:00
```shell
2021-03-07 19:40:41 +00:00
wmbusmeters auto:c1 MyTapWater auto 12345678 00112233445566778899AABBCCDDEEFF
2017-08-31 09:15:12 +00:00
```
2020-10-04 20:52:05 +00:00
(The Multical21 and other meters use compressed telegrams, which means
that you might have to wait up to 8 telegrams (8*16 seconds) until you
receive a full length telegram which gives all the information needed
2019-12-06 15:08:51 +00:00
to decode the compressed telegrams.)
2019-06-06 15:31:41 +00:00
2017-08-31 09:15:12 +00:00
Example output:
2018-03-05 11:21:55 +00:00
2019-01-27 23:08:47 +00:00
`MyTapWater 12345678 6.388 m3 6.377 m3 0.000 m3/h 8°C 23°C DRY(dry 22-31 days) 2018-03-05 12:02.50`
2018-11-29 21:32:31 +00:00
2019-01-27 23:08:47 +00:00
(Here the multical21 itself, is configured to send target volume, therefore the max flow is 0.000 m3/h.)
2017-08-31 09:15:12 +00:00
2019-02-26 21:19:16 +00:00
Example format json output:
2017-08-09 10:02:42 +00:00
2021-06-28 20:25:33 +00:00
```shell
wmbusmeters --format=json /dev/ttyUSB0:im871a MyTapWater multical21:c1 12345678 00112233445566778899AABBCCDDEEFF MyHeater multical302 22222222 00112233445566778899AABBCCDDEEFF
```
2017-08-09 10:00:11 +00:00
2021-06-28 20:25:33 +00:00
```json
{"media":"cold water","meter":"multical21","name":"MyTapWater","id":"12345678","total_m3":6.388,"target_m3":6.377,"max_flow_m3h":0.000,"flow_temperature":8,"external_temperature":23,"current_status":"DRY","time_dry":"22-31 days","time_reversed":"","time_leaking":"","time_bursting":"","timestamp":"2018-02-08T09:07:22Z","device":"im871a[1234567]","rssi_dbm":-40}
```
2018-03-05 11:14:23 +00:00
2021-06-28 20:25:33 +00:00
```json
{"media":"heat","meter":"multical302","name":"MyHeater","id":"22222222","total_kwh":0.000,"total_volume_m3":0.000,"current_kw":"0.000","timestamp":"2018-02-08T09:07:22Z"}
```
2018-03-05 11:14:23 +00:00
2021-03-06 19:46:36 +00:00
Example format fields output and use tuned rtlsdr dongle with rtlwmbus.
2018-03-05 11:21:55 +00:00
2021-06-28 20:25:33 +00:00
```shell
wmbusmeters --format=fields 'rtlwmbus(ppm=72)' GreenhouseWater multical21:c1 33333333 NOKEY
```
2018-03-05 11:14:23 +00:00
2021-06-28 20:25:33 +00:00
```
GreenhouseTapWater;33333333;9999.099;77.712;0.000;11;31;;2018-03-05 12:10.24
```
2017-08-31 08:58:39 +00:00
2021-08-08 15:16:52 +00:00
You can select a subset of all available fields, where we also select to print the timestamp as a unix timestamp.
The timestamp field is UTC time for json and local time when hr and fields. To explicitly select utc you
can specify timestamp_utc and timestamp_lt for local time.
2020-05-09 21:43:30 +00:00
2021-06-28 20:25:33 +00:00
```shell
2021-08-08 15:16:52 +00:00
wmbusmeters --format=fields --selectfields=id,total_m3,timestamp_ut,timestamp_utc /dev/ttyUSB0:im871a GreenhouseWater multical21:c1 33333333 NOKEY
2021-06-28 20:25:33 +00:00
```
2020-05-09 21:43:30 +00:00
2021-06-28 20:25:33 +00:00
```
2021-08-08 15:16:52 +00:00
33333333;9999.099;1628434800;2021-08-08T15:00.00Z
2021-06-28 20:25:33 +00:00
```
2020-05-09 21:43:30 +00:00
2020-10-31 14:16:14 +00:00
You can list all available fields for a meter: `wmbusmeters --listfields=multical21`
You can list all meters: `wmbusmeters --listmeters`
You can search for meters: `wmbusmeters --listmeters=water` or `wmbusmteres --listmeters=q`
2020-05-09 21:43:30 +00:00
2018-11-02 12:50:12 +00:00
Eaxmple of using the shell command to publish to MQTT:
2021-06-28 20:25:33 +00:00
```shell
wmbusmeters --shell='HOME=/home/you mosquitto_pub -h localhost -t water -m "$METER_JSON"' /dev/ttyUSB0:im871a GreenhouseWater multical21:c1 33333333 NOKEY
```
2018-11-02 12:50:12 +00:00
Eaxmple of using the shell command to inject data into postgresql database:
2021-06-28 20:25:33 +00:00
```shell
wmbusmeters --shell="psql waterreadings -c \"insert into readings values ('\$METER_ID',\$METER_TOTAL_M3,'\$METER_TIMESTAMP') \" " /dev/ttyUSB0:amb8465 MyColdWater multical21:c1 12345678 NOKEY
```
(It is much easier to add shell commands in the conf file since you do not need to quote the quotes.)
2018-11-02 12:50:12 +00:00
2018-11-02 18:08:56 +00:00
You can have multiple shell commands and they will be executed in the order you gave them on the commandline.
2020-10-31 14:16:14 +00:00
To list the shell env variables available for a meter, run `wmbusmeters --listenvs=multical21` which outputs:
2021-06-28 20:25:33 +00:00
2019-03-12 19:50:05 +00:00
```
METER_JSON
METER_TYPE
2020-10-31 14:16:14 +00:00
METER_NAME
2019-03-12 19:50:05 +00:00
METER_ID
METER_TOTAL_M3
2020-10-31 14:16:14 +00:00
METER_TARGET_M3
2019-03-12 19:50:05 +00:00
METER_MAX_FLOW_M3H
2020-10-31 14:16:14 +00:00
METER_FLOW_TEMPERATURE_C
METER_EXTERNAL_TEMPERATURE_C
METER_CURRENT_STATUS
METER_TIME_DRY
METER_TIME_REVERSED
METER_TIME_LEAKING
METER_TIME_BURSTING
2019-03-12 19:50:05 +00:00
METER_TIMESTAMP
```
2018-11-02 12:50:12 +00:00
2021-08-27 09:04:59 +00:00
(If you have supplied `--field_floor=5` then you will also see `METER_floor` in the list)
2021-06-28 20:27:38 +00:00
Note that the `METER_TIMESTAMP` and the timestamp in the json output, is in UTC format, this is not your localtime.
2019-07-07 20:16:02 +00:00
However the hr and fields output will print your localtime.
2021-06-28 20:27:38 +00:00
You can add `shell=commandline` to a meter file stored in `wmbusmeters.d` , then this meter will use
this shell command instead of the command stored in `wmbusmeters.conf` .
2019-05-21 13:36:57 +00:00
2018-02-28 21:14:16 +00:00
You can use `--debug` to get both verbose output and the actual data bytes sent back and forth with the wmbus usb dongle.
2020-02-06 18:06:53 +00:00
If the meter does not use encryption of its meter data, then enter NOKEY on the command line.
2018-03-05 11:21:55 +00:00
2021-06-28 20:25:33 +00:00
```shell
wmbusmeters --format=json --meterfiles /dev/ttyUSB0:im871a:c1 MyTapWater multical21:c1 12345678 NOKEY
```
2018-03-05 11:21:55 +00:00
2021-06-28 20:27:38 +00:00
# Using wmbusmeters in a pipe
2021-04-09 19:49:33 +00:00
2021-06-28 20:25:33 +00:00
```shell
2021-04-09 19:49:33 +00:00
rtl_sdr -f 868.625M -s 1600000 - 2>/dev/null | rtl_wmbus -s | wmbusmeters --format=json stdin:rtlwmbus MyMeter auto 12345678 NOKEY | ...more processing...
```
2021-10-18 11:16:46 +00:00
Or you can send rtl_wmbus formatted telegrams using nc over UDP to wmbusmeters.
```shell
rtl_sdr -f 868.95M -s 1600000 - 2>/dev/null | rtl_wmbus -p s -a | nc -u localhost 4444
```
And receive the telegrams with nc spawned by wmbusmeters.
```shell
wmbusmeters 'rtlwmbus:CMD(nc -lku 4444)'
```
Or start nc explicitly in a pipe.
```shell
2021-10-18 11:30:49 +00:00
nc -lku 4444 | wmbusmeters stdin:rtlwmbus
2021-10-18 11:16:46 +00:00
```
2021-09-12 17:51:33 +00:00
# Decoding hex string telegrams
2021-09-12 08:46:39 +00:00
2021-09-12 17:51:33 +00:00
If you have a single telegram as hex, which you want decoded, you do not need to create a simulation file,
2021-09-12 08:46:39 +00:00
you can just supply the telegram as a hex string on the command line.
```shell
wmbusmeters 234433300602010014007a8e0000002f2f0efd3a1147000000008e40fd3a341200000000
```
which will output:
```
No meters configured. Printing id:s of all telegrams heard!
Received telegram from: 00010206
manufacturer: (LAS) Lansen Systems, Sweden (0x3033)
type: Other (0x00)
ver: 0x14
driver: lansenpu
```
You an of course decode the meter on the fly:
```shell
wmbusmeters --format=json 234433300602010014007a8e0000002f2f0efd3a1147000000008e40fd3a341200000000 MyCounter auto 00010206 NOKEY
```
which will output:
```
{"media":"other","meter":"lansenpu","name":"MyCounter","id":"00010206","counter_a_int":4711,"counter_b_int":1234,"timestamp":"2021-09-12T08:45:52Z"}
```
2021-09-12 17:51:33 +00:00
You can also pipe the hex into wmbusmeters like this:
```shell
echo 234433300602010014007a8e0000002f2f0efd3a1147000000008e40fd3a341200000000 | ./build/wmbusmeters --silent --format=json stdin:hex MyCounter auto 00010206 NOKEY
```
or read hex data from a a file, `wmbusmeters myfile.txt:hex`
2021-11-08 19:12:21 +00:00
Any non-hex characters are ignored when using the suffix `:hex` . However when the hex string is
supplied on the command line it must be a proper hex string with no spaces.
When a telegram is supplied on the command line, then any valid dll crcs will be automatically removed,
like when the telegram is suppled in a simulation file.
2021-09-12 08:46:39 +00:00
2021-04-09 19:49:33 +00:00
# Additional tools
2020-10-31 14:16:14 +00:00
If you have a Kamstrup meters and you have received a KEM file and its
2021-04-09 19:49:33 +00:00
password from your supplier, then you can use `python2 utils/kem-import.py`
[utils/kem-import.py ](utils/kem-import.py ) to extract meter
2020-10-31 14:16:14 +00:00
information from that file (including the AES key) and to create
corresponding meter files in wmbusmetrs' config directory.
2018-12-28 15:07:24 +00:00
2021-04-09 19:49:33 +00:00
You can also use the XMLExtract Java program. `javac utils/XMLExtract`
and then `java -cp utils XMLExtract` to print the key on the command line.
2021-06-29 14:54:12 +00:00
You can run wmbusmeters with `--logtelegrams` to get log output that can
2020-10-31 14:16:14 +00:00
be placed in a simulation.txt file. You can then run wmbusmeter and
2021-06-28 20:27:38 +00:00
instead of an usb device, you provide the `simulation.txt` file as
2020-10-31 14:16:14 +00:00
argument. See test.sh for more info.
2018-03-05 11:21:55 +00:00
2019-06-11 17:12:01 +00:00
If you do not specify any meters on the command line, then wmbusmeters
will listen and print the header information of any telegram it hears.
2020-04-21 16:07:46 +00:00
# Builds and runs on GNU/Linux MacOSX (with recent XCode), and FreeBSD
2021-06-28 20:27:38 +00:00
2020-12-28 17:27:44 +00:00
(For MacOSX do `brew install librtlsdr libusb` which takes such a long
time that the MacOSX travis build is disabled for the moment.)
2018-03-05 11:21:55 +00:00
2020-11-26 17:46:20 +00:00
`./configure && make && make test`
2018-03-05 11:21:55 +00:00
Binary generated: `./build/wmbusmeters`
2020-11-26 17:46:20 +00:00
`make install` will install this binary.
2019-03-12 19:37:25 +00:00
`make HOST=arm` to cross compile from GNU/Linux to Raspberry PI.
2017-08-09 10:02:42 +00:00
2017-08-31 09:15:12 +00:00
Binary generated: `./build_arm/wmbusmeters`
2017-08-09 10:00:11 +00:00
2017-08-31 09:15:12 +00:00
`make DEBUG=true`
2017-08-09 10:02:42 +00:00
2017-08-31 09:15:12 +00:00
Binary generated: `./build_debug/wmbusmeters`
2017-08-09 10:00:11 +00:00
2020-11-26 17:46:20 +00:00
`make testd` to run all tests using the debug build.
Debug builds only work on FreeBSD if the compiler is LLVM. If your
system default compiler is gcc, set `CXX=clang++` to the build
environment to force LLVM to be used.
2020-04-21 16:07:46 +00:00
2017-08-31 09:15:12 +00:00
`make DEBUG=true HOST=arm`
2017-08-09 10:02:42 +00:00
2017-08-31 09:15:12 +00:00
Binary generated: `./build_arm_debug/wmbusmeters`
2017-08-09 10:02:42 +00:00
2017-09-02 21:26:57 +00:00
# System configuration
2019-03-22 06:31:25 +00:00
`make install` installs the files:
2017-09-02 21:26:57 +00:00
2021-06-29 14:54:12 +00:00
`/etc/wmbusmeters.conf`
`/usr/bin/wmbusmeters`
`/usr/sbin/wmbusmetersd`
`/etc/systemd/system/wmbusmeters.service`
2019-03-22 06:31:25 +00:00
`/etc/logrotate.d/wmbusmeters`
creates these directories:
2021-06-28 20:27:38 +00:00
2021-06-29 14:54:12 +00:00
`/etc/wmbusmeters.d`
`/var/log/wmbusmeters/meter_readings`
2019-03-22 06:31:25 +00:00
and adds the user `wmbusmeters` with no login account.
2020-02-06 18:23:58 +00:00
# Common problems
2021-10-16 18:20:22 +00:00
If wmbusmeters detects no device, but you know you have plugged in your wmbus dongle, then
run with `--verbose` to get more information on why the devices are not detected.
Typically this is because you are not in the dialout (for usb-serial dongles) or plugdev (for rtlsdr) group.
Run `sudo make install` to add the current user to the dialout group and the wmbusmeters group.
2020-02-06 18:23:58 +00:00
If the daemon has started then the wmbus device will be taken and you cannot start wmbusmeters manually.
2021-10-16 18:20:22 +00:00
To run manually, first make sure the daemon is stopped `sudo systemctl stop wmbusmeters`
2020-02-06 18:23:58 +00:00
if this hangs, then do `sudo killall -9 wmbusmetersd` and/or `sudo killall -9 wmbusmeters` .
2021-06-28 20:27:38 +00:00
## How to receive telegrams over longer distances
2020-06-30 09:01:34 +00:00
I only have personal experience of the im871a,amb8465 and an rtlsdr
compatible dongle. The commercial dongles (im871a,amb8464) receive
well despite having tiny antennas inside the dongle. However the
reception range is limited by walls and you must definitely get quite
close to the meter if it is mounted underground in a concrete tube.
The rtlsdr/rtl-wmbus solution seems to work for a lot of users, but it
does use more cpu-power since it decodes the radio traffic in
software. Range seems to be similar to the other dongles, despite the
antenna being much larger.
At least one professional collector use the same commercial dongles,
but the versions with an external antenna connector, into which they
attach a radio amplifier for the proper frequency, and then a larger
antennna. This makes it possible to receive telegrams from meters
underground and over larger distances.
2020-06-30 07:50:07 +00:00
## Non-standard baud rate set for AMB8465 USB stick
2020-03-07 14:36:23 +00:00
2020-06-30 07:50:07 +00:00
Wmbusmeters expects the serial baud rate for the AMB8465 USB stick to be 9600 8n1.
If you have used another tool and changed the baud rate to something else
you need to restore the baud rate to 9600 8n1. You can do that with that other tool,
or you can try wmbusmeters-admin and select `Reset wmbus receives`
this command try all potential baud rates and send the factory reset command.
Then you have to unplug and reinsert the dongle.
If you like to send the bytes manually, the correct bytes are:
2021-06-28 20:27:38 +00:00
* Factory reset of the settings: `0xFF1100EE`
* Reset the stick to apply the factory defaults: `0xFF0500FA` this is not necessary if you unplug and reinsert the dongle.
2020-03-07 14:36:23 +00:00
2018-04-20 09:55:57 +00:00
# Source code
2018-02-28 21:14:16 +00:00
The source code is modular and it should be relatively straightforward to add more receivers and meters.
2017-08-09 10:00:11 +00:00
2018-04-20 09:55:57 +00:00
Read for example the text file: HowToAddaNewMeter.txt
2019-05-04 20:39:45 +00:00
# Caveat
If you do not get proper readings from the meters with non-standard protocols. apator162, mkradio3, vario451
then you have to open an issue here and help out by logging a lot of messages and reverse engineer them
even more..... :-/
2021-06-28 20:27:38 +00:00
# Good free documents on the wireless mbus protocol standard EN 13757
2017-08-09 10:02:42 +00:00
2020-02-26 10:02:47 +00:00
https://oms-group.org/
2017-08-09 10:00:11 +00:00
2018-04-01 06:54:53 +00:00
There is also a lot of wmbus protocol implementation details that
2020-02-26 10:02:47 +00:00
are missing. They will be added to the program as we figure out
how the meters send their data.