[vz-users] Generelles Problem mit dem Siemens TD-3511 und dem Raspberry Pi

René Schmidt renske96 at hotmail.de
Sun Jul 20 17:08:35 CEST 2014


Hallo Community,



ich habe ein Problem mit der Ersteinrichtung meines Pi's:



Ich habe mit Hterm den Stromzähler abgehört und ich bekomme folgende Ausgabe:

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

/SAT63511C01251002666<\r><\n><2>F.F(00000000)<\r><\n>0.0.0(021204650)<\r><\n>0.0.1(G23-511-C.01/251-002666)<\r><\n>C.70.0()<\r><\n>1.128.0(0.000*kWh)<\r><\n>0.1.0(02)<\r><\n>0.1.2*02(14-07-01
 00:00)<\r><\n>0.1.2&01(14-06-16 
09:10)<\r><\n>0.1.2*00(00-00-00 
00:00)<\r><\n>0.1.2*00(00-00-00 
00:00)<\r><\n>0.1.2*00(00-00-00 
00:00)<\r><\n>0.1.2*00(00-00-00 
00:00)<\r><\n>0.1.2*00(00-00-00 
00:00)<\r><\n>0.1.2*00(00-00-00 
00:00)<\r><\n>0.1.2*00(00-00-00 
00:00)<\r><\n>0.1.2*00(00-00-00 
00:00)<\r><\n>0.1.2*00(00-00-00 
00:00)<\r><\n>0.1.2*00(00-00-00 
00:00)<\r><\n>0.1.2*00(00-00-00 
00:00)<\r><\n>0.1.2*00(00-00-00 
00:00)<\r><\n>0.1.2*00(00-00-00 
00:00)<\r><\n>1.2.0(2.119*kW)<\r><\n>2.2.0(5.692*kW)<\r><\n>1.4.0(08 
 0.000*kW)<\r><\n>2.4.0(08  
2.217*kW)<\r><\n>1.6.0(2.303*kW)(14-07-13 
19:45)<\r><\n>1.6.0*02(1.904)(14-06-22 
20:00)<\r><\n>1.6.0&01(0.215)(14-06-16 
09:10)<\r><\n>1.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>1.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>2.6.0(5.711*kW)(14-07-16 
11:15)<\r><\n>2.6.0*02(5.692)(14-06-19 
15:00)<\r><\n>2.6.0&01(0.000)(05-01-01 
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>2.6.0*00(0.000)(00-00-00 
00:00)<\r><\n>1.8.0(174.979*kWh)<\r><\n>1.8.0*02(77.580)<\r><\n>1.8.0&01(0.054)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.0*00(0.000)<\r><\n>1.8.1(174.979*kWh)<\r><\n>1.8.1*02(77.580)<\r><\n>1.8.1&01(0.054)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.1*00(0.000)<\r><\n>1.8.2(0.000*kWh)<\r><\n>1.8.2*02(0.000)<\r><\n>1.8.2&01(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.2*00(0.000)<\r><\n>1.8.3(0.000*kWh)<\r><\n>1.8.3*02(0.000)<\r><\n>1.8.3&01(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.3*00(0.000)<\r><\n>1.8.4(0.000*kWh)<\r><\n>1.8.4*02(0.000)<\r><\n>1.8.4&01(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.4*00(0.000)<\r><\n>1.8.5(0.000*kWh)<\r><\n>1.8.5*02(0.000)<\r><\n>1.8.5&01(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.5*00(0.000)<\r><\n>1.8.6(0.000*kWh)<\r><\n>1.8.6*02(0.000)<\r><\n>1.8.6&01(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>1.8.6*00(0.000)<\r><\n>2.8.0(1047.293*kWh)<\r><\n>2.8.0*02(489.371)<\r><\n>2.8.0&01(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.0*00(0.000)<\r><\n>2.8.1(1047.303*kWh)<\r><\n>2.8.1*02(489.371)<\r><\n>2.8.1&01(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.1*00(0.000)<\r><\n>2.8.2(0.000*kWh)<\r><\n>2.8.2*02(0.000)<\r><\n>2.8.2&01(0.000)<\r><\n>2.8.2*00(0.000)<\r><\n>2.8.2*00(0.000)<\r><\n>2.8.2*00(0.000)<\r><\n>2.8.2*00(0.000)<\r><\n>2.8.2*00(0.000)<\r><\n>2.8.2*00(0. (...usw...)
Die fett markierten will ich auslesen:
1.8.1(174.979*kWh)
2.8.1(1047.303*kWh)

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

meine vzlogger.conf sieht folgendermaßen aus:

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

/**

 * 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" : 500,              /* between 0 and 15 */

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



"local" : {

//      "enabled" : false,      /* should we start the local HTTPd for serving live readings? */

        "port" : 8080,          /* 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" : 600          /* how long to buffer readings for the local interface, in seconds */

},



"meters" : [

        {

        "protocol" : "d0",

        "device" : "/dev/ttyUSB0",

        "enabled" : true,

        "interval" : 61,

        "baudrate" : 115200,

        "parity" : "7E1",

        "pullseq" : "2F3F210D0A",

        "max" : 40.0,           /* has to be double! */

        "min" : -5.0,           /* has to be double! */

        "channel" : {

                "uuid" : "1df4aca0-0fff-11e4-bbf2-bdf25f107f24",

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

                }

        } // meter

        ,

        //

        {

        "enabled" : false,

        "protocol" : "file",

        "path" : "/sys/class/thermal/thermal_zone0/temp",

//      "format" : "$v",        /* a format string for parsing complex logfiles */

                                /* arbitrary text and whitespaces are allowed, see 'scanf()' */

                                /* at least $v has to be used */

                                /* $i => identifier, $v => value, $t => timestamp */

        "rewind" : true,        /* reset file pointer each interval to the beginning of the file */

 "interval" : 20,                /* of ommitted, we will try to listen on changes with inotify */

        "identifier" : "1-0:1.8.1*255",

        "channel" : {

                "uuid" : "1972bf30-0f80-11e4-b333-d76abce3aed8",

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

                } // channel

        } // meter

        ,

        {

        "enabled" : false,

        "protocol" : "file",

        "path" : "/proc/loadavg",

//      "format" : "$i $v $t",  /* a format string for parsing complex logfiles */

                                /* arbitrary text and whitespaces are allowed, see 'scanf()' */

                                /* at least $v has to be used */

                                /* $i => identifier, $v => value, $t => timestamp */

        "rewind" : true,        /* reset file pointer each interval to the beginning of the file */

        "interval" : 10,        /* of ommitted, we will try to listen on changes with inotify */

        "aggtime" : 300,        /* aggregate all signals and give one update to middleware every 'aggtime' seconds */

        "aggfixedinterval" : true, /* round all timestamps to middleware to nearest aggtime */

        "channel" : {

                "uuid" : "1972bf30-0f80-11e4-b333-d76abce3aed8",

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

                "aggmode" : "MAX" /* add all s0 intervals in the aggregation. Possible Modes: SUM, AVG, MAX  and NONE */

                } // channel

        } // meter

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

wenn ich vzlogger in den Terminal eingebe erhalte ich folgendes:

root at raspberrypi:/home/pi# vzlogger

[Jul 20 14:19:00][mtr0] Creating new meter with protocol d0.

[Jul 20 14:19:00][d0]   pullseq len:5 found

[Jul 20 14:19:00][mtr0] Meter configured. enabled

[Jul 20 14:19:00]       New meter initialized (protocol=d0)

[Jul 20 14:19:00]       Configure channel.

[Jul 20 14:19:00]       Identifier is not set. Set it to default value 'NilItentifier'.

Segmentation fault

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------



Was muss ich noch ändern damit ich Daten erhalte? :D Wie mache ich die 
Einstellungen, dass die Daten in eine schon existierende Datenbank im 
Internet verknüfe?



Vielen Dank für die Hilfe!



Mit freundlichen Grüßen,

René Schmidt	   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20140720/39d887ec/attachment-0001.html>


More information about the volkszaehler-users mailing list