Zum Ende der Metadaten springen
Zum Anfang der Metadaten
Author
Logo

Status

RELEASE

Version0.0.8
Compatibility

LB 0.2.4LB 1.2.0.1

Downloadhttps://github.com/zmata/LoxBerry-Plugin-ModbusGateway/archive/v0.0.8.zip
Description Modbus TCP to Modbus RTU Gateway
 Version History...

Version 0.0.8

  • Problem with conf creation

Version 0.0.7

  • possibility to select DEV source
  • Spanish translation - thanks to Madito

Version 0.0.6

  • Problem with cfg removing

Version 0.0.5

  • Loglevel control

Version 0.0.4

  • 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

Version 0.0.3

Version 0.0.2

  • Autoupdate possibility added

Version 0.0.1

  • First pre-release

Content



Download

The current release can be found here: https://github.com/zmata/LoxBerry-Plugin-ModbusGateway/archive/v0.0.8.zip

All releases are listed here: https://github.com/zmata/LoxBerry-Plugin-ModbusGateway/releases

Installation

The plugin can be installed as zip file into Loxberry. Similar to all other plugins. Min. version of the LoxBerry have to be 1.2.0.1!

Configuration options

You will need at least one USB to RS485 converter. On aliexpress it costs from 1$.

If you need more gateways with different settings, you need one separate one USB to RS485 converter for each settings.

First click at the "New gateway" button. In the list of the serial devices click at one, that correspond to your new USB to RS485 device.

Default configuration for that device is automatically done and redirect you back. New device should be selected and below should be detail configuration (if it's not, click at gateway).

Change the details according to your requirements and Save it. Now you can run the service. Click at "Start service" button. If you need more gateways, click at the "New gateway" button ...

Gateways must not have the same port!



Functionality of the plugin

The Modbus Gateway is the sw Modbus TCP to Modbus RTU Gateway, that can be used instead of the Modbus Extension. It convert Modbus RTU to Modbus TCP, which is supported by the Miniserver.

This plugin uses mbusd.

Setup in the Loxone Config Software

click at Miniserver Comunication in the Miniserver tree. Then click at Modbus Server icon.

Server is inserted. Change parameters according to Gateway in LoxBerry.

Next it's same as with Modbus Extension. Click at icon "Sensors and Actuators" and select corresponding device tamplate, or create device manualy. It's necessary to check checkbox "Order of registers"!


Roadmap

Separate log for each Gateway service - released in v0.0.4

Asking questions and reporting problems

Questions about the plugin will be answered in this wiki page. Please report your errors here. English or Czech language, please.



  • Keine Stichwörter

8 Kommentare

  1. Hi, I need use 2 or mode USB serial converter but it not work. I use PL2303 usb converter. First USB work fine, when I plug second USB converter, both stop working. Please help me. Thank you.

  2. Hi, can you specify type of your USB to RS485 converter? URL, ....

    If you speak Czech, we can switch to and than translate important things into the english.

  3. Cauko,

    Je to konkretne tento prevodnik:

    https://rlx.sk/sk/usb-spi-i2c-rs232-485-can-lin/6436-pl2303-usb-uart-board-type-a-ws-4037.html?search_query=PL2303+USB+UART+&results=1421

    V plugine ho vidim, pridam mu profil a funguje perfektne, ale akonahle vlozim do 2. usb dalsi takyto prevodnik plugin mi uz neponukne pridat dalsi profil pre dalsie zariadenie a 1. usb prevodnik prestane fungovat. V linuxe som si overoval usb adresy prevodnikov a kazdy ma v systeme svoju jedinecnu usb adresu.

    Myslim ze bude nejaky problem s parsovanim usb adries pri pridavani zariadeni do pluginu. Dakujem za pomoc.

  4. Koukni se do /dev/serial/by-id/

    Tam je namapován usb prevodnik. Zkus jeden a pak druhej. Kazdy by mel mit jedinecny nazev. Pokud ne, tak se spolu perou.

  5. Takze ked pozriem do /dev/serial/by-id tak vidim iba jeden (usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0) - ale by path vidim oba (platform-3f980000.usb-usb-0:1.2:1.0-port0 a platform-3f980000.usb-usb-0:1.4:1.0-port0). Evidentne maju rovnake id. Viem nejako prepnut v plugine aby identifikoval prevodniky na zaklade cesty ? Je mi jasne ze to bude mat za nasledok citlivost na pouzity USB port ale aspon to viem pouzit s rovnakymi prevodnikmi.

  6. V tuto chvili ne. Pripravim novou verzi s moznosti prepnuti.

    Tento tyden mi to ale asi nevyjde. Spis pristi ... nebo mozna v noci, kdyz budu mit jeste naladu.

    Jeste je otazka, jestli se v by-path nemuze po restartu nazev zmenit. Pripravim a uvidime.

  7. Ano to napadlo aj mna, ze ci sa cesta nemude menit. Presne, uvidime. Zatial dakujem (Zwinkern) Este jedna drobnost, ked USB prevodnik vytiahnem a nasledne zasuniem tak sluzba prestane pracovat, rozbehne sa to az po znovuulozeni konfigu. Da sa nejako cyklicky povedzme raz za hodinu sluzba resetnenut alebo nejako inak osetrit aby to fungovalo ? Ja totizto v loxone nezistim ze sluzba nefunguje. Nacitane hodnoty zostanu v poslednom nacitanom stave.


  8. Nainstaluj si verzi 0.0.8

    V /opt/loxberry/config/plugins/modbusgateway/mbusd.cfg si zmen by-id na by-path.

    Melo by to chodit.

    Dej prosim vedet, jestli se ti meni nazev

    Sluzba se startuje prikazem systemctl, takze muzes treba cronem kazdou hodinu.

    Nicmene me loxone hlasi, kdyz ztrati spojeni na gateway - musis v loxone u definica gateway v "Online status ..." zakliknout "Pouzit pro systemove chyby"

    Jeste mi nikdy nespadla. Jen kdyz restartuju loxberry.