[vz-users] Probleme beim Auslesen eines EMH-ITZ und eines ITRON ACE3k 260 mit vzlogger

Andre Artmann atec111 at gmx.com
Sun Nov 3 12:46:44 CET 2013


Hallo zusammen,

 

nachdem ich jetzt schon ein paarmal Udo genervt habe, versuche ich es nun
mal in der Mailingliste.

 

Setup:

2 Usb-IR-Leseköpfe an einem Raspberry mit Raspbian (Wheezy mit Noobs
installiert und dann vzlogger und volkszähler nach Anleitung
nachinstalliert).

Zähler:

EMH-ITZ Doppeltarif/Einspeisezähler (PV und Heizstrom) (Infoblatt:
https://www.stadtwerke-muenster.de/fileadmin/stwms/strom/kundencenter/dokume
nte/Flyer_EMH_ITZ_Zaehler.pdf)

ITRON ACE3000 260 (Haushaltsstrom)

 

Ein Versuch mit hterm lief tadellos mit der gleichen Einstellung für beide
Zähler: 300 Baud, 7e1 und "2F3F210D0A" bzw. "/?!\r\n". Der EMH-ITZ spricht
laut Hersteller optisch d0 und der ITRON s0. Weiter unten das hterm-log.

 

Nun zum Problem: Der Vzlogger liefert leider nicht ansatzweise das gleiche
wie HTERM (siehe vzlogger.log). Zusammengefasst: Zum EMH-ITZ liefert er gar
nichts und zum ITRON bekomme ich einen "Power"-Wert der vermutlich die
aktuelle Leistung ist.

Auf ersten Rat von Udo habe ich in der vormals "schlanken" vzlogger.conf nun
noch die channels hinzugefügt. Der log ist dadurch zwar länger, aber immer
noch keine besseren readings.

Eine Permutation von Protokollen hat auch nichts gebracht ("vz" protocol im
channel auch als "d0" oder "s0" und meterprotocol auch als "sml", "d0" und
"s0"). Den Austausch der pullseq von Hex in Ascii habe ich auch versucht.
Der ITRON hat dann weiterhin geplaudert, jedoch mit dem gleichen
"power"-Wert. Der EMH-ITZ schwieg weiterhin.

 

Können hier Rückwirkungen vom Channeltyp aus dem Volkszähler schuld sein?
Ich vermute mal nicht... Falls ja, die sind dort erst mal alle auf
Stromzähler eingestellt (wie lassen diese sich eigentlich ändern, ohne neue
anzulegen?). Einige müssten dann aber ja auch matchen.

 

Mache ich was falsch? Muss ich ein Script zwischenflanschen? Einige haben ja
davon hier berichtet... Bin da jedoch nicht soooo versiert.

 

Gruß

Andre

 

 

HTERM.log:

_________________________

      

  _____  

[1]/?!

      /EMH4\@--ITZ-G003VE

      [1]F.F(00000000)

      0.0.0(10201200)

      0.0.1(03643805)

      1.8.0(00000538*kWh)

      1.8.1(00000234*kWh)

      1.8.2(00000304*kWh)

      2.8.0(00002838*kWh)

      2.8.1(00002187*kWh)

      2.8.2(00000650*kWh)

      !

      

  _____  

[1]/?!

      /ACE0\3k260V01.19

      [1]F.F(00)

      C.1(1126120053321793)

      C.5.0(00)

      1.8.0(001253.1*kWh)

      !

_________________________

 

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>
http://wiki.volkszaehler.org/software/controller/vzlogger#configuration

*/

 

