<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 14px;" lang="x-western">Hallo,
<br>
dank Euch habe ich schon viel zum Laufen gebracht.<br>
Ein Problem besteht noch:
<br>
Der Vzlogger soll einen S0 Impuls über RS 232 (USB) erkennen und
an die Middleware senden.
<br>
Es funktioniert genau ein Mal und anschließend kommt nichts mehr,
bis ich es neu starte.
<br>
<br>
Folgende Meldungen bekomme ich angezeigt:
<br>
<br>
-----------------------------------------------------------------
<br>
vzlogger
<br>
[Nov 19 22:23:09][mtr0] New meter initialized (protocol=s0)
<br>
[Nov 19 22:23:09][ch0] New channel initialized (uuid=...c9d097
middleware=<a class="moz-txt-link-freetext"
href="http://192.168.222.115/middleware.php">http://192.168.222.115/middleware.php</a>
id=(none))
<br>
[Nov 19 22:23:09] Opened logfile /var/log/vzlogger.log
<br>
[Nov 19 22:23:09][mtr0] Meter connection established
<br>
[Nov 19 22:23:09][mtr0] Meter thread started
<br>
[Nov 19 22:23:09][ch0] Logging thread started
<br>
[Nov 19 22:23:09][mtr0] Got 1 new readings from meter:
<br>
[Nov 19 22:23:09][mtr0] Reading: id= value=1.00 ts=1353363789.409
<br>
[Nov 19 22:23:09][ch0] Adding reading to queue (value=1.00
ts=1353363789.409)
<br>
[Nov 19 22:23:09][ch0] JSON request body: [ [
1353363789409.456055, 1.000000 ] ]
<br>
[Nov 19 22:23:09][ch0] Buffer dump (size=1 keep=0): {1.00!}
<br>
[Nov 19 22:23:09][mtr0] Next reading in -1 seconds
<br>
[Nov 19 22:23:09][ch0] CURL: About to connect() to
192.168.222.115 port 80 (#0)
<br>
[Nov 19 22:23:09][ch0] CURL: Trying 192.168.222.115...
<br>
[Nov 19 22:23:09][ch0] CURL: connected
<br>
[Nov 19 22:23:09][ch0] CURL: Connected to 192.168.222.115
(192.168.222.115) port 80 (#0)
<br>
[Nov 19 22:23:09][ch0] CURL: Sent 38 bytes..
<br>
[Nov 19 22:23:09][ch0] CURL: upload completely sent off: 38 out
of 38 bytes
<br>
[Nov 19 22:23:09][ch0] CURL: additional stuff not fine
transfer.c:1037: 0 0
<br>
[Nov 19 22:23:10][ch0] CURL: additional stuff not fine
transfer.c:1037: 0 0
<br>
[Nov 19 22:23:11][ch0] CURL: additional stuff not fine
transfer.c:1037: 0 0
<br>
[Nov 19 22:23:12][ch0] CURL: additional stuff not fine
transfer.c:1037: 0 0
<br>
[Nov 19 22:23:13][ch0] CURL: HTTP 1.1 or later with persistent
connection, pipelining supported
<br>
[Nov 19 22:23:13][ch0] CURL: Received 17 bytes
<br>
[Nov 19 22:23:13][ch0] CURL: Connection #0 to host
192.168.222.115 left intact
<br>
[Nov 19 22:23:13][ch0] Request succeeded with code: 200
<br>
<br>
-------------
<br>
<br>
meine vzlogger.conf:
<br>
<br>
<br>
cat /etc/vzlogger.conf
<br>
/**
<br>
* vzlogger configuration
<br>
*
<br>
* use proper encoded JSON with javascript comments
<br>
*
<br>
* take a look at the wiki for detailed information:
<br>
* <a class="moz-txt-link-freetext"
href="http://wiki.volkszaehler.org/software/controller/vzlogger#configuration">http://wiki.volkszaehler.org/software/controller/vzlogger#configuration</a>
<br>
*/
<br>
<br>
{
<br>
"retry" : 30, /* how long to sleep between
failed requests, in seconds */
<br>
"daemon": true, /* run periodically */
<br>
//"foreground" : true, /* dont run in background
(prevents forking) */
<br>
"verbosity" : 15, /* between 0 and 15 */
<br>
"log" : "/var/log/vzlogger.log",/* path to logfile, optional */
<br>
<br>
<br>
"meters" : [{
<br>
"protocol" : "s0",
<br>
"device" : "/dev/ttyUSB0",
<br>
"channel" : {
<br>
"uuid" : "7d59a060-3283-11e2-b7e8-2d46f9c9d097",
<br>
"middleware" : <a class="moz-txt-link-rfc2396E"
href="http://192.168.222.115/middleware.php">"http://192.168.222.115/middleware.php"</a>
<br>
}
<br>
}
<br>
]}
<br>
<br>
<br>
-------------------------------------------------------------------------
<br>
<br>
im /var/log/apache2/access.log taucht immer nur ein Request auf:
<br>
<br>
192.168.222.115 - - [19/Nov/2012:22:42:54 +0000] "POST
/middleware.php/data/7d59a060-3283-11e2-b7e8-2d46f9c9d097.json
HTTP/1.1" 200 184 "-" "vzlogger/0.3.3 (libcurl/7.26.0
OpenSSL/1.0.1c zlib/1.2.7 libidn/1.25 libssh2/1.4.1 librtmp/2.3)"
<br>
<br>
<br>
Ich wäre Euch dankbar, wenn jemand helfen kann.
<br>
<br>
Vielen Dank
<br>
GM<br>
<br>
(-Ich hatte diese Anfrage fälschlicherweise erst an die Dev Liste
gesendet. Ich hoffe, es wird dort nicht auch freigegeben) <br>
<br>
<br>
</div>
</body>
</html>