[vz-users] VZLogger GPIO4

king-six at arcor.de king-six at arcor.de
Mon Apr 3 22:08:21 CEST 2017


Hallo zusammen!

Wenn ich folgenden Impuszähler auf "enabled : true" stelle, bekomme ich diese Fehlermeldung: "Startup failed: export failed"
Hat jemand eine Idee, woran das liegt?

sudo vzlogger -V sagt:
0.6.1
 based on git version: heads/master-0-g46da3cb2eb
 last commit date: Thu, 19 Jan 2017 17:32:28 +0100


VZlogger.conf:

{ //#########################################################
      //############## Impulszähler Test #########################
      //#########################################################
      "enabled": false,
      "allowskip": false,
      //"interval": 300,
      "aggtime": -1,
      "aggfixedinterval": false,
      "channels": [
        {
          "uuid": "9dd04be0-18a4-11e7-928e-09706f2e243d",
          "identifier": "Impulse",
          "api": "volkszaehler",
          "middleware": "http://127.0.0.1/middleware.php",
          "aggmode": "none",
          "duplicates": 0
        }
      ],
      "protocol": "s0",
      "gpio": 4, // Entspricht S0-0
      "resolution": 1000,
      "configureGPIO": true,
      "debounce_delay": 1000
    },


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

# Register I2C RTC bei grosser neuer Erweiterung
#echo ds1307 0x68 > /sys/bus/i2c/devices/i2c-1/new_device

# 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

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

# hwclock -s

exit 0


Vielen Dank und Grüße!

Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20170403/7f614c98/attachment-0001.html>


More information about the volkszaehler-users mailing list