Changes

m
no edit summary
Line 65: Line 65:  
#Create a password
 
#Create a password
 
#Press Save
 
#Press Save
[[File:Networking MQTT modbus fespi Connection settings v1.png|544x544px]] [[File:Networking MQTT Modbus flespi board.png|301x301px]]   
+
[[File:Networking MQTT modbus fespi Connection settings v1.png|544x544px|alt=|border]] [[File:Networking MQTT Modbus flespi board.png|border|class=tlt-border|544x544px]]   
   −
===Configuring MQTT Gateway on RUT955 Modbus TCP Master===
+
=== Configuring MQTT Gateway on RUT955 Modbus TCP Master===
 
----
 
----
 
Open routers WebUI and navigate to Services → Modbus → MQTT Gateway
 
Open routers WebUI and navigate to Services → Modbus → MQTT Gateway
Line 73: Line 73:  
#Select Enable
 
#Select Enable
 
#Enter Host (copied from flespi connection settings without 'wss://' and port)
 
#Enter Host (copied from flespi connection settings without 'wss://' and port)
# Enter Username (Copied from flespi Connection settings generated token)
+
#Enter Username (Copied from flespi Connection settings generated token)
 
#Enter Password
 
#Enter Password
   Line 84: Line 84:  
The format is in the text - heavier and slower, but less difficult to edit.
 
The format is in the text - heavier and slower, but less difficult to edit.
 
{| class="wikitable"
 
{| class="wikitable"
| 1.  Format version
+
|1.  Format version
 
|'''0'''
 
|'''0'''
 
|-
 
|-
Line 94: Line 94:  
|-
 
|-
 
|4. IP
 
|4. IP
| IPv6 must be in full format (for example: '''2001:0db8:0000:0000:0000:8a2e:0370:7334''')
+
|IPv6 must be in full format (for example: '''2001:0db8:0000:0000:0000:8a2e:0370:7334''')
 
|-
 
|-
 
|5. Port
 
|5. Port
Line 100: Line 100:  
|-
 
|-
 
|6. Timeout in seconds (time to wait for response)
 
|6. Timeout in seconds (time to wait for response)
| from '''1''' to '''999'''
+
|from '''1''' to '''999'''
 
|-
 
|-
 
|7. Slave ID - Indicates to which slave request is sent
 
|7. Slave ID - Indicates to which slave request is sent
Line 109: Line 109:  
|-
 
|-
 
|9. Number of first register from which information will be read or written
 
|9. Number of first register from which information will be read or written
| from '''1''' to '''65535'''
+
|from '''1''' to '''65535'''
 
|-
 
|-
 
|10. Registry value
 
|10. Registry value
Line 129: Line 129:  
|}
 
|}
   −
=== Testing MQTT Publisher and Subscriber on flespi.io===
+
===Testing MQTT Publisher and Subscriber on flespi.io===
 
----
 
----
 
Login and navigate to MQTT Board on https://flespi.io
 
Login and navigate to MQTT Board on https://flespi.io
Line 137: Line 137:  
#Press '''''<nowiki/>'+'''''' button on the top right corner
 
#Press '''''<nowiki/>'+'''''' button on the top right corner
 
#Select '''''<nowiki/>'Subscriber''''''
 
#Select '''''<nowiki/>'Subscriber''''''
#In the topic field enter '''''<nowiki/>'response''''''
+
# In the topic field enter '''''<nowiki/>'response''''''
 
#Press '''''<nowiki/>'Subscribe'''''' button
 
#Press '''''<nowiki/>'Subscribe'''''' button
   Line 146: Line 146:  
#Press '''''<nowiki/>'+'''''' button on the top right corner
 
#Press '''''<nowiki/>'+'''''' button on the top right corner
 
#Select '''''<nowiki/>'Publisher''''''
 
#Select '''''<nowiki/>'Publisher''''''
#In the topic field enter '''''<nowiki/>'request''''''
+
# In the topic field enter '''''<nowiki/>'request''''''
 
#In the message field enter message, for this example '''''<nowiki/>'Getting uptime'''''' is used
 
#In the message field enter message, for this example '''''<nowiki/>'Getting uptime'''''' is used
 
#Press '''''<nowiki/>'Publish'''''' button
 
#Press '''''<nowiki/>'Publish'''''' button
Line 166: Line 166:  
[[File:Networking Topology MQTT MODBUS RUTbroker configuration v1.png|987x987px]]
 
[[File:Networking Topology MQTT MODBUS RUTbroker configuration v1.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 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''
Line 173: Line 173:     
#'''Enable'''
 
#'''Enable'''
#Host: '''Enter Public IP address of MQTT Broker (RUT240)'''
+
# Host: '''Enter Public IP address of MQTT Broker (RUT240)'''
 
#Username: '''N/A'''
 
#Username: '''N/A'''
 
#Password: '''N/A'''
 
#Password: '''N/A'''
# Press '''Save & Apply'''
+
#Press '''Save & Apply'''
    
[[File:Networking MQTT Modbus MQTT gateway config v1.png|border|class=tlt-border|1090x1090px]]
 
[[File:Networking MQTT Modbus MQTT gateway config v1.png|border|class=tlt-border|1090x1090px]]
Line 210: Line 210:  
[[File:Networking MQTT Modbus Subscriber response ubuntu v1.png]]
 
[[File:Networking MQTT Modbus Subscriber response ubuntu v1.png]]
   −
==See Also ==
+
==See Also==
 
*[[Modbus Master RutOS configuration example]]
 
*[[Modbus Master RutOS configuration example]]
 
*[[RUT955 Monitoring via Modbus#Get Parameters]]
 
*[[RUT955 Monitoring via Modbus#Get Parameters]]

Navigation menu