<html xmlns:v="urn:schemas-microsoft-com:vml" 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 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Nur Text Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Sprechblasentext Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-US;}
span.NurTextZchn
{mso-style-name:"Nur Text Zchn";
mso-style-priority:99;
mso-style-link:"Nur Text";
font-family:"Calibri","sans-serif";}
span.SprechblasentextZchn
{mso-style-name:"Sprechblasentext Zchn";
mso-style-priority:99;
mso-style-link:Sprechblasentext;
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoPlainText>Hallo Udo,<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>das vom 29.3.:<o:p></o:p></p><p class=MsoPlainText>2014-03-29-raspbian-vz-05-3G.img<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Das was im Wiki als Image für die "Erweiterung" angegeben war, ist älter (vom 22.3.) und in dem verwendeten waren viele Dinge schon als "enthalten" kommentiert.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Das läuft jetzt soweit auch, habe sehr vorsichtig die "vzlogger.conf" um den ttyUSB0 Kanal erweitert. Das Parsing läuft auch jetzt ohne Fehler durch:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>[Apr 18 20:58:08][mtr1] Got 0 nepi@raspberrypi /var/log $ sudo vzlogger -c /etc/vzlogger.conf<o:p></o:p></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 21:03:42][mtr0] Creating new meter with protocol d0.<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 21:03:42][mtr0] Meter configured. enabled<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 21:03:42] New meter initialized (protocol=d0)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 21:03:42] Configure channel.<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 21:03:42][chn0] New channel initialized (uuid=...0c7b49 protocol=volkszaehler id=1-0:1.8.0*255)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 21:03:42][mtr1] Creating new meter with protocol d0.<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 21:03:42][mtr1] Meter configured. enabled<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 21:03:42] New meter initialized (protocol=d0)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 21:03:42] Configure channel.<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 21:03:42][chn1] New channel initialized (uuid=...5f7d77 protocol=volkszaehler id=1-0:1.8.0*255)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 21:03:42] Have 2 meters.<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 21:03:42][main] foreground=0, daemon=1, local=1<o:p></o:p></span></p><p class=MsoPlainText>[Apr 18 21:03:42] Daemonize process...<o:p></o:p></p><p class=MsoPlainText>pi@raspberrypi /var/log $<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>nach bereinigten und neu gesetzten Kanälen:<o:p></o:p></p><p class=MsoPlainText><span style='mso-fareast-language:DE'><img width=518 height=286 id="Grafik_x0020_1" src="cid:image003.jpg@01CF5B4B.873647B0"></span><o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Der ttyAMA0 läuft.<o:p></o:p></p><p class=MsoPlainText>Der ttyUSB0 wird einmal korrekt in der Fußzeile mit Werten angezeigt, dann treten jedoch Fehler auf und es entsteht keine Linie.<o:p></o:p></p><p class=MsoPlainText>Das ‚vzlogger.log‘ zeigt:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 20:58:08][d0] Something unexpected happened: read:336!<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 20:58:08][mtr1] Got 0 new readings from meter:<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 20:58:08][d0] Something unexpected happened: read:336!<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 20:58:08][mtr1] Got 0 new readings from meter:<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 20:58:08][d0] Something unexpected happened: read:336!<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 20:58:08][mtr1] Got 0 new readings from meter:<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>[Apr 18 20:58:08][d0] Something unexpected happened: read:336!<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText>Die beiden Köpfe liefern jedoch korrekte Daten von gleichen Easymeter Q3DA Zählern:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><b><i><span lang=EN-US>pi@raspberrypi /var/log $ cat /dev/ttyAMA0<o:p></o:p></span></i></b></p><p class=MsoPlainText><span lang=EN-US>1-0:1.8.0*255(00002055.5531357*kWh)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>1-0:21.7.255*255(000000.00*W)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>1-0:41.7.255*255(002084.66*W)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>1-0:61.7.255*255(000000.00*W)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>1-0:1.7.255*255(002084.66*W)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>1-0:96.5.5*255(82)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>0-0:96.1.255*255(1ESY1130001026)<o:p></o:p></span></p><p class=MsoPlainText>!<o:p></o:p></p><p class=MsoPlainText>/ESY5Q3DA1004 V3.03<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><b><i><span lang=EN-US>pi@raspberrypi /var/log $ cat /dev/ttyUSB0<o:p></o:p></span></i></b></p><p class=MsoPlainText><span lang=EN-US>1-0:0.0.0*255(0000000089211174)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>1-0:1.8.0*255(00006276.4350156*kWh)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>1-0:21.7.255*255(000098.57*W)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>1-0:41.7.255*255(000099.44*W)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>1-0:61.7.255*255(000167.44*W)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>1-0:1.7.255*255(000365.45*W)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>1-0:96.5.5*255(82)<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>0-0:96.1.255*255(1ESY1130001025)<o:p></o:p></span></p><p class=MsoPlainText>!<o:p></o:p></p><p class=MsoPlainText>/ESY5Q3DA1004 V3.03<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><b><i>Die vzlogger.config lautet:<o:p></o:p></i></b></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span lang=EN-US>pi@raspberrypi /var/log $ cat /etc/vzlogger.conf<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>/**<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> * vzlogger configuration<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> *<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> * use proper encoded JSON with javascript comments<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> *<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> * take a look at the wiki for detailed information:<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> * http://wiki.volkszaehler.org/software/controller/vzlogger#configuration<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US>{<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>"retry" : 30, /* how long to sleep between failed requests, in seconds */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>"daemon": true, /* run periodically */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>//"foreground" : true, /* dont run in background (prevents forking) */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>"verbosity" : 15, /* between 0 and 15 */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>"log" : "/var/log/vzlogger.log",/* path to logfile, optional */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US>"local" : {<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>// "enabled" : false, /* should we start the local HTTPd for serving live readings? */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "port" : 8080, /* the TCP port for the local HTTPd */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "index" : true, /* should we provide a index listing of available channels if no UUID was requested? */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "timeout" : 30, /* timeout for long polling comet requests, 0 disables comet, in seconds */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "buffer" : 600 /* how long to buffer readings for the local interface, in seconds */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>},<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US>"meters" : [<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> {<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "enabled" : true, /* disabled meters will be ignored */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "protocol" : "d0", /* see 'vzlogger -h' for list of available proto$ */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "device" : "/dev/ttyAMA0",<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "parity" : "7E1",<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "baudrate" : 9600,<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "aggtime" : 60, /* aggregate all signals and give one update to middleware every 'aggtime' seconds */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "aggfixedinterval" : false, /* round all timestamps to middleware to nearest aggtime */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> </span>"channels": [{<o:p></o:p></p><p class=MsoPlainText> "uuid" : "66e19100-c726-11e3-b100-75c9ee0c7b49",<o:p></o:p></p><p class=MsoPlainText> <span lang=EN-US>"middleware" : "http://localhost/middleware.php",<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "identifier" : "1-0:1.8.0*255", /* Gesamtstromverbrauch$ */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "aggmode" : "MAX" /* add all s0 intervals in the aggregation. Possible Modes: SUM, AVG, MAXIMUM and NONE*/<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> }]<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US> } // meter<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> ,<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> {<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "enabled" : true, /* disabled meters will be ignored */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "protocol" : "d0", /* see 'vzlogger -h' for list of available proto$ */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "device" : "/dev/ttyUSB0",<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "parity" : "7E1",<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "baudrate" : 9600,<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "aggtime" : 60, /* aggregate all signals and give one update to middleware every 'aggtime' seconds */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "aggfixedinterval" : false, /* round all timestamps to middleware to nearest aggtime */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "channels": [{<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "uuid" : "5263aee0-c726-11e3-8df3-afb7655f7d77",<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "middleware" : "http://localhost/middleware.php",<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "identifier" : "1-0:1.8.0*255", /* Gesamtstromverbrauch$ */<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> "aggmode" : "MAX" /* add all s0 intervals in the aggregation. Possible Modes: SUM, AVG, MAXIMUM and NONE*/<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> </span>}]<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText> }<o:p></o:p></p><p class=MsoPlainText>]} // end of config<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span style='mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoPlainText><span style='mso-fareast-language:DE'>-----Ursprüngliche Nachricht-----<br>Von: volkszaehler-users-bounces@demo.volkszaehler.org [mailto:volkszaehler-users-bounces@demo.volkszaehler.org] Im Auftrag von Udo1<br>Gesendet: Freitag, 18. April 2014 20:19<br>An: volkszaehler.org - users<br>Betreff: Re: [vz-users] vzlogger</span></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Hallo Michael,<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Am 18.04.2014 18:30, schrieb Michael:<o:p></o:p></p><p class=MsoPlainText>> also, ich verstricke mich immer tiefer im System.<o:p></o:p></p><p class=MsoPlainText>welches Image benutzt du eigentlich?<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Gruß<o:p></o:p></p><p class=MsoPlainText>Udo<o:p></o:p></p></div></body></html>