<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hallo zusammen,<br class=""><div><font color="#5856d6" class=""><br class=""></font>meine erst Nachricht an den Verteiler - hoffe das ist korrekt adressiert, sonst bitte Hinweis!<br class=""><font color="#5856d6" class=""><br class=""></font><b class="">Ziel:</b><br class=""><blockquote type="cite" class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><b class="">Auslesen der Register</b> mit vzlogger gemäß OBIS-Codes aus den Zählern und <b class="">Multiplikation</b> der Werte mit den <b class="">Faktoren 200</b> bzw. <b class="">80</b>, bevor die Werte in die DB geschrieben werden, sodass im Frontend die tatsächlichen Leistungs- und Verbrauchswerte angezeigt werden.</div></div></blockquote><font color="#5856d6" class=""><br class=""></font><b class="">Konfiguration: </b><br class=""><blockquote type="cite" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Messwandler-Zähler von Landis+Gyr mit DLMS-Schnittstelle<br class="">Typ E650, ZMD410CT44.2407 S3 B31 mit Faktor 200 (Bezug/Lieferung)<br class="">Typ E650, ZMD410CT44.2407 S3 B32 mit Faktor 80 (Erzeugung) <br class="">Raspi PI B+<br class="">IR-USB-Leseköpfe von Udo</div></div></blockquote><font color="#5856d6" class=""><br class=""></font><b class="">Was bisher lief:</b><br class=""><blockquote type="cite" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Die Installation auf dem Raspi ist getestet (andere vzlogger.conf und UUIDs fürs Frontend alles tadellos)<br class="">läuft einwandfrei bei direkt messenden SML-eHZ der Marke emh<br class="">auch ein xxd < <span class="" style="font-family: Monaco;">/dev/usb-ir-lesekopf0</span> funktioniert bei solchen SML-Zählern einwandfrei (... plappern von alleine los)</div></div></blockquote><font color="#5856d6" class=""><br class=""></font>Neuer Einsatz des Raspi bei Messwandler-Zählern. Per Internet-Recherche auf folgenden Beitrag gestossen:<br class=""><blockquote type="cite" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class=""><a href="http://www.photovoltaikforum.com/volkszaehler-org-f131/fuenf-elektronische-zaehler-auslesen-t94624-s10.html" class="">http://www.photovoltaikforum.com/volkszaehler-org-f131/fuenf-elektronische-zaehler-auslesen-t94624-s10.html</a><br class=""><a href="http://wiki.volkszaehler.org/hardware/channels/meters/power/edl-ehz/zmd120ap?s[]=dlms" class="">http://wiki.volkszaehler.org/hardware/channels/meters/power/edl-ehz/zmd120ap?s[]=dlms</a></div></div></div></blockquote><font color="#5856d6" class=""><br class=""></font>Zum Testen folgende vzlogger.conf mit nur einem Meter:<br class=""><blockquote type="cite" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span style="font-family: Monaco;" class="">/**</span><br class=""><span style="font-family: Monaco;" class="">* vzlogger configuration</span><br class=""><span style="font-family: Monaco;" class="">*</span><br class=""><span style="font-family: Monaco;" class="">* use proper encoded JSON with javascript comments</span><br class=""><span style="font-family: Monaco;" class="">*</span><br class=""><span style="font-family: Monaco;" class="">* take a look at the wiki for detailed information:</span><br class=""><span style="font-family: Monaco;" class="">* </span><a href="http://wiki.volkszaehler.org/software/controller/vzlogger#configuration" class="" style="font-family: Monaco;">http://wiki.volkszaehler.org/software/controller/vzlogger#configuration</a><br class=""><span style="font-family: Monaco;" class="">*/</span><br class=""><span style="font-family: Monaco;" class="">{</span><br class=""><span style="font-family: Monaco;" class=""> "retry" : 30, /* how long to sleep between failed requests, in seconds */</span><br class=""><span style="font-family: Monaco;" class=""> "daemon": false, /* run as server */</span><br class=""><span style="font-family: Monaco;" class=""> //"foreground" : true, /* don’t run in background (prevents forking) */</span><br class=""><span style="font-family: Monaco;" class=""> "verbosity" : 15, /* between 0 and 15 */</span><br class=""><span style="font-family: Monaco;" class=""> "log" : "/var/log/vzlogger.log", /* path to logfile, optional */</span><br class=""><font face="Monaco" class=""><br class=""></font><span style="font-family: Monaco;" class=""> "local" : {</span><br class=""><span style="font-family: Monaco;" class=""> "enabled" : false, /* should we start the local HTTPd for serving live readings? */</span><br class=""><span style="font-family: Monaco;" class=""> "port" : 8080, /* the TCP port for the local HTTPd */</span><br class=""><span style="font-family: Monaco;" class=""> "index" : true, /* should we provide a index listing of available channels if no UUID was requested? */</span><br class=""><span style="font-family: Monaco;" class=""> "timeout" : 30, /* timeout for long polling comet requests, 0 disables comet, in seconds */</span><br class=""><span style="font-family: Monaco;" class=""> "buffer" : 600 /* how long to buffer readings for the local interface, in seconds */</span><br class=""><span style="font-family: Monaco;" class=""> },</span><br class=""><font face="Monaco" class=""><br class=""></font><span style="font-family: Monaco;" class=""> "meters" : [{</span><br class=""><span style="font-family: Monaco;" class=""> "enabled" : true, /* disabled meters will be ignored */</span><br class=""><span style="font-family: Monaco;" class=""> "protocol" : "d0", /* see 'vzlogger -h' for list of available protocols */</span><br class=""><span style="font-family: Monaco;" class=""> "device" : "/dev/usb-ir-lesekopf0",</span><br class=""><span style="font-family: Monaco;" class=""> "parity" : "7E1", /* 7E1 */</span><br class=""><span style="font-family: Monaco;" class=""> "baudrate" : 9600,</span><br class=""><span style="font-family: Monaco;" class=""> "pullseq" : "2f3f210d0a",</span><br class=""><span style="font-family: Monaco;" class=""> "interval" : 5 // Wartezeit bis zum nächsten Pull</span><br class=""><div class=""><div class=""><div style="margin: 0px; font-family: Monaco;" class="">]}</div></div></div></div></blockquote><font color="#5856d6" class=""><br class=""></font>Test vzlogger mit vzlogger.conf oben. Setzen der Baudrate 300 führte zu:<br class=""><blockquote type="cite" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="" style="font-family: Monaco;">[Nov 25 17:15:56][d0] </span><span class="" style="font-family: Monaco;"> </span><span class="" style="font-family: Monaco;">Invalid baudrate: 300</span><br class=""><div class=""><div class=""><span style="font-family: Monaco;" class="">[Nov 25 17:15:56][d0] </span><span style="font-family: Monaco;" class=""> </span><span style="font-family: Monaco;" class="">Failed to parse the </span><font face="Monaco" class="">baud rate</font>”</div></div></div></blockquote><font color="#5856d6" class=""><br class=""></font>Setzen der Baudrate 9600 gab dann keinen Fehler zurück - vielleicht, weil in rc.local folgendes steht:<br class=""><blockquote type="cite" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span style="font-family: Monaco;" class="">stty -F /dev/ttyUSB0 9600 -parity -cstopb</span><br class=""><span style="font-family: Monaco;" class="">stty -F /dev/ttyUSB1 9600 -parity -cstopb</span><br class=""><div style="margin: 0px; font-family: Monaco;" class=""><br class=""></div></div></blockquote><b class="">Testaufruf vzlogger: </b><br class=""><blockquote type="cite" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span style="font-family: Monaco;" class="">sudo vzlogger -c /etc/vzlogger.conf</span><br class=""><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47][mtr0] Creating new meter with protocol d0.</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47][d0] pullseq len:5 found</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47][mtr0] Meter configured. enabled</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47] New meter initialized (protocol=d0)</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47] Have 1 meters.</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47][main] daemon=0, local=0</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47] NOT Daemonize process...</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47] Opened logfile /var/log/vzlogger.log</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47][] ===> Start meters.</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47][mtr0] Meter connection established</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47][mtr0] Meter thread started</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47][mtr0] meter is opened. Start channels.</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47][] Startup done.</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47][mtr0] Number of readers: 32</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47][mtr0] Config.daemon: 0</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47][mtr0] Config.local: 0</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47][d0] </span><font color="#e63b7a" class="" style="font-family: Monaco;">sending pullsequenz send (len:5 is:5).</font><br class=""><span style="color: rgb(230, 59, 122); font-family: Monaco;" class="">[Nov 25 18:18:47][d0] Something unexpected happened: read:501!</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47][mtr0] Got 0 new readings from meter:</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:47][mtr0] Next reading in 5 seconds</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:52][d0] </span><font color="#e63b7a" class="" style="font-family: Monaco;">sending pullsequenz send (len:5 is:5).</font><br class=""><span style="color: rgb(230, 59, 122); font-family: Monaco;" class="">[Nov 25 18:18:52][d0] Something unexpected happened: read:501!</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:52][mtr0] Got 0 new readings from meter:</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:52][mtr0] Next reading in 5 seconds</span><br class=""><span style="font-family: Monaco;" class="">^C[Nov 25 18:18:57] terminating on signal 2.</span><br class=""><span style="font-family: Monaco;" class="">[Nov 25 18:18:57] Closing connections to terminate</span><br class=""><div class=""><div class=""><div style="margin: 0px; font-family: Monaco;" class="">[Nov 25 18:18:57][] Server stopped.</div></div></div></div></blockquote><font color="#5856d6" class=""><br class=""><br class=""></font>Diese Fragestellung ist zwar schon vor mir an der einen oder anderen Stelle im Internet beschrieben worden, aber die Threads enden dann ohne dass ich die Lösung begriffen hätte (Problem zwischen Stuhl und Tastatur?<br class=""><font color="#5856d6" class=""><br class=""></font>Muss das Shellscript unter <a href="http://wiki.volkszaehler.org/hardware/channels/meters/power/edl-ehz/zmd120ap?s[]=dlms" class="">http://wiki.volkszaehler.org/hardware/channels/meters/power/edl-ehz/zmd120ap?s[]=dlms</a> permanent laufen und wirft die Werte aus den Zählern? <br class=""><font color="#5856d6" class=""><br class=""></font>Bleibt die Hoffnung, dass einer von Euch mir helfen kann und ich danach das Wiki um diese Zähler und die erforderlichen Schritte zur Konfiguration erweitere. Ansonsten geht es den Weg, den Udo vorschlug: HTerm und rumprobieren... <br class=""><font color="#5856d6" class=""><br class=""></font>Wer kann mir das bitte, bitte ersparen? :-)<br class=""><font color="#5856d6" class=""><br class=""></font>Beste Grüße<br class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Armin</div></div></div><br class=""></body></html>