[vz-users] vzlogger 0.4.2 liefert keine Daten vom USB IR Lesekopf vom Zähler ISKRA MT681

Johannes Maaßen News at JoeM.de
Thu Sep 24 14:56:04 CEST 2015


Am 24.09.2015 um 14:51 schrieb Udo1:
> Was sagt denn jetzt 'sudo vzlogger -V'?
0.4.4
  based on git version: heads/master-0-gee3c88b401
  last commit date: Sun, 6 Sep 2015 21:16:51 +0200

> Poste mal deine jetzige vzlogger.conf und rc.local
siehe Anhang, ich habe wieder die UUIDs gekürzt

Gruß
Joe

-------------- next part --------------
#!/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 großer Erweiterung
echo ds1307 0x68 > /sys/bus/i2c/devices/i2c-1/new_device

# Part of S0/Impulse to Volkszaehler 'RaspberryPI deamon','s0vz', nur bei alter große Erweiterung
#echo 17 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio17/edge
#echo 18 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio18/edge
# echo 22 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio22/edge
# echo 23 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio23/edge
# echo 24 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio24/edge
# echo 27 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio27/edge

# Part of S0/Impulse to Volkszaehler 'RaspberryPI deamon','s0vz_new', nur bei neuer große Erweiterung
#echo 4 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio4/edge
#echo 18 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio18/edge
#echo 17 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio17/edge
#echo 23 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio23/edge
#echo 27 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio27/edge
#echo 22 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio22/edge

# GPIOs exportieren und Datenrichtung einstellen, 'Schaltausgang_new'
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 exportieren und Datenrichtung einstellen, 'Schaltausgang'
# 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

# 1wirevz starten
#/etc/init.d/1wirevz restart

#s0vz starten
#sudo s0vz
#sudo s0vz_new

#Set USB0 Speed
sudo stty -F /dev/ttyUSB0 9600

#vzlogger starten
sudo vzlogger -c /etc/vzlogger.conf -d

#Set Systemtime from RTC
sudo hwclock -s

exit 0
-------------- next part --------------
{
  "retry": 0,
  "daemon": false,
  "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": "XXXX-3b7",
          "identifier": "1-0:1.8.0",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "secretKey": "",
          "type": "device",
          "scaler": 1,
          "aggmode": "sum",
          "duplicates": 0
        },
        {
          "uuid": "XXXX-2fb1",
          "identifier": "1-0:2.8.0",
          "api": "volkszaehler",
          "middleware": "http://localhost/middleware.php",
          "secretKey": "",
          "type": "device",
          "scaler": 1,
          "aggmode": "sum",
          "duplicates": 0
        }
      ],
      "protocol": "sml",
      "host": "",
      "device": "/dev/ttyUSB0",
      "pullseq": "",
      "baudrate": 9600,
      "parity": "8n1"
    }
  ]
}


More information about the volkszaehler-users mailing list