<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body dir="auto"><div dir="auto">Oh, ja Mist habe ich vergessen...</div><div dir="auto"><br></div><div dir="auto">Ich habe einen Iskra b1t Eintarifzähler von der EnBW bekommen. Der lesekopf ist ein Eigenbau von mir.</div><div dir="auto"><br></div><div id="composer_signature" dir="auto"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><b>Carsten Stock</b><div>Kirchberger Straße 13</div><div>88090 Immenstaad</div><div>Tel: +49 151 52623868</div><div><br></div><div>>> Von meinem Handy gesendet <<</div></div><div><br></div><div style="font-size:100%;color:#000000" dir="auto"><!-- originalMessage --><div>-------- Ursprüngliche Nachricht --------</div><div>Von: Andreas Goetz <cpuidle@gmail.com> </div><div>Datum: 11.08.19 09:17 (GMT+01:00) </div><div>An: "volkszaehler.org - users" <volkszaehler-users@demo.volkszaehler.org> </div><div>Betreff: Re: [vz-users] vzlogger bekommt keine Daten vom IR Lesekopf </div><div><br></div></div>Spannend wäre ja mal was für ein Zähler das denn ist- oder wolltest Du die Frage als Rätsel aufziehen ;)<br><br>Viele Grüße, Andreas <br><br>> Am 11.08.2019 um 09:09 schrieb Carsten Stock <Carsten_Stock@web.de>:<br>> <br>> Hallo alle,<br>> <br>> ich habe einen neuen Stromzähler bekommen und musste meinen Lesekopf<br>> umbauen. Mein Raspberry bekommt auch Daten über USB0, allerdings kann<br>> der vzlogger die Daten irgendwie nicht auswerten. Wenn ich den DUMP<br>> richtig interpretiere ist es ein sml format.<br>> <br>> Ich habe jetzt alle möglichen Varianten versucht, ohne Erfolg! Ich habe<br>> jetzt keine Idee mehr. Könnt Ihr mir helfen?<br>> <br>> Der USB Dump (/dev/ttyUSB0) sieht wie folgt aus:<br>> <br>> 0000500 9c f0 1b 1b 1b 1b 01 01 01 01 76 05 00 70 64 00<br>> 0000520 01 62 00 72 63 01 01 76 01 01 05 00 28 2a 1f 0b<br>> 0000540 00 01 40 52 4b 00 04 39 03 12 72 62 01 65 00 28<br>> 0000560 28 c6 62 42 f3 82 00 76 05 00 78 7e 5e 62 00 62<br>> 0000600 00 72 63 07 01 20 00 00 a1 49 53 4b 00 04 39 03<br>> 0000620 12 07 01 00 62 0a ff f7 60 08 65 00 28 28 c6 74<br>> 0000640 77 07 01 00 60 32 01 01 01 01 00 49 53 4b 01 77<br>> 0000660 07 01 00 60 01 00 ff 01 01 01 01 00 21 49 53 4b<br>> 0000700 00 04 39 03 12 01 77 07 01 00 01 08 00 09 01 18<br>> 0000720 81 04 01 62 1e 52 ff 65 00 16 07 db 01 77 07 00<br>> 0000740 00 07 00 ff 01 01 62 1b 52 00 52 4e 01 01 01 63<br>> 0000760 4e 00 60 05 00 78 7e 5f 62 00 62 00 72 63 02 01<br>> 0001000 71 01 63 67 01 00 00 1b 1b 1b 1b 1a 02 70 46 fb<br>> 0001020 ff fe fe ff fe ff fb fc 3f ff ff f4 fe fc ff df<br>> 0001040 ff fc ff f8 ff dc fe fc fe f6 ff fd ff f8 fe ff<br>> 0001060 e2 ff fe fe fe fe ff fc ff e8 ff ff c2 fe f8 fc<br>> 0001100 ff 1b 1b 1b 1b 01 01 01 56 10 78 7e 60 62 00 62<br>> 0001120 00 72 63 01 01 76 01 01 01 00 20 2a 20 0b 0a 01<br>> 0001140 49 53 4b 00 04 39 03 12 72 62 01 05 00 e8 62 01<br>> 0001160 63 15 d1 00 76 05 00 78 7e 61 62 00 62 00 63 07<br>> 0001200 01 77 01 0b 0a 01 49 53 4b 00 04 39 03 12 07 00<br>> 0001220 60 08 ff ff 72 62 01 65 00 28 28 c7 74 77 07 01<br>> 0001240 00 00 00 01 01 01 01 01 04 49 53 4b 01 77 07 01<br>> 0001260 00 60 01 00 b9 01 01 01 0b 0a 01 49 53 4b 00 04<br>> 0001300 39 03 12 01 77 07 00 01 08 00 ff 65 00 1c 81 04<br>> 0001320 01 62 1e 52 ff 65 00 16 00 32 76 07 01 00 10 07<br>> 0001340 00 ff 01 01 62 1b 52 00 52 4b 00 00 63 cd 1d 00<br>> 0001360 76 05 00 78 7e 62 62 00 62 00 72 63 00 60 01 63<br>> 0001400 d6 59 00 00 00 1b 1b 1b 1b 1a 02 c5 b7 7c ff 94<br>> 0001420 9e fe ff 9e 9e f8 f9 ff ff ff ce fe ff fe ff fe<br>> 0001440 f8 fc fc f8 ee fe f2 ff fc ff ff ff fc fc 5f 6e<br>> 0001460 fa f0 ff fe f0 ff fb ff fc fc ff de e6 ff ff 1b<br>> 0001500 1b 1b 1b 01 01 01 01 76 05 00 f0 88 89 01 62 00<br>> 0001520 72 63 01 01 76 01 01 05 00 28 2a 01 00 00 01 49<br>> 0001540 53 4b 00 04 39 03 12 72 62 01 65 00 28 28 80 00<br>> 0001560 2c 5c 1c 76 05 00 78 7e 64 62 00 62 00 72 63 07<br>> 0001600 52 0a 0a 01 49 53 4b 00 04 39 03 12 07 01 00 62<br>> 0001620 0a 20 60 62 01 65 00 28 28 c8 74 77 07 01 00 60<br>> <br>> <br>> Meine vzlogger.conf:<br>> <br>> {<br>> "retry": 3,<br>> "daemon": true,<br>> "verbosity": 15,<br>> "log": "/var/log/vzlogger.log",<br>> <br>> "local": {<br>> "enabled": false,<br>> "port": 8080,<br>> "index": false,<br>> "timeout": 0,<br>> "buffer": 0,<br>> "use_local_time": true,<br>> <br>> },<br>> <br>> "meters": [<br>> {<br>> "enabled": true,<br>> "protocol": "sml",<br>> "device": "/dev/ttyUSB0",<br>> "baudrate": 9600,<br>> "parity": "8n1",<br>> "allowskip": false,<br>> "interval": -1,<br>> "aggtime": -1,<br>> "aggfixedinterval": true,<br>> <br>> "channels": [<br>> {<br>> "api": "volkszaehler",<br>> "uuid": "d9b28d20-b41f-11e9-85de-8970c894d413",<br>> "identifier": "1-0:16.7.0",<br>> "middleware": "http://localhost/middleware.php",<br>> "aggmode": "avg",<br>> "duplicates": 0<br>> },<br>> <br>> {<br>> "api": "volkszaehler",<br>> "uuid": "13def240-b458-11e9-adc9-71b50e6de454",<br>> "identifier": "1-0:1.8.0",<br>> "middleware": "http://localhost/middleware.php",<br>> "aggmode": "max",<br>> "duplicates": 0<br>> }<br>> <br>> ]<br>> }<br>> ]<br>> }<br>> <br>> wenn ich die Konfig einlese bekomme ich folgende Meldung:<br>> <br>> [Aug 11 00:07:11][main] vzlogger v0.7.0 based on<br>> heads/master-0-g12e74ddd43 from Sun, 2 Jun 2019 20:48:14 +0200 started.<br>> [Aug 11 00:07:11] Ignoring invalid field or type:<br>> use_local_time=true (boolean)<br>> [Aug 11 00:07:11][mtr0] Creating new meter with protocol sml.<br>> [Aug 11 00:07:11][mtr0] Meter configured, enabled.<br>> [Aug 11 00:07:11] New meter initialized (protocol=sml)<br>> [Aug 11 00:07:11] Configure channel.<br>> [Aug 11 00:07:11][chn0] New channel initialized (uuid=...94d413<br>> api=volkszaehler id=1-0:16.7.0)<br>> [Aug 11 00:07:11] Configure channel.<br>> [Aug 11 00:07:11][chn1] New channel initialized (uuid=...6de454<br>> api=volkszaehler id=1-0:1.8.0)<br>> [Aug 11 00:07:11] Have 1 meters.<br>> [Aug 11 00:07:11][main] log level is 15<br>> [Aug 11 00:07:11][main] daemon=1, local=0<br>> [Aug 11 00:07:11] Daemonize process...<br>> <br>> Im Logfile bekomme ich folgende Meldungen:<br>> <br>> [Aug 11 00:01:37][main] vzlogger v0.7.0 based on<br>> heads/master-0-g12e74ddd43 from Sun, 2 Jun 2019 20:48:14 +0200 started.<br>> [Aug 11 00:01:37] Ignoring invalid field or type:<br>> use_local_time=true (boolean)<br>> [Aug 11 00:01:37][mtr0] Creating new meter with protocol sml.<br>> [Aug 11 00:01:37][mtr0] Meter configured, enabled.<br>> [Aug 11 00:01:37] New meter initialized (protocol=sml)<br>> [Aug 11 00:01:37] Configure channel.<br>> [Aug 11 00:01:37][chn0] New channel initialized (uuid=...94d413<br>> api=volkszaehler id=1-0:16.7.0)<br>> [Aug 11 00:01:37] Configure channel.<br>> [Aug 11 00:01:37][chn1] New channel initialized (uuid=...6de454<br>> api=volkszaehler id=1-0:1.8.0)<br>> [Aug 11 00:01:37] Have 1 meters.<br>> [Aug 11 00:01:37][main] log level is 15<br>> [Aug 11 00:01:37][main] daemon=1, local=0<br>> [Aug 11 00:01:37] Daemonize process...<br>> [Aug 11 00:01:37] Opened logfile /var/log/vzlogger.log<br>> [Aug 11 00:01:37][push] No pushDataServer defined.<br>> [Aug 11 00:01:37][] ===> Start meters<br>> [Aug 11 00:01:37][mtr0] Meter connection established<br>> [Aug 11 00:01:37][mtr0] Meter thread started<br>> [Aug 11 00:01:37][mtr0] Meter is opened. Starting channels.<br>> [Aug 11 00:01:37][mtr0] Number of readers: 32<br>> [Aug 11 00:01:37][chn0] Logging thread started<br>> [Aug 11 00:01:37][chn0] Start logging thread for volkszaehler-api.<br>> Running as daemon: yes<br>> [Aug 11 00:01:37][mtr0] Config.daemon: 1<br>> [Aug 11 00:01:37][mtr0] Config.local: 0<br>> [Aug 11 00:01:37][chn1] Start logging thread for volkszaehler-api.<br>> Running as daemon: yes<br>> [Aug 11 00:01:37][chn1] Logging thread started<br>> [Aug 11 00:01:37][chn0] Using default volkszaehler api.<br>> [Aug 11 00:01:37][] Startup done.<br>> [Aug 11 00:01:37][chn1] Using default volkszaehler api.<br>> [Aug 11 00:02:51][sml] sml_transport_read returned len=0 after reopen<br>> [Aug 11 00:02:51][sml] short message from sml_transport_read len=0<br>> [Aug 11 00:02:51][mtr0] Got 0 new readings from meter:<br>> [Aug 11 00:02:51][chn0] ==> number of tuples: 0<br>> [Aug 11 00:02:51][chn1] ==> number of tuples: 0<br>> [Aug 11 00:02:51][chn0] JSON request body is null. Nothing to send now.<br>> [Aug 11 00:02:51][chn1] JSON request body is null. Nothing to send now.<br>> [Aug 11 00:05:01] MapContainer::quit terminating on signal 15.<br>> [Aug 11 00:05:01] Closing connections to terminate<br>> [Aug 11 00:05:01][main] MeterMap::cancel entered...<br>> [Aug 11 00:05:01][main] MeterMap::cancel wait for readingthread<br>> [Aug 11 00:05:01][main] MeterMap::cancel wait for meter::close<br>> [Aug 11 00:05:01][main] MeterMap::cancel finished.<br>> [Aug 11 00:05:01][main] MapContainer::quit finished.<br>> [Aug 11 00:06:36][main] vzlogger v0.7.0 based on<br>> heads/master-0-g12e74ddd43 from Sun, 2 Jun 2019 20:48:14 +0200 started.<br>> [Aug 11 00:06:36] Ignoring invalid field or type:<br>> use_local_time=true (boolean)<br>> [Aug 11 00:06:36][mtr0] Creating new meter with protocol sml.<br>> [Aug 11 00:06:36][mtr0] Meter configured, enabled.<br>> [Aug 11 00:06:36] New meter initialized (protocol=sml)<br>> [Aug 11 00:06:36] Configure channel.<br>> [Aug 11 00:06:36][chn0] New channel initialized (uuid=...94d413<br>> api=volkszaehler id=1-0:16.7.0)<br>> [Aug 11 00:06:36] Configure channel.<br>> [Aug 11 00:06:36][chn1] New channel initialized (uuid=...6de454<br>> api=volkszaehler id=1-0:1.8.0)<br>> [Aug 11 00:06:36] Have 1 meters.<br>> [Aug 11 00:06:36][main] log level is 15<br>> [Aug 11 00:06:36][main] daemon=1, local=0<br>> [Aug 11 00:06:36] Daemonize process...<br>> [Aug 11 00:06:36] Opened logfile /var/log/vzlogger.log<br>> [Aug 11 00:06:36][push] No pushDataServer defined.<br>> [Aug 11 00:06:36][] ===> Start meters<br>> [Aug 11 00:06:36][mtr0] Meter connection established<br>> [Aug 11 00:06:36][mtr0] Meter thread started<br>> [Aug 11 00:06:36][mtr0] Meter is opened. Starting channels.<br>> [Aug 11 00:06:36][mtr0] Number of readers: 32<br>> [Aug 11 00:06:36][chn0] Logging thread started<br>> [Aug 11 00:06:36][chn0] Start logging thread for volkszaehler-api.<br>> Running as daemon: yes<br>> [Aug 11 00:06:36][mtr0] Config.daemon: 1<br>> [Aug 11 00:06:36][chn1] Logging thread started<br>> [Aug 11 00:06:36][mtr0] Config.local: 0<br>> [Aug 11 00:06:36][] Startup done.<br>> [Aug 11 00:06:36][chn1] Start logging thread for volkszaehler-api.<br>> Running as daemon: yes<br>> [Aug 11 00:06:36][chn0] Using default volkszaehler api.<br>> [Aug 11 00:06:36][chn1] Using default volkszaehler api.<br>> [Aug 11 00:07:11][main] vzlogger v0.7.0 based on<br>> heads/master-0-g12e74ddd43 from Sun, 2 Jun 2019 20:48:14 +0200 started.<br>> [Aug 11 00:07:11] Ignoring invalid field or type:<br>> use_local_time=true (boolean)<br>> [Aug 11 00:07:11][mtr0] Creating new meter with protocol sml.<br>> [Aug 11 00:07:11][mtr0] Meter configured, enabled.<br>> [Aug 11 00:07:11] New meter initialized (protocol=sml)<br>> [Aug 11 00:07:11] Configure channel.<br>> [Aug 11 00:07:11][chn0] New channel initialized (uuid=...94d413<br>> api=volkszaehler id=1-0:16.7.0)<br>> [Aug 11 00:07:11] Configure channel.<br>> [Aug 11 00:07:11][chn1] New channel initialized (uuid=...6de454<br>> api=volkszaehler id=1-0:1.8.0)<br>> [Aug 11 00:07:11] Have 1 meters.<br>> [Aug 11 00:07:11][main] log level is 15<br>> [Aug 11 00:07:11][main] daemon=1, local=0<br>> [Aug 11 00:07:11] Daemonize process...<br>> [Aug 11 00:07:11] Opened logfile /var/log/vzlogger.log<br>> [Aug 11 00:07:11][push] No pushDataServer defined.<br>> [Aug 11 00:07:11][] ===> Start meters<br>> [Aug 11 00:07:11][mtr0] Meter connection established<br>> [Aug 11 00:07:11][mtr0] Meter thread started<br>> [Aug 11 00:07:11][mtr0] Meter is opened. Starting channels.<br>> [Aug 11 00:07:11][mtr0] Number of readers: 32<br>> [Aug 11 00:07:11][mtr0] Config.daemon: 1<br>> [Aug 11 00:07:11][chn0] Logging thread started<br>> [Aug 11 00:07:11][mtr0] Config.local: 0<br>> [Aug 11 00:07:11][chn0] Start logging thread for volkszaehler-api.<br>> Running as daemon: yes<br>> [Aug 11 00:07:11][chn1] Logging thread started<br>> [Aug 11 00:07:11][] Startup done.<br>> [Aug 11 00:07:11][chn0] Using default volkszaehler api.<br>> [Aug 11 00:07:11][chn1] Start logging thread for volkszaehler-api.<br>> Running as daemon: yes<br>> [Aug 11 00:07:11][chn1] Using default volkszaehler api.<br>> [Aug 11 00:09:16][sml] reopen called. current fd=4<br>> [Aug 11 00:09:16][sml] after reopen fd=4<br>> <br>> Vielen Dank für eure Hilfe.<br>> <br>> Gruß,<br>> <br>> Carsten<br>> <br>> <br>> <hexdmp.txt><br>> <vzlogger.conf><br>> <vzlogger.log><br></body></html>