Ankündigung

Einklappen

PLUGINS

Bitte im Titel immer zuerst den Namen des Plugins hinschreiben
Mehr anzeigen
Weniger anzeigen

Modbus Gateway

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

  • #46
    Gagi I've just added you as collaborator.

    Kommentar


    • #47
      Gagi ogrimo30Gast


      I've just installed the plugin from Gagi without any problems. Now I've to try whether the plugin runs now or not. But for that I've to adjust my laboratory environment. That takes time. I will give reply!

      Kommentar


      • #48
        I'm also just setting up a new pi, just to give it a try and see whether i can replicate the service start/stop problem here.

        Kommentar


        • #49
          Ok, i think i know found the problem. First my last raspberry packages was using a too recent rasbian, so it wasn't working with the standard raspbian stretch installations. This is now fixed. The other problem was the custom systemd service file which was part of the old mbusd package, while my new one, was a vanilla build from the repository.
          I now also tested the plugin and it works fine on my local installation. Please give it a try:

          LoxBerry Plugin - Modbus TCP to Modbus RTU Gateway - Release v0.0.9-2: Yet another package update · Gagi2k/LoxBerry-Plugin-ModbusGateway


          As mbusd updated their repository to make packaging easy, it might happen that mbusd will be part of a standard raspbian release, because of that, i will try to see how we can get it working with a vanilla mbusd without a custom systemd service.

          Kommentar


          • ogrimo30
            ogrimo30 kommentierte
            Kommentar bearbeiten
            Sound good!
            Thank you. I will test it tomorrow when I'm at home.

        • #50
          Gagi
          Anbei meine Logs aus der Loxone Config und vom Modbus Plugin.

          Leider kommen keine Werte an.

          Enclosed Logs from Modbus Plugin and Loxone Config.

          No data received by Loxone.


          Angehängte Dateien
          Zuletzt geändert von ROLE; 12.10.2019, 15:15.

          Kommentar


          • #51
            Mhh, the log file looks good to me. I guess 192.168.0.145 is your miniserver and mbusd gets requests and sends valid response, so from that point it should work fine.

            Kommentar


            • ROLE
              ROLE kommentierte
              Kommentar bearbeiten
              I found the problem. It was in Loxone Config. Different from configuration of meters connected via Modbus Extension I had to select 2 register for 32 bit and registersequence. Now I get all data and I am happy.

          • #52
            Hello,
            i just made a fresh Loxberry installation and installed the plugin version 0.0.9-2.
            The start error is gone.

            But i don't received data and get a new error during the installation:
            15.10.2019 09:23:48 WARNING: HARDCODED PATH'S: Das Plugin nutzt einen hardkodierten Pfad zu /opt/loxberry. Dies könnte zu Problemen führen und sollte vom Plugin-Author behoben werden:xxxx@xxxx.cz

            No data received by Loxone.

            Enclosed Logs from Modbus Plugin.

            Thank you!!!

            Angehängte Dateien

            Kommentar


          • #53
            Hallo,
            bitte entschuldigt meine spätet Antwort - ich habe auf das Ersatzteil gewartet....
            Das Plugin arbeitet jeztz wieder perfekt. Das Problem war ein defekter Modbus - USB - Dongle.
            Danke für eure Hilfe

            The Plugin works finde, it was a problem with the Modbus - USB - Dongle.
            Thank you!!

            PS: Ist es möglich das auch das Restart-Problem gelöst wurde?

            Kommentar


            • #54
              Great, then i can start the work to do a proper update of the plugin and fix the hardcoded path of the systemd service.

              ogrimo30 What do you mean with Restart-Problem ? If you mean that the service did not start from the Loxberry UI, then yes, the service was fixed to start properly, but no additional changes in the plugin were made.

              Kommentar


              • #55
                hi,
                za każdym razem, gdy Loxberry jest restartowany, wtyczka Modbus nie uruchamia się automatycznie. Mam komunikat „Aktywny: nieudany (Wynik: kod wyjścia) od ......”. Muszę ręcznie rozpocząć od przycisku „start”. Wtyczka Modbus 0.0.9-2
                Loxberry 2.0.0.4
                Raspbian - 10 (buster)

                Czy możesz pomóc?

                Kommentar


                • ROLE
                  ROLE kommentierte
                  Kommentar bearbeiten
                  Google Translator:

                  Bei jedem Neustart von Loxberry wird das Modbus-Plug-In nicht automatisch gestartet. Ich habe die Meldung "Aktiv: fehlgeschlagen (Ergebnis: Beendigungscode) von ......". Ich muss manuell über die Schaltfläche "Start" starten. Modbus-Stecker 0.0.9-2
                  Loxberry 2.0.0.4
                  Raspbian - 10 (Buster)

                  Kannst du mir helfen?

              • #56
                Hi,

                i pushed all my fixes to the official repository now and did a fresh Pre-Release of 0.0.9 there.
                This also includes a fix for the hardcoded paths and a way to update the systemd service from the plugin without repackaging mbusd all the time and i hope with this we can switch to a apt source in the future.

                You should get the update using the Pre-Release channel. Let me know how it works for you, so i can du a full update soon.

                Kommentar


                • #57
                  Thanks for the quick reply.
                  Unfortunately I installed a fresh version of loxberry and modbus plugin and after the first reboot ..."Active: failed (Result: exit-code) since Tue 12/24/2019 19:25:23 CET; 19s ago"
                  If I press "start" manually everything is ok.

                  M.S.


                  Kommentar


                  • Gagi
                    Gagi kommentierte
                    Kommentar bearbeiten
                    Could you check the log file of the modbus plugin after the reboot ? It hopefully provides some more information why it failed to start.

                • #58
                  There is no log file after reboot.
                  It creates after manual start only.

                  Klicke auf die Grafik für eine vergrößerte Ansicht

