i2c Kernalmodul wird nicht geladen

  • Hallo und guten Abend
    ich habe einen RPi B+ mit Ver. 4.1.13-v7 und installierter fhem 5.7
    und bekomme immer wenn ich den RPII2C Bus anlegen möchte die Fehlermeldung (die Adresse des EZOPH Module ist 99)
    "[font="Arial, sans-serif"]I2CBus: Error! I2C device not found: /dev/i2c-99. Please check kernelmodules must loaded: i2c_bcm2708, i2c_dev"[/font]

    [font="Arial, sans-serif"]Ich bin schon einige Threads hier durchgegangen.[/font]
    [font="Arial, sans-serif"]Im Prinzip habe ich dies hier gemacht und überprüft: https://developer-blog.net/raspberry-pi-i2c-aktivieren/[/font]

    [font="Arial, sans-serif"]Aufgefallen ist mir, wenn ich in der [/font][font="Arial, sans-serif"]Konsole mit modprobe das i2c_bcm2708 aktiviere funktioniert das.[/font]
    [font="Arial, sans-serif"]Für i2c_dev benötige ich sudo modprobe Nach einem Neustart ist das i2c_dev Modul wieder weg?[/font]

    [font="Arial, sans-serif"]Aber auch wenn es vorhanden ist und mit lsmod angezeigt wird, kann ich es in fhem nicht definieren[/font]

    [font="Arial, sans-serif"]Was übersehe ich oder mache ich falsch :wallbash: :wallbash: :wallbash: :wallbash: [/font]

    [font="Arial, sans-serif"]Bitte um eure Hilfe das ist mein letzter Baustein meiner Poolsteuerung - Solarsteuerung.[/font]
    [font="Arial, sans-serif"]Damit möchte ich den pH Wert anzeigen lassen[/font]

    [font="Arial, sans-serif"]Danke für eure Unterstützung[/font]
    [font="Arial, sans-serif"]Gruß[/font]
    [font="Arial, sans-serif"]Helmut[/font]

  • Hallo Helmut,

    Du bist ja ein Pessimist! Gerade mal 17:00 Uhr vorbei - und Du redest schon von Abend? :no_sad:

    Poste doch mal die Ausgabe von

    Code
    cat /etc/modulesc


    und von

    Code
    cat /etc/modprobe.d/raspi-blacklist.conf

    In der ersten Ausgabe stehen die Module, die beim Hochfahren geladen werden. Hier müssen Einträge zu i2c auftauchen.

    In der zweiten Ausgabe dürfen keine i2c-Einträge stehen, da es sich hier um die Schwarze Liste handelt.

    Außerdem musst Du in der Datei /boot/config.txt DwviceTree-Einträge für i2c vornehmen.

    Poste bitte die Ausgabe von

    Code
    cat /boot/config.txt | grep i2c

    Wenn hier nichts steh, dann hast Du keinerlei i2c-DeviceTrees eingetragen.

    Beste Grüße

    Andreas

    Ich bin wirklich nicht darauf aus, Microsoft zu zerstören. Das wird nur ein völlig unbeabsichtigter Nebeneffekt sein.
    Linus Torvalds - "Vater" von Linux

    Linux is like a wigwam, no windows, no gates, but with an apache inside dancing samba, very hungry eating a yacc, a gnu and a bison.

  • Ja dann hoffen wir dass es ein schöner Abend wird (besonders für mich - wenn das Ding funktioniert)

    Zu 1)
    [font="Menlo Regular"]pi@raspberrypi[/font] [font="Menlo Regular"]~ $[/font][font="Menlo Regular"] cat /etc/modules[/font]
    [font="Menlo Regular"]# /etc/modules: kernel modules to load at boot time.[/font]
    [font="Menlo Regular"]#[/font]
    [font="Menlo Regular"]# This file contains the names of kernel modules that should be loaded[/font]
    [font="Menlo Regular"]# at boot time, one per line. Lines beginning with "#" are ignored.[/font]
    [font="Menlo Regular"]# Parameters can be specified after the module name.[/font]
    [font="Menlo Regular"] [/font]
    [font="Menlo Regular"]snd-bcm2835[/font]
    [font="Menlo Regular"] [/font]
    [font="Menlo Regular"]wire[/font]
    [font="Menlo Regular"]w1-gpio pullup=1[/font]
    [font="Menlo Regular"]w1-therm[/font]
    [font="Menlo Regular"] [/font]
    [font="Menlo Regular"]i2c_dev[/font]
    [font="Menlo Regular"]i2c-bcm2708[/font]
    [font="Menlo Regular"]pi@raspberrypi[/font] [font="Menlo Regular"]~ $[/font]


    zu 2)
    ist leer
    [font="Menlo Regular"] [/font]
    [font="Menlo Regular"]pi@raspberrypi[/font] [font="Menlo Regular"]~ $[/font][font="Menlo Regular"] cat /etc/modprobe.d/raspi-blacklist.conf[/font]
    [font="Menlo Regular"]pi@raspberrypi[/font] [font="Menlo Regular"]~ $[/font]


    zu 3)
    [font="Menlo Regular"]pi@raspberrypi[/font] [font="Menlo Regular"]~ $[/font][font="Menlo Regular"] cat /boot/config.txt | grep i2c[/font]
    [font="Menlo Regular"]#dtparam=[/font][font="Menlo Regular"]i2c[/font][font="Menlo Regular"]_arm=on[/font]
    [font="Menlo Regular"]dtparam=[/font][font="Menlo Regular"]i2c[/font][font="Menlo Regular"]_arm=on[/font]
    [font="Menlo Regular"]dtparam=[/font][font="Menlo Regular"]i2c[/font][font="Menlo Regular"]1=on[/font]
    [font="Menlo Regular"]dtparam=[/font][font="Menlo Regular"]i2c[/font][font="Menlo Regular"]0=on[/font]
    [font="Menlo Regular"]pi@raspberrypi[/font] [font="Menlo Regular"]~ $[/font]

    mMn sieht das doch gut aus oder?

    Liebe Grüße
    Helmut

  • Hallo Helmut,

    kurze Anmerkung: Bitte nicht die Ausgaben von Programmen aufwändig formatieren... Das Wesentliche geht sonst bei einer Antwort unter...



    Zu 1)
    pi@raspberrypi
    i2c_dev

    In der von Dir verlinkten Anleitung steht

    Code
    i2c-dev



    zu 2)
    ist leer


    :thumbs1:


    :s Nutzest Du nun I2C0 oder I2C1 (= GPIO2+GPIO3)? Ich kenne nur I2C1...

    Beste Grüße

    Andreas

    Ich bin wirklich nicht darauf aus, Microsoft zu zerstören. Das wird nur ein völlig unbeabsichtigter Nebeneffekt sein.
    Linus Torvalds - "Vater" von Linux

    Linux is like a wigwam, no windows, no gates, but with an apache inside dancing samba, very hungry eating a yacc, a gnu and a bison.

    Einmal editiert, zuletzt von Andreas (18. April 2016 um 18:12)

  • Servus
    da bin ich Depp jetzt schon eine Zeit drüber geflogen - sorry
    So siehts jetzt aus

    [font="Menlo"]i2c-dev[/font]

    [font="Menlo"]i2c-bcm2708[/font]

    [font="Menlo"][font="Menlo"]dtparam=i2c_arm=on[/font]

    [font="Menlo"]dtparam=i2c1=on[/font][/font]

    [font="Menlo"][font="Menlo"]Und das habe ich noch in der /boot/cmdline.txt eingetragen damit der 5er Pfosten erkannt wird[/font][/font]
    [font="Menlo"][font="Menlo"][font="Menlo"]bcm2708.vc_i2c_override=1[/font][/font][/font]

    [font="Menlo"][font="Menlo"][font="Menlo"]SCL hängt auf 5 und SDA auf 3[/font][/font][/font]

    [font="Menlo"][font="Menlo"][font="Menlo"]Wenn ich jetzt aber ein i2cdetect -y 1 starte wird noch immer nichts angezeigt??[/font][/font][/font]


    [font="Menlo"][font="Menlo"][font="Menlo"]Bin jetzt verwirrt-[/font][/font][/font]
    [font="Menlo"][font="Menlo"][font="Menlo"]in der CommandRef stehen die Module mit Bindestrich, in der Fehlermeldung aber mit Unterstrich???[/font][/font][/font]
    [font="Menlo"][font="Menlo"][font="Menlo"]Habt jetzt in /etc/modules mal auf Unterstrichgeändert. Ohne Erfolg :@ :@[/font][/font][/font]

    [font="Menlo"][font="Menlo"][font="Menlo"]Danke für deine Hilfe[/font][/font][/font]
    [font="Menlo"][font="Menlo"][font="Menlo"]Liebe Grüße[/font][/font][/font]
    [font="Menlo"][font="Menlo"][font="Menlo"]Helmut[/font][/font][/font]

    Einmal editiert, zuletzt von Helmi55 (18. April 2016 um 18:47)

  • Wo kommt denn bitte der Parameter i2c1=on her? Bitte mal die README in der boot/overlays lesen! Alles andere ist ein unzulässiger Mischmasch aus alten und neuen Methoden. Also alles Rückgängig machen und ausschließlich device tree nutzen. Nicht vergessen, wenn Ihr mit dem user Pi arbeitet den in die Gruppe i2c zu bringen. Am einfachsten ist es aber wirklich, raspi-config zu nutzen. 9 Advanced Options -> A7 I2C, Frage mit Yes beantworten, danach reboot und alles ist gut.

  • Servus
    also ich habe die Einträge in der boot-confg wieder gelöscht.
    Dann habe ich den Punkt8 Advanced Options A7 i2c gesetzt und mit Ja beantwortet - Reboot gemacht.
    Die Module habe ich nicht angerührt? User Pi ist in i2c auch der user fhem.
    Auch jetzt bekomme ich nichts in der i2cdetect angezeigt??

    PS kannst du mir bitte sagen wo ich die README boot/overlays finde?
    Danke

  • Guten Morgen
    nur Striche - keine Fehlermeldung

    Bild der Schaltung folgt.
    Ich habe noch eine leere SD Karte, da werde ich nochmals das Betriebssystem aufspielen und nur wie von dir beschrieben
    den Treiber aktivieren
    Schönen Tag Helmut
    Automatisch zusammengefügt:
    Und hier 2 Bilder der Verkabelung

  • So habe jetzt auf einer neuen leeren SD Karte nochmals whizzy aufgesetzt und update ausgeführt.
    In der raspi-config zeitzone und tastaturlayaout eingestellt.
    DT enabled und i2c geladen.
    Reblot und danach die /etc/modules gecheckt - waren die i2c Module nicht vorhanden.
    Händisch eingetragen und mit modprobe geladen
    Blacklist war leer
    In der boot/config war dieser Eintrag am Ende vorhanden: [font="Menlo"]dtparam=i2c_arm=on[/font]
    [font="Menlo"]Mit sudo i2cdetect -y 1 bekomme ich wieder nur Striche angezeigt?[/font]
    [font="Menlo"][font="Menlo"]pi@raspberrypi ~ $ sudo i2cdetect -y 1[/font]
    [/font]
    [font="Menlo"] 0 1 2 3 4 5 6 7 8 9 a b c d e f[/font]

    [font="Menlo"]00: -- -- -- -- -- -- -- -- -- -- -- -- -- [/font]

    [font="Menlo"]10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- [/font]

    [font="Menlo"]20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- [/font]

    [font="Menlo"]30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- [/font]

    [font="Menlo"]40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- [/font]

    [font="Menlo"]50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- [/font]

    [font="Menlo"]60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- [/font]
    [font="Menlo"][font="Menlo"]70: -- -- -- -- -- -- -- -- [/font][/font]

    [font="Menlo"][font="Menlo"]Was ist hier bitte los? Was mache ich falsch oder übersehe ich??[/font][/font]

    [font="Menlo"][font="Menlo"]Danke und Gruß[/font][/font]
    [font="Menlo"][font="Menlo"]Helmut[/font][/font]

  • So jetzt habe ich noch sudo adduser pi i2c gemacht - das war schon ok.

    Dann noch den Pfosten 5 und der /boot/cmdline.txt mit bcm2708.vc_i2c_override=1 aktiviert.

    Neustart

    :wallbash: :wallbash: :wallbash: :wallbash: :@ :@ :@ :@

    Wer hilft mir mit weiteren Tips -

    [font="Menlo"]pi@raspberrypi ~ $ sudo i2cdetect -y 1[/font]
    [font="Menlo"] 0 1 2 3 4 5 6 7 8 9 a b c d e f[/font]
    [font="Menlo"]00: -- -- -- -- -- -- -- -- -- -- -- -- -- [/font]
    [font="Menlo"]10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- [/font]
    [font="Menlo"]20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- [/font]
    [font="Menlo"]30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- [/font]
    [font="Menlo"]40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- [/font]
    [font="Menlo"]50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- [/font]
    [font="Menlo"]60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- [/font]
    [font="Menlo"]70: -- -- -- -- -- -- -- -- [/font]

    [font="Menlo"]Danke und Nice eve[/font]

  • Servus,
    wo gehen denn bei Deiner Schaltung Masse und 5V des Moduls hin?
    Sind die Massen vom RPi und dem Modul verbunden?
    Hast Du mal verifiziert, dass das Modul auch keine pullups nach 5V verbaut hat (nicht, dass Du Dir den IIC-Bus abgeschossen hast) ?
    Hast Du ein anderes IIC-Modul, z.B. einen BMP085, den Du mal testweise einschleifen kannst?

    cu,
    -ds-

  • Hallo guten Abend,
    also ich habe die Teile gekauft und ein guter Freund aus einem Nachbarforum (FHEM) hat sie mir zusammengelötet.
    Es handelt sich um folgende Teile
    http://www.atlas-scientific.com/product_pages/circuits/ezo_ph.html und
    http://www.atlas-scientific.com/product_pages/…ts/pwr-iso.html

    Plus und Minus kommen von einem eigenen Hutschienen Netzteil

    Verstehe ich das richtig, plus vom Netzteil auf das Modul und GND von Modul zu RPI??

    Ich habe leider nix anderes zum Testen....

    Gruß
    Helmut

  • Hi,
    GND Modul und GND RPi müssen verbunden sein, ja, die beiden brauchen ja ein gemeinsames Bezugspotential.
    Sonst würd das nüscht :)

    ... wird Zeit, dass wir hier mal eine Lösung finden ;)

    Edit meint noch: Ein Foto der Schaltung ist für mich nur eine Notlösung. Da geht so was schon mal unter. Lieber, -> wie hier beschrieben, <- einen Schaltplan zeichnen.

    ciao,
    -ds-

  • Servus
    so die Verkabelung ist nun wie folgt:
    Plus vom Hutschienennetzteil auf das Modul (5V)
    GND von RPI (Pin6) auf GND Modul
    SDA von Pin 3 auf Modul
    und SCL von Pin 5 auf Modul

    Neustart, aber die i2c Tools zeigen wieder nichts an?

    Jetzt leuchtet auch das blaue Lämpchen am Modul nicht mehr :wallbash:

Jetzt mitmachen!

Du hast noch kein Benutzerkonto auf unserer Seite? Registriere dich kostenlos und nimm an unserer Community teil!