Changes

m
added topology variables
Line 1: Line 1:  
__TOC__
 
__TOC__
 
==Summary==
 
==Summary==
In this guide, Modbus TCP master MQTT Gateway function will be configured with two different types of MQTT Brokers. First using third-party MQTT Broker services (in this example ''Flespi.io''). Second, using the RUT240 router as MQTT Broker. Two RUT955 routers will be used as Modbus TCP Master and Slave, and the PC acts as MQTT Publisher and Subscriber.
+
In this guide, Modbus TCP master MQTT Gateway function will be configured with two different types of MQTT Brokers. First using third-party MQTT Broker services (in this example ''Flespi.io''). Second, using the RUT240 router as MQTT Broker. Two {{{name}}} routers will be used as Modbus TCP Master and Slave, and the PC acts as MQTT Publisher and Subscriber.
    
==Configuration overview & prerequisites==
 
==Configuration overview & prerequisites==
*Two RUT955 routers - one acts as Modbus TCP Master, another as Modbus TCP Slave
+
*Two {{{name}}} routers - one acts as Modbus TCP Master, another as Modbus TCP Slave
 
*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)
 
*RUT240 with a Public IP address to act as MQTT Broker (for second configuration example)
 
*RUT240 with a Public IP address to act as MQTT Broker (for second configuration example)
Line 10: Line 10:     
==Configuration using flespi.io as MQTT Broker==
 
==Configuration using flespi.io as MQTT Broker==
[[File:Networking Topology MQTT MODBUS flespi configuration v1.png|center|class=tlt-border|800x800px]]
+
[[File:{{{name}}}_mqtt_broker_configuration_scheme_1.png|center|class=tlt-border|800x800px]]
   −
===Configuring RUT955 Modbus TCP Slave===
+
===Configuring {{{name}}} Modbus TCP Slave===
 
----
 
----
 
Go to '''Services → Modbus → Modbus TCP Slave''':
 
Go to '''Services → Modbus → Modbus TCP Slave''':
Line 24: Line 24:  
''*In this configuration LAN port is used hence “Allow Remote Access” is not needed''
 
''*In this configuration LAN port is used hence “Allow Remote Access” is not needed''
   −
''Modbus TCP Slave RUT955 is now configured''.
+
''Modbus TCP Slave {{{name}}} is now configured''.
   −
===Configuring RUT955 Modbus TCP Master===
+
===Configuring {{{name}}} Modbus TCP Master===
 
----
 
----
 
Go to '''Services → Modbus → Modbus TCP Master'''
 
Go to '''Services → Modbus → Modbus TCP Master'''
Line 41: Line 41:  
#Press the Test button in Request Configuration Testing to see if the Slave device responds to requests, a response similar to the image below should be shown.
 
#Press the Test button in Request Configuration Testing to see if the Slave device responds to requests, a response similar to the image below should be shown.
 
#Press Save & Apply
 
#Press Save & Apply
''List of available Modbus parameters can be found [https://wiki.teltonika-networks.com/view/RUT955_Monitoring_via_Modbus#Get_Parameters here]''
+
''List of available Modbus parameters can be found [https://wiki.teltonika-networks.com/view/{{{name}}}_Monitoring_via_Modbus#Get_Parameters here]''
    
[[File:Networking_MQTT_MODBUS_flespi_configuration_master_add_v1.png|alt=|border|class=tlt-border|1007x1007px]]
 
[[File:Networking_MQTT_MODBUS_flespi_configuration_master_add_v1.png|alt=|border|class=tlt-border|1007x1007px]]
Line 67: Line 67:  
[[File:Networking MQTT modbus fespi Connection settings v1.png|border|class=tlt-border|544x544px]] [[File:Networking MQTT Modbus flespi board.png|border|class=tlt-border|544x544px]]   
 
[[File:Networking MQTT modbus fespi Connection settings v1.png|border|class=tlt-border|544x544px]] [[File:Networking MQTT Modbus flespi board.png|border|class=tlt-border|544x544px]]   
   −
=== Configuring MQTT Gateway on RUT955 Modbus TCP Master===
+
=== Configuring MQTT Gateway on {{{name}}} Modbus TCP Master===
 
----
 
----
 
Open routers WebUI and navigate to '''Services → Modbus → MQTT Gateway'''
 
Open routers WebUI and navigate to '''Services → Modbus → MQTT Gateway'''
Line 164: Line 164:  
==Configuration using RUT240 router as MQTT Broker==
 
==Configuration using RUT240 router as MQTT Broker==
   −
[[File:Networking Topology MQTT MODBUS RUTbroker configuration v1.png|987x987px]]
+
[[File:{{{name}}}_mqtt_broker_configuration_scheme_2.png|987x987px]]
    
===Configuring Modbus TCP Master, MQTT Gateway MQTT Broker on RUT240, and MQTT Publisher/Subscriber on PC===
 
===Configuring Modbus TCP Master, MQTT Gateway MQTT Broker on RUT240, and MQTT Publisher/Subscriber on PC===
 
----
 
----
''The same configuration will be used for Modbus TCP Master and Slave RUT955 routers as in the previous example, only settings in Modbus TCP Master router RUT955 will be changed to match MQTT Broker on RUT240 router''
+
''The same configuration will be used for Modbus TCP Master and Slave {{{name}}} routers as in the previous example, only settings in Modbus TCP Master router {{{name}}} will be changed to match MQTT Broker on RUT240 router''
    
Navigate to '''Services → Modbus  MQTT Gateway'''
 
Navigate to '''Services → Modbus  MQTT Gateway'''
Line 212: Line 212:  
==See Also==
 
==See Also==
 
*[[Modbus Master RutOS configuration example]]
 
*[[Modbus Master RutOS configuration example]]
*[[RUT955 Monitoring via Modbus#Get Parameters]]
+
*[[{{{name}}} Monitoring via Modbus#Get Parameters]]

Navigation menu