[vz-dev] vzlogger - D0 - serielle Schnittstelle

Georg Meyer gmm56 at arcor.de
Sat Jan 7 18:45:36 CET 2012


Hallo Justin,

kam erst jetzt zum Testen, bekomme aber immer nur ein Reading, bevor 
alles mit "Broken Pipe" aussteigt. So sieht das dann im Log aus (habe 2 
Zähler versucht, ist mit einem aber auch nicht anders:

[Jan 07 17:43:09] Opened logfile /var/log/vzlogger.log
[Jan 07 17:43:09][mtr0] Meter connection established
[Jan 07 17:43:09][mtr0] Meter thread started
[Jan 07 17:43:09][mtr0] Parsed reading (OBIS code=1-0:0.0.0*255, 
value=12726800, unit=)
[Jan 07 17:43:09][mtr0] Parsed reading (OBIS code=1-0:1.8.1*255, 
value=002396.6508, unit=)
[Jan 07 17:43:09][mtr0] Parsed reading (OBIS code=1-0:2.8.1*255, 
value=000784.7194, unit=)
[Jan 07 17:43:09][mtr1] Meter connection established
[Jan 07 17:43:09][mtr0] Parsed reading (OBIS code=1-0:96.5.5*255, 
value=82, unit=)
[Jan 07 17:43:09][mtr0] Parsed reading (OBIS code=0-0:96.1.255*255, 
value=0002213987, unit=)
[Jan 07 17:43:09][mtr1] Meter thread started
[Jan 07 17:43:09][mtr0] Read package with 5 tuples (vendor=EMH, 
baudrate=5, identification=----eHZ-E0028E)
[Jan 07 17:43:09][mtr0] Got 5 new readings from meter:
[Jan 07 17:43:09][mtr2] Meter connection established
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:0.0.0*255, 
value=1095110000141496, unit=)
[Jan 07 17:43:09][mtr0] Reading: id=1-0:0.0.0*255 value=12726800.00 
ts=1325954589.277
[Jan 07 17:43:09][mtr2] Meter thread started
[Jan 07 17:43:09][mtr0] Reading: id=1-0:1.8.1*255 value=2396.65 
ts=1325954589.277
[Jan 07 17:43:09][mtr2] Got 1 new readings from meter:
[Jan 07 17:43:09][mtr0] Reading: id=1-0:2.8.1*255 value=784.72 
ts=1325954589.277
[Jan 07 17:43:09][mtr2] Reading: id= value=1.36 ts=1325954589.278
[Jan 07 17:43:09][mtr0] Reading: id=1-0:96.5.5*255 value=82.00 
ts=1325954589.277
[Jan 07 17:43:09][mtr0] Reading: id=0-0:96.1.255*255 value=2213987.00 
ts=1325954589.278
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:2.8.0*255, 
value=001731.5585, unit=)
[Jan 07 17:43:09][mtr0] Updating interval to 0
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:96.5.5*255, 
value=00, unit=)
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=0-0:96.1.255*255, 
value=0000141496, unit=)
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:32.7.0*255, 
value=227.38, unit=V)
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:52.7.0*255, 
value=226.90, unit=V)
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:72.7.0*255, 
value=226.93, unit=V)
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:31.7.0*255, 
value=000.28, unit=A)
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:51.7.0*255, 
value=000.00, unit=A)
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:71.7.0*255, 
value=000.00, unit=A)
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:21.7.0*255, 
value=+00000, unit=W)
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:41.7.0*255, 
value=+00000, unit=W)
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:61.7.0*255, 
value=+00000, unit=W)
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:96.50.0*0, 
value=E2, unit=)
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:96.50.0*1, 
value=07D1, unit=)
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:96.50.0*2, 
value=16, unit=)
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:96.50.0*3, 
value=0F, unit=)
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:96.50.0*4, 
value=20, unit=)
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS code=1-0:96.50.0*5, 
value=16, unit=)
[Jan 07 17:43:09][mtr1] Parsed reading (OBIS 
code=1-0:96.50.0*6, value=003D381B310AEDF8_wo~}6]6?6?whoM]y}=0, 
unit=7(00)
[Jan 07 17:43:09][mtr1] Read package with 20 tuples (vendor=HAG, 
baudrate=5, identification=eHZ010C_EHZ1NA12)
[Jan 07 17:43:09][mtr1] Got 20 new readings from meter:
[Jan 07 17:43:09][mtr1] Reading: id=1-0:0.0.0*255 
value=1095110024495104.00 ts=1325954589.278
[Jan 07 17:43:09][mtr1] Reading: id=1-0:2.8.0*255 value=1731.56 
ts=1325954589.279
[Jan 07 17:43:09][mtr1] Reading: id=1-0:96.5.5*255 value=0.00 
ts=1325954589.279
[Jan 07 17:43:09][mtr1] Reading: id=0-0:96.1.255*255 value=141496.00 
ts=1325954589.279
[Jan 07 17:43:09][mtr1] Reading: id=1-0:32.7.0*255 value=227.38 
ts=1325954589.279
[Jan 07 17:43:09][mtr1] Reading: id=1-0:52.7.0*255 value=226.90 
ts=1325954589.279
[Jan 07 17:43:09][mtr1] Reading: id=1-0:72.7.0*255 value=226.93 
ts=1325954589.279
[Jan 07 17:43:09][mtr1] Reading: id=1-0:31.7.0*255 value=0.28 
ts=1325954589.279
[Jan 07 17:43:09][mtr1] Reading: id=1-0:51.7.0*255 value=0.00 
ts=1325954589.279
[Jan 07 17:43:09][mtr1] Reading: id=1-0:71.7.0*255 value=0.00 
ts=1325954589.279
[Jan 07 17:43:09][mtr1] Reading: id=1-0:21.7.0*255 value=0.00 
ts=1325954589.280
[Jan 07 17:43:09][mtr1] Reading: id=1-0:41.7.0*255 value=0.00 
ts=1325954589.280
[Jan 07 17:43:09][mtr1] Reading: id=1-0:61.7.0*255 value=0.00 
ts=1325954589.280
[Jan 07 17:43:09][mtr1] Reading: id=1-0:96.50.0*0 value=0.00 
ts=1325954589.280
[Jan 07 17:43:09][mtr1] Reading: id=1-0:96.50.0*1 value=7.00 
ts=1325954589.280
[Jan 07 17:43:09][mtr1] Reading: id=1-0:96.50.0*2 value=16.00 
ts=1325954589.280
[Jan 07 17:43:09][mtr1] Reading: id=1-0:96.50.0*3 value=0.00 
ts=1325954589.280
[Jan 07 17:43:09][mtr1] Reading: id=1-0:96.50.0*4 value=20.00 
ts=1325954589.280
[Jan 07 17:43:09][mtr1] Reading: id=1-0:96.50.0*5 value=16.00 
ts=1325954589.280
[Jan 07 17:43:09][mtr1] Reading: id=1-0:96.50.0*6 value=3.00 
ts=1325954589.280
[Jan 07 17:43:09][mtr1] Updating interval to 0

Die vzlogger.conf habe ich aus dem Wiki und bis auf die Anpassung der 
"host"-Angaben nur die Channels gelöscht.
Any ideas? Grundsätzlich scheint's ja auszulesen und zu parsen...
mtr0 hat nur das Kurzprotokoll, bei mtr1 kommt wegen Langprotokoll mehr 
(Phasen etc - stehen auf null, weil's dunkel ist und die PV nix macht.

Viele Grüße!
Georg

Am 04.01.2012 10:36, schrieb Justin Otherguy:
> ich verwende nicht "device", sondern "host"; Grund: "device" hat bei 
> mir (auch mit sml) nicht funktioniert - da gibt es noch etwas zu 
> fixen. (Habe gerade einen Bug dazu angelegt) An Deiner Stelle würde 
> ich das lokale TTY z. B. per socat /dev/ttyUSB0,b9600,cs7,raw 
> TCP4-LISTEN:1234 auf einen lokalen TCP-Port 1234 umleiten und dann per 
> "host" : "localhost:1234" darauf zugreifen. Lass uns wissen, falls das 
> nicht funktioniert. Gruss, J. 





More information about the volkszaehler-dev mailing list