<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=DE link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Problem scheint gelöst. Ich habe: </p><p class=MsoNormal>"debounce_delay": 2</p><p class=MsoNormal>Auf 2ms runtergesetzt nachdem ich gemerkt habe, das die Impulse ca. 4ms lang sind.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Danke für die Hilfe!!</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Anbei das logfile </p><p class=MsoNormal>[Oct 30 19:26:14][main] vzlogger v0.8.0 based on heads/master-0-gc5bcd3296a from Sat, 25 Jul 2020 08:54:47 +0200 started.</p><p class=MsoNormal>[Oct 30 19:26:14][mtr0] Creating new meter with protocol s0.</p><p class=MsoNormal>[Oct 30 19:26:14][mtr0] Meter configured, enabled.</p><p class=MsoNormal>[Oct 30 19:26:14] New meter initialized (protocol=s0)</p><p class=MsoNormal>[Oct 30 19:26:14] Configure channel.</p><p class=MsoNormal>[Oct 30 19:26:14][chn0] New channel initialized (uuid=...a16326 api=volkszaehler id=Impulse)</p><p class=MsoNormal>[Oct 30 19:26:14][mtr1] Creating new meter with protocol s0.</p><p class=MsoNormal>[Oct 30 19:26:14][mtr1] Meter configured, enabled.</p><p class=MsoNormal>[Oct 30 19:26:14] New meter initialized (protocol=s0)</p><p class=MsoNormal>[Oct 30 19:26:14] Configure channel.</p><p class=MsoNormal>[Oct 30 19:26:14][chn1] New channel initialized (uuid=...fbfa4f api=volkszaehler id=Impulse)</p><p class=MsoNormal>[Oct 30 19:26:14][mtr2] Creating new meter with protocol s0.</p><p class=MsoNormal>[Oct 30 19:26:14][mtr2] Meter configured, enabled.</p><p class=MsoNormal>[Oct 30 19:26:14] New meter initialized (protocol=s0)</p><p class=MsoNormal>[Oct 30 19:26:14] Configure channel.</p><p class=MsoNormal>[Oct 30 19:26:14][chn2] New channel initialized (uuid=...b93dc3 api=volkszaehler id=Impulse)</p><p class=MsoNormal>[Oct 30 19:26:14][mtr3] Creating new meter with protocol s0.</p><p class=MsoNormal>[Oct 30 19:26:14][mtr3] Meter configured, enabled.</p><p class=MsoNormal>[Oct 30 19:26:14] New meter initialized (protocol=s0)</p><p class=MsoNormal>[Oct 30 19:26:14] Configure channel.</p><p class=MsoNormal>[Oct 30 19:26:14][chn3] New channel initialized (uuid=...5c376b api=volkszaehler id=Impulse)</p><p class=MsoNormal>[Oct 30 19:26:14] Have 4 meters.</p><p class=MsoNormal>[Oct 30 19:26:14][main] log level is 15</p><p class=MsoNormal>[Oct 30 19:26:14][main] daemon=1, local=0</p><p class=MsoNormal>[Oct 30 19:26:14] Daemonize process...</p><p class=MsoNormal>[Oct 30 19:26:14] Opened logfile /home/pi/vzlogger.log</p><p class=MsoNormal>[Oct 30 19:26:14][push] No pushDataServer defined.</p><p class=MsoNormal>[Oct 30 19:26:14][] ===> Start meters</p><p class=MsoNormal>[Oct 30 19:26:14][s0] counter_thread created</p><p class=MsoNormal>[Oct 30 19:26:14][s0] Counter thread started with blocking hwif</p><p class=MsoNormal>[Oct 30 19:26:14][mtr0] Meter connection established</p><p class=MsoNormal>[Oct 30 19:26:14][mtr0] Meter thread started</p><p class=MsoNormal>[Oct 30 19:26:14][mtr0] Meter is opened. Starting channels.</p><p class=MsoNormal>[Oct 30 19:26:14][mtr0] Number of readers: 4</p><p class=MsoNormal>[Oct 30 19:26:14][mtr0] Config.daemon: 1</p><p class=MsoNormal>[Oct 30 19:26:14][chn0] Logging thread started</p><p class=MsoNormal>[Oct 30 19:26:14][chn0] Start logging thread for volkszaehler-api. Running as daemon: yes</p><p class=MsoNormal>[Oct 30 19:26:14][mtr0] Config.local: 0</p><p class=MsoNormal>[Oct 30 19:26:14][s0] counter_thread created</p><p class=MsoNormal>[Oct 30 19:26:14][s0] Counter thread started with blocking hwif</p><p class=MsoNormal>[Oct 30 19:26:14][mtr1] Meter connection established</p><p class=MsoNormal>[Oct 30 19:26:14][chn0] Using default volkszaehler api.</p><p class=MsoNormal>[Oct 30 19:26:14][mtr1] Meter thread started</p><p class=MsoNormal>[Oct 30 19:26:14][mtr1] Meter is opened. Starting channels.</p><p class=MsoNormal>[Oct 30 19:26:14][chn1] Logging thread started</p><p class=MsoNormal>[Oct 30 19:26:14][chn1] Start logging thread for volkszaehler-api. Running as daemon: yes</p><p class=MsoNormal>[Oct 30 19:26:14][chn1] Using default volkszaehler api.</p><p class=MsoNormal>[Oct 30 19:26:14][s0] counter_thread created</p><p class=MsoNormal>[Oct 30 19:26:14][s0] Counter thread started with blocking hwif</p><p class=MsoNormal>[Oct 30 19:26:14][mtr2] Meter connection established</p><p class=MsoNormal>[Oct 30 19:26:14][mtr2] Meter thread started</p><p class=MsoNormal>[Oct 30 19:26:14][mtr2] Number of readers: 4</p><p class=MsoNormal>[Oct 30 19:26:14][mtr2] Config.daemon: 1</p><p class=MsoNormal>[Oct 30 19:26:14][mtr2] Meter is opened. Starting channels.</p><p class=MsoNormal>[Oct 30 19:26:14][mtr2] Config.local: 0</p><p class=MsoNormal>[Oct 30 19:26:14][chn2] Logging thread started</p><p class=MsoNormal>[Oct 30 19:26:14][chn2] Start logging thread for volkszaehler-api. Running as daemon: yes</p><p class=MsoNormal>[Oct 30 19:26:14][chn2] Using default volkszaehler api.</p><p class=MsoNormal>[Oct 30 19:26:14][mtr1] Meter thread started</p><p class=MsoNormal>[Oct 30 19:26:14][mtr1] Meter is opened. Starting channels.</p><p class=MsoNormal>[Oct 30 19:26:14][chn1] Logging thread started</p><p class=MsoNormal>[Oct 30 19:26:14][chn1] Start logging thread for volkszaehler-api. Running as daemon: yes</p><p class=MsoNormal>[Oct 30 19:26:14][chn1] Using default volkszaehler api.</p><p class=MsoNormal>[Oct 30 19:26:14][s0] counter_thread created</p><p class=MsoNormal>[Oct 30 19:26:14][s0] Counter thread started with blocking hwif</p><p class=MsoNormal>[Oct 30 19:26:14][mtr2] Meter connection established</p><p class=MsoNormal>[Oct 30 19:26:14][mtr2] Meter thread started</p><p class=MsoNormal>[Oct 30 19:26:14][mtr2] Number of readers: 4</p><p class=MsoNormal>[Oct 30 19:26:14][mtr2] Config.daemon: 1</p><p class=MsoNormal>[Oct 30 19:26:14][mtr2] Meter is opened. Starting channels.</p><p class=MsoNormal>[Oct 30 19:26:14][mtr2] Config.local: 0</p><p class=MsoNormal>[Oct 30 19:26:14][chn2] Logging thread started</p><p class=MsoNormal>[Oct 30 19:26:14][chn2] Start logging thread for volkszaehler-api. Running as daemon: yes</p><p class=MsoNormal>[Oct 30 19:26:14][chn2] Using default volkszaehler api.</p><p class=MsoNormal>[Oct 30 19:26:14][s0] counter_thread created</p><p class=MsoNormal>[Oct 30 19:26:14][mtr3] Meter connection established</p><p class=MsoNormal>[Oct 30 19:26:14][mtr3] Meter thread started</p><p class=MsoNormal>[Oct 30 19:26:14][mtr3] Number of readers: 4</p><p class=MsoNormal>[Oct 30 19:26:14][mtr3] Meter is opened. Starting channels.</p><p class=MsoNormal>[Oct 30 19:26:14][mtr3] Config.daemon: 1</p><p class=MsoNormal>[Oct 30 19:26:14][mtr3] Config.local: 0</p><p class=MsoNormal>[Oct 30 19:26:14][chn3] Logging thread started</p><p class=MsoNormal>[Oct 30 19:26:14][s0] Counter thread started with blocking hwif</p><p class=MsoNormal>[Oct 30 19:26:14][] Startup done.</p><p class=MsoNormal>[Oct 30 19:26:14][chn3] Start logging thread for volkszaehler-api. Running as daemon: yes</p><p class=MsoNormal>[Oct 30 19:26:14][mtr1] Number of readers: 4</p><p class=MsoNormal>[Oct 30 19:26:14][mtr1] Config.daemon: 1</p><p class=MsoNormal>[Oct 30 19:26:14][mtr1] Config.local: 0</p><p class=MsoNormal>[Oct 30 19:26:14][chn3] Using default volkszaehler api.</p><p class=MsoNormal>[Oct 30 19:26:14][S0] MeterS0:HWIF_GPIO:first poll returned 1</p><p class=MsoNormal>[Oct 30 19:26:14][S0] MeterS0:HWIF_GPIO:first poll returned 1</p><p class=MsoNormal>[Oct 30 19:26:14][S0] MeterS0:HWIF_GPIO:first poll returned 1</p><p class=MsoNormal>[Oct 30 19:26:15][S0] MeterS0:HWIF_GPIO:first poll returned 1</p><p class=MsoNormal>[Oct 30 19:26:15][S0] MeterS0:HWIF_GPIO:first poll returned 0</p><p class=MsoNormal>[Oct 30 19:26:15][S0] MeterS0:HWIF_GPIO:first poll returned 0</p><p class=MsoNormal>[Oct 30 19:26:15][s0] Reading S0 - returning 1 readings (n=1 n_neg = 0)</p><p class=MsoNormal>[Oct 30 19:26:15][mtr2] Got 1 new readings from meter:</p><p class=MsoNormal>[Oct 30 19:26:15][mtr2] Reading: id=Impulse/StringIdentifier: value=1.00 ts=1604082374583</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] Adding reading to queue (value=1.00 ts=1604082374583)</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] ==> number of tuples: 1</p><p class=MsoNormal>[Oct 30 19:26:15][s0] Reading S0 - returning 1 readings (n=2 n_neg = 0)</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] compare: 0 1604082374583</p><p class=MsoNormal>[Oct 30 19:26:15][mtr3] Got 1 new readings from meter:</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] copied 1/1 values for middleware transmission</p><p class=MsoNormal>[Oct 30 19:26:15][mtr3] Reading: id=Impulse/StringIdentifier: value=2.00 ts=1604082375511</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] Adding reading to queue (value=2.00 ts=1604082375511)</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] ==> number of tuples: 1</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] compare: 0 1604082375511</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] JSON request body: [ [ 1604082374583, 1 ] ]</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] copied 1/1 values for middleware transmission</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] CURL: Expire in 0 ms for 6 (transfer 0x71a00dd0)</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] CURL: Expire in 30000 ms for 8 (transfer 0x71a00dd0)</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] CURL: Trying 127.0.0.1...</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] CURL: TCP_NODELAY set</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] CURL: Expire in 200 ms for 4 (transfer 0x71a00dd0)</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] CURL: Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] CURL: Sent 24 bytes..</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] CURL: Sent '[ [ 1604082374583, 1 ] ]' bytes</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] CURL: upload completely sent off: 24 out of 24 bytes</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] CURL: Received 26 bytes</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] CURL: Received '{"version":"0.3","rows":1}' bytes</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] CURL: Closing connection 0</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] CURL Request succeeded with code: 200</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] JSON request body: [ [ 1604082375511, 2 ] ]</p><p class=MsoNormal>[Oct 30 19:26:15][chn2] emptied all (1) values</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] CURL: Expire in 0 ms for 6 (transfer 0x71a00dd0)</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] CURL: Expire in 30000 ms for 8 (transfer 0x71a00dd0)</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] CURL: Hostname 127.0.0.1 was found in DNS cache</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] CURL: Trying 127.0.0.1...</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] CURL: TCP_NODELAY set</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] CURL: Expire in 200 ms for 4 (transfer 0x71a00dd0)</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] CURL: Connected to 127.0.0.1 (127.0.0.1) port 8080 (#1)</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] CURL: Sent 24 bytes..</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] CURL: Sent '[ [ 1604082375511, 2 ] ]' bytes</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] CURL: upload completely sent off: 24 out of 24 bytes</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] CURL: Received 26 bytes</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] CURL: Received '{"version":"0.3","rows":1}' bytes</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] CURL: Closing connection 1</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] CURL Request succeeded with code: 200</p><p class=MsoNormal>[Oct 30 19:26:15][chn3] emptied all (1) values</p><p class=MsoNormal>[Oct 30 19:26:15][S0] MeterS0:HWIF_GPIO:first poll returned 0</p><p class=MsoNormal>[Oct 30 19:26:15][S0] MeterS0:HWIF_GPIO:first poll returned 1</p><p class=MsoNormal>[Oct 30 19:26:16][S0] MeterS0:HWIF_GPIO:first poll returned 1</p><p class=MsoNormal>[Oct 30 19:26:16][S0] MeterS0:HWIF_GPIO:first poll returned 0</p><p class=MsoNormal>[Oct 30 19:26:16][S0] MeterS0:HWIF_GPIO:first poll returned 0</p><p class=MsoNormal>[Oct 30 19:26:16][s0] Reading S0 - returning 2 readings (n=1 n_neg = 0)</p><p class=MsoNormal>[Oct 30 19:26:16][mtr2] Got 2 new readings from meter:</p><p class=MsoNormal>[Oct 30 19:26:16][mtr2] Reading: id=Power/StringIdentifier: value=2647.06 ts=1604082375943</p><p class=MsoNormal>[Oct 30 19:26:16][mtr2] Reading: id=Impulse/StringIdentifier: value=1.00 ts=1604082375943</p><p class=MsoNormal>[Oct 30 19:26:16][chn2] Adding reading to queue (value=1.00 ts=1604082375943)</p><p class=MsoNormal>[Oct 30 19:26:16][chn2] ==> number of tuples: 1</p><p class=MsoNormal>[Oct 30 19:26:16][chn2] compare: 1604082374583 1604082375943</p><p class=MsoNormal>[Oct 30 19:26:16][chn2] copied 1/1 values for middleware transmission</p><p class=MsoNormal>[Oct 30 19:26:16][chn2] JSON request body: [ [ 1604082375943, 1 ] ]</p><p class=MsoNormal>[Oct 30 19:26:16][chn2] CURL: Expire in 0 ms for 6 (transfer 0x71a00dd0)</p><p class=MsoNormal>[Oct 30 19:26:16][chn2] CURL: Expire in 30000 ms for 8 (transfer 0x71a00dd0)</p><p class=MsoNormal>[Oct 30 19:26:16][chn2] CURL: Hostname 127.0.0.1 was found in DNS cache</p><p class=MsoNormal>[Oct 30 19:26:16][chn2] CURL: Trying 127.0.0.1...</p><p class=MsoNormal>[Oct 30 19:26:16][chn2] CURL: TCP_NODELAY set</p><p class=MsoNormal>[Oct 30 19:26:16][s0] Reading S0 - returning 2 readings (n=1 n_neg = 0)</p><p class=MsoNormal>[Oct 30 19:26:16][mtr3] Got 2 new readings from meter:</p><p class=MsoNormal>Gesendet von <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> für Windows 10</p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b>Von: </b><a href="mailto:vz@jahp.de">Daniel Lauckner</a><br><b>Gesendet: </b>Freitag, 30. Oktober 2020 14:11<br><b>An: </b><a href="mailto:volkszaehler-users@demo.volkszaehler.org">volkszaehler.org - users</a><br><b>Betreff: </b>Re: [vz-users] vzlogger sendet nach einem Stromausfall keineDatenmehr an die Middleware</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hallo,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>am Freitag, 30. Oktober 2020 um 13:56 hat vor dem Esche geschrieben:</p><p class=MsoNormal>> Im Grunde kommen im Loglile nur noch Meldungen der Art:</p><p class=MsoNormal>> [Oct 25 19:14:16][S0] MeterS0:HWIF_GPIO:first poll returned 1</p><p class=MsoNormal>> [Oct 25 19:14:17][S0] MeterS0:HWIF_GPIO:first poll returned 0</p><p class=MsoNormal>> ……</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Normal werden Impulse als Interrupt behandelt. Ist eine Sekunde um </p><p class=MsoNormal>wird aber dennoch gepollt.</p><p class=MsoNormal>Fehlende [curl] heißt von vzlogger nix gesendet, offensichtlich weil </p><p class=MsoNormal>halt einfach nix rein kommt.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Also Hardware prüfen. Impulse erzeugen, im Log kontrollieren. </p><p class=MsoNormal>Womöglich hat beim Stromausfall irgendwas die Füße gehoben...</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>mfg Daniel</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>