-
Notifications
You must be signed in to change notification settings - Fork 2
mbusd Installation
mbusd Installation
Seite in Bearbeitung!
mbusd ist nicht als 'fertiges' Programm verfügbar, sondern nur im Quellcode, der selbst übersetzt werden muss.
Dies geschieht mit folgenden Befehlen:
# Vorbereitungen cd /usr/local mkdir mbusd chmod 755 mbusd cd mbusd # Holen git clone https://github.com/3cky/mbusd.git mbusd.git # Erstellen # alt cmake -DCMAKE_INSTALL_PREFIX=/usr mbusd.git cmake -DCMAKE_INSTALL_PREFIX=/usr/local mbusd.git make sudo make install # Default-config kopieren cp /etc/mbusd/mbusd.conf.example /etc/mbusd/mbusd-trovis.conf
#############################################
# #
# Sample configuration file for mbusd #
# #
#############################################
########## Serial port settings #############
> > # Serial port device name > device = /dev/trovis > > > `> # Serial port speed` > > > `> speed = 19200` > > > `> ` > > > `> # Serial port mode` > > > `> mode = 8n1` > > > `> ` > > > `> # RS-485 data direction control type (addc, rts, sysfs_0, sysfs_1)` > > > `> trx_control = addc` > > > `> ` > > > `> # Sysfs file to use to control data direction` > > > `> # trx_sysfile =` > > > `> ` > > > `> ############# TCP port settings #############` > > > `> ` > > > `> # TCP server address to bind` > > > `> address = 0.0.0.0` > > > `> ` > > > `> # TCP server port number` > > > `> port = 502` > > > `> ` > > > `> # Maximum number of simultaneous TCP connections` > > > `> maxconn = 32` > > > `> ` > > > `> # Connection timeout value in seconds` > > > `> timeout = 60` > > > `> ` > > > `> ######### Request/response settings #########` > > > `> ` > > > `> # Maximum number of request retries` > > > `> retries = 3` > > > `> ` > > > `> # Pause between requests in milliseconds` > > > `> pause = 100` > > > `> ` > > > `> # Response wait time in milliseconds` > > > `> wait = 500` > > > `> ` > > > `> # Reply on Broadcast` > > > `> replyonbroadcast = no`
cd /etc/systemd/system mv multi-user.target.wants/[email protected] default.target.wants/[email protected]
--> requires trovis.service einarbeiten
[Unit] Description=Modbus Master for Trovis network access. Requires=network.target After=network-online.target mbusd-trovis.service Wants=network-online.target
[Service] ExecStart=/usr/local/mbusd/mbusd -d -v2 -L - -c /etc/mbusd/mbusd-trovis.conf -p /dev/mbusd-trovis Restart=on-failure RestartSec=10 StandardOutput=journal StandardError=journal
[Install] WantedBy=multi-user.target
systemctl daemon-reload systemctl enable [email protected]
Test: systemctl start [email protected] systemctl status [email protected]
- LAN/WLAN
USR-TCP232-T2, USR-TCP232-410S, USR-K7, USR-DR301 (Hutschiene), Elfin-EE10 (WLAN) - USB
AZDelivery FT232RL, Waveshare USB 2 RS232/485/TTL - ESP
ESP-01, Wemos D1 - SPS
S7 1200, Wago 750-889 - KNX
Masifi Modbus Gateway
- Edomi
- espHome/HomeAssitant
- FHEM
- HomeAssistant
- ioBroker
- KNX
- Loxone
- NodeRed
- openHAB
- SIMATIC Step7
- smarthomeNG
- Tasmota/MQTT
- Wago CODESYS