Name: screen 1.jpg
Ansichten: 505
Größe: 150,3 KB
ID: 227551

                  .Klicke auf die Grafik für eine vergrößerte Ansicht

Name: screen 2.jpg
Ansichten: 508
Größe: 80,5 KB
ID: 227550
                  Angehängte Dateien

                  Kommentar


                  • #59
                    Hi, could you check the systemd log for any errors?


                    Gesendet von iPhone mit Tapatalk

                    Kommentar


                    • #60
                      Hallo in die Runde ich habe gerade einen Hänger und hoffe ihr habt eine idee ich habe jetzt endlich mal wieder ein bisschen Zeit gehabt und mein Energymeter eingebaut und das Modbus Plugin auf dem Loxberry installiert aber ich bekomme auf teufel komm raus keine Daten in den Miniserver


                      17 Jan 2020 22:34:20 tty: estimated 9 bytes, waiting 517708 usec
                      17 Jan 2020 22:34:20 tty: response timeout
                      17 Jan 2020 22:34:20 tty: attempt to retry request (3 of 3)
                      17 Jan 2020 22:34:20 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:20 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:20 tty: estimated 9 bytes, waiting 517708 usec
                      17 Jan 2020 22:34:21 tty: response timeout
                      17 Jan 2020 22:34:21 conn[192.168.1.77]: state now is CONN_RESP
                      17 Jan 2020 22:34:21 tty: state now is TTY_PAUSE
                      17 Jan 2020 22:34:21 conn[192.168.1.77]: state now is CONN_HEADER
                      17 Jan 2020 22:34:21 tty: state now is TTY_READY
                      17 Jan 2020 22:34:26 conn[192.168.1.77]: state now is CONN_RQST_FUNC
                      17 Jan 2020 22:34:26 conn[192.168.1.77]: state now is CONN_RQST_TAIL
                      17 Jan 2020 22:34:26 conn[192.168.1.77]: request: [01][03][00][32][00][01]
                      17 Jan 2020 22:34:26 conn[192.168.1.77]: state now is CONN_TTY
                      17 Jan 2020 22:34:26 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:27 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:27 tty: estimated 7 bytes, waiting 515624 usec
                      17 Jan 2020 22:34:27 tty: response timeout
                      17 Jan 2020 22:34:27 tty: attempt to retry request (1 of 3)
                      17 Jan 2020 22:34:27 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:27 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:27 tty: estimated 7 bytes, waiting 515624 usec
                      17 Jan 2020 22:34:28 tty: response timeout
                      17 Jan 2020 22:34:28 tty: attempt to retry request (2 of 3)
                      17 Jan 2020 22:34:28 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:28 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:28 tty: estimated 7 bytes, waiting 515624 usec
                      17 Jan 2020 22:34:28 tty: response timeout
                      17 Jan 2020 22:34:28 tty: attempt to retry request (3 of 3)
                      17 Jan 2020 22:34:28 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:28 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:28 tty: estimated 7 bytes, waiting 515624 usec
                      17 Jan 2020 22:34:29 tty: response timeout
                      17 Jan 2020 22:34:29 conn[192.168.1.77]: state now is CONN_RESP
                      17 Jan 2020 22:34:29 tty: state now is TTY_PAUSE
                      17 Jan 2020 22:34:29 conn[192.168.1.77]: state now is CONN_HEADER
                      17 Jan 2020 22:34:29 conn[192.168.1.77]: state now is CONN_RQST_FUNC
                      17 Jan 2020 22:34:29 conn[192.168.1.77]: state now is CONN_RQST_TAIL
                      17 Jan 2020 22:34:29 conn[192.168.1.77]: request: [01][03][00][1b][00][02][01][71][00][00][00][06][01][03][00][1f][00][02]
                      17 Jan 2020 22:34:29 conn[192.168.1.77]: state now is CONN_TTY
                      17 Jan 2020 22:34:29 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:29 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:29 tty: estimated 9 bytes, waiting 517708 usec
                      17 Jan 2020 22:34:29 tty: response timeout
                      17 Jan 2020 22:34:29 tty: attempt to retry request (1 of 3)
                      17 Jan 2020 22:34:29 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:29 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:29 tty: estimated 9 bytes, waiting 517708 usec
                      17 Jan 2020 22:34:30 tty: response timeout
                      17 Jan 2020 22:34:30 tty: attempt to retry request (2 of 3)
                      17 Jan 2020 22:34:30 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:30 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:30 tty: estimated 9 bytes, waiting 517708 usec
                      17 Jan 2020 22:34:30 tty: response timeout
                      17 Jan 2020 22:34:30 tty: attempt to retry request (3 of 3)
                      17 Jan 2020 22:34:30 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:30 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:30 tty: estimated 9 bytes, waiting 517708 usec
                      17 Jan 2020 22:34:31 tty: response timeout
                      17 Jan 2020 22:34:31 conn[192.168.1.77]: state now is CONN_RESP
                      17 Jan 2020 22:34:31 tty: state now is TTY_PAUSE
                      17 Jan 2020 22:34:31 conn[192.168.1.77]: state now is CONN_HEADER
                      17 Jan 2020 22:34:31 tty: state now is TTY_READY
                      17 Jan 2020 22:34:36 conn[192.168.1.77]: state now is CONN_RQST_FUNC
                      17 Jan 2020 22:34:36 conn[192.168.1.77]: state now is CONN_RQST_TAIL
                      17 Jan 2020 22:34:36 conn[192.168.1.77]: request: [01][03][00][32][00][01]
                      17 Jan 2020 22:34:36 conn[192.168.1.77]: state now is CONN_TTY
                      17 Jan 2020 22:34:36 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:37 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:37 tty: estimated 7 bytes, waiting 515624 usec
                      17 Jan 2020 22:34:37 tty: response timeout
                      17 Jan 2020 22:34:37 tty: attempt to retry request (1 of 3)
                      17 Jan 2020 22:34:37 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:37 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:37 tty: estimated 7 bytes, waiting 515624 usec
                      17 Jan 2020 22:34:38 tty: response timeout
                      17 Jan 2020 22:34:38 tty: attempt to retry request (2 of 3)
                      17 Jan 2020 22:34:38 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:38 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:38 tty: estimated 7 bytes, waiting 515624 usec
                      17 Jan 2020 22:34:38 tty: response timeout
                      17 Jan 2020 22:34:38 tty: attempt to retry request (3 of 3)
                      17 Jan 2020 22:34:38 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:38 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:38 tty: estimated 7 bytes, waiting 515624 usec
                      17 Jan 2020 22:34:39 tty: response timeout
                      17 Jan 2020 22:34:39 conn[192.168.1.77]: state now is CONN_RESP
                      17 Jan 2020 22:34:39 tty: state now is TTY_PAUSE
                      17 Jan 2020 22:34:39 conn[192.168.1.77]: state now is CONN_HEADER
                      17 Jan 2020 22:34:39 conn[192.168.1.77]: state now is CONN_RQST_FUNC
                      17 Jan 2020 22:34:39 conn[192.168.1.77]: state now is CONN_RQST_TAIL
                      17 Jan 2020 22:34:39 conn[192.168.1.77]: request: [01][03][00][1b][00][02][01][74][00][00][00][06][01][03][00][1f][00][02]
                      17 Jan 2020 22:34:39 conn[192.168.1.77]: state now is CONN_TTY
                      17 Jan 2020 22:34:39 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:39 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:39 tty: estimated 9 bytes, waiting 517708 usec
                      17 Jan 2020 22:34:39 tty: response timeout
                      17 Jan 2020 22:34:39 tty: attempt to retry request (1 of 3)
                      17 Jan 2020 22:34:39 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:39 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:39 tty: estimated 9 bytes, waiting 517708 usec
                      17 Jan 2020 22:34:40 tty: response timeout
                      17 Jan 2020 22:34:40 tty: attempt to retry request (2 of 3)
                      17 Jan 2020 22:34:40 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:40 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:40 tty: estimated 9 bytes, waiting 517708 usec
                      17 Jan 2020 22:34:40 tty: response timeout
                      17 Jan 2020 22:34:40 tty: attempt to retry request (3 of 3)
                      17 Jan 2020 22:34:40 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:40 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:40 tty: estimated 9 bytes, waiting 517708 usec
                      17 Jan 2020 22:34:41 tty: response timeout
                      17 Jan 2020 22:34:41 conn[192.168.1.77]: state now is CONN_RESP
                      17 Jan 2020 22:34:41 tty: state now is TTY_PAUSE
                      17 Jan 2020 22:34:41 conn[192.168.1.77]: state now is CONN_HEADER
                      17 Jan 2020 22:34:41 tty: state now is TTY_READY
                      17 Jan 2020 22:34:46 conn[192.168.1.77]: state now is CONN_RQST_FUNC
                      17 Jan 2020 22:34:46 conn[192.168.1.77]: state now is CONN_RQST_TAIL
                      17 Jan 2020 22:34:46 conn[192.168.1.77]: request: [01][03][00][32][00][01]
                      17 Jan 2020 22:34:46 conn[192.168.1.77]: state now is CONN_TTY
                      17 Jan 2020 22:34:46 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:47 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:47 tty: estimated 7 bytes, waiting 515624 usec
                      17 Jan 2020 22:34:47 tty: response timeout
                      17 Jan 2020 22:34:47 tty: attempt to retry request (1 of 3)
                      17 Jan 2020 22:34:47 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:47 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:47 tty: estimated 7 bytes, waiting 515624 usec
                      17 Jan 2020 22:34:48 tty: response timeout
                      17 Jan 2020 22:34:48 tty: attempt to retry request (2 of 3)
                      17 Jan 2020 22:34:48 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:48 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:48 tty: estimated 7 bytes, waiting 515624 usec
                      17 Jan 2020 22:34:48 tty: response timeout
                      17 Jan 2020 22:34:48 tty: attempt to retry request (3 of 3)
                      17 Jan 2020 22:34:48 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:48 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:48 tty: estimated 7 bytes, waiting 515624 usec
                      17 Jan 2020 22:34:49 tty: response timeout
                      17 Jan 2020 22:34:49 conn[192.168.1.77]: state now is CONN_RESP
                      17 Jan 2020 22:34:49 tty: state now is TTY_PAUSE
                      17 Jan 2020 22:34:49 conn[192.168.1.77]: state now is CONN_HEADER
                      17 Jan 2020 22:34:49 conn[192.168.1.77]: state now is CONN_RQST_FUNC
                      17 Jan 2020 22:34:49 conn[192.168.1.77]: state now is CONN_RQST_TAIL
                      17 Jan 2020 22:34:49 conn[192.168.1.77]: request: [01][03][00][1b][00][02][01][77][00][00][00][06][01][03][00][1f][00][02]
                      17 Jan 2020 22:34:49 conn[192.168.1.77]: state now is CONN_TTY
                      17 Jan 2020 22:34:49 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:49 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:49 tty: estimated 9 bytes, waiting 517708 usec
                      17 Jan 2020 22:34:49 tty: response timeout
                      17 Jan 2020 22:34:49 tty: attempt to retry request (1 of 3)
                      17 Jan 2020 22:34:49 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:49 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:49 tty: estimated 9 bytes, waiting 517708 usec
                      17 Jan 2020 22:34:50 tty: response timeout
                      17 Jan 2020 22:34:50 tty: attempt to retry request (2 of 3)
                      17 Jan 2020 22:34:50 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:50 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:50 tty: estimated 9 bytes, waiting 517708 usec
                      17 Jan 2020 22:34:50 tty: response timeout
                      17 Jan 2020 22:34:50 tty: attempt to retry request (3 of 3)
                      17 Jan 2020 22:34:50 tty: state now is TTY_RQST
                      17 Jan 2020 22:34:50 tty: state now is TTY_RESP
                      17 Jan 2020 22:34:50 tty: estimated 9 bytes, waiting 517708 usec
                      17 Jan 2020 22:34:51 tty: response timeout
                      17 Jan 2020 22:34:51 conn[192.168.1.77]: state now is CONN_RESP
                      17 Jan 2020 22:34:51 tty: state now is TTY_PAUSE
                      17 Jan 2020 22:34:51 conn[192.168.1.77]: state now is CONN_HEADER
                      17 Jan 2020 22:34:51 tty: state now is TTY_READY
                      17 Jan 2020 22:34:52 Terminated by signal: SIGTERM
                      17 Jan 2020 22:35:20 mbusd-0.3.1 started...
                      17 Jan 2020 22:35:20 conn_open(): accepting connection from 192.168.1.77

                      habe das Original Loxone Energymeter 3 Phasig

                      Kommentar

                      Lädt...
                      X