[vz-users] Fwd: vzlogger Easymeter Q3C
NetFritz
NetFritz at gmx.de
Sat Sep 8 14:03:14 CEST 2012
Hallo
Ich lese meinen Eon-Avacon Zähler schon mehre wochen mit dem vzlogger aus.
Der Zähler ist ein EMH ED300L, in der vzlogger.conf ist als Protokoll
SML eingestellt.
Nun möchte ich meinen eigenen Zähler auslesen.
Es ist ein Easymeter Q3C.
Der Q3C hat 2 D0 Schittstellen .
Vorne die Bidirektionale Info-Schnittstelle.
Oben drauf eine Bidirektionale Datenschnittstelle (D0) , MSB-DSS,
SML-Protokoll.
Ich benutze die Schnittstelle oben drauf.
Ich habe von Udo einen Auslesekopf mit Adapterplatte.
In der Linux-Konsole kann ich mit "od -x /dev/usbserial-AHVPKI8A" den
Zähler auslesen.
Mit den vzlogger aber nicht.
Hier mal meine 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 */
"local" : {
"enabled" : true, /* should we start the local HTTPd for
serving live readings? */
"port" : 8080, /* 7888 the TCP port for the local
HTTPd */
"index" : true, /* should we provide a index listing
of available channels if no UUID was requested? */
"timeout" : 30, /* timeout for long polling comet
requests, 0 disables comet, in seconds */
"buffer" : 5 /* how long to buffer readings for the
local interface, in seconds */
},
/* Eon-Avacon EMH ED300L Zähler Schnittstelle ewtl. mit stty -F
/dev/usbserial-FTGC6F43 9600 einstellen */
"meters" : [{
"protocol" : "sml", /* see 'vzlogger -h' for list of
available protocols */
"device" : "/dev/usbserial-FTGC6F43",
"channels": [{
"uuid" : "a8da012a-9eb4-49ed-b7f3-38c95142a90d",
"middleware" : "http://localhost/leistung.php",
"identifier" : "1-0:15.7.0", /* Leistung */
},{
"uuid" : "a8da012a-9eb4-49ed-b7f3-38c95142a90c",
"middleware" : "http://localhost/bezug.php",
"identifier" : "1-0:1.8.0", /* Wirk- Energie Total
Bezug */
},{
"uuid" : "fde8f1d0-c5d0-11e0-856e-f9e4360ced10",
"middleware" : "http://localhost/abgabe.php",
"identifier" : "1-0:2.8.0" /* Wirk- Energie
Total Lieferung*/
}]
/* Easymeter Q3C Zaehler */
},{
"protocol" : "sml",
"device" : "/dev/usbserial-AHVPKI8A",
"channels" :[{
"uuid" : "a8da012a-9eb4-49ed-b7f3-38c95142a90e",
"middleware" : "http://localhost/bezug_eigen.php",
"identifier" : "1-0:1.8.1", /* Aktueller Zählerstand
T1 + Bezug */
}, {
"uuid" : "a8da012a-9eb4-49ed-b7f3-38c95142a90f",
"middleware" : "http://localhost/abgabe_eigen.php",
"identifier" : "1-0:2.8.5", /* Aktueller Zählerstand T5 - Abgabe */
}]
}
]}
wenn ich den vzlogger mit dieser conf starte bekomme ich folgende log
[mtr1] will nicht.
--------------------------------------------------------------------------------------------------------------
[Sep 08 13:36:57] Opened logfile /var/log/vzlogger.log
[Sep 08 13:36:57][mtr0] Meter connection established
[Sep 08 13:36:57][mtr0] Meter thread started
[Sep 08 13:36:57][ch0] Logging thread started
[Sep 08 13:36:57][ch1] Logging thread started
[Sep 08 13:36:57][ch2] Logging thread started
[Sep 08 13:36:57][mtr1] Meter connection established
[Sep 08 13:36:57][mtr1] Meter thread started
[Sep 08 13:36:57][ch3] Logging thread started
[Sep 08 13:36:57][ch4] Logging thread started
[Sep 08 13:36:57][http] Starting local interface HTTPd on port 8080
[Sep 08 13:36:59][mtr0] Got 1 new readings from meter:
[Sep 08 13:36:59][mtr0] Reading: id=0-0:0.0.0*0 value=0.00 ts=0.000
[Sep 08 13:36:59][mtr0] Updating interval to 2
[Sep 08 13:36:59][ch0] Buffer dump (size=0 keep=2): {}
[Sep 08 13:36:59][ch1] Buffer dump (size=0 keep=2): {}
[Sep 08 13:36:59][ch2] Buffer dump (size=0 keep=2): {}
[Sep 08 13:37:01][mtr1] Got 1 new readings from meter:
[Sep 08 13:37:01][mtr1] Reading: id=0-0:0.0.0*0 value=0.00 ts=0.000
[Sep 08 13:37:01][mtr1] Updating interval to 4
[Sep 08 13:37:01][ch3] Buffer dump (size=0 keep=1): {}
[Sep 08 13:37:01][ch4] Buffer dump (size=0 keep=1): {}
[Sep 08 13:37:02][mtr0] Got 10 new readings from meter:
[Sep 08 13:37:02][mtr0] Reading: id=129-129:199.130.3*255 value=0.00
ts=1347104222.470
[Sep 08 13:37:02][mtr0] Reading: id=1-0:0.0.9*255 value=0.00
ts=1347104222.470
[Sep 08 13:37:02][mtr0] Reading: id=1-0:1.8.0*255 value=406441.30
ts=1347104222.470
[Sep 08 13:37:02][mtr0] Reading: id=1-0:2.8.0*255 value=733621.40
ts=1347104222.470
[Sep 08 13:37:02][mtr0] Reading: id=1-0:1.8.1*255 value=406441.30
ts=1347104222.470
[Sep 08 13:37:02][mtr0] Reading: id=1-0:2.8.1*255 value=733621.40
ts=1347104222.470
[Sep 08 13:37:02][mtr0] Reading: id=1-0:1.8.2*255 value=0.00
ts=1347104222.470
[Sep 08 13:37:02][mtr0] Reading: id=1-0:15.7.0*255 value=2546.10
ts=1347104222.470
[Sep 08 13:37:02][mtr0] Reading: id=129-129:199.130.5*255 value=0.00
ts=1347104222.470
[Sep 08 13:37:02][mtr0] Reading: id=0-0:0.0.0*0 value=0.00 ts=0.000
[Sep 08 13:37:02][mtr0] Updating interval to 3
[Sep 08 13:37:02][ch0] Adding reading to queue (value=733621.40
ts=1347104222.470)
[Sep 08 13:37:02][ch0] JSON request body: [ [ 1347104222470.138916,
733621.400000 ] ]
[Sep 08 13:37:02][ch0] Buffer dump (size=1 keep=1): {733621.40!}
[Sep 08 13:37:02][ch1] Adding reading to queue (value=406441.30
ts=1347104222.470)
[Sep 08 13:37:02][ch1] JSON request body: [ [ 1347104222470.135986,
406441.300000 ] ]
[Sep 08 13:37:02][ch1] Buffer dump (size=1 keep=1): {406441.30!}
[Sep 08 13:37:02][ch2] Adding reading to queue (value=2546.10
ts=1347104222.470)
[Sep 08 13:37:02][ch2] JSON request body: [ [ 1347104222470.148926,
2546.100000 ] ]
[Sep 08 13:37:02][ch2] Buffer dump (size=1 keep=1): {2546.10!}
[Sep 08 13:37:03][ch1] CURL: About to connect() to localhost port 80 (#0)
[Sep 08 13:37:03][ch1] CURL: Trying 127.0.0.1...
[Sep 08 13:37:03][ch1] CURL: connected
[Sep 08 13:37:03][ch1] CURL: Connected to localhost (127.0.0.1) port 80
(#0)
[Sep 08 13:37:03][ch1] CURL: Sent 43 bytes..
[Sep 08 13:37:03][ch2] CURL: About to connect() to localhost port 80 (#0)
[Sep 08 13:37:03][ch2] CURL: Trying 127.0.0.1...
[Sep 08 13:37:03][ch2] CURL: connected
[Sep 08 13:37:03][ch2] CURL: Connected to localhost (127.0.0.1) port 80
(#0)
[Sep 08 13:37:03][ch2] CURL: Sent 41 bytes..
[Sep 08 13:37:03][ch0] CURL: About to connect() to localhost port 80 (#0)
[Sep 08 13:37:03][ch0] CURL: Trying 127.0.0.1...
[Sep 08 13:37:03][ch0] CURL: connected
[Sep 08 13:37:03][ch0] CURL: Connected to localhost (127.0.0.1) port 80
(#0)
[Sep 08 13:37:03][ch0] CURL: Sent 43 bytes..
[Sep 08 13:37:03][ch1] CURL: Received 5 bytes
[Sep 08 13:37:03][ch1] CURL: Connection #0 to host localhost left intact
[Sep 08 13:37:03][ch1] Request succeeded with code: 200
[Sep 08 13:37:03][ch2] CURL: Received 5 bytes
[Sep 08 13:37:03][ch2] CURL: Connection #0 to host localhost left intact
[Sep 08 13:37:03][ch2] Request succeeded with code: 200
[Sep 08 13:37:04][ch0] CURL: Received 5 bytes
[Sep 08 13:37:04][ch0] CURL: Connection #0 to host localhost left intact
[Sep 08 13:37:04][ch0] Request succeeded with code: 200
[Sep 08 13:37:05][mtr1] Got 1 new readings from meter:
[Sep 08 13:37:05][mtr1] Reading: id=0-0:0.0.0*0 value=0.00 ts=0.000
[Sep 08 13:37:05][ch3] Buffer dump (size=0 keep=1): {}
[Sep 08 13:37:05][ch4] Buffer dump (size=0 keep=1): {}
[Sep 08 13:37:05][mtr0] Got 10 new readings from meter:
[Sep 08 13:37:05][mtr0] Reading: id=129-129:199.130.3*255 value=0.00
ts=1347104225.474
[Sep 08 13:37:05][mtr0] Reading: id=1-0:0.0.9*255 value=0.00
ts=1347104225.474
[Sep 08 13:37:05][mtr0] Reading: id=1-0:1.8.0*255 value=406441.30
ts=1347104225.474
[Sep 08 13:37:05][mtr0] Reading: id=1-0:2.8.0*255 value=733623.60
ts=1347104225.474
[Sep 08 13:37:05][mtr0] Reading: id=1-0:1.8.1*255 value=406441.30
ts=1347104225.474
[Sep 08 13:37:05][mtr0] Reading: id=1-0:2.8.1*255 value=733623.60
ts=1347104225.474
[Sep 08 13:37:05][mtr0] Reading: id=1-0:1.8.2*255 value=0.00
ts=1347104225.474
[Sep 08 13:37:05][mtr0] Reading: id=1-0:15.7.0*255 value=2614.80
ts=1347104225.474
[Sep 08 13:37:05][mtr0] Reading: id=129-129:199.130.5*255 value=0.00
ts=1347104225.474
[Sep 08 13:37:05][mtr0] Reading: id=0-0:0.0.0*0 value=0.00 ts=0.000
[Sep 08 13:37:05][ch0] Adding reading to queue (value=733623.60
ts=1347104225.474)
[Sep 08 13:37:05][ch0] JSON request body: [ [ 1347104225474.124023,
733623.600000 ] ]
[Sep 08 13:37:05][ch0] CURL: Re-using existing connection! (#0) with
host localhost
[Sep 08 13:37:05][ch0] CURL: Connected to localhost (127.0.0.1) port 80
(#0)
[Sep 08 13:37:05][ch0] CURL: Sent 43 bytes..
[Sep 08 13:37:05][ch0] Buffer dump (size=1 keep=1): {733623.60!}
[Sep 08 13:37:05][ch1] Adding reading to queue (value=406441.30
ts=1347104225.474)
[Sep 08 13:37:05][ch1] JSON request body: [ [ 1347104225474.122070,
406441.300000 ] ]
[Sep 08 13:37:05][ch1] CURL: Re-using existing connection! (#0) with
host localhost
[Sep 08 13:37:05][ch1] CURL: Connected to localhost (127.0.0.1) port 80
(#0)
[Sep 08 13:37:05][ch1] CURL: Sent 43 bytes..
[Sep 08 13:37:05][ch1] Buffer dump (size=1 keep=1): {406441.30!}
[Sep 08 13:37:05][ch2] Adding reading to queue (value=2614.80
ts=1347104225.474)
[Sep 08 13:37:05][ch2] JSON request body: [ [ 1347104225474.134033,
2614.800000 ] ]
[Sep 08 13:37:05][ch2] CURL: Re-using existing connection! (#0) with
host localhost
[Sep 08 13:37:05][ch2] CURL: Connected to localhost (127.0.0.1) port 80
(#0)
[Sep 08 13:37:05][ch2] CURL: Sent 41 bytes..
[Sep 08 13:37:05][ch2] Buffer dump (size=1 keep=1): {2614.80!}
[Sep 08 13:37:06][ch0] CURL: Received 5 bytes
[Sep 08 13:37:06][ch0] CURL: Connection #0 to host localhost left intact
[Sep 08 13:37:06][ch0] Request succeeded with code: 200
[Sep 08 13:37:06][ch1] CURL: Received 5 bytes
[Sep 08 13:37:06][ch1] CURL: Connection #0 to host localhost left intact
[Sep 08 13:37:06][ch1] Request succeeded with code: 200
[Sep 08 13:37:06][ch2] CURL: Received 5 bytes
[Sep 08 13:37:06][ch2] CURL: Connection #0 to host localhost left intact
[Sep 08 13:37:06][ch2] Request succeeded with code: 200
[Sep 08 13:37:08][mtr0] Got 10 new readings from meter:
[Sep 08 13:37:08][mtr0] Reading: id=129-129:199.130.3*255 value=0.00
ts=1347104228.446
[Sep 08 13:37:08][mtr0] Reading: id=1-0:0.0.9*255 value=0.00
ts=1347104228.446
[Sep 08 13:37:08][mtr0] Reading: id=1-0:1.8.0*255 value=406441.30
ts=1347104228.446
[Sep 08 13:37:08][mtr0] Reading: id=1-0:2.8.0*255 value=733625.80
ts=1347104228.446
[Sep 08 13:37:08][mtr0] Reading: id=1-0:1.8.1*255 value=406441.30
ts=1347104228.446
[Sep 08 13:37:08][mtr0] Reading: id=1-0:2.8.1*255 value=733625.80
ts=1347104228.446
[Sep 08 13:37:08][mtr0] Reading: id=1-0:1.8.2*255 value=0.00
ts=1347104228.446
[Sep 08 13:37:08][mtr0] Reading: id=1-0:15.7.0*255 value=2643.00
ts=1347104228.446
[Sep 08 13:37:08][mtr0] Reading: id=129-129:199.130.5*255 value=0.00
ts=1347104228.446
[Sep 08 13:37:08][mtr0] Reading: id=0-0:0.0.0*0 value=0.00 ts=0.000
[Sep 08 13:37:08][ch0] Adding reading to queue (value=733625.80
ts=1347104228.446)
[Sep 08 13:37:08][ch0] JSON request body: [ [ 1347104228446.161133,
733625.800000 ] ]
[Sep 08 13:37:08][ch0] CURL: Re-using existing connection! (#0) with
host localhost
[Sep 08 13:37:08][ch0] CURL: Connected to localhost (127.0.0.1) port 80
(#0)
[Sep 08 13:37:08][ch0] CURL: Sent 43 bytes..
[Sep 08 13:37:08][ch0] Buffer dump (size=1 keep=1): {733625.80!}
[Sep 08 13:37:08][ch1] Adding reading to queue (value=406441.30
ts=1347104228.446)
[Sep 08 13:37:08][ch1] JSON request body: [ [ 1347104228446.157959,
406441.300000 ] ]
[Sep 08 13:37:08][ch1] CURL: Re-using existing connection! (#0) with
host localhost
[Sep 08 13:37:08][ch1] CURL: Connected to localhost (127.0.0.1) port 80
(#0)
[Sep 08 13:37:08][ch1] CURL: Sent 43 bytes..
[Sep 08 13:37:08][ch1] Buffer dump (size=1 keep=1): {406441.30!}
[Sep 08 13:37:08][ch2] Adding reading to queue (value=2643.00
ts=1347104228.446)
[Sep 08 13:37:08][ch2] JSON request body: [ [ 1347104228446.171143,
2643.000000 ] ]
[Sep 08 13:37:08][ch2] CURL: Re-using existing connection! (#0) with
host localhost
[Sep 08 13:37:08][ch2] CURL: Connected to localhost (127.0.0.1) port 80
(#0)
[Sep 08 13:37:08][ch2] CURL: Sent 41 bytes..
[Sep 08 13:37:08][ch2] Buffer dump (size=1 keep=1): {2643.00!}
[Sep 08 13:37:09][ch1] CURL: Received 5 bytes
[Sep 08 13:37:09][ch1] CURL: Connection #0 to host localhost left intact
[Sep 08 13:37:09][ch1] Request succeeded with code: 200
[Sep 08 13:37:09][mtr1] Got 1 new readings from meter:
[Sep 08 13:37:09][mtr1] Reading: id=0-0:0.0.0*0 value=0.00 ts=0.000
[Sep 08 13:37:09][ch3] Buffer dump (size=0 keep=1): {}
[Sep 08 13:37:09][ch4] Buffer dump (size=0 keep=1): {}
[Sep 08 13:37:09][ch0] CURL: Received 5 bytes
[Sep 08 13:37:09][ch0] CURL: Connection #0 to host localhost left intact
[Sep 08 13:37:09][ch0] Request succeeded with code: 200
[Sep 08 13:37:09][ch2] CURL: Received 5 bytes
[Sep 08 13:37:09][ch2] CURL: Connection #0 to host localhost left intact
[Sep 08 13:37:09][ch2] Request succeeded with code: 200
[Sep 08 13:37:11][mtr0] Got 10 new readings from meter:
[Sep 08 13:37:11][mtr0] Reading: id=129-129:199.130.3*255 value=0.00
ts=1347104231.450
[Sep 08 13:37:11][mtr0] Reading: id=1-0:0.0.9*255 value=0.00
ts=1347104231.450
[Sep 08 13:37:11][mtr0] Reading: id=1-0:1.8.0*255 value=406441.30
ts=1347104231.450
[Sep 08 13:37:11][mtr0] Reading: id=1-0:2.8.0*255 value=733628.00
ts=1347104231.450
[Sep 08 13:37:11][mtr0] Reading: id=1-0:1.8.1*255 value=406441.30
ts=1347104231.450
[Sep 08 13:37:11][mtr0] Reading: id=1-0:2.8.1*255 value=733628.00
ts=1347104231.450
[Sep 08 13:37:11][mtr0] Reading: id=1-0:1.8.2*255 value=0.00
ts=1347104231.450
[Sep 08 13:37:11][mtr0] Reading: id=1-0:15.7.0*255 value=2598.40
ts=1347104231.450
[Sep 08 13:37:11][mtr0] Reading: id=129-129:199.130.5*255 value=0.00
ts=1347104231.450
[Sep 08 13:37:11][mtr0] Reading: id=0-0:0.0.0*0 value=0.00 ts=0.000
[Sep 08 13:37:11][ch0] Adding reading to queue (value=733628.00
ts=1347104231.450)
[Sep 08 13:37:11][ch0] JSON request body: [ [ 1347104231450.118164,
733628.000000 ] ]
[Sep 08 13:37:11][ch0] CURL: Re-using existing connection! (#0) with
host localhost
[Sep 08 13:37:11][ch0] CURL: Connected to localhost (127.0.0.1) port 80
(#0)
[Sep 08 13:37:11][ch0] CURL: Sent 43 bytes..
[Sep 08 13:37:11][ch0] Buffer dump (size=1 keep=1): {733628.00!}
[Sep 08 13:37:11][ch1] Adding reading to queue (value=406441.30
ts=1347104231.450)
[Sep 08 13:37:11][ch1] JSON request body: [ [ 1347104231450.115967,
406441.300000 ] ]
[Sep 08 13:37:11][ch1] CURL: Re-using existing connection! (#0) with
host localhost
[Sep 08 13:37:11][ch1] CURL: Connected to localhost (127.0.0.1) port 80
(#0)
[Sep 08 13:37:11][ch1] CURL: Sent 43 bytes..
[Sep 08 13:37:11][ch1] Buffer dump (size=1 keep=1): {406441.30!}
[Sep 08 13:37:11][ch2] Adding reading to queue (value=2598.40
ts=1347104231.450)
[Sep 08 13:37:11][ch2] JSON request body: [ [ 1347104231450.128174,
2598.400000 ] ]
[Sep 08 13:37:11][ch2] CURL: Re-using existing connection! (#0) with
host localhost
[Sep 08 13:37:11][ch2] CURL: Connected to localhost (127.0.0.1) port 80
(#0)
[Sep 08 13:37:11][ch2] CURL: Sent 41 bytes..
[Sep 08 13:37:11][ch2] Buffer dump (size=1 keep=1): {2598.40!}
[Sep 08 13:37:12][ch0] CURL: Received 5 bytes
[Sep 08 13:37:12][ch0] CURL: Connection #0 to host localhost left intact
[Sep 08 13:37:12][ch0] Request succeeded with code: 200
[Sep 08 13:37:12][ch2] CURL: Received 5 bytes
[Sep 08 13:37:12][ch2] CURL: Connection #0 to host localhost left intact
[Sep 08 13:37:12][ch2] Request succeeded with code: 200
[Sep 08 13:37:12][ch1] CURL: Received 5 bytes
[Sep 08 13:37:12][ch1] CURL: Connection #0 to host localhost left intact
[Sep 08 13:37:12][ch1] Request succeeded with code: 200
[Sep 08 13:37:13][mtr1] Got 1 new readings from meter:
[Sep 08 13:37:13][mtr1] Reading: id=0-0:0.0.0*0 value=0.00 ts=0.000
[Sep 08 13:37:13][ch3] Buffer dump (size=0 keep=1): {}
[Sep 08 13:37:13][ch4] Buffer dump (size=0 keep=1): {}
[Sep 08 13:37:14][mtr0] Got 10 new readings from meter:
[Sep 08 13:37:14][mtr0] Reading: id=129-129:199.130.3*255 value=0.00
ts=1347104234.470
[Sep 08 13:37:14][mtr0] Reading: id=1-0:0.0.9*255 value=0.00
ts=1347104234.470
[Sep 08 13:37:14][mtr0] Reading: id=1-0:1.8.0*255 value=406441.30
ts=1347104234.470
[Sep 08 13:37:14][mtr0] Reading: id=1-0:2.8.0*255 value=733629.90
ts=1347104234.470
[Sep 08 13:37:14][mtr0] Reading: id=1-0:1.8.1*255 value=406441.30
ts=1347104234.470
[Sep 08 13:37:14][mtr0] Reading: id=1-0:2.8.1*255 value=733629.90
ts=1347104234.470
[Sep 08 13:37:14][mtr0] Reading: id=1-0:1.8.2*255 value=0.00
ts=1347104234.470
[Sep 08 13:37:14][mtr0] Reading: id=1-0:15.7.0*255 value=2198.10
ts=1347104234.470
[Sep 08 13:37:14][mtr0] Reading: id=129-129:199.130.5*255 value=0.00
ts=1347104234.470
[Sep 08 13:37:14][mtr0] Reading: id=0-0:0.0.0*0 value=0.00 ts=0.000
------------------------------------------------------------------------------------------------------------------------------------------
Was mache ich falsch?
Wie kann ich das beheben?
Gruß NetFritz
More information about the volkszaehler-users
mailing list