[vz-users] GPIOs verschwunden
Sirko
mail_ist at nurfuerspam.de
Tue Dec 22 23:15:47 CET 2015
Hi Udo,
da scheint was nicht zu stimmen:
pi at raspberrypi ~ $ ll /sys/bus/
insgesamt 0
drwxr-xr-x 18 root root 0 Dez 22 23:14 .
dr-xr-xr-x 11 root root 0 Dez 22 23:11 ..
drwxr-xr-x 4 root root 0 Dez 22 23:06 amba
drwxr-xr-x 4 root root 0 Dez 22 23:06 clockevents
drwxr-xr-x 4 root root 0 Dez 22 23:06 clocksource
drwxr-xr-x 4 root root 0 Dez 22 23:06 container
drwxr-xr-x 4 root root 0 Dez 22 23:06 cpu
drwxr-xr-x 4 root root 0 Dez 22 23:06 event_source
drwxr-xr-x 4 root root 0 Dez 22 23:06 hid
drwxr-xr-x 4 root root 0 Dez 22 23:06 i2c
drwxr-xr-x 4 root root 0 Dez 22 23:06 iscsi_flashnode
drwxr-xr-x 4 root root 0 Dez 22 23:06 mmc
drwxr-xr-x 4 root root 0 Dez 22 23:06 platform
drwxr-xr-x 4 root root 0 Dez 22 23:06 scsi
drwxr-xr-x 4 root root 0 Dez 22 23:06 sdio
drwxr-xr-x 4 root root 0 Dez 22 23:06 spi
drwxr-xr-x 4 root root 0 Dez 22 23:06 usb
drwxr-xr-x 4 root root 0 Dez 22 23:06 workqueue
kein w1
Dateien sind angehängt.
Danke,
Sirko
-------------- next part --------------
/**
* vzlogger configuration
*
* use proper encoded JSON with javascript comments
*
* take a look at the wiki for detailed information:
* http://wiki.volkszaehler.org/software/controller/vzlogger#configuration
*/
{
"retry" : 30, /* how long to sleep between failed requests, in seconds */
"daemon": true, /* run periodically */
//"foreground" : true, /* dont run in background (prevents forking) */
"verbosity" : 1, /* between 0 and 15 */
"log" : "/var/log/vzlogger.log",/* path to logfile, optional */
"local" : {
"enabled" : true, /* should we start the local HTTPd for serving live readings? */
"port" : 8080, /* the TCP port for the local HTTPd */
"index" : true, /* should we provide a index listing of available channels if no UUID was requested? */
"timeout" : 30, /* timeout for long polling comet requests, 0 disables comet, in seconds */
"buffer" : 600 /* how long to buffer readings for the local interface, in seconds */
},
"meters" :[
{
"enabled" : true,
"protocol" : "sml",
"device" : "/dev/ttyAMA0",
"aggtime" : 10,
"aggfixedinterval" : true,
"channel" :
// /** {
// * "uuid" : "52101d10-d084-11e2-9571-794d1d76cb5f",
// * "middleware" : "http://localhost/middleware.php",
// * "identifier" : "1-0:1.8.0" /* Gesamt */
// * },
// */
{
"uuid" : "14360350-d080-11e2-ab3d-05959e28b10f",
"middleware" : "http://127.0.0.1/middleware.php",
"identifier" : "1-0:15.7.0", /*Momentanverbrauch*/
"aggmode" : "AVG"
}
},
{
"enabled": false,
"allowskip": false,
"interval": 120,
"aggtime": -1,
"aggfixedinterval": false,
"channels": [
{
"uuid": "084a08a0-ddcc-11e2-bd0b-251d2cd4a922",
"identifier": "28-0000049829cc",
"api": "volkszaehler",
"middleware": "http://127.0.0.1/middleware.php",
"type": "device",
"scaler": 1,
"aggmode": "none",
"duplicates": 0
},
{
"uuid": "a036b190-7e7c-11e5-9494-e32423139f5e",
"identifier": "28-000004e4b211",
"api": "volkszaehler",
"middleware": "http://127.0.0.1/middleware.php",
"type": "device",
"scaler": 1,
"aggmode": "none",
"duplicates": 0
},
{
"uuid": "d258df00-7fd3-11e5-a4f6-b5b5f1473261",
"identifier": "28-000004e3f546",
"api": "volkszaehler",
"middleware": "http://127.0.0.1/middleware.php",
"type": "device",
"scaler": 1,
"aggmode": "none",
"duplicates": 0
}
],
"protocol": "w1therm"
}
]
}
-------------- 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 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
#kopiert von alter rc.local
# 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
# Part of S0/Impulse to Volkszaehler 'RaspberryPI deamon'
#echo 17 > /sys/class/gpio/export && echo "in" > /sys/class/gpio/gpio17/direction && echo "falling" > /sys/class/gpio/gpio17/edge
#echo 18 > /sys/class/gpio/export && echo "in" > /sys/class/gpio/gpio18/direction && echo "falling" > /sys/class/gpio/gpio18/edge
#echo 22 > /sys/class/gpio/export && echo "in" > /sys/class/gpio/gpio22/direction && echo "falling" > /sys/class/gpio/gpio22/edge
#echo 23 > /sys/class/gpio/export && echo "in" > /sys/class/gpio/gpio23/direction && echo "falling" > /sys/class/gpio/gpio23/edge
#echo 24 > /sys/class/gpio/export && echo "in" > /sys/class/gpio/gpio24/direction && echo "falling" > /sys/class/gpio/gpio24/edge
#echo 27 > /sys/class/gpio/export && echo "in" > /sys/class/gpio/gpio27/direction && echo "falling" > /sys/class/gpio/gpio27/edge
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
exit 0
More information about the volkszaehler-users
mailing list