Ankündigung

Einklappen
Keine Ankündigung bisher.

Smarthome.pi auf Raspberry Pi 2 + ROT a RTC-OneWire-TPUART extension for Raspberry Pi

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Smarthome.pi auf Raspberry Pi 2 + ROT a RTC-OneWire-TPUART extension for Raspberry Pi

    Hallo zusammen,

    Ich habe Jahrelang einen Pi1 für diesen Zweck genommen, nun bin ich dabei alles auf dem Pi2 zu bringen. Nachdem ich das Image auf dem Pi1 geupdatet habe mit:

    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install binutils curl
    sudo rpi-update

    , kann man die selbe SD Karte auch vom PI2 starten.
    Jetzt war das zweite Problem das die ROT-Extension Karte nicht auf den Pi2 passt, da einige Komponenten anders angeortnet sind. Ich habe mir jetzt eine PIN Verlängerung dazwischen gesetzt so das die ROT-Extension etwas höher sitzt und somit über den Komponenten hängt, die PIN belegung ist die selbe wie beim Pi1.
    Der Pi2 bootet nun auch aber irgendwie scheint der Pi2 das ROT Device anders zu erkennen so das die Standarteinstellungen nicht funktionieren, also ich bekomme nix vom EIB Bus.

    Kann mir wer helfen das ROT Device auf dem PI2 wieder einzuhängen in smarthome.py, oder zu analysieren woran es liegt?

    Grüße,
    nano

    #2
    Die ROT Extension ist nicht "Das Device" - Es sind mehrere.
    Welches geht denn nicht? RTC? 1wire? KNX?

    Vergleich mal die Anbindung der Peripherie, ob die identisch ist. Haben beide den gleichen SPI Controller und ist der gleiche BUS ausgeführt?

    Code:
    [COLOR=#2B2B2B][FONT=monospace]i2cdetect -l[/FONT][/COLOR]
    Code:
    [COLOR=#2B2B2B][FONT=monospace]i2cdetect -y X (wobei x der entsprechende BUS ist)[/FONT][/COLOR]

    Kommentar


      #3
      Zitat von DerSeppel Beitrag anzeigen

      Vergleich mal die Anbindung der Peripherie, ob die identisch ist. Haben beide den gleichen SPI Controller und ist der gleiche BUS ausgeführt?

      Code:
      [COLOR=#2B2B2B][FONT=monospace]i2cdetect -l[/FONT][/COLOR]
      Code:
      [COLOR=#2B2B2B][FONT=monospace]i2cdetect -y X (wobei x der entsprechende BUS ist)[/FONT][/COLOR]
      Bei mir fast das selbes Problem.
      Mit dem Code :
      Code:
      [COLOR=#2B2B2B][FONT=monospace]i2cdetect -l[/FONT][/COLOR]
      zeigt es nichts an.



      Code:
      root@smarthome.local:smarthome#  i2cdetect -r
      Error: No i2c-bus specified!
      Usage: i2cdetect [-y] [-a] [-q|-r] I2CBUS [FIRST LAST]
             i2cdetect -F I2CBUS
             i2cdetect -l
        I2CBUS is an integer or an I2C bus name
        If provided, FIRST and LAST limit the probing range.
      root@smarthome.local:smarthome#  i2cdetect -l
      root@smarthome.local:smarthome#
      Woran kann es liegen ?

      Kommentar


        #4
        i2c treiber geladen?

        Code:
         i2c-bcm2708 i2c-dev
        zur /etc/modules hinzufügen, testweise mal mit modprobe laden.

        und dann noch mal in der /boot/config.txt schauen ob

        Code:
         dtparam=i2c1=on dtparam=i2c_arm=on
        gesetzt ist.

        Danach Reboot.

        Auf meinem Bananapi ging es glaube ich so:

        i2c-dev in die /etc/modules eintragen (vorher ggf. mit sudo apt-get install libi2c-dev python-smbus i2c-tools installieren)
        Zuletzt geändert von DerSeppel; 10.03.2016, 08:38.

        Kommentar


          #5
          folgende Meldung

          Code:
          root@smarthome.local:smarthome# i2c-bcm2708 i2c-dev
          -bash: i2c-bcm2708: command not found
          n-smbus i2c-toolscal:smarthome# sudo apt-get install libi2c-dev pytho
          Reading package lists... Done
          Building dependency tree... Done
          Package libi2c-dev is not available, but is referred to by another package.
          This may mean that the package is missing, has been obsoleted, or
          is only available from another source
          
          Package python-smbus is not available, but is referred to by another package.
          This may mean that the package is missing, has been obsoleted, or
          is only available from another source
          
          E: Package 'libi2c-dev' has no installation candidate
          E: Package 'python-smbus' has no installation candidate
          root@smarthome.local:smarthome#
          Code:
          admin@smarthome:/usr/smarthome$ i2c-bcm2708 i2c-dev
          -bash: i2c-bcm2708: command not found
          You do not have permission to view this gallery.
          This gallery has 1 photos.
          Zuletzt geändert von Alex2500; 10.03.2016, 10:17.

          Kommentar


            #6
            Nach eingabe diesen Codes, zeigt es an.

            Code:
            sudo apt-get update
            sudo apt-get upgrade
            sudo apt-get install binutils curl
            sudo rpi-update
            Code:
            root@smarthome.local:smarthome# sudo apt-get update
            Get:1 http://archive.raspbian.org wheezy Release.gpg [490 B]
            Get:2 http://archive.raspbian.org wheezy Release [14.4 kB]
            Get:3 http://archive.raspbian.org wheezy/main armhf Packages [6,909 kB]
            Get:4 http://archive.raspbian.org wheezy/contrib armhf Packages [23.6 kB]
            Get:5 http://archive.raspbian.org wheezy/non-free armhf Packages [49.3 kB]
            Ign http://archive.raspbian.org wheezy/contrib Translation-en_US
            Ign http://archive.raspbian.org wheezy/contrib Translation-en
            Ign http://archive.raspbian.org wheezy/contrib Translation-en_US.UTF-8
            Ign http://archive.raspbian.org wheezy/main Translation-en_US
            Ign http://archive.raspbian.org wheezy/main Translation-en
            Ign http://archive.raspbian.org wheezy/main Translation-en_US.UTF-8
            Ign http://archive.raspbian.org wheezy/non-free Translation-en_US
            Ign http://archive.raspbian.org wheezy/non-free Translation-en
            Ign http://archive.raspbian.org wheezy/non-free Translation-en_US.UTF-8
            Fetched 6,997 kB in 42s (165 kB/s)
            Reading package lists... Done
            root@smarthome.local:smarthome# sudo apt-get upgrade
            Reading package lists... Done
            Building dependency tree... Done
            The following packages have been kept back:
              php5-cgi php5-common
            The following packages will be upgraded:
              apt base-files bash bind9-host ca-certificates cpio dbus dnsutils dosfstools
              dpkg e2fslibs e2fsprogs gnupg gpgv initramfs-tools isc-dhcp-client
              isc-dhcp-common libapt-pkg4.12 libbind9-80 libc-bin libc6 libcomerr2
              libcups2 libcurl3-gnutls libdbus-1-3 libdns88 libexpat1 libfreetype6
              libgcrypt11 libgnutls26 libgssapi-krb5-2 libisc84 libisccc80 libisccfg82
              libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 liblwres80
              libmagic1 libpam-smbpass libpixman-1-0 libpng12-0 libsqlite3-0 libss2
              libssh2-1 libssl1.0.0 libsvn1 libtasn1-3 libwbclient0 libx11-6 libx11-data
              libxml2 libxrender1 lighttpd locales locales-all lsb-base lsb-release
              mime-support multiarch-support ntp openssh-client openssh-server openssl
              perl perl-base perl-modules python2.7 python2.7-minimal rsyslog samba
              samba-common subversion sudo tzdata wget
            78 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
            Need to get 59.6 MB of archives.
            After this operation, 5,757 kB disk space will be freed.
            Do you want to continue [Y/n]? y
            Abort.
            root@smarthome.local:smarthome# i2cdetect -l
            i2c-0   i2c             bcm2708_i2c.0                           I2C adapter
            i2c-1   i2c             bcm2708_i2c.1                           I2C adapter
            Code:
            root@smarthome.local:smarthome# i2cdetect -l
            i2c-0   i2c             bcm2708_i2c.0                           I2C adapter
            i2c-1   i2c             bcm2708_i2c.1                           I2C adapter
            Code:
            root@smarthome.local:smarthome# i2cdetect -y 0
                 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
            00:          -- -- -- -- -- -- -- -- -- -- -- -- --
            10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
            20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
            30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
            40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
            50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
            60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
            70: -- -- -- -- -- -- -- --
            Code:
            root@smarthome.local:smarthome# i2cdetect -y 1
                 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
            00:          -- -- -- -- -- -- -- -- -- -- -- -- --
            10: -- -- -- -- -- -- -- -- 18 -- -- -- -- -- -- --
            20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
            30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
            40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
            50: 50 51 52 53 54 55 56 57 -- -- -- -- -- -- -- --
            60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
            70: -- -- -- -- -- -- -- --

            Angehängte Dateien

            Kommentar


              #7
              Zitat von Alex2500 Beitrag anzeigen
              folgende Meldung

              [CODE]root@smarthome.local:smarthome# i2c-bcm2708 i2c-dev
              -bash: i2c-bcm2708: command not found
              Vor Copy&Paste bitte komplett lesen.

              Aber scheint ja jetzt zu gehen, oder?

              Kommentar


                #8
                So wie es aussieht, Sensor wurde gefunden.
                Aber smartControl funktioniert nicht mehr.

                Ca seit 20 min hat sich da nichts getan.
                So wie es aussieht, fünktioniert da die SmartHome nicht..
                Angehängte Dateien
                Zuletzt geändert von Alex2500; 10.03.2016, 12:58.

                Kommentar


                  #9
                  Hallo,

                  also ich hab gestern vom PI1 auf den PI3 ein Update gemacht. Ebenfalls mit der GPIO-Verlängerung. Hatte auch sehr viele Probleme. Es läuft aber jetzt.

                  Allerdings die Probleme bei mir hatten mitunter eher mit den Eigenheiten des PI3 und der neuen Debian Version Jessie zu tun. Ich hatte nämlich auch noch ein dist-upgrade gemacht, weil ich unsicher war ob der neue PI3 überhaupt noch sinnvoll unter Wheezy läuft. Habt Ihr auch auf Jessie aktualisiert?

                  Der PI3 hat auf /dev/ttyAMA0 die Bluetooth-Erweiterung gemappt. Die GPIO-Ports des RPI-ROT-Interfaces sind somit standardmässig nun unter /dev/ttyS0 zu finden, man müsste den EIBD dann auf /dev/ttyS0 laufen, was aber aus anderen Gründen wieder Probleme verursacht (clock-speed verursacht baudraten-Änderungen).

                  In meinem Fall hat geholfen den BT-Stack komplett abzuschalten in der /boot/config.txt:

                  dtoverlay=pi3-disable-bt
                  Da es in Jessie keine inittab mehr gibt, wo man getty abschalten kann ist folgendes zu machen:

                  sudo systemctl disable serial-getty@ttyAMA0.service
                  Gruß
                  Paddy

                  Kommentar

                  Lädt...
                  X