[vz-users] Raspberry Volkszähler mit Erweiterung ohne Schaltausgänge - S0 zeigt Sägezahn

Joerg Middendorf joergmiddendorf at gmx.de
Fri Oct 16 09:55:29 CEST 2015


Hallo liebe Volkszähler Gemeinde,

ich muss mich noch einmal an Euch wenden. Nachdem mein Volkszähler wieder
vernünftig lief ist nun die SD Karte defekt. Ich meine alles wieder so
aufgesetzt zu haben wie zuvor, leider gibt es ein neues Problem:

 

-          Erweiterung Rev. 1 von Udo ohne Schaltausgänge

-          3 S0 angeschlossen (auf S0,S2 und S3), 4 Eingänge konfiguriert

-          Volkszaehler läuft

-          Frontend läuft und Kanäle sind angelegt

-          Leider sind die angezeigten Daten nicht zu gebrauchen, die
stellen einen Sägezahn dar mit unterschiedlicher Amplitute (z.B. 24KW) und
0, mit unterschiedlicher Frequenz. 3 Kanäle – alle das gleiche
Erscheinungsbild

-          Ich vermute es ist mal wieder eine Einstellung die mir fehlt

-          Vzlogger.log sieht meines Erachtens ganz ok aus

 

Eine andere Frage wäre, wie kann ich das Image nach Wiederherstellung
vernünftig sichern? Mit Disk Image 1_6 hatte ich kein Erfolg, die Sicherung
brach immer ab.

 

Meine vzlogger.conf sieht so aus:

 

{

  "retry": 0,

  "daemon": true,

  "verbosity": 15,

  "log": "/var/log/vzlogger.log",

//  "push": [],

  "local": {

    "enabled": false,

    "port": 8080,

    "index": false,

    "timeout": 0,

    "buffer": 0

  },

  "meters": [

    {

      "enabled": true,

      "allowskip": false,

      "interval": -1,

      "aggtime": -1,

      "aggfixedinterval": false,

      "channels": [

        {

          "uuid": "7bae07a0-73d1-11e5-b2f1-151f7bb88590",

          "identifier": "Impulse",

          "api": "volkszaehler",

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

          "secretKey": "",

          "type": "device",

          "scaler": 1,

          "aggmode": "none",

          "duplicates": 0

        }

      ],

      "protocol": "s0",

      "gpio": 17,

      "resolution": 1000,

      "configureGPIO": true,

      "debounce_delay": 0

    },

    {

      "enabled": true,

      "allowskip": false,

      "interval": -1,

      "aggtime": -1,

      "aggfixedinterval": false,

      "channels": [

        {

          "uuid": "7c7ccd80-73d3-11e5-a032-31c7fb6d7302",

          "identifier": "Impulse",

          "api": "volkszaehler",

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

          "secretKey": "",

          "type": "device",

          "scaler": 1,

          "aggmode": "none",

          "duplicates": 0

        }

      ],

      "protocol": "s0",

      "gpio": 27,

      "resolution": 1000,

      "configureGPIO": true,

      "debounce_delay": 0

    },

    {

      "enabled": true,

      "allowskip": false,

      "interval": -1,

      "aggtime": -1,

      "aggfixedinterval": false,

      "channels": [

        {

          "uuid": "89ac4fb0-73d3-11e5-b473-69d0082b37bf",

          "identifier": "Impulse",

          "api": "volkszaehler",

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

          "secretKey": "",

          "type": "device",

          "scaler": 1,

          "aggmode": "none",

          "duplicates": 0

        }

      ],

      "protocol": "s0",

      "gpio": 22,

      "resolution": 1000,

      "configureGPIO": true,

      "debounce_delay": 0

    },

    {

      "enabled": true,

      "allowskip": false,

      "interval": -1,

      "aggtime": -1,

      "aggfixedinterval": false,

      "channels": [

        {

          "uuid": "91ca9e80-73d3-11e5-9f44-97bce637db1d",

          "identifier": "Impulse",

          "api": "volkszaehler",

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

          "secretKey": "",

          "type": "device",

          "scaler": 1,

          "aggmode": "none",

          "duplicates": 0

        }

      ],

      "protocol": "s0",

      "gpio": 23,

      "resolution": 1000,

     "debounce_delay": 0

    }

  ]

}

 

 

 

Ein Auszug aus der vzlogger.log

 

[Oct 16 09:39:33][chn2] CURL: upload completely sent off: 24 out of 24 bytes

[Oct 16 09:39:33][chn1] CURL Request succeeded with code: 200

[Oct 16 09:39:33][S0]   MeterS0:HWIF_GPIO:first poll returned 1

[Oct 16 09:39:33][chn2] CURL: HTTP 1.0, assume close after body

[Oct 16 09:39:33][chn2] CURL: Received 26 bytes

