[vz-users] S0-Bus loggen
    Tilman Glötzner 
    tilman_1 at gloetzner.net
                  
    Di Jun 29 20:39:20 CEST 2021
    
    
Hallo
neben ein Sensorkopf für ein Smart-Meter habe ich nun 4 Zähler mit 
S0-Schnittstelle an den PI angeschlossen (GPIO 4,14,15,17).
Die Zähler scheinen nicht richtig gemessen zu werden. Zumindest sind die 
Werte des ersten und zweiten Kanals (App. Ground Floor und App. Third 
Floor)  mit 0 Wh ab Mitternacht nicht plausibel (siehe Screenshot um 
08:20:35).Ich habe unter Verwendung des sys-Filesystems geschaut, ob hin 
und wieder mal ein High-Pegel von den Zähler kommt (while true ; do cat 
/sys/class/gpio/gpio17/value | grep 1 ; done). Das scheint der Fall zu 
sein, d.h. die Signale der GPIO scheinen zumindest beim Kernel des RPI 
anzukommen.
Wie kann ich das debuggen? Ist die angehängte Config in Ordnung?
Danke und Gruß
Tilman
-------------- nächster Teil --------------
{
"retry" : 3,
"daemon": true,
"verbosity" : 15,
"log" : "/var/log/vzlogger.log",
 
"local" : {
	"enabled" : false,
	"port" : 8080,
	"index" : true,
	"timeout" : 30,
	"buffer" : 600
},
 
"meters" : [
        {
         "enabled" : true,
         "device" : "/dev/ttyUSB0",
         "protocol" : "sml",
         "parity" : "8N1",
    	 "baudrate" : 9600,
	 "aggtime" : 3600,
	 "aggfixedinterval" : true,
         "channels": [{
            "uuid" : "aa7aa260-9d5f-11eb-9ee7-8354e1848012",
            "middleware" : "http://localhost/middleware.php",
            "identifier" : "1-0:2.8.0", /* energy provided to grid */
            "aggmode" : "MAX"
            }, {
            "uuid" : "e6981cd0-9d5d-11eb-ae08-3bff1417be58",
            "middleware" : "http://localhost/middleware.php",
            "identifier" : "1-0:1.8.0", /* energy taken from grid */
            "aggmode" : "MAX"
            }, {
            "uuid" : "8611bb00-ab89-11eb-a169-25b5fbc43e2c",
            "middleware" : "http://localhost/middleware.php",
            "identifier" : "1-0:16.7.0", /* Leistung */
            "aggmode" : "none"
         }]
        },
        {
         "enabled": true,
         "allowskip": false,
         "interval": -1,
         "aggtime": 3600,
         "aggfixedinterval": false,
         "channels": [{
            "uuid": "4d1483b0-d75a-11eb-af5d-4d208cf02964",
            "identifier": "Impulse",
            "api": "volkszaehler",
            "middleware": "http://localhost/middleware.php",
            "aggmode": "none",
            "duplicates": 0
          }],
         "protocol": "s0",
         "gpio": 4,
         "configureGPIO": true,
         "debounce_delay": 0,
         "resolution": 100
        },
        {
         "enabled": true,
         "allowskip": false,
         "interval": -1,
         "aggtime": 3600,
         "aggfixedinterval": false,
         "channels": [{
            "uuid": "418ddf40-d802-11eb-b35f-5da471488f6e",
            "identifier": "Impulse",
            "api": "volkszaehler",
            "middleware": "http://localhost/middleware.php",
            "aggmode": "none",
            "duplicates": 0
          }],
         "protocol": "s0",
         "gpio": 14,
         "configureGPIO": true,
         "debounce_delay": 0,
         "resolution": 100
        },
        {
         "enabled": true,
         "allowskip": false,
         "interval": -1,
         "aggtime": 3600,
         "aggfixedinterval": false,
         "channels": [{
            "uuid": "1f87bb00-d7d7-11eb-9970-fb2bc024173c",
            "identifier": "Impulse",
            "api": "volkszaehler",
            "middleware": "http://localhost/middleware.php",
            "aggmode": "none",
            "duplicates": 0
          }],
         "protocol": "s0",
         "gpio": 15,
         "configureGPIO": true,
         "debounce_delay": 0,
         "resolution": 2000 
        },
        {
         "enabled": true,
         "allowskip": false,
         "interval": -1,
         "aggtime": 3600,
         "aggfixedinterval": false,
         "channels": [{
            "uuid": "a5989d90-d828-11eb-b73f-9fcefccaa74b",
            "identifier": "Impulse",
            "api": "volkszaehler",
            "middleware": "http://localhost/middleware.php",
            "aggmode": "none",
            "duplicates": 0
          }],
         "protocol": "s0",
         "gpio": 17,
         "configureGPIO": true,
         "debounce_delay": 0,
         "resolution": 100
        }
    ]
}
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : Screenshot from 2021-06-29 08-20-35.png
Dateityp    : image/png
Dateigröße  : 366535 bytes
Beschreibung: nicht verfügbar
URL         : <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20210629/f630dd64/attachment-0001.png>
    
    
Mehr Informationen über die Mailingliste volkszaehler-users