level2:communication_between_2_webhmis_via_internet
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
level2:communication_between_2_webhmis_via_internet [2021/02/12 14:57] – ↷ Page moved from communication_between_2_webhmis_via_internet to level2:communication_between_2_webhmis_via_internet atolstov | level2:communication_between_2_webhmis_via_internet [2022/02/09 15:16] (current) – [Option 2. VPN and Modbus TCP] emozolyak | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Communication between 2 WebHMIs via internet ====== | + | ====== Communication between 2 or more WebHMIs via internet ====== |
Sometimes you need to have a connection between far systems, e.g. like in the following picture: | Sometimes you need to have a connection between far systems, e.g. like in the following picture: | ||
- | {{ :: | + | {{ network: |
You might want to automatically control supply pumps depending on the water level in a far water tower or reservoir. | You might want to automatically control supply pumps depending on the water level in a far water tower or reservoir. | ||
With the WebHMI and Level2 connectivity options it is done with ease: | With the WebHMI and Level2 connectivity options it is done with ease: | ||
+ | |||
+ | ==== Option 1. Using MQTT protocol ==== | ||
+ | |||
+ | - Connect both WebHMIs to the Level2 IoT | ||
+ | - Subscribe the pump station WebHMI to the topic with level that far WebhMI publish onto the Level2 MQTT broker. | ||
+ | |||
+ | ==== Option 2. VPN and Modbus TCP ===== | ||
-[[level2: | -[[level2: | ||
- | -Turn On ([[modbus_tcp_server|Modbus TCP Server]]) on the water redervoir side | + | -Turn On ([[:modbus_tcp_server|Modbus TCP Server]]) on the water redervoir side |
- | -Enable [[remote_service_access|routing]] for pump side WebHMI to the remote peer node | + | -Enable [[:remote_service_access|routing]] for pump side WebHMI to the remote peer node |
-Create Modbus TCP connection on the pump side WebHMI using IP address from (1) | -Create Modbus TCP connection on the pump side WebHMI using IP address from (1) | ||
+ | |||
+ | |||
+ | <WRAP center round tip 60%> | ||
+ | __Option 1__ Is preffered due to the nature of the MQTT protcol which saves traffice for communication while Modbus TCP will create constant polling process. | ||
+ | </ | ||
+ |
level2/communication_between_2_webhmis_via_internet.1613141851.txt.gz · Last modified: 2021/02/12 14:57 by atolstov