[Oct 16 09:39:33][chn2] CURL: Received '{"version":"0.3","rows":1}' bytes

[Oct 16 09:39:33][chn2] CURL: Closing connection 2

[Oct 16 09:39:33][chn3] JSON request body: [ [ 1444981172808, 1 ] ]

[Oct 16 09:39:33][chn3] CURL: Hostname was found in DNS cache

[Oct 16 09:39:33][chn3] CURL:   Trying 127.0.0.1...

[Oct 16 09:39:33][chn3] CURL: Connected to 127.0.0.1 (127.0.0.1) port 80
(#3)

[Oct 16 09:39:33][chn3] CURL: Sent 24 bytes..

[Oct 16 09:39:33][chn3] CURL: Sent '[ [ 1444981172808, 1 ] ]' bytes

[Oct 16 09:39:33][chn3] CURL: upload completely sent off: 24 out of 24 bytes

[Oct 16 09:39:33][chn2] CURL Request succeeded with code: 200

[Oct 16 09:39:33][chn3] CURL: HTTP 1.0, assume close after body

[Oct 16 09:39:33][chn3] CURL: Received 26 bytes

[Oct 16 09:39:33][chn3] CURL: Received '{"version":"0.3","rows":1}' bytes

[Oct 16 09:39:33][chn3] CURL: Closing connection 3

[Oct 16 09:39:33][chn3] CURL Request succeeded with code: 200

[Oct 16 09:39:33][s0]   Reading S0 - returning 2 readings (n=1 n_neg = 0)

[Oct 16 09:39:33][mtr0] Got 2 new readings from meter:

[Oct 16 09:39:33][mtr0] Reading: id=Power/StringItentifier: value=3599.58
ts=1444981173781

[Oct 16 09:39:33][mtr0] Reading: id=Impulse/StringItentifier: value=1.00
ts=1444981173781

[Oct 16 09:39:33][chn0] Adding reading to queue (value=1.00
ts=1444981173781)

[Oct 16 09:39:33][chn0] ==> number of tuples: 1

[Oct 16 09:39:33][chn0] compare: 1444981172780 1444981173781

[Oct 16 09:39:33][chn0] JSON request body: [ [ 1444981173781, 1 ] ]

[Oct 16 09:39:33][chn0] CURL: Hostname was found in DNS cache

[Oct 16 09:39:33][chn0] CURL:   Trying 127.0.0.1...

[Oct 16 09:39:33][chn0] CURL: Connected to 127.0.0.1 (127.0.0.1) port 80
(#4)

[Oct 16 09:39:33][chn0] Buffer dump (size=0): {}

[Oct 16 09:39:33][chn0] CURL: Sent 24 bytes..

[Oct 16 09:39:33][chn0] CURL: Sent '[ [ 1444981173781, 1 ] ]' bytes

[Oct 16 09:39:33][chn0] CURL: upload completely sent off: 24 out of 24 bytes

[Oct 16 09:39:33][chn0] CURL: HTTP 1.0, assume close after body

[Oct 16 09:39:33][chn0] CURL: Received 26 bytes

[Oct 16 09:39:33][chn0] CURL: Received '{"version":"0.3","rows":1}' bytes

[Oct 16 09:39:33][chn0] CURL: Closing connection 4

[Oct 16 09:39:33][chn0] CURL Request succeeded with code: 200

[Oct 16 09:39:43][S0]   MeterS0:HWIF_GPIO:first poll returned 1

[Oct 16 09:39:43][s0]   Reading S0 - returning 2 readings (n=1 n_neg = 0)

[Oct 16 09:39:43][mtr0] Got 2 new readings from meter:

[Oct 16 09:39:43][mtr0] Reading: id=Power/StringItentifier: value=360.00
ts=1444981183781

[Oct 16 09:39:43][mtr0] Reading: id=Impulse/StringItentifier: value=1.00
ts=1444981183781

[Oct 16 09:39:43][chn0] Adding reading to queue (value=1.00
ts=1444981183781)

[Oct 16 09:39:43][chn0] Buffer dump (size=1): {1.0000,}

[Oct 16 09:39:43][chn0] ==> number of tuples: 1

[Oct 16 09:39:43][chn0] compare: 1444981173781 1444981183781

[Oct 16 09:39:43][chn0] JSON request body: [ [ 1444981183781, 1 ] ]

[Oct 16 09:39:43][chn0] CURL: Hostname was found in DNS cache

[Oct 16 09:39:43][chn0] CURL:   Trying 127.0.0.1...

[Oct 16 09:39:43][chn0] CURL: Connected to 127.0.0.1 (127.0.0.1) port 80
(#5)

[Oct 16 09:39:43][chn0] CURL: Sent 24 bytes..

 

 

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


More information about the volkszaehler-users mailing list