[vz-users] vzlogger mit S0 per RS 232 sendet nur einen Post
Groovemaster
groovemaster at highperspace.de
Tue Nov 20 13:59:49 CET 2012
Hallo,
dank Euch habe ich schon viel zum Laufen gebracht.
Ein Problem besteht noch:
Der Vzlogger soll einen S0 Impuls über RS 232 (USB) erkennen und an die
Middleware senden.
Es funktioniert genau ein Mal und anschließend kommt nichts mehr, bis
ich es neu starte.
Folgende Meldungen bekomme ich angezeigt:
-----------------------------------------------------------------
vzlogger
[Nov 19 22:23:09][mtr0] New meter initialized (protocol=s0)
[Nov 19 22:23:09][ch0] New channel initialized (uuid=...c9d097
middleware=http://192.168.222.115/middleware.php id=(none))
[Nov 19 22:23:09] Opened logfile /var/log/vzlogger.log
[Nov 19 22:23:09][mtr0] Meter connection established
[Nov 19 22:23:09][mtr0] Meter thread started
[Nov 19 22:23:09][ch0] Logging thread started
[Nov 19 22:23:09][mtr0] Got 1 new readings from meter:
[Nov 19 22:23:09][mtr0] Reading: id= value=1.00 ts=1353363789.409
[Nov 19 22:23:09][ch0] Adding reading to queue (value=1.00
ts=1353363789.409)
[Nov 19 22:23:09][ch0] JSON request body: [ [ 1353363789409.456055,
1.000000 ] ]
[Nov 19 22:23:09][ch0] Buffer dump (size=1 keep=0): {1.00!}
[Nov 19 22:23:09][mtr0] Next reading in -1 seconds
[Nov 19 22:23:09][ch0] CURL: About to connect() to 192.168.222.115 port
80 (#0)
[Nov 19 22:23:09][ch0] CURL: Trying 192.168.222.115...
[Nov 19 22:23:09][ch0] CURL: connected
[Nov 19 22:23:09][ch0] CURL: Connected to 192.168.222.115
(192.168.222.115) port 80 (#0)
[Nov 19 22:23:09][ch0] CURL: Sent 38 bytes..
[Nov 19 22:23:09][ch0] CURL: upload completely sent off: 38 out of 38
bytes
[Nov 19 22:23:09][ch0] CURL: additional stuff not fine transfer.c:1037:
0 0
[Nov 19 22:23:10][ch0] CURL: additional stuff not fine transfer.c:1037:
0 0
[Nov 19 22:23:11][ch0] CURL: additional stuff not fine transfer.c:1037:
0 0
[Nov 19 22:23:12][ch0] CURL: additional stuff not fine transfer.c:1037:
0 0
[Nov 19 22:23:13][ch0] CURL: HTTP 1.1 or later with persistent
connection, pipelining supported
[Nov 19 22:23:13][ch0] CURL: Received 17 bytes
[Nov 19 22:23:13][ch0] CURL: Connection #0 to host 192.168.222.115 left
intact
[Nov 19 22:23:13][ch0] Request succeeded with code: 200
-------------
meine vzlogger.conf:
cat /etc/vzlogger.conf
/**
* vzlogger configuration
*
* use proper encoded JSON with javascript comments
*
* take a look at the wiki for detailed information:
* http://wiki.volkszaehler.org/software/controller/vzlogger#configuration
*/
{
"retry" : 30, /* how long to sleep between failed
requests, in seconds */
"daemon": true, /* run periodically */
//"foreground" : true, /* dont run in background (prevents
forking) */
"verbosity" : 15, /* between 0 and 15 */
"log" : "/var/log/vzlogger.log",/* path to logfile, optional */
"meters" : [{
"protocol" : "s0",
"device" : "/dev/ttyUSB0",
"channel" : {
"uuid" : "7d59a060-3283-11e2-b7e8-2d46f9c9d097",
"middleware" : "http://192.168.222.115/middleware.php"
}
}
]}
-------------------------------------------------------------------------
im /var/log/apache2/access.log taucht immer nur ein Request auf:
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)"
Ich wäre Euch dankbar, wenn jemand helfen kann.
Vielen Dank
GM
(-Ich hatte diese Anfrage fälschlicherweise erst an die Dev Liste
gesendet. Ich hoffe, es wird dort nicht auch freigegeben)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://volkszaehler.org/pipermail/volkszaehler-users/attachments/20121120/01f83e2c/attachment.html>
More information about the volkszaehler-users
mailing list