[vz-users] GPIO Zuordnung - s0vz.cfg?

Udo1 udo1 at gmx.net
Tue Dec 9 23:54:12 CET 2014


Ja, da ist ein Zuordnungsfehler.  Muss ich morgen korrigieren.

Gruß
Udo

Am 09.12.2014 22:00, schrieb Peter Haider:
> #!/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
> # echo ds1307 0x68 > /sys/bus/i2c/devices/i2c-1/new_device
>
> # Part of S0/Impulse to Volkszaehler 'RaspberryPI deamon','s0vz'
> 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'
> # 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
>
>
> sudo 1wirevz
>
> sudo s0vz
>
> # sudo s0vz_new
>
> stty -F /dev/ttyUSB0 300 -parity -cstopb
> sudo vzlogger -p
>
> exit 0
>
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: volkszaehler-users
> [mailto:volkszaehler-users-bounces at demo.volkszaehler.org] Im Auftrag von
> Udo1
> Gesendet: Dienstag, 09. Dezember 2014 20:50
> An: volkszaehler-users at demo.volkszaehler.org
> Betreff: Re: [vz-users] GPIO Zuordnung - s0vz.cfg?
>
> Hallo Peter,
>
> Am 09.12.2014 15:30, schrieb Peter Haider:
>> ich verwende das neueste Image für den Rasperry Pi B+
> zeig mal deine /etc/rc.local
>
> Gruß
> Udo
>
>



More information about the volkszaehler-users mailing list