Hallo,<div><br></div><div>ich habe einen IR-Schreib-Lesekopf mit der USB-Erweiterung aufgebaut und kann mit diesem dem Zähler Daten entlocken (sowohl über ein Terminal wie im Wiki beschrieben als auch durch ein "<a href="http://init.pl" target="_blank">init.pl</a>"-Tool aus dem KNX-User-Forum (<a href="http://knx-user-forum.de/225383-post148.html" target="_blank">http://knx-user-forum.de/225383-post148.html</a>)).</div>
<div><br></div><div>Aber ich bekomme den vzlogger nicht dazu Daten /dev/ttyUSB1 auszulesen. Meine Konfiguration sieht so aus:</div><div><br></div><div><div>{</div><div>"retry" : 30, /* how long to sleep between failed requests, in seconds */</div>
<div>"daemon": true, /* run periodically */</div><div>//"foreground" : true, /* dont run in background (prevents forking) */</div><div>"verbosity" : 10, /* between 0 and 15 */</div>
<div>"log" : "/var/log/vzlogger.log",/* path to logfile, optional */</div><div> </div><div>"local" : {</div><div> "enabled" : true, /* should we start the local HTTPd for serving live readings? */</div>
<div> "port" : 8080, /* the TCP port for the local HTTPd */</div><div> "index" : true, /* should we provide a index listing of available channels if no UUID was requested? */</div>
<div> "timeout" : 30, /* timeout for long polling comet requests, 0 disables comet, in seconds */</div><div> "buffer" : 600 /* how long to buffer readings for the local interface, in seconds */</div>
<div>},</div><div><br></div><div>"meters" : [{</div><div> "enabled" : true, /* disabled meters will be ignored */</div><div> "protocol" : "sml", /* see 'vzlogger -h' for list of available protocols */</div>
<div> "device" : "/dev/ttyUSB1",</div><div> "channels": [{</div><div> "uuid" : "xyz-uuid",</div><div> "middleware" : "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.php</a>",</div>
<div> "identifier" : "power" /* Wirkleistung (Summe) */</div><div> }, {</div><div> "uuid" : "xyz-uuid",</div><div> "middleware" : "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.php</a>",</div>
<div> "identifier" : "esy-counter-t1", /* Tagesstromverbrauch Tarif 1 */</div><div> }, {</div><div> "uuid" : "xyz-uuid",</div><div> "middleware" : "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.php</a>",</div>
<div> "identifier" : "esy-counter-t2", /* Nachtstromverbrauch Tarif 2 */</div><div> }, {</div><div> "uuid" : "xyz-uuid",</div><div> "middleware" : "<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.php</a>",</div>
<div> "identifier" : "counter", /* Wirkleistung Total */</div><div> }]</div><div> }</div></div><div>]}</div><div><br></div><div>Wenn ich random als Protokoll einsetze, zeigt meine Middleware im Frontend auch Daten an, mit sml nicht. </div>
<div>Im Log ist nur zu erkennen, dass der vzlogger wartet (Aufruf: vzlogger -c /etc/vzlogger.conf -f -v 20):</div><div><br></div><div><div>[May 18 01:02:36] Start parsing configuration from /etc/vzlogger.conf</div>
<div>
[May 18 01:02:36][mtr0] New meter initialized (protocol=sml)</div><div>[May 18 01:02:36][ch0] New channel initialized (uuid=...bd7f24 middleware=<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.php</a> id=counter)</div>
<div>[May 18 01:02:36][ch1] New channel initialized (uuid=...4ddf90 middleware=<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.php</a> id=esy-counter-t2)</div><div>[May 18 01:02:36][ch2] New channel initialized (uuid=...d8cc0a middleware=<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.php</a> id=esy-counter-t1)</div>
<div>[May 18 01:02:36][ch3] New channel initialized (uuid=...0bdeef middleware=<a href="http://localhost/middleware.php" target="_blank">http://localhost/middleware.php</a> id=power)</div><div>[May 18 01:02:36] Opened logfile /var/log/vzlogger.log</div>
<div>[May 18 01:02:36][mtr0] Meter connection established</div><div>[May 18 01:02:36][mtr0] Meter thread started</div><div>[May 18 01:02:36][ch0] Logging thread started</div><div>[May 18 01:02:36][ch1] Logging thread started</div>
<div>[May 18 01:02:36][ch2] Logging thread started</div><div>[May 18 01:02:36][ch3] Logging thread started</div><div>[May 18 01:02:36][http] Starting local interface HTTPd on port 8080</div></div><div><br></div><div>Hat jemand eine Idee wie ich vzlogger zum Auslesen der Werte bewegen kann? </div>
<div>Muss ich eventuell irgendwo den Port ttyUSB1 konfigurieren (300 Baud, 7E1)?</div><div><br></div><div>Viele Grüße</div><div>Axel</div>
<div><br></div>