[vz-users] 1wire DS18B20 Sensoren an kleiner Erweiterung

Alexander vz at alex-j.net
Sun Jan 29 17:27:49 CET 2017


Hallo Udo,

heute vor dem abschließenden Test habe ich das Image komplett neu
aufgespielt. Dennoch habe ich nun das Image nochmal neu aufgespielt, nur
die rc.local editiert und das Dateisystem erweitert. Vielleicht hilft nun
der dmesg Output weiter. Siehe: http://pastebin.com/G7iK5fwQ
<http://pastebin.com/G7iK5fwQ>

Nachfolgend bin ich ein paar Hinweise von dieser Website
http://www.netzmafia.de/skripten/hardware/RasPi/RasPi_I2C.html
durchgegangen.

Die vollständigen Ergebnisse finden sich hier: http://pastebin.com/XF1nLNMf
i2cdetect zeigt, dass anscheinend ein I2C Gerät gefunden wird.
###
pi at raspberrypi:~ $ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi at raspberrypi:~ $ i2cdetect -l
i2c-1   i2c             3f804000.i2c                            I2C adapter
pi at raspberrypi:~ $ i2cget -y 1 0x18
Error: Could not set address to 0x18: Device or resource busy
###

Entferne ich die kleine Erweiterung, sieht das Bild wie folgt aus:
###
pi at raspberrypi:~ $ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi at raspberrypi:~ $ i2cdetect -l
i2c-1   i2c             3f804000.i2c                            I2C adapter
###

Es wird nun auch kein master Device mehr gefunden:
###
pi at raspberrypi:~ $ ls -l /sys/bus/w1/devices/
total 0
###

Stecke ich nun die Erweiterung wieder auf, ergibt sich folgendes Bild:
###
pi at raspberrypi:~ $ ls -l /sys/bus/w1/devices/
total 0
lrwxrwxrwx 1 root root 0 Jan 29 17:23 w1_bus_master1 ->
../../../devices/w1_bus_master1
pi at raspberrypi:~ $ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi at raspberrypi:~ $ i2cdetect -l
i2c-1   i2c             3f804000.i2c                            I2C adapter
###

Es sind ja sicherlich nicht alle meine Sensoren kaputt. Jemand eine Idee?

Gruß
Alexander


Am 29. Januar 2017 um 15:36 schrieb Udo1 <udo1 at gmx.net>:

>
> Am 29.01.2017 um 14:21 schrieb Alexander:
>
>> Was ich alles schon probiert habe:
>>
>>
>>  2. 1wire über raspi-config deaktiviert und wieder aktiviert
>>
>
> 1wire sollte nicht in der raspi-config aktiviert sein.
>
> Ich würde empfehlen das Image nochmal neu aufspielen, das Dateisystem
> erweitern und die rc.local editieren, reboot und dann einmal die dmesg
> posten.
>
> Gruß
> Udo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20170129/7e71cd30/attachment-0001.html>


More information about the volkszaehler-users mailing list