<div dir="ltr">
<div>Hallo,</div><div><br></div><div>ich habe einen neuen
Zweirichtungsstromzähler. Den alten Zähler konnte ich problemlos über
vzlogger mit dem d0-Protokoll und den HTTP-Server-Modus auslesen.</div><div>Der
neue Zähler gibt seine Daten als sml aus. vzlogger decodiert auch die
Daten. Hier ein Log-Auszug mit einem sml-meter [mtr0] und einem s0-meter
[mtr1]:</div><div>
<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;text-align:justify"><font size="1"><span style="font-family:monospace"><span lang="EN-GB">Oct 29 09:17:08][mtr0] Got 2 new
readings from meter:<span></span></span></span></font></p><font size="1"><span style="font-family:monospace">
</span></font><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;text-align:justify"><font size="1"><span style="font-family:monospace"><span lang="EN-GB">[Oct 29 09:17:08][mtr0] Reading:
id=1-0:1.8.0*255/ObisIdentifier:1-0:1.8.0*255 value=53000.00 ts=0<span></span></span></span></font></p><font size="1"><span style="font-family:monospace">
</span></font><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;text-align:justify"><font size="1"><span style="font-family:monospace"><span lang="EN-GB">[Oct 29 09:17:08][mtr0] Reading:
id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=13000.00 ts=0<span></span></span></span></font></p><font size="1"><span style="font-family:monospace">
</span></font><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;text-align:justify"><font size="1"><span style="font-family:monospace"><span lang="EN-GB">[Oct 29 09:17:08][s0]<span> </span>Reading S0 - returning 4 readings (n=0 n_neg
= 0)<span></span></span></span></font></p><font size="1"><span style="font-family:monospace">
</span></font><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;text-align:justify"><font size="1"><span style="font-family:monospace"><span lang="EN-GB">[Oct 29 09:17:08][mtr1] Got 4 new
readings from meter:<span></span></span></span></font></p><font size="1"><span style="font-family:monospace">
</span></font><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;text-align:justify"><font size="1"><span style="font-family:monospace"><span lang="EN-GB">[Oct 29 09:17:08][mtr1] Reading:
id=Power/StringIdentifier: value=0.00 ts=1572337028942<span></span></span></span></font></p><font size="1"><span style="font-family:monospace">
</span></font><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;text-align:justify"><font size="1"><span style="font-family:monospace"><span lang="EN-GB">[Oct 29 09:17:08][mtr1] Reading:
id=Impulse/StringIdentifier: value=0.00 ts=1572337028942<span></span></span></span></font></p><font size="1"><span style="font-family:monospace">
</span></font><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;text-align:justify"><font size="1"><span style="font-family:monospace"><span lang="EN-GB">[Oct 29 09:17:08][mtr1] Reading:
id=Power_neg/StringIdentifier: value=0.00 ts=1572337028942<span></span></span></span></font></p><font size="1"><span style="font-family:monospace">
</span></font><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;text-align:justify"><font size="1"><span style="font-family:monospace"><span lang="EN-GB">[Oct 29 09:17:08][mtr1] Reading:
id=Impulse_neg/StringIdentifier: value=0.00 ts=1572337028942<span></span></span></span></font></p><font size="1"><span style="font-family:monospace">
</span></font><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;text-align:justify"><font size="1"><span style="font-family:monospace"><span lang="EN-GB">[Oct 29 09:17:08][chn2] Adding
reading to queue (value=0.00 ts=1572337028942)<span></span></span></span></font></p><font size="1"><span style="font-family:monospace">
</span></font><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;text-align:justify"><font size="1"><span style="font-family:monospace"><span lang="EN-GB">[Oct 29 09:17:08][chn3] Adding
reading to queue (value=0.00 ts=1572337028942)<span></span></span></span></font></p><font size="1"><span style="font-family:monospace">
</span></font><p class="MsoNormal" style="margin:0cm 0cm 6pt;text-align:justify;font-size:10pt;font-family:"Arial",sans-serif"><span lang="EN-GB"><font size="1"><span style="font-family:monospace">[Oct 29
09:17:08][S0]<span> </span>MeterS0:HWIF_GPIO:first
poll returned 0</span></font><span></span></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 6pt;text-align:justify;font-size:10pt;font-family:"Arial",sans-serif">Der Auszug zeigt, dass zwar Readings vom mtr1 korrekt decodiert werden (<span lang="EN-GB">value=53000.00 und value=13000.00), </span>aber
nicht wie die S0 (mtr1)-Werte in die Queue gestellt werden (
Adding
reading to queue
...) und damit nicht an den HTTP-Server weitergereicht werden?</p><p class="MsoNormal" style="margin:0cm 0cm 6pt;text-align:justify;font-size:10pt;font-family:"Arial",sans-serif">Ausserdem fällt auf, dass der Timestamp ts=0
ist!</p><p class="MsoNormal" style="margin:0cm 0cm 6pt;text-align:justify;font-size:10pt;font-family:"Arial",sans-serif">Ich sehe den sml-meter auch im Browser, aber keine Werte-Tupel. Hier der JSON-Auszug:</p><p class="MsoNormal" style="margin:0cm 0cm 6pt;text-align:justify;font-size:10pt;font-family:"Arial",sans-serif">
</p><pre>{ "version": "0.6.0", "generator": "vzlogger", "data": [ { "uuid": "180a", "last": 0, "interval": -1, "protocol": "sml" }, { "uuid": "180c", "last": 0, "interval": -1, "protocol": "sml" }, { "uuid": "121e", "last": 1572339709909, "interval": -1, "protocol": "s0", "tuples": [ [ 1572339562898, 0 ] ....</pre>
<p class="MsoNormal" style="margin:0cm 0cm 6pt;text-align:justify;font-size:10pt;font-family:"Arial",sans-serif">Hier meine vzlogger Konfig (ohne die S0-meter-Definitionen):</p><p class="MsoNormal" style="margin:0cm 0cm 6pt;text-align:justify;font-size:10pt;font-family:"Arial",sans-serif"><font size="1">// vzlogger.conf with sml (Strom)<br> "daemon": true,<br> "verbosity": 15,<br> "log": "/var/log/vzlogger.log",<br> "retry": 30, // http retry delay in seconds<br> // Build-in HTTP server<br> "local": {<br> "enabled": true,<br> "port": 8080,<br> "index": true,<br> "timeout": 30,<br> "buffer": 3600<br> },<br> // Meter configuration</font><br> <font size="1">"meters": [<br> // sml meter (Strom)<br> {<br> "enabled": true,<br> "protocol": "sml",<br> "device": "/dev/ttyUSB0",<br> "baudrate": 9600,<br> "parity": "8n1",<br> "skip": false,<br> "channels": [<br> {<br> "uuid": "180a",<br> "identifier": "counter", // 1.8.1 Zaehlerstand Wirkleistung 1-0:1.8.255*255<br> "api": "null",<br> "duplicates": 0<br> },<br> {</font><br><font size="1"> "uuid": "180c",<br> "identifier": "counter-out", // 2.8.1 Zaehlerstand Lieferg. 1-0:2.8.255*255<br> "api": "null",<br> "duplicates": 0<br> }<br> ]<br> },<br> ]<br>}</font></p><p class="MsoNormal" style="margin:0cm 0cm 6pt;text-align:justify;font-size:10pt;font-family:"Arial",sans-serif"><span></span></p>
</div><div>vzlogger läuft bei mir auf
<span style="font-size:10pt;font-family:"Arial",sans-serif">OpenWrt</span> in v0.6.0.</div><div><br></div><div>Hat jemand eine Idee, wo der Fehler liegt?</div><div><br></div><div>Viele Grüße</div>
</div>