<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hallo,<br>
    ich hatte dasselbe Problem, inzwischen funktioniert's. Die FM kommt
    durch die Schleife im Code, die ja die drei Adressen der
    Raspi-Erweiterung durchprobiert (<br>
    <br>
    echo ds2482 0x18 > /sys/bus/i2c/devices/i2c-1/new_device<br>
    echo ds2482 0x19 > /sys/bus/i2c/devices/i2c-1/new_device<br>
    echo ds2482 0x1a > /sys/bus/i2c/devices/i2c-1/new_device in
    rc.local ). <br>
    Mit:<br>
    sudo i2cdetect -y 1<br>
    sudo i2cdetect -y 0<br>
    (nach Installation: sudo apt-get install python-smbus i2c-tools)<br>
    siehst Du welche Adressen belegt sind.<br>
    <br>
    Ich hatte erst nur die Zeilen mit den Adressen x19 und x1a ausgeremt
    aber die Fehlermeldung kam trotzdem (?). Jetzt hab ich mal mutig bis
    verwegen die Schleifen (2) aus dem c-Code geworfen (siehe Anhang)
    und die FM ist weg und er zeigt den Messverlauf im Frontend.<br>
    Die Anweisung "6. rc.local anpassen" mit "$ALL..." ist mir auch
    rätselhaft aber vielleicht erbarmt sich ja noch jemand und erklärt's
    uns ;)<br>
    <br>
    Noch 'ne Anmerkung: Wenn Du die So-Schnittstellen nutzen möchtest
    musst Du die hardcodierte GPIO-Liste anpassen. Meine S0VZ.c ist auch
    im Anhang. <br>
    <br>
    Hoffe es hilft Dir, hinter meinen obigen Zeilen steckt viel
    Try&Error und ganz wenig (Halb-)Wissen.<br>
    <br>
    Gruß Stefan<br>
    <br>
    <pre>
Hallo,

vielen Dank für die Antworten !
Ich nutze das Image vom Rainer fast alle Eintrage waren schon 
vorgenommen, in Modules musste nur die Änderung zum Rev 1 Board 
vorgenommen und

if (fp != NULL)
fclose ( fp ); in 1wirevz.c


Die einzige Abweichung die ich sehe ist diese:

/$ sudo vim /etc/init.d/rc.local ( replace '$ALL' with '$remote_fs 
$syslog $network' )/

in meiner rc.local gibt es kein "$ALL" an welcher Stelle muss nun das 
"$remote_fs $syslog $network" einfügen ?


Gruß Thomas


Am 11.08.2013 15:51, schrieb W3ll Schmidt:
><i>
</i>><i> 1. Deamon kompilieren ->
</i>><i>
</i>><i> 1wirevz.c -> 'sudo gcc -o /usr/local/sbin/1wirevz 
</i>><i> /usr/local/src/1wirevz/1wirevz.c -lconfig -lcurl'
</i>><i>
</i>><i>
</i>><i> 2.  Config file anlegen
</i>><i>
</i>><i> 1wirevz.cfg -> /etc/
</i>><i>
</i>><i>
</i>><i> 3. Startup-Script anlegen
</i>><i>
</i>><i> rc.local -> /etc/ ( ! add this settings, dont overwrite your exisiting 
</i>><i> rc.local ! )
</i>><i>
</i>><i>
</i>><i> 4. Modules anpassen
</i>><i>
</i>><i> modules -> /etc/ ( ! add this settings, dont overwrite your exisiting 
</i>><i> modules ! )
</i>><i>
</i>><i>
</i>><i> 5. Init.Script anlegen
</i>><i>
</i>><i> 1wirevz -> /etc/init.d/ (Start/Stop-Script!)
</i>><i>
</i>><i>
</i>><i> ---
</i>><i>
</i>><i> 6. rc.local anpassen
</i>><i>
</i>><i> $ sudo vim /etc/init.d/rc.local ( replace '$ALL' with '$remote_fs 
</i>><i> $syslog $network' )
</i>><i>
</i>><i>
</i>><i> 5. Autostartbar machen
</i>><i>
</i>><i> $ sudo insserv 1wirevz ( make deamon autostart )
</i>><i>
</i>><i>
</i>><i> 6. Config anpassen!
</i>><i>
</i>><i> $ sudo vim /etc/1wirevz.cfg ( edit your config )
</i>><i>
</i>><i>
</i>><i> 7. ReBoot
</i>><i>
</i>><i> Reboot and check '/var/log/syslog' for outputs!
</i>><i>
</i>><i>
</i>><i>
</i>><i> Am 11. August 2013 13:22 schrieb <a href="https://demo.volkszaehler.org/mailman/listinfo/volkszaehler-users">corny_marius at web.de</a> 
</i>><i> <mailto:<a href="https://demo.volkszaehler.org/mailman/listinfo/volkszaehler-users">corny_marius at web.de</a>> <<a href="https://demo.volkszaehler.org/mailman/listinfo/volkszaehler-users">corny_marius at web.de</a> 
</i>><i> <mailto:<a href="https://demo.volkszaehler.org/mailman/listinfo/volkszaehler-users">corny_marius at web.de</a>>>:
</i>><i>
</i>><i>     Die Änderungen in /etc/modules und /etc/rc.local gemacht und
</i>><i>     danach den Raspi neu gestartet?
</i>><i>
</i>><i>     Grüße Marius
</i>><i>
</i>><i>     Von meinem iPhone gesendet
</i>><i>
</i>><i>     Am 11.08.2013 um 13:16 schrieb "Thomas Janz"
</i>><i>     <<a href="https://demo.volkszaehler.org/mailman/listinfo/volkszaehler-users">janz.thomas at gmail.com</a> <mailto:<a href="https://demo.volkszaehler.org/mailman/listinfo/volkszaehler-users">janz.thomas at gmail.com</a>>>:
</i>><i>
</i>>><i>     Hallo,
</i>>><i>
</i>>><i>     Ich habe die Raspi Erweiterung vom Udo Rev1
</i>>><i>     <a href="http://wiki.volkszaehler.org/hardware/controllers/raspberry_pi_erweiterung">http://wiki.volkszaehler.org/hardware/controllers/raspberry_pi_erweiterung</a>
</i>>><i>     und habe folgende Fehlermeldung nach der Instatalltion von 1 wire.
</i>>><i>     /
</i>>><i>     //    Aug 11 12:54:16 raspberrypi 1wirevz: No such file or directory/
</i>>><i>
</i>>><i>     Ich habe keine Ahnung welches /file or directory/ hier erwartet wird.
</i>>><i>
</i>>><i>     Hier die komplette Ausgabe mit cat/var/log/syslog|grep1wirevz
</i>>><i>
</i>>><i>     Aug 11 12:54:16 raspberrypi 1wirevz: VzServer: 127.0.0.1
</i>>><i>     Aug 11 12:54:16 raspberrypi 1wirevz: VzPort: 80
</i>>><i>     Aug 11 12:54:16 raspberrypi 1wirevz: VzPath: middleware.php
</i>>><i>     Aug 11 12:54:16 raspberrypi 1wirevz: Metering interval: 60 sec
</i>>><i>     Aug 11 12:54:16 raspberrypi 1wirevz: No such file or directory
</i>>><i>
</i>>><i>     Die Installation habe ich nach
</i>>><i>     <a href="https://github.com/w3llschmidt/1wirevz">https://github.com/w3llschmidt/1wirevz</a> vorgenommen
</i>>><i>
</i>>><i>     Danke !
</i>>><i>
</i>>><i>     Gruß Thomas
</i>><i>
</i>></pre>
  </body>
</html>