Update README/CHANGES about new auto driver.

pull/267/head
Fredrik Öhrström 2021-03-07 20:40:41 +01:00
rodzic 4169574f4a
commit a74c36da15
6 zmienionych plików z 24 dodań i 14 usunięć

Wyświetl plik

@ -1,3 +1,12 @@
You can now use "auto" as a meter driver.
Wmbusmeters will then pick the right driver when
the first telegram arrives. A warning will be printed
in the logs if no driver could be found.
If you do not specify a type= in the meter config file,
then it will default to auto.
Version 1.2.0: 2021-03-07
IMPORTANT CHANGES THAT MIGHT AFFECT YOU!vvvvvvvvvvvvvvvvvvvvvv

Wyświetl plik

@ -82,11 +82,14 @@ ignoreduplicates=true
Then add a meter file in /etc/wmbusmeters.d/MyTapWater
```
name=MyTapWater
type=multical21:c1
id=12345678
key=00112233445566778899AABBCCDDEEFF
```
Meter driver detection will be automatic. You can also provide an
explicit driver name with: `type=multical21:c1` or explicitly state
that driver detection is automatic: `type=auto`.
Now plugin your wmbus dongle. Wmbusmeters should start automatically,
check with `tail -f /var/log/syslog` and `tail -f /var/log/wmbusmeters/wmbusmeters.log`
(If you are using an rtlsdr dongle, then make sure that either the binaries /usr/bin/rtl_sdr and
@ -350,10 +353,10 @@ Received telegram from: 12345678
driver: multical21
```
Now listen to this specific meter.
Now listen to this specific meter, since the driver is auto-detected, we can use `auto` for the meter driver.
```
wmbusmeters auto:c1 MyTapWater multical21:c1 12345678 00112233445566778899AABBCCDDEEFF
wmbusmeters auto:c1 MyTapWater auto 12345678 00112233445566778899AABBCCDDEEFF
```
(The Multical21 and other meters use compressed telegrams, which means

Wyświetl plik

@ -51,9 +51,9 @@ void parseMeterConfig(Configuration *c, vector<char> &buf, string file)
auto i = buf.begin();
string bus;
string name;
string type;
string type = "auto";
string id;
string key;
string key = "";
string linkmodes;
int bps {};
vector<string> telegram_shells;

Wyświetl plik

@ -92,9 +92,9 @@ public:
if (t->tpl_id_found)
{
mfct = t->dll_mfct;
media = t->dll_type;
version = t->dll_version;
mfct = t->tpl_mfct;
media = t->tpl_type;
version = t->tpl_version;
id_b = t->tpl_id_b;
}
@ -933,9 +933,9 @@ MeterType pickMeterDriver(Telegram *t)
if (t->tpl_id_found)
{
manufacturer = t->dll_mfct;
media = t->dll_type;
version = t->dll_version;
manufacturer = t->tpl_mfct;
media = t->tpl_type;
version = t->tpl_version;
}
#define X(TY,MA,ME,VE) { if (manufacturer == MA && (media == ME || ME == -1) && (version == VE || VE == -1)) { return MeterType::TY; }}

Wyświetl plik

@ -1,4 +1,2 @@
id=52525252
type=flowiq2200
name=MyWater
key=

Wyświetl plik

@ -1,4 +1,4 @@
id=86868686
type=weh_07
type=auto
name=Vatten
key=