{

"retry" : 30,                   /* how long to sleep between failed
requests, i$

"daemon": true,                 /* run periodically */

"foreground" : true,            /* run in background */

 

"verbosity" : 1,                /* between 0 and 15 */

"log" : "/var/log/vzlogger.log",/* path to logfile, optional */

 

"local" : {

        "enabled" : true,       /* should we start the local HTTPd for
serving $

        "port" : 80,            /* the TCP port for the local HTTPd */

        "index" : true,         /* should we provide a index listing of
availab$

        "timeout" : 30,         /* timeout for long polling comet requests,
0 d$

        "buffer" : 600          /* how long to buffer readings for the local
in$

},

 

"meters" : [{

        "enabled" : true,      /* disabled meters will be ignored (default)
*/

        "protocol" : "d0",      /* see 'vzlogger -h' for list of available
prot$

        "pullseq" : "2F3F210D0A", /* HEX Darstellung der Pullsequenz */

        "parity" : "7E1", /* oder "7N1" oder "7E1" oder "7o1" */

        "baudrate" : 300,

        "device" : "/dev/usb-ir-lesekopf0",

        "channels": [{

                "protocol" : "vz",

                "uuid" : "........-4465-11e3-8ff8-89a4ee029aa8",

                "middleware" : " <http://localhost/middleware.php>
http://localhost/middleware.php",

                "identifier" : "power" // alias for 1.7.ff

                }, {

                "protocol" : "vz",

                "uuid" : "........-4464-11e3-9a24-dd5de2c1b350",

                "middleware" : " <http://localhost/middleware.php>
http://localhost/middleware.php",

                "identifier" : "counter" // alias for 1.8.0

                }, {

                "protocol" : "vz",

                "uuid" : "........-4464-11e3-9b54-7598b8d0603e",

                "middleware" : "http://localhost/middleware.php",

                "identifier" : "1-0:1.8.1"

                }, {

                "protocol" : "vz",

                "uuid" : "........-4464-11e3-b6da-c3b45b18a238",

                "middleware" : " <http://localhost/middleware.php>
http://localhost/middleware.php",

                "identifier" : "1-0:1.8.2"

                }, {

                "protocol" : "vz",

                "uuid" : "........-4464-11e3-85a6-0f31572cac63",

                "middleware" : " <http://localhost/middleware.php>
http://localhost/middleware.php",

                "identifier" : "counter-out" // alias for 1-0:2.8.0

                }, {

                "protocol" : "vz",

                "uuid" : "........-4464-11e3-a94c-c3d34cc4f4b2",

                "middleware" : " <http://localhost/middleware.php>
http://localhost/middleware.php",

                "identifier" : "1-0:2.8.1"

                }, {

                "protocol" : "vz",

                "uuid" : "........-4464-11e3-a1d5-9bd9f6948bf5",

                "middleware" : " <http://localhost/middleware.php>
http://localhost/middleware.php",

                "identifier" : "1-0:2.8.2"

                }]

        }, {

        "enabled" : true,       /* disabled meters will be ignored */

        "protocol" : "s0",

        "pullseq" : "2F3F210D0A", /* HEX Darstellung der Pullsequenz */

        "parity" : "7E1", /* oder "7N1" oder "7E1" oder "7o1" */

        "baudrate" : 300,

        "device" : "/dev/usb-ir-lesekopf1",

        "channels" : [{

                "protocol" : "vz",

                "uuid" : "........-4465-11e3-bd4b-ff00a29d15a5",

                "middleware" : " <http://localhost/middleware.php>
http://localhost/middleware.php",

                "identifier" : "power" // alias for 1.7.ff

                }, {

                "protocol" : "vz",

                "uuid" : "........-4465-11e3-bd38-27a23068a4fa",

                "middleware" : " <http://localhost/middleware.php>
http://localhost/middleware.php",

                "identifier" : "counter" // alias for 1.8.0

                }]

        }

]}

____________________________________________________________________________
__

 

Vzlogger.log:

____________________________________________________________________________
__

[Nov 03 12:23:59][mtr0] Creating new meter with protocol d0.

[Nov 03 12:23:59][d0]   pullseq len:5 found

[Nov 03 12:23:59][mtr0] Meter configured. enabled

[Nov 03 12:23:59]       New meter initialized (protocol=d0)

[Nov 03 12:23:59]       Configure channel.

[Nov 03 12:23:59][chn0] New channel initialized (uuid=...029aa8 protocol=vz
id=p

ower)

[Nov 03 12:23:59]       Configure channel.

[Nov 03 12:23:59][chn1] New channel initialized (uuid=...c1b350 protocol=vz
id=c

ounter)

[Nov 03 12:23:59]       Configure channel.

[Nov 03 12:23:59][chn2] New channel initialized (uuid=...d0603e protocol=vz
id=1

-0:1.8.1)

[Nov 03 12:23:59]       Configure channel.

[Nov 03 12:23:59][chn3] New channel initialized (uuid=...18a238 protocol=vz
id=1

-0:1.8.2)

[Nov 03 12:23:59]       Configure channel.

[Nov 03 12:23:59][chn4] New channel initialized (uuid=...2cac63 protocol=vz
id=c

ounter-out)

[Nov 03 12:23:59]       Configure channel.

[Nov 03 12:23:59][chn5] New channel initialized (uuid=...c4f4b2 protocol=vz
id=1

-0:2.8.1)

[Nov 03 12:23:59]       Configure channel.

[Nov 03 12:23:59][chn6] New channel initialized (uuid=...948bf5 protocol=vz
id=1

-0:2.8.2)

[Nov 03 12:23:59][mtr1] Creating new meter with protocol s0.

[Nov 03 12:23:59][mtr1] Meter configured. enabled

[Nov 03 12:23:59]       New meter initialized (protocol=s0)

[Nov 03 12:23:59]       Configure channel.

[Nov 03 12:23:59][chn7] New channel initialized (uuid=...9d15a5 protocol=vz
id=p

ower)

[Nov 03 12:23:59]       Configure channel.

[Nov 03 12:23:59][chn8] New channel initialized (uuid=...68a4fa protocol=vz
id=c

ounter)

[Nov 03 12:23:59]       Have 2 meters.

[Nov 03 12:23:59][main] foreground=1, daemon=1, local=1

[Nov 03 12:23:59]       NOT Daemonize process...

[Nov 03 12:23:59]       Opened logfile /var/log/vzlogger.log

[Nov 03 12:23:59][]     ===> Start meters.

