Changes

469 bytes added ,  16:11, 20 April 2023
no edit summary
Line 8: Line 8:  
*Flespi.io account to act as an MQTT Broker/Publisher/Subscriber (for first configuration example);
 
*Flespi.io account to act as an MQTT Broker/Publisher/Subscriber (for first configuration example);
   −
==Configuration using flespi.io as MQTT Broker==
   
[[File:MQTT Serial gateway topology.png|border|center|class=tlt-border|847x279px]]
 
[[File:MQTT Serial gateway topology.png|border|center|class=tlt-border|847x279px]]
   −
===Configuring RUT955 MQTT Gateway===
+
RUT2 will act as a Modbus RTU slave and RUT1 as a Modbus RTU Master. On RUT1, MQTT Serial Gateway will be configured to transfer Modbus data over MQTT. Flespi.io platform will serve as an MQTT Broker
 +
 
 +
==RUT2 configuration==
 +
===Configuring Modbus RTU Slave===
 +
----
 +
Go to Services → Modbus → Modbus RTU Slave and create a new instance.
 +
* Enter the '''desired instance name''';
 +
* Select the '''desired serial interface'''.
 +
 
 +
[[File:Modbus RTU Slave.png|border|center|class=tlt-border|855 × 308px]]
 +
 
 +
==RUT1 configuration==
 +
===Configuring MQTT Gateway===
 
----
 
----
 
Go to '''Services → Modbus → MQTT Gateway''' and there:
 
Go to '''Services → Modbus → MQTT Gateway''' and there:
Line 24: Line 35:  
'''Note''': ''Everything else can be left as default or changed according to your needs.''
 
'''Note''': ''Everything else can be left as default or changed according to your needs.''
   −
===Configuring RUT955 Serial Gateway===
+
===Configuring Serial Gateway===
 
----
 
----
 
Under the MQTT Gateway configuration, create the Serial Gateway:
 
Under the MQTT Gateway configuration, create the Serial Gateway:
Line 107: Line 118:  
Modbus parameters are held within registers. The register numbers and corresponding system values can be found [[RUT955_Monitoring_via_Modbus#Get_Parameters|'''in this article''']].
 
Modbus parameters are held within registers. The register numbers and corresponding system values can be found [[RUT955_Monitoring_via_Modbus#Get_Parameters|'''in this article''']].
   −
===Testing MQTT Publisher and Subscriber on flespi.io===
+
==Testing MQTT Publisher and Subscriber on flespi.io==
 
----
 
----
 
====Adding Flespi Subscriber====
 
====Adding Flespi Subscriber====
Line 143: Line 154:  
==See Also==
 
==See Also==
 
*[[RUT955 Monitoring via Modbus#Get Parameters]]
 
*[[RUT955 Monitoring via Modbus#Get Parameters]]
*[[RUT955_Modbus#MQTT_Gateway|MQTT Gateway]]
+
*[[RUT955_Modbus#MQTT_Gateway|MQTT Gateway and Modbus]]
 
==External links==
 
==External links==
 
[https://flespi.io/#/ Flespi.io]
 
[https://flespi.io/#/ Flespi.io]

Navigation menu