[vz-users] Neueinrichtung Easymeter Q3D-Zähler

Matthias Behr mbehr at mcbehr.de
Sat Jan 2 21:40:39 CET 2016


In der Config sind auf jeden Fall schon mal die Identifier falsch:
"identifier": "1-0: 1.8.0“

Das Leerzeichen zwischen „:“ und „1“ muss weg.

Mit der Config dürftest du in keinem Fall mehr „s0“ oder 1wire Meldungen sehen. Falls ja, scheint vzlogger eine andere Config zu nutzen.

> Am 02.01.2016 um 21:03 schrieb Thomas Hümmerich <thomas.huemmerich at arcor.de>:
> 
> Hallo,
> ich habe nur den IR-USB-Lesekopf an USB angeschlossen, (noch) kein S0-Signal.
> Die cat /dev/ttyUSB0 liefert - nach Anpassung der Baudrate und der Parity - :
> 
> 1-0:1.8.0*255(0000xxx.xx*kWh)
> 
> 1-0:2.8.0*255(000xxx.xx*kWh)
> 
> 1-0:21.7.0*255(000xx.xx*W)
> 
> 1-0:41.7.0*255(000xxx.xx*W)
> 
> 1-0:61.7.0*255(000xxx.xx*W)
> 
> 1-0:1.7.0*255(000xxx.xx*W)
> 
> 1-0:96.5.5*255(80)
> 
> Im Frontend sind angelegt:
> 2 Mal El. Energie (Zählerstände) für die Zählerstände Verbrauch und Lieferung
> 4 Mal El. Energie (Leistungswerte) für die Leistung der 3 Phasen und die Gesamtleistung
> 
> Die vzlogger.conf sieht so aus:
> {
>   "retry": 30,
>   "daemon": false,
>   "verbosity": 15,
>   "log": "/var/log/vzlogger.log",
>   "push": [],
>   "local": {
>     "enabled": false,
>     "port": 8080,
>     "index": true,
>     "timeout": 30,
>     "buffer": 600
>   },
>   "meters": [
>     {
>       "enabled": true,
>       "allowskip": false,
>       "interval": 10,
>       "aggtime": -1,
>       "aggfixedinterval": false,
>       "channels": [
>         {
>           "uuid": "608995d0-b139-11e5-a1ec-d95b72cab6b6",
>           "identifier": "1-0: 1.8.0",
>           "api": "volkszaehler",
>           "middleware": "http://localhost/middleware.php <http://localhost/middleware.php>",
>           "secretKey": "",
>           "type": "device",
>           "scaler": 1,
>           "aggmode": "max",
>           "duplicates": 0
>         },
>         {
>           "uuid": "5457c240-b139-11e5-9771-fdb30fb5759c",
>           "identifier": "1-0: 2.8.0",
>           "api": "volkszaehler",
>           "middleware": "http://localhost/middleware.php <http://localhost/middleware.php>",
>           "secretKey": "",
>           "type": "device",
>           "scaler": 1,
>           "aggmode": "max",
>           "duplicates": 0
>         },
>         {
>           "uuid": "731ef1c0-b139-11e5-91c9-17c1aec912ff",
>           "identifier": "1-0: 21.7.0",
>           "api": "volkszaehler",
>           "middleware": "http://localhost/middleware.php <http://localhost/middleware.php>",
>           "secretKey": "",
>           "type": "device",
>           "scaler": 1,
>           "aggmode": "avg",
>           "duplicates": 0
>         },
>         {
>           "uuid": "84fd78e0-b139-11e5-88a8-a7f3bbab9e9c",
>           "identifier": "1-0: 41.7.0",
>           "api": "volkszaehler",
>           "middleware": "http://localhost/middleware.php <http://localhost/middleware.php>",
>           "secretKey": "",
>           "type": "device",
>           "scaler": 1,
>           "aggmode": "avg",
>           "duplicates": 0
>         },
>         {
>           "uuid": "8b59fc60-b139-11e5-ac40-73a927067321",
>           "identifier": "1-0: 61.7.0",
>           "api": "volkszaehler",
>           "middleware": "http://localhost/middleware.php <http://localhost/middleware.php>",
>           "secretKey": "",
>           "type": "device",
>           "scaler": 1,
>           "aggmode": "avg",
>           "duplicates": 0
>         },
>         {
>           "uuid": "e025cd30-b16c-11e5-8ac5-0d4a872b543a",
>           "identifier": "1-0: 1.7.0",
>           "api": "volkszaehler",
>           "middleware": "http://localhost/middleware.php <http://localhost/middleware.php>",
>           "secretKey": "",
>           "type": "device",
>           "scaler": 1,
>           "aggmode": "avg",
>           "duplicates": 0
>         }
>       ],
>       "protocol": "d0",
>       "device": "/dev/ttyUSB0",
>       "host": "",
>       "dump_file": "",
>       "pullseq": "",
>       "ackseq": "auto",
>       "baudrate": 9600,
>       "baudrate_read": 300,
>       "parity": "7e1",
>       "wait_sync": "off",
>       "read_timeout": 10,
>       "baudrate_change_delay": 0,
>       "gpio": -1,
>       "mmap": "",
>       "gpio_dir": -1,
>       "configureGPIO": true,
>       "resolution": 1000,
>       "send_zero": false,
>       "debounce_delay": 30,
>       "nonblocking_delay": 100000
>     }
>   ]
> }
> 
> Und hier die /etc/rc.local:
> 
> #!/bin/sh -e
> #
> # rc.local
> #
> # This script is executed at the end of each multiuser runlevel.
> # Make sure that the script will "exit 0" on success or any other
> # value on error.
> #
> # In order to enable or disable this script just change the execution
> # bits.
> #
> # By default this script does nothing.
> 
> # Print the IP address
> _IP=$(hostname -I) || true
> if [ "$_IP" ]; then
>   printf "My IP address is %s\n" "$_IP"
> fi
> 
> # Part of DS2482 I2C 1-Wire Master to Volkszaehler 'RaspberryPI deamon'.
> echo ds2482 0x18 > /sys/bus/i2c/devices/i2c-1/new_device
> # echo ds2482 0x19 > /sys/bus/i2c/devices/i2c-1/new_device
> # echo ds2482 0x1a > /sys/bus/i2c/devices/i2c-1/new_device
> 
> # Register I2C RTC, nur bei neuer großer Erweiterung
> echo ds1307 0x68 > /sys/bus/i2c/devices/i2c-1/new_device
> 
> # GPIOs für Schaltausgänge exportieren und Datenrichtung einstellen, 'neue große Erweiterung'
> echo 24 > /sys/class/gpio/export
> echo 25 > /sys/class/gpio/export
> echo out > /sys/class/gpio/gpio24/direction
> echo out > /sys/class/gpio/gpio25/direction
> 
> # GPIOs für Schaltausgänge exportieren und Datenrichtung einstellen, 'alte große Erweiterung'
> # echo 9 > /sys/class/gpio/export
> # echo 11 > /sys/class/gpio/export
> # echo out > /sys/class/gpio/gpio9/direction
> # echo out > /sys/class/gpio/gpio11/direction
> 
> #Set Systemtime from RTC, nur bei neuer großer Erweiterung
> sudo hwclock -s
> 
> exit 0
> 
> 
> Danke und Gruß, Thomas
> 
> 
> > To: volkszaehler-users at demo.volkszaehler.org <mailto:volkszaehler-users at demo.volkszaehler.org>
> > From: udo1 at gmx.net <mailto:udo1 at gmx.net>
> > Date: Sat, 2 Jan 2016 20:37:52 +0100
> > Subject: Re: [vz-users] Neueinrichtung Easymeter Q3D-Zähler
> > 
> > Am 02.01.2016 um 20:26 schrieb Thomas Hümmerich:
> > > Leider bleiben die Fehler in der Log-Datei die gleichen und irgendwie 
> > > werden auch mehr als 1 Meter erwartet, außerdem lese ich auch ein paar 
> > > Mal S0 statt D0:
> > Bitte liste auf welche Zähler und welche S0-Signale du an den Raspi 
> > angeschlossen hast.
> > Dann bitte poste noch mal deine jetzige vzlogger.conf und zusätzlich die 
> > /etc/rc.local.
> > 
> > Gruß
> > Udo

Gruß

Matthias

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


More information about the volkszaehler-users mailing list