Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Rotex HPSU / Daikin Altherma Wärmepumpe über ioBroker.canbus

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    Rotex HPSU / Daikin Altherma Wärmepumpe über ioBroker.canbus

    This topic has been deleted. Only users with topic management privileges can see it.
    • RaspiUser
      RaspiUser @crycode last edited by

      @crycode sagte in Rotex HPSU / Daikin Altherma Wärmepumpe über ioBroker.canbus:

      canbus.0.raw.received irgendwas geschrieben wird

      ... da kommt nix ... 😥

      ad1f4a78-27ff-4a18-83a4-80badc5e5087-grafik.png

      crycode 1 Reply Last reply Reply Quote 0
      • crycode
        crycode Developer @RaspiUser last edited by

        @raspiuser sagte in Rotex HPSU / Daikin Altherma Wärmepumpe über ioBroker.canbus:

        da kommt nix

        Hmm... das heißt dann aber, dass vom Adapter gar keine eingehenden Nachrichten gesehen werden.
        Kannst du mal einen candump auf das Interface auf beiden Raspis laufen lassen und dabei in den canbus.0.raw.send State {"id": 42, "data": [0]} schreiben? Eigentlich sollte vom candump dann eine Nachricht mit ID 2A und Daten 0 geloggt werden.

        Wenn das auch nicht klappt, dann stimmt irgendwas in deiner Konfiguration nicht.

        RaspiUser 1 Reply Last reply Reply Quote 0
        • RaspiUser
          RaspiUser @crycode last edited by

          @crycode sagte in Rotex HPSU / Daikin Altherma Wärmepumpe über ioBroker.canbus:

          Wenn das auch nicht klappt, dann stimmt irgendwas in deiner Konfiguration nicht.

          ... das befürchte ich langsam auch ... nachdem ich weiter oben schon den dämlichen copy&paste-Fehler gemacht hatte ...
          Hier das Ergebnis von deinem letzten Vorschlag, paßt so ?

          RAW.jpg
          CAN.jpg

          Der Pi Zero, der an der Wärmepumpe sitzt, das scheint also i.O., richtig ?
          Ich schaue mir jetzt die Installation auf dem ioBroker Pi an ... oder kannst Du den Fehler eingrenzen ?

          crycode 1 Reply Last reply Reply Quote 0
          • crycode
            crycode Developer @RaspiUser last edited by

            @raspiuser Also die Kommunikation vom Adapter zur vcan0 Schnittstelle scheint schon mal zu funktionieren. Aber die Verbindung zwischen den beiden Raspis über Cannelloni nicht.
            Läuft denn auf beiden System der jeweilige SystemD-Service?
            sudo systemctl status cannelloni-can0.service auf ioBroker-Zero
            sudo systemctl status cannelloni-vcan0.service auf ioBroker-Raspi
            Sind bei beiden die richtigen Remote-IP-Adressen eingetragen?

            RaspiUser 1 Reply Last reply Reply Quote 1
            • RaspiUser
              RaspiUser @crycode last edited by

              @crycode sagte in Rotex HPSU / Daikin Altherma Wärmepumpe über ioBroker.canbus:

              Sind bei beiden die richtigen Remote-IP-Adressen eingetragen?

              .... jein ... die Bit Rate stand auf 500kbit statt auf 20 ...

              Ich Trottel habe meine eigene Anleitung nicht richtig umgesetzt .... 😠 😰 🤒
              Ich war der Meinung (#339), Adapter grün = alles gut ...

              Vielen vielen Dank, dass Du dir die Zeit genommen hast !!!!!!! 👍

              1 Reply Last reply Reply Quote 1
              • Elektroniker86
                Elektroniker86 last edited by

                Guten Abend,

                das setzten der Werte klappt irgendwie nicht mehr. Ich weiß nicht genau seit wann es nicht mehr funktioniert ich ändere nicht ständig die Werte der Anlage.
                Das abfragen funktioniert anscheinend. die Temperaturen passen und der aktuelle Betriebsmodus passt auch. Ich glaube es stimmt nur etwas mit dem setzen nicht. Wollte die Raumtemperatur 1 um 1 Grad erhöhen. Aber die WP bekommt den Wert nicht mit wenn ich es an der Anlage ändere dann bekommt es der Can Adapter mitgeteilt. Hat sich vielleicht was geändert bei nem Update?
                Hier die konfig:

                Screenshot 2024-01-18 192915.png

                Screenshot 2024-01-18 192843.png

                Screenshot 2024-01-18 192934.png

                Ich habe mehrere Datenpunkte ausprobiert, das Setzen funktioniert bei keinem der ausprobierten Datenpunkte.

                Vielen Dank im voraus!

                C crycode 2 Replies Last reply Reply Quote 0
                • C
                  cb187 @Elektroniker86 last edited by

                  @elektroniker86

                  Hat sich was an deinem Setup geändert?
                  Zb mal die Rotex zurück gesetzt oder andere Sachen?

                  Elektroniker86 1 Reply Last reply Reply Quote 0
                  • RaspiUser
                    RaspiUser last edited by

                    @crycode
                    ... ich benötiege (wieder einmal) deinen Sachverstand ...:

                    Da mein Raspi Pi (bzgl. Hardware) an seine Grenzen kam bin ich in eine QNAP VM umgezogen.

                    • neue IP der VM im Raspi Zero can0 (der an der Wärmepumoe) geändert, sonst ist ja dort nix passiert ...
                    • komplette neue Installation gemäß "Anleitung" (incl. IP des Zero und ohne copy&Paste Fehler 🙄 ) auf dem vcan0 in der VM ...
                    • der Adapter ist grün, die Befehle candump -tA -x can0 bzw. ...vcan0 zeigen jede Menge Daten, aber es kommt im ioBroker nix an.

                    Muss man in einer virtuellen ioBroker Umgebung an der cannelloni-vcan0.service etwas ändern ?!
                    Der Status gibt zumindest eine Fehlermeldung aus ... 🤷‍♂️

                    iobroker@VM-ioBroker:~$ sudo systemctl status cannelloni-vcan0.service
                    ● cannelloni-vcan0.service - Cannelloni for vcan0
                        Loaded: loaded (/etc/systemd/system/cannelloni-vcan0.service; enabled; preset: enabled)
                        Active: activating (auto-restart) (Result: exit-code) since Fri 2024-01-19 09:37:43 CET; 713ms ago
                       Process: 52896 ExecStart=/usr/local/bin/cannelloni -I vcan0 -R 192.168.178.92 (code=exited, status=203/EXEC)
                      Main PID: 52896 (code=exited, status=203/EXEC)
                           CPU: 1ms
                    
                    Jan 19 09:37:43 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Main process exited, code=exited, status=203/EXEC
                    Jan 19 09:37:43 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Failed with result 'exit-code'.
                    iobroker@VM-ioBroker:~$ sudo nano /etc/systemd/system/cannelloni-vcan0.service
                     GNU nano 7.2                                   /etc/systemd/system/cannelloni-vcan0.service
                    [Unit]
                    Description=Cannelloni for vcan0
                    After=network.target
                    Requires=vcan0-setup.service
                    
                    [Service]
                    ExecStart=/usr/local/bin/cannelloni -I vcan0 -R 192.168.178.92
                    Environment=LD_LIBRARY_PATH=/usr/local/lib
                    Restart=always
                    RestartSec=3s
                    User=nobody
                    Group=nogroup
                    
                    [Install]
                    WantedBy=multi-user.target
                    
                    

                    Wieder ein Flüchtigkeitsfehler ?!

                    C crycode 2 Replies Last reply Reply Quote 0
                    • C
                      cb187 @RaspiUser last edited by

                      @raspiuser du tust dir aber auch immer stress an mit diesem Canneloni🤣

                      RaspiUser 1 Reply Last reply Reply Quote 0
                      • RaspiUser
                        RaspiUser @cb187 last edited by

                        @cb187 sagte in Rotex HPSU / Daikin Altherma Wärmepumpe über ioBroker.canbus:

                        stress an mit diesem Canneloni

                        ... aber ein Kabel zwischen Raspi ud VM wäre noch mehr Stress ... sagt meine Frau ... 😳

                        C 1 Reply Last reply Reply Quote 0
                        • C
                          cb187 @RaspiUser last edited by

                          @raspiuser ne kein kabel.

                          RaspiUser 1 Reply Last reply Reply Quote 0
                          • RaspiUser
                            RaspiUser @cb187 last edited by

                            @cb187 sagte in Rotex HPSU / Daikin Altherma Wärmepumpe über ioBroker.canbus:

                            @raspiuser ne kein kabel.

                            ... was meinst Du ?!

                            1 Reply Last reply Reply Quote 0
                            • Elektroniker86
                              Elektroniker86 @cb187 last edited by

                              @cb187

                              Nee die Anlage habe ich jetzt nicht neu gestartet dafür den Rest, was davon abhängt natürlich da ich die Werte aus der Anlage auslesen kann, denke ich liegt es vielleicht an was anderem ......?

                              Adapter sieht nämlich seit dem ich das eingerichtet habe vor knapp 2 Jahren ein bisschen anders aus. Deshalb dachte ich nur.

                              C 1 Reply Last reply Reply Quote 0
                              • C
                                cb187 @Elektroniker86 last edited by

                                @elektroniker86

                                Mhm komisch.Also die ids usw sind alles gleich geblieben im Adapter.Habe die auch für mein projekt verwendet.

                                1 Reply Last reply Reply Quote 0
                                • crycode
                                  crycode Developer @RaspiUser last edited by

                                  @raspiuser sagte in Rotex HPSU / Daikin Altherma Wärmepumpe über ioBroker.canbus:

                                  ... ich benötiege (wieder einmal) deinen Sachverstand ...

                                  Scheint als würde der Service nicht starten (können).

                                  Schau mal sudo journalctl -u cannelloni-vcan0.service ob er da irgendwelche Fehler meldet.

                                  Ansonsten versuch mal per Hand den cannelloni zu starten: cannelloni -I vcan0 -R 192.168.178.92

                                  RaspiUser 1 Reply Last reply Reply Quote 1
                                  • crycode
                                    crycode Developer @Elektroniker86 last edited by

                                    @elektroniker86 Am Adapter hat sich seit längerem nichts wirklich geändert. Die Konfiguration wird zudem auch nur aktualisiert, wenn du das aktiv durch z.B. einen erneuten Import anstößt.
                                    Eventuell mal wirklich versuchen die Anlage neu zu starten.

                                    1 Reply Last reply Reply Quote 0
                                    • RaspiUser
                                      RaspiUser @crycode last edited by

                                      @crycode sagte in Rotex HPSU / Daikin Altherma Wärmepumpe über ioBroker.canbus:

                                      Scheint als würde der Service nicht starten (können).

                                      Danke, dass Du Dich kümmerst ...

                                      Hier das Resultat beider Befehle:

                                      iobroker@VM-ioBroker:~$ sudo journalctl -u cannelloni-vcan0.service
                                      Jan 11 14:56:11 VM-ioBroker systemd[1]: [🡕] /etc/systemd/system/cannelloni-vcan0.service:11: Special user nobody configured, this is not safe!
                                      Jan 11 14:56:33 VM-ioBroker (nnelloni)[1308]: cannelloni-vcan0.service: Failed to locate executable /usr/local/bin/cannelloni: No such file or directory
                                      Jan 11 14:56:33 VM-ioBroker systemd[1]: Started cannelloni-vcan0.service - Cannelloni for vcan0.
                                      Jan 11 14:56:33 VM-ioBroker (nnelloni)[1308]: cannelloni-vcan0.service: Failed at step EXEC spawning /usr/local/bin/cannelloni: No such file or directory
                                      Jan 11 14:56:33 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Main process exited, code=exited, status=203/EXEC
                                      Jan 11 14:56:33 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Failed with result 'exit-code'.
                                      Jan 11 14:56:36 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Scheduled restart job, restart counter is at 1.
                                      Jan 11 14:56:36 VM-ioBroker systemd[1]: Stopped cannelloni-vcan0.service - Cannelloni for vcan0.
                                      Jan 11 14:56:36 VM-ioBroker systemd[1]: Started cannelloni-vcan0.service - Cannelloni for vcan0.
                                      Jan 11 14:56:36 VM-ioBroker (nnelloni)[1309]: cannelloni-vcan0.service: Failed to locate executable /usr/local/bin/cannelloni: No such file or directory
                                      Jan 11 14:56:36 VM-ioBroker (nnelloni)[1309]: cannelloni-vcan0.service: Failed at step EXEC spawning /usr/local/bin/cannelloni: No such file or directory
                                      Jan 11 14:56:36 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Main process exited, code=exited, status=203/EXEC
                                      Jan 11 14:56:36 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Failed with result 'exit-code'.
                                      Jan 11 14:56:39 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Scheduled restart job, restart counter is at 2.
                                      Jan 11 14:56:39 VM-ioBroker systemd[1]: Stopped cannelloni-vcan0.service - Cannelloni for vcan0.
                                      Jan 11 14:56:40 VM-ioBroker systemd[1]: Started cannelloni-vcan0.service - Cannelloni for vcan0.
                                      Jan 11 14:56:40 VM-ioBroker (nnelloni)[1310]: cannelloni-vcan0.service: Failed to locate executable /usr/local/bin/cannelloni: No such file or directory
                                      Jan 11 14:56:40 VM-ioBroker (nnelloni)[1310]: cannelloni-vcan0.service: Failed at step EXEC spawning /usr/local/bin/cannelloni: No such file or directory
                                      Jan 11 14:56:40 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Main process exited, code=exited, status=203/EXEC
                                      Jan 11 14:56:40 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Failed with result 'exit-code'.
                                      Jan 11 14:56:43 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Scheduled restart job, restart counter is at 3.
                                      Jan 11 14:56:43 VM-ioBroker systemd[1]: Stopped cannelloni-vcan0.service - Cannelloni for vcan0.
                                      Jan 11 14:56:43 VM-ioBroker systemd[1]: Started cannelloni-vcan0.service - Cannelloni for vcan0.
                                      Jan 11 14:56:43 VM-ioBroker (nnelloni)[1315]: cannelloni-vcan0.service: Failed to locate executable /usr/local/bin/cannelloni: No such file or directory
                                      Jan 11 14:56:43 VM-ioBroker (nnelloni)[1315]: cannelloni-vcan0.service: Failed at step EXEC spawning /usr/local/bin/cannelloni: No such file or directory
                                      Jan 11 14:56:43 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Main process exited, code=exited, status=203/EXEC
                                      Jan 11 14:56:43 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Failed with result 'exit-code'.
                                      Jan 11 14:56:46 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Scheduled restart job, restart counter is at 4.
                                      Jan 11 14:56:46 VM-ioBroker systemd[1]: Stopped cannelloni-vcan0.service - Cannelloni for vcan0.
                                      Jan 11 14:56:46 VM-ioBroker systemd[1]: Started cannelloni-vcan0.service - Cannelloni for vcan0.
                                      Jan 11 14:56:46 VM-ioBroker (nnelloni)[1316]: cannelloni-vcan0.service: Failed to locate executable /usr/local/bin/cannelloni: No such file or directory
                                      Jan 11 14:56:46 VM-ioBroker (nnelloni)[1316]: cannelloni-vcan0.service: Failed at step EXEC spawning /usr/local/bin/cannelloni: No such file or directory
                                      Jan 11 14:56:46 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Main process exited, code=exited, status=203/EXEC
                                      Jan 11 14:56:46 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Failed with result 'exit-code'.
                                      Jan 11 14:56:49 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Scheduled restart job, restart counter is at 5.
                                      Jan 11 14:56:49 VM-ioBroker systemd[1]: Stopped cannelloni-vcan0.service - Cannelloni for vcan0.
                                      Jan 11 14:56:49 VM-ioBroker systemd[1]: Started cannelloni-vcan0.service - Cannelloni for vcan0.
                                      Jan 11 14:56:49 VM-ioBroker (nnelloni)[1317]: cannelloni-vcan0.service: Failed to locate executable /usr/local/bin/cannelloni: No such file or directory
                                      Jan 11 14:56:49 VM-ioBroker (nnelloni)[1317]: cannelloni-vcan0.service: Failed at step EXEC spawning /usr/local/bin/cannelloni: No such file or directory
                                      Jan 11 14:56:49 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Main process exited, code=exited, status=203/EXEC
                                      Jan 11 14:56:49 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Failed with result 'exit-code'.
                                      Jan 11 14:56:52 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Scheduled restart job, restart counter is at 6.
                                      Jan 11 14:56:52 VM-ioBroker systemd[1]: Stopped cannelloni-vcan0.service - Cannelloni for vcan0.
                                      Jan 11 14:56:53 VM-ioBroker systemd[1]: Started cannelloni-vcan0.service - Cannelloni for vcan0.
                                      Jan 11 14:56:53 VM-ioBroker (nnelloni)[1318]: cannelloni-vcan0.service: Failed to locate executable /usr/local/bin/cannelloni: No such file or directory
                                      Jan 11 14:56:53 VM-ioBroker (nnelloni)[1318]: cannelloni-vcan0.service: Failed at step EXEC spawning /usr/local/bin/cannelloni: No such file or directory
                                      Jan 11 14:56:53 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Main process exited, code=exited, status=203/EXEC
                                      Jan 11 14:56:53 VM-ioBroker systemd[1]: cannelloni-vcan0.service: Failed with result 'exit-code'.
                                      
                                      iobroker@VM-ioBroker:~$ cannelloni -I vcan0 -R 192.168.178.92
                                      -bash: cannelloni: Kommando nicht gefunden.
                                      iobroker@VM-ioBroker:~$
                                      
                                      

                                      Was mir als "Nicht-LINUX-Kenner" noch auffällt:
                                      Nachdem ersten "sudo"-Befehl verlangt die VM einmalig das Passwort ... 🤷‍♂️

                                      crycode 1 Reply Last reply Reply Quote 0
                                      • crycode
                                        crycode Developer @RaspiUser last edited by

                                        @raspiuser sagte in Rotex HPSU / Daikin Altherma Wärmepumpe über ioBroker.canbus:

                                        /usr/local/bin/cannelloni: No such file or directory

                                        Es gibt offenbar cannelloni nicht. Kann es sein, dass du vergessen hast, das zu kompilieren/installieren? 😉

                                        Dass sudo dein Benutzerpasswort braucht ist unter Linux eigentlich normal. Nur auf dem Raspi ist das vereinfacht. 😄

                                        RaspiUser 1 Reply Last reply Reply Quote 1
                                        • RaspiUser
                                          RaspiUser @crycode last edited by

                                          @crycode sagte in Rotex HPSU / Daikin Altherma Wärmepumpe über ioBroker.canbus:

                                          Kann es sein, dass du vergessen hast ....

                                          Mitterweile glaube ich, dass ich zu jedem Fehler fähig bin ... 🤒 🤕 😵 😰

                                          Ich habe diese Befehle (nochmal?) eingegeben ...

                                          sudo apt install can-utils
                                          sudo apt install build-essential cmake git   
                                          git clone https://github.com/mguentner/cannelloni.git
                                          cd cannelloni
                                          cmake -DCMAKE_BUILD_TYPE=Release
                                          make      
                                          sudo make install
                                          

                                          Das kam raus ... (als LINUX-Laie sehe ich, dass da etwas nicht simmt ... aber wie beheben ...)

                                          login as: iobroker
                                          iobroker@192.168.178.120's password:
                                          Linux VM-ioBroker 6.1.0-13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09                                     -29) x86_64
                                          
                                          The programs included with the Debian GNU/Linux system are free software;
                                          the exact distribution terms for each program are described in the
                                          individual files in /usr/share/doc/*/copyright.
                                          
                                          Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
                                          permitted by applicable law.
                                          Last login: Sun Jan 21 11:19:53 2024 from 192.168.178.67
                                          iobroker@VM-ioBroker:~$ iob stop
                                          iobroker@VM-ioBroker:~$ sudo apt install can-utils
                                          Paketlisten werden gelesen… Fertig
                                          Abhängigkeitsbaum wird aufgebaut… Fertig
                                          Statusinformationen werden eingelesen… Fertig
                                          can-utils ist schon die neueste Version (2020.11.0-1).
                                          0 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.
                                          iobroker@VM-ioBroker:~$ sudo apt install build-essential cmake git
                                          Paketlisten werden gelesen… Fertig
                                          Abhängigkeitsbaum wird aufgebaut… Fertig
                                          Statusinformationen werden eingelesen… Fertig
                                          build-essential ist schon die neueste Version (12.9).
                                          cmake ist schon die neueste Version (3.25.1-1).
                                          git ist schon die neueste Version (1:2.39.2-1.1).
                                          0 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.
                                          iobroker@VM-ioBroker:~$ git clone https://github.com/mguentner/cannelloni.git
                                          Schwerwiegend: Zielpfad 'cannelloni' existiert bereits und ist kein leeres Verzeichnis.
                                          iobroker@VM-ioBroker:~$ cd cannelloni
                                          iobroker@VM-ioBroker:~/cannelloni$ cmake -DCMAKE_BUILD_TYPE=Release
                                          CMake Warning:
                                            No source or binary directory provided.  Both will be assumed to be the
                                            same as the current working directory, but note that this warning will
                                            become a fatal error in future CMake releases.
                                          
                                          
                                          -- Could NOT find SCTP (missing: SCTP_LIBRARY SCTP_INCLUDE_DIR)
                                          -- SCTP not found. cannelloni will be build without SCTP support.
                                          -- Install lksctp-tools for SCTP.
                                          -- Configuring done
                                          -- Generating done
                                          -- Build files have been written to: /home/iobroker/cannelloni
                                          iobroker@VM-ioBroker:~/cannelloni$ make
                                          [  5%] Building CXX object CMakeFiles/addsources.dir/inet_address.cpp.o
                                          In file included from /usr/include/c++/12/string:40,
                                                           from /home/iobroker/cannelloni/inet_address.h:4,
                                                           from /home/iobroker/cannelloni/inet_address.cpp:1:
                                          In static member function ‘static constexpr std::char_traits<char>::char_type* std::char_traits<char>::copy(char_type*, const char_type*, std::size_t)’,
                                              inlined from ‘static constexpr void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_S_copy(_CharT*, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:423:21,
                                              inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Allocator>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_replace(size_type, size_type, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.tcc:532:22,
                                              inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(size_type, size_type, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:2171:19,
                                              inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(size_type, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:1928:22,
                                              inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const _CharT*, __cxx11::basic_string<_CharT, _Traits, _Allocator>&&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:3541:36,
                                              inlined from ‘std::string formatSocketAddress(const SocketStringAddress&)’ at /home/iobroker/cannelloni/inet_address.cpp:92:29:
                                          /usr/include/c++/12/bits/char_traits.h:431:56: error: ‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ accessing 9223372036854775810 or more bytes at offsets [2, 9223372036854775807] and 1 may overlap up to 9223372036854775813 bytes at offset -3 [-Werror=restrict]
                                            431 |         return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n));
                                                |                                        ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
                                          cc1plus: all warnings being treated as errors
                                          make[2]: *** [CMakeFiles/addsources.dir/build.make:104: CMakeFiles/addsources.dir/inet_address.cpp.o] Fehler 1
                                          make[1]: *** [CMakeFiles/Makefile2:116: CMakeFiles/addsources.dir/all] Fehler 2
                                          make: *** [Makefile:136: all] Fehler 2
                                          iobroker@VM-ioBroker:~/cannelloni$ sudo make install
                                          [  5%] Building CXX object CMakeFiles/addsources.dir/inet_address.cpp.o
                                          In file included from /usr/include/c++/12/string:40,
                                                           from /home/iobroker/cannelloni/inet_address.h:4,
                                                           from /home/iobroker/cannelloni/inet_address.cpp:1:
                                          In static member function ‘static constexpr std::char_traits<char>::char_type* std::char_traits<char>::copy(char_type*, const char_type*, std::size_t)’,
                                              inlined from ‘static constexpr void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_S_copy(_CharT*, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:423:21,
                                              inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Allocator>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_replace(size_type, size_type, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.tcc:532:22,
                                              inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(size_type, size_type, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:2171:19,
                                              inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(size_type, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:1928:22,
                                              inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const _CharT*, __cxx11::basic_string<_CharT, _Traits, _Allocator>&&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]’ at /usr/include/c++/12/bits/basic_string.h:3541:36,
                                              inlined from ‘std::string formatSocketAddress(const SocketStringAddress&)’ at /home/iobroker/cannelloni/inet_address.cpp:92:29:
                                          /usr/include/c++/12/bits/char_traits.h:431:56: error: ‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ accessing 9223372036854775810 or more bytes at offsets [2, 9223372036854775807] and 1 may overlap up to 9223372036854775813 bytes at offset -3 [-Werror=restrict]
                                            431 |         return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n));
                                                |                                        ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
                                          cc1plus: all warnings being treated as errors
                                          make[2]: *** [CMakeFiles/addsources.dir/build.make:104: CMakeFiles/addsources.dir/inet_address.cpp.o] Fehler 1
                                          make[1]: *** [CMakeFiles/Makefile2:116: CMakeFiles/addsources.dir/all] Fehler 2
                                          make: *** [Makefile:136: all] Fehler 2
                                          iobroker@VM-ioBroker:~/cannelloni$
                                          
                                          

                                          Es gibt einen canneloni-Ordner ...

                                          b7f88e8d-4eb3-4987-88ee-77afc952a0e2-grafik.png

                                          ... aber an der richtigen Stelle ?

                                          crycode 1 Reply Last reply Reply Quote 0
                                          • crycode
                                            crycode Developer @RaspiUser last edited by

                                            @raspiuser Da hat der Build nicht geklappt.
                                            Den Infos nach ist das wohl ein Bug in gcc-12/g++-12 (dem Compiler).

                                            Mit gcc-11/g++-11 sollte es funktionieren (im cannelloni-Verzeichnis):

                                            sudo apt install gcc-11 g++-11
                                            export CC=gcc-11
                                            export CXX=g++-11
                                            rm -f CMakeCache.txt
                                            cmake -DCMAKE_BUILD_TYPE=Release
                                            make
                                            sudo make install
                                            

                                            Bei der Ausgabe vom cmake [...] Befehl, sollte u.a. folgendes enthalten sein, was dir zeigt, dass gcc-11/g++-11 verwendet werden:

                                            -- The C compiler identification is GNU 11.3.0
                                            -- The CXX compiler identification is GNU 11.3.0
                                            
                                            RaspiUser 1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            907
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            canbus canbus adapter rotex hpsu
                                            25
                                            498
                                            67721
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo