Modbus Gateway

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • AlexAn
    Lebende Foren Legende
    • 25.08.2015
    • 4315

    #1

    Modbus Gateway

    Hab heute von User Gast das Modbus PRE-RELEASE Gateway Plugin für V1 in der Wiki entdeckt.

    Beschreibung vom Autor und Download:



    Im Klartext von Modbus RTU auf Modbus TCP.
    Die 5sec Beschränkung von Loxone ist natürlich weiterhin vorhanden.

    Als Hardware hab ich das hier am Loxberry V1.2.0.2 eingesetzt: https://www.amazon.de/gp/product/B01...?ie=UTF8&psc=1
    Von der Beschreibung schaut es so aus als ob man einfach die Modbusvorlagen aus der Config weiterhin verwenden kann.

    Der echte Test steht aber bei mir auch noch aus!

    Installiert schaut es so aus:
    Klicke auf die Grafik für eine vergrößerte Ansicht  Name: Modbus Gateway.JPG Ansichten: 1 Größe: 177,4 KB ID: 150535
    Klicke auf die Grafik für eine vergrößerte Ansicht  Name: Modbus I.JPG Ansichten: 1 Größe: 53,5 KB ID: 150536
    Klicke auf die Grafik für eine vergrößerte Ansicht  Name: Modbus II.JPG Ansichten: 1 Größe: 78,4 KB ID: 150537
    Zuletzt geändert von AlexAn; 01.04.2018, 07:55.
    Grüße Alex
  • Gast

    #2
    Hi, I'm author of the Modbus Gateway plugin. Unfortunately I don't speak German (only English and Czech). If anybody want to translate plugin into German or another language, let me know please. I'll add it into GIT repo.
    If there is any question, please in English.
    USB to RS485 converter cost from 1$ on Aliexpress so it's realy cheap.
    Zmata

    Kommentar

    • Gast

      #3
      Version 0.0.4 released
      • German language added - many thanks to @AlexAn
      • separated logfile according to services
      • gateway configuration can not be removed if service is active
      • Link to wiki according to language
      Zuletzt geändert von Gast; 01.04.2018, 15:31.

      Kommentar

      • hismastersvoice
        Supermoderator
        • 25.08.2015
        • 7314

        #4
        Ist the interface AMA0 or only USB usable?
        Kein Support per PN!

        Kommentar

        • Gast

          #5
          I don't have it, but if it is serial interface (RS232 or RS485) and you see it in /dev/serial/by-id it should be usable.

          Kommentar

          • hismastersvoice
            Supermoderator
            • 25.08.2015
            • 7314

            #6
            I'll do a trail on Wednesday, I use 2 USB an 1 AMA interfaces. Report follows...
            Kein Support per PN!

            Kommentar

            • hismastersvoice
              Supermoderator
              • 25.08.2015
              • 7314

              #7
              Gast
              I´ll tested a lot of things... and here are my results:

              Conection to AMA0 dosent work, but i think its more a Hardware than a software issue.

              All readings from different devices works great.

              What for me dosent work is to write register (F6).
              I´ll tryed anything what I can, with the Loxone-Modbus Ext I dont have that problem.


              Kein Support per PN!

              Kommentar


              • Gast
                Gast kommentierte
                Kommentar bearbeiten
                Loxone closed ticket with recommendations to use own code to revert values. I reopened the ticket with several additional arguments. So let's wait for next answer ;-)

              • Gast
                Gast kommentierte
                Kommentar bearbeiten
                Unfortunately I'm stupid customer, who want function, that nobody else needs . . .
                Oh my god! Why I bought system (loxone) without support?

              • hismastersvoice
                hismastersvoice kommentierte
                Kommentar bearbeiten
                Loxone acts always this way. Don't care the support of Loxone is not the best... More one of the worst one.👎
            • Gast

              #8
              Version 0.0.5 released
              • Loglevel control

              Kommentar

              • Gast

                #9
                Version 0.0.6 released
                • Problem with cfg removing

                Kommentar

                • Gast

                  #10
                  Hello zmata!

                  First: sorry for my english and important: i'm not knowing something about programming!

                  i'm unsing loxone with a modbus-extension, with this extension i am able to control 2 fan-coils, i get the sensor datas and i can send actor datas.

                  i also use loxberry and i installed your plugin, i have a digitus usb serial to rs485 converter and i placed a modbus server in loxone config, but i reach nothing! No sensor datas, i cannot send actor datas.

                  modbus extension parameters:
                  baud: 9600
                  stoppbits: 1
                  parität: no
                  timing: auto

                  manufactor of fancoils say:
                  baud: 9600
                  data bit: 8
                  parity: N
                  stop bit: 1

                  so i used in the plugin : 8n1

                  for sensor in modbus extension i use:
                  register for example: 70 (adress 40071 i do not use)
                  4 - Read input register(3x)
                  16-bit signed integer
                  for actor i use:
                  register for example 198 (adress 40199 i do not use)
                  6 - Preset single register
                  16-bit unsigned integer

                  i use in loxone under modbusserver the same parameters

                  can u tell me where my mistake by using your plugin is?

                  thanx for helping a "non-understanding but using great things" user!

                  gerd

                  Kommentar

                  • Gast

                    #11
                    Hello @gh_net ,
                    it's probably caused by order of registers. You can check checkbox "Order of registers" in loxconfig for register reading (4 - Read input register) but not for writing (6 - Preset single register). unfortunatelly Loxone don't want to support it in writing - see communication with @hismastersvoice above.
                    So one possible solution is to build this function into mbusd. I'm in communication with author of the mbusd.

                    Kommentar


                    • Gast
                      Gast kommentierte
                      Kommentar bearbeiten
                      Yes, i have tried this -> with no sucsess!

                      My questions:
                      1) Have i install the 120 ohm resistor at the beginning (digitus usb serial to rs485 converter) and at the end (last fan-coil) or only at the end?
                      2) ist there some reason to see what i send an what i get? (with simply modbus tcp client 8.0.8 i only get 0B - gateway target device faild to respond - and this in every case of fail)
                      3) what parameters should i use in your plugin?

                      thanx for helping!

                      gh_net

                    • Gast
                      Gast kommentierte
                      Kommentar bearbeiten
                      1) only at the end
                      2) Connect converter to your Windows PC and use Symply Modbus Master. Try to read register. If it's OK, it should be ok using Gateway too.
                      3) It depends on your modbus slave device setting
                  • technikblog
                    LoxBus Spammer
                    • 13.01.2016
                    • 277

                    #12
                    Hi all,

                    what is the status on this plugin?
                    I would like to use it on a Elsner P03/3 weather station to have the data available on the Miniserver instead of routing everything through the whole house.

                    thanks for a short update.
                    Nachrüster-EFH: MS, Extension, EnOcean, Awaptec Switches, Loxberry, Zählterinterface Air, 2 Loxone 3 Phasenzähler, Eastron Sdm630 Modbus, Photovoltaik 9.82kWp, Eigenverbrauchsoptimierung mit Loxone

                    Projekte: Photovoltaik-Anlage, Keba P30 Wallbox, VW e-Golf Test, myStrom WiFi Switch einbinden

                    Kommentar


                    • hismastersvoice
                      hismastersvoice kommentierte
                      Kommentar bearbeiten
                      If its the Modbus Version of the P03/3 and not the normal RS485 it works with this pluign.

                    • technikblog
                      technikblog kommentierte
                      Kommentar bearbeiten
                      Yes, it is the P03/3 Modbus, good to hear. I will order the WINGONEER USB 2.0 auf RS485 Adapter from the first entry.
                  • AlexAn
                    Lebende Foren Legende
                    • 25.08.2015
                    • 4315

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

Name: P03.JPG
Ansichten: 3089
Größe: 78,5 KB
ID: 154456
                    Grüße Alex

                    Kommentar

                    • technikblog
                      LoxBus Spammer
                      • 13.01.2016
                      • 277

                      #14
                      Hi Alex,

                      ja das ist mir natürlich bewusst, was mir nicht klar war, ist ob das Plugin zusammen mit einem RS485 USB Stick als Gateway dient. Quasi ob ich von Modbus RTU der Elsner Station auf Modbus TCP gehen kann, was mir dann hismastersvoice ja bestätigt hat.
                      Müsste dann nur noch ein zweites Raspi kaufen, weil ich kein Kabel ins UG bringe von der Aussenstore her.

                      Nachrüster-EFH: MS, Extension, EnOcean, Awaptec Switches, Loxberry, Zählterinterface Air, 2 Loxone 3 Phasenzähler, Eastron Sdm630 Modbus, Photovoltaik 9.82kWp, Eigenverbrauchsoptimierung mit Loxone

                      Projekte: Photovoltaik-Anlage, Keba P30 Wallbox, VW e-Golf Test, myStrom WiFi Switch einbinden

                      Kommentar

                      • hismastersvoice
                        Supermoderator
                        • 25.08.2015
                        • 7314

                        #15
                        Mal davon abgesehen das der Raspi mit Stick 50€ kostet und eine Modbus-Ext 280€.
                        Kein Support per PN!

                        Kommentar

                        Lädt...