[Nov 03 12:23:59][mtr0] Meter connection established [Nov 03 12:23:59][mtr0]
Meter thread started [Nov 03 12:23:59][mtr0] meter is opened. Start
channels.

[Nov 03 12:23:59][chn0] Logging thread started [Nov 03 12:23:59][chn1]
Logging thread started [Nov 03 12:23:59][chn2] Logging thread started [Nov
03 12:23:59][mtr0] Number of readers: 32 [Nov 03 12:23:59][mtr0]
Config.daemon: 1 [Nov 03 12:23:59][mtr0] Config.local: 1

[Nov 03 12:23:59][d0]   sending pullsequenz send (len:5 is:5).

[Nov 03 12:23:59][chn1] Start logging thread for vz-api. Running as daemon:
yes [Nov 03 12:23:59][chn3] Logging thread started [Nov 03 12:23:59][chn4]
Logging thread started [Nov 03 12:23:59][chn0] Start logging thread for
vz-api. Running as daemon: yes [Nov 03 12:23:59][chn0] Using default api:

[Nov 03 12:23:59][chn1] Using default api:

[Nov 03 12:23:59][chn4] [Nov 03 12:23:59][chn2] Start logging thread for
vz-api.

Running as daemon: yes

[Nov 03 12:23:59][chn2] Using default api:

[Nov 03 12:23:59][chn3] Start logging thread for vz-api. Running as daemon:
yes [Nov 03 12:23:59][chn3] Using default api:

Start logging thread for vz-api. Running as daemon: yes [Nov 03
12:23:59][chn4] Using default api:

[Nov 03 12:23:59][chn5] Logging thread started [Nov 03 12:23:59][chn6]
Logging thread started [Nov 03 12:23:59][chn5] Start logging thread for
vz-api. Running as daemon: yes [Nov 03 12:23:59][chn5] Using default api:

[Nov 03 12:23:59][chn6] Start logging thread for vz-api. Running as daemon:
yes [Nov 03 12:23:59][chn6] Using default api:

[Nov 03 12:23:59][mtr1] Meter connection established [Nov 03 12:23:59][mtr1]
Meter thread started [Nov 03 12:23:59][mtr1] meter is opened. Start
channels.

[Nov 03 12:23:59][chn7] Logging thread started [Nov 03 12:23:59][chn8]
Logging thread started

[Nov 03 12:23:59][]     Startup done.

[Nov 03 12:23:59][chn7] Start logging thread for vz-api. Running as daemon:
yes [Nov 03 12:23:59][chn7] Using default api:

[Nov 03 12:23:59][mtr1] Number of readers: 2 [Nov 03 12:23:59][mtr1]
Config.daemon: 1 [Nov 03 12:23:59][mtr1] Config.local: 1 [Nov 03
12:23:59][chn8] Start logging thread for vz-api. Running as daemon: yes [Nov
03 12:23:59][chn8] Using default api:

[Nov 03 12:24:10][s0]   Reading S0 - n=2 power=427.863216

[Nov 03 12:24:10][chn7] ==> number of tuples: 0 [Nov 03 12:24:10][chn7] JSON
request body is null. Nothing to send now.

[Nov 03 12:24:10][chn7] Buffer dump (size=0 keep=0): {} [Nov 03
12:24:10][chn8] ==> number of tuples: 0 [Nov 03 12:24:10][chn8] JSON request
body is null. Nothing to send now.

[Nov 03 12:24:10][chn8] Buffer dump (size=0 keep=0): {}

[Nov 03 12:24:38][s0]   Reading S0 - n=2 power=353.386787

[Nov 03 12:24:38][chn7] ==> number of tuples: 0 [Nov 03 12:24:38][chn7] JSON
request body is null. Nothing to send now.

[Nov 03 12:24:38][chn7] Buffer dump (size=0 keep=0): {} [Nov 03
12:24:38][chn8] ==> number of tuples: 0 [Nov 03 12:24:38][chn8] JSON request
body is null. Nothing to send now.

[Nov 03 12:24:38][chn8] Buffer dump (size=0 keep=0): {}

[Nov 03 12:24:58][s0]   Reading S0 - n=2 power=367.532915

[Nov 03 12:24:58][chn7] ==> number of tuples: 0 [Nov 03 12:24:58][chn7] JSON
request body is null. Nothing to send now.

[Nov 03 12:24:58][chn7] Buffer dump (size=0 keep=0): {} [Nov 03
12:24:58][chn8] ==> number of tuples: 0 [Nov 03 12:24:58][chn8] JSON request
body is null. Nothing to send now.

[Nov 03 12:24:58][chn8] Buffer dump (size=0 keep=0): {}

^C[Nov 03 12:24:59]       terminating on signal 2.

[Nov 03 12:24:59]       Closing connections to terminate

*** glibc detected *** vzlogger: free(): corrupted unsorted chunks:
0x00dc31d8 *

**

____________________________________________________________________________
_______________

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20131103/a477086f/attachment-0001.html>


More information about the volkszaehler-users mailing list