[vz-users] 1wirevz läuft nicht mehr nach Update

Heiko Baumann hbcs at gmx.de
Mon Nov 10 22:53:47 CET 2014


Am 10.11.2014 um 22:35 schrieb Udo1:
> Hallo Heiko,
>
> Am 10.11.2014 20:56, schrieb Heiko Baumann:
>> bin leider noch viel weniger Experte :(
> was steht denn unter 'cd /sys/bus/w1/devices'?

Hallo Udo, vielen Dank für deine Meldung. Dann mal los:

pi at BauratPi ~ $ cd /sys/bus/w1/devices/
pi at BauratPi /sys/bus/w1/devices $ ls -la
insgesamt 0
drwxr-xr-x 2 root root 0 Nov 10 20:23 .
drwxr-xr-x 4 root root 0 Nov 10 20:23 ..
lrwxrwxrwx 1 root root 0 Nov 10 20:23 28-0000045c5c7e -> 
../../../devices/w1_bus_master2/28-0000045c5c7e
lrwxrwxrwx 1 root root 0 Nov 10 20:23 28-0000045c6924 -> 
../../../devices/w1_bus_master1/28-0000045c6924
lrwxrwxrwx 1 root root 0 Nov 10 20:23 28-0000045d2497 -> 
../../../devices/w1_bus_master2/28-0000045d2497
lrwxrwxrwx 1 root root 0 Nov 10 20:23 28-0000045d7eb0 -> 
../../../devices/w1_bus_master2/28-0000045d7eb0
lrwxrwxrwx 1 root root 0 Nov 10 20:23 28-000004a2845a -> 
../../../devices/w1_bus_master2/28-000004a2845a
lrwxrwxrwx 1 root root 0 Nov 10 20:23 28-000004c913d5 -> 
../../../devices/w1_bus_master1/28-000004c913d5
lrwxrwxrwx 1 root root 0 Nov 10 20:23 28-000004c9583f -> 
../../../devices/w1_bus_master1/28-000004c9583f
lrwxrwxrwx 1 root root 0 Nov 10 20:23 28-000004c963b9 -> 
../../../devices/w1_bus_master1/28-000004c963b9
lrwxrwxrwx 1 root root 0 Nov 10 20:23 28-000004c969de -> 
../../../devices/w1_bus_master1/28-000004c969de
lrwxrwxrwx 1 root root 0 Nov 10 20:23 28-000004c96a87 -> 
../../../devices/w1_bus_master1/28-000004c96a87
lrwxrwxrwx 1 root root 0 Nov 10 20:23 28-000004f1c7c6 -> 
../../../devices/w1_bus_master2/28-000004f1c7c6
lrwxrwxrwx 1 root root 0 Nov 10 20:23 28-000004f2467e -> 
../../../devices/w1_bus_master2/28-000004f2467e
lrwxrwxrwx 1 root root 0 Nov 10 20:23 w1_bus_master1 -> 
../../../devices/w1_bus_master1
lrwxrwxrwx 1 root root 0 Nov 10 20:23 w1_bus_master2 -> 
../../../devices/w1_bus_master2
lrwxrwxrwx 1 root root 0 Nov 10 20:23 w1_bus_master3 -> 
../../../devices/w1_bus_master3

Die Links zeigen also alle nach /sys/devices. Dort gibts:

pi at BauratPi /sys/devices $ ls -la
insgesamt 0
drwxr-xr-x 11 root root 0 Nov 10 19:56 .
dr-xr-xr-x 12 root root 0 Jan  1  1970 ..
drwxr-xr-x  3 root root 0 Nov 10 22:43 breakpoint
drwxr-xr-x  4 root root 0 Nov 10 22:43 dev:f1
drwxr-xr-x 38 root root 0 Nov 10 19:56 platform
drwxr-xr-x  3 root root 0 Nov 10 22:43 software
drwxr-xr-x  5 root root 0 Nov 10 19:57 system
drwxr-xr-x 20 root root 0 Nov 10 19:56 virtual
drwxr-xr-x  9 root root 0 Nov 10 19:57 w1_bus_master1
drwxr-xr-x  9 root root 0 Nov 10 19:57 w1_bus_master2
drwxr-xr-x  3 root root 0 Nov 10 19:57 w1_bus_master3

.. auch im bus_master steht ordentlich was drin, z.B:

pi at BauratPi /sys/devices/w1_bus_master1 $ ls -la
insgesamt 0
drwxr-xr-x  9 root root    0 Nov 10 19:57 .
drwxr-xr-x 11 root root    0 Nov 10 19:56 ..
drwxr-xr-x  3 root root    0 Nov 10 19:57 28-0000045c6924
drwxr-xr-x  3 root root    0 Nov 10 19:57 28-000004c913d5
drwxr-xr-x  3 root root    0 Nov 10 19:57 28-000004c9583f
drwxr-xr-x  3 root root    0 Nov 10 19:57 28-000004c963b9
drwxr-xr-x  3 root root    0 Nov 10 19:57 28-000004c969de
drwxr-xr-x  3 root root    0 Nov 10 19:57 28-000004c96a87
lrwxrwxrwx  1 root root    0 Nov 10 22:43 driver -> 
../../bus/w1/drivers/w1_master_driver
drwxr-xr-x  2 root root    0 Nov 10 22:43 power
lrwxrwxrwx  1 root root    0 Nov 10 19:57 subsystem -> ../../bus/w1
-rw-r--r--  1 root root 4096 Nov 10 19:57 uevent
-rw-rw-r--  1 root root 4096 Nov 10 22:43 w1_master_add
-r--r--r--  1 root root 4096 Nov 10 22:43 w1_master_attempts
-r--r--r--  1 root root 4096 Nov 10 22:43 w1_master_max_slave_count
-r--r--r--  1 root root 4096 Nov 10 22:43 w1_master_name
-r--r--r--  1 root root 4096 Nov 10 22:43 w1_master_pointer
-rw-rw-r--  1 root root 4096 Nov 10 22:43 w1_master_pullup
-rw-rw-r--  1 root root 4096 Nov 10 22:43 w1_master_remove
-rw-rw-r--  1 root root 4096 Nov 10 22:43 w1_master_search
-r--r--r--  1 root root 4096 Nov 10 22:43 w1_master_slave_count
-r--r--r--  1 root root 4096 Nov 10 20:23 w1_master_slaves
-r--r--r--  1 root root 4096 Nov 10 22:43 w1_master_timeout


> Was sagt denn 'cat /var/log/syslog|grep 1wirevz'?
Wie schon gepostet: der 1wire- Daemon startet und findet wohl kurzzeitig 
auch alles, hat aber danach sofort ein Problem:

Nov 10 22:47:39 BauratPi 1wirevz: DS2482 I²C 1-Wire® Master to 
Volkszaehler deamon 1.5 (2) 5
Nov 10 22:47:39 BauratPi 1wirevz: VzServer: 127.0.0.1
Nov 10 22:47:39 BauratPi 1wirevz: VzPort: 80
Nov 10 22:47:39 BauratPi 1wirevz: VzPath: middleware.php
Nov 10 22:47:39 BauratPi 1wirevz: Metering interval: 60 sec
Nov 10 22:47:39 BauratPi 1wirevz: 28-0000045c6924 (Bus: 1) (VzUUID: 
267f2810-f2dc-11e2-8d7c-cb14f79472e0)
Nov 10 22:47:39 BauratPi 1wirevz: 28-000004c969de (Bus: 1) (VzUUID: 
c80251e0-f2db-11e2-8178-ef2453dba49c)
Nov 10 22:47:39 BauratPi 1wirevz: 28-000004c963b9 (Bus: 1) (VzUUID: 
112ddc60-f2dc-11e2-9294-971d5a648238)
Nov 10 22:47:39 BauratPi 1wirevz: 28-000004c913d5 (Bus: 1) (VzUUID: 
1fb4b660-f2dc-11e2-9685-936d7367e7ac)
Nov 10 22:47:39 BauratPi 1wirevz: 28-000004c96a87 (Bus: 1) (VzUUID: 
06e27ce0-f2dc-11e2-9196-1793d6d6626c)
Nov 10 22:47:39 BauratPi 1wirevz: 28-000004c9583f (Bus: 1) (VzUUID: 
1843ebf0-f2dc-11e2-b68a-0d188c147a46)
Nov 10 22:47:39 BauratPi 1wirevz: 28-0000045d7eb0 (Bus: 2) (VzUUID: 
37e34a40-f2dc-11e2-a9f5-617f327e9a54)
Nov 10 22:47:39 BauratPi 1wirevz: 28-000004a2845a (Bus: 2) (VzUUID: 
3e744e20-f2dc-11e2-ab3d-e5709e8f1bd3)
Nov 10 22:47:39 BauratPi 1wirevz: 28-000004f1c7c6 (Bus: 2) (VzUUID: 
614b6c60-f2dc-11e2-8b34-43269275292a)
Nov 10 22:47:39 BauratPi 1wirevz: 28-0000045c5c7e (Bus: 2) (VzUUID: 
53e45780-f2dc-11e2-bb40-e1626f6aa1bd)
Nov 10 22:47:39 BauratPi 1wirevz: 28-000004f2467e (Bus: 2) (VzUUID: 
e5cd78a0-33fc-11e3-92ab-25b39d4959eb)
Nov 10 22:47:39 BauratPi 1wirevz: 28-0000045d2497 (Bus: 2) (VzUUID: 
46f672b0-f2dc-11e2-8c00-43a2ff77fb28)
Nov 10 22:47:39 BauratPi 1wirevz: No such file or directory
Nov 10 22:47:39 BauratPi 1wirevz: No such file or directory
Nov 10 22:47:52 BauratPi 1wirevz: No such file or directory
Nov 10 22:47:52 BauratPi 1wirevz: No such file or directory

pi at BauratPi /sys/devices/w1_bus_master1 $ sudo /etc/init.d/1wirevz stop
Nov 10 22:49:08 BauratPi 1wirevz: Daemon exiting


> Was steht in der '/etc/modules' ?
unberührt:
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

snd-bcm2835

# Part of DS2482 I²C 1-Wire® Master to Volkszaehler 'RaspberryPI deamon'.
i2c-bcm2708
i2c-dev
ds2482
w1-therm


> Was steht in der '/etc/rc.local'?
Ebenfalls unverändert:

root at BauratPi:/dev# less /etc/rc.local
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

Nebenbei bemerkt: ich hab ja deine raspi-Erweiterung. Die s0vz arbeitet 
problemlos, die Stromzähler werden auch jetzt noch einwandfrei geloggt.

> Welches Image nutzt du?
Das von Rainer, soweit ich mich erinnere.. ;)
Hab früher das komplett selbst aufgebaut, aber irgendwann mal umgestellt 
(glaub ich..).

Hast du eine Vermutung?

Merci!!



More information about the volkszaehler-users mailing list