Changes

no edit summary
Line 1: Line 1: −
<p style="color:red">The information on this page is updated in accordance with [https://wiki.teltonika-networks.com/view/FW_%26_SDK_Downloads'''00.07.03.2'''] firmware version.</p>  
+
<p style="color:red">The information on this page is updated in accordance with [https://wiki.teltonika-networks.com/view/FW_%26_SDK_Downloads'''00.07.08'''] firmware version.</p>  
    
==Introduction==
 
==Introduction==
Line 5: Line 5:  
'''Modbus''' is a serial communications protocol. Simple and robust, it has become a de facto standard communication protocol and is now a commonly available means of connecting industrial electronic devices.
 
'''Modbus''' is a serial communications protocol. Simple and robust, it has become a de facto standard communication protocol and is now a commonly available means of connecting industrial electronic devices.
   −
In this configuration example, we will configure Modbus TCP Slave and Modbus TCP Master. We will send a Set Parameters request from Modbus TCP Master to Modbus TCP Slave, which will send an SMS message provided in the Modbus TCP Master Set PArameter request.
+
In this configuration example, we will configure Modbus TCP Slave and Modbus TCP Client. We will send a Set Parameters request from Modbus TCP Client to Modbus TCP Slave, which will send an SMS message provided in the Modbus TCP Client Set Parameter request.
   −
If you're having trouble finding this page or some of the parameters described here on your device's WebUI, you should '''turn on "Advanced WebUI" mode'''. You can do that by clicking the "Basic" button under "Mode", which is located at the top-right corner of the WebUI.
+
If you're having trouble finding this page or some of the parameters described here on your device's WebUI, you should turn on '''"Advanced WebUI" mode.''' You can do that by clicking the "Advanced" button, located at the top of the WebUI.
 
+
[[File:Networking_rutos_manual_webui_basic_advanced_mode_75.gif|border|center|class=tlt-border|1102x93px]]
[[File:Networking rutx manual webui basic advanced mode v1.gif|border|class=tlt-border]]
      
== Prerequisites ==
 
== Prerequisites ==
Line 17: Line 16:  
* One Mobile Phone in order to test the configuration
 
* One Mobile Phone in order to test the configuration
   −
== Configuring Modbus TCP Slave and Modbus TCP Master ==
+
== Configuring Modbus TCP Server and Modbus TCP Client ==
   −
Firstly, we will configure '''Modbus TCP Slave''' on the router and then on the same device we will configure '''Modbus TCP Master''' in order to send Modbus requests to the same device.
+
Firstly, we will configure '''Modbus TCP Server''' on the router and then on the same device we will configure '''Modbus TCP Client''' in order to send Modbus requests to the same device.
 
----
 
----
===Configuring Modbus TCP Slave===
+
===Configuring Modbus TCP Server===
   −
In order to start our configuration you will need to open your device's WebUI (by entering the device's IP address of your device), then navigate to '''Services → Modbus → Modbus TCP Slave'''.  
+
In order to start our configuration you will need to open your device's WebUI (by entering the device's IP address of your device), then navigate to '''Services → Modbus → Modbus TCP Server'''.  
   −
In order to configure Modbus TCP Slave follow the steps provided below:
+
In order to configure Modbus TCP Server follow the steps provided below:
   −
[[File:Networking rut configuration modbus tcp slave v2.png|border|class=tlt-border|1100px]]
+
[[File:Modbus_TCP_Server_send_sms_example_7.8_1.png|border|class=tlt-border|1100px]]
    
'''Explanation:'''
 
'''Explanation:'''
   −
# Enable the Modbus TCP Slave
+
# Enable the Modbus TCP Server
# Select the port on which Modbus TCP Slave will communicate with the Modbus TCP Master (for this example: 502)
+
# Select the port on which Modbus TCP Server will communicate with the Modbus TCP Client (for this example: 502)
 
# Enable persistent connection (not mandatory)
 
# Enable persistent connection (not mandatory)
 
# Save the configuration
 
# Save the configuration
 
----
 
----
===Configuring Modbus TCP Master===
+
===Configuring Modbus TCP Client===
   −
Lets continue with the configuration, now we will configure Modbus TCP Master on the same device. Navigate to '''Services → Modbus → Modbus TCP Master'''. Press the button '''ADD''' and follow the steps provided below:
+
Lets continue with the configuration, now we will configure Modbus TCP Client on the same device. Navigate to '''Services → Modbus → Modbus TCP Client'''. Press the button '''ADD''' and follow the steps provided below:
   −
[[File:Networking rut configuration modbus tcp master v3.png|border|class=tlt-border|1100px]]
+
[[File:Modbus_TCP_Server_send_sms_example_7.8_5.png|border|class=tlt-border|1100px]]
    
'''Explanation:'''
 
'''Explanation:'''
    
# Enable the instance
 
# Enable the instance
# Create a name for Modbus TCP Master
+
# Create a name for Modbus TCP Client
# Provide the Slave ID (in this case: 1)
+
# Provide the Server ID (in this case: 1)
# Provide IP address of the Slave ID, in this case, this router's IP (192.168.1.1)
+
# Provide IP address of the Server ID, in this case, this router's IP (192.168.1.1)
# Provide Modbus TCP Slave ID (in this case 502)
+
# Provide Modbus TCP Server ID (in this case 502)
# In this part we will configure two different SMS messages (hex and ASCII formats) and one send a request to send those messages, we will configure it a little bit later, so leave this part empty for now.
  −
# Save the configuration
      
----
 
----
===Configuring Modbus TCP Master Request Configuration===
+
===Configuring Modbus TCP Client Request Configuration===
   −
Now that we have '''Modbus TCP Master''' and '''Modbus TCP Slave''' configurated, we will need to create '''Request Configuration'''. The Request configuration will be used to store the SMS message and the number of the recipient. Lastly, we will send the SMS message to the recipient with the set Command.
+
Now that we have '''Modbus TCP Client''' and '''Modbus TCP Server''' configurated, we will need to create '''Request Configuration'''. The Request configuration will be used to store the SMS message and the number of the recipient. Lastly, we will send the SMS message to the recipient with the set Command.
 
To store Phone numbers and SMS messages we will use '''ASCII''' and/or '''HEX''' Data Types, you can configure either one of them, and both of them will work.
 
To store Phone numbers and SMS messages we will use '''ASCII''' and/or '''HEX''' Data Types, you can configure either one of them, and both of them will work.
 
----
 
----
 
So first of all, we will create a Request in which we will store the Recipient number and SMS message, we will use '''ASCII Data Type''', '''Set Multiple holding registers(16) Function''' and '''398 Register'''.
 
So first of all, we will create a Request in which we will store the Recipient number and SMS message, we will use '''ASCII Data Type''', '''Set Multiple holding registers(16) Function''' and '''398 Register'''.
   −
[[File:Networking rut configuration modbus tcp master request v1.png|border|class=tlt-border|1100px]]
+
[[File:Modbus_TCP_Server_send_sms_example_7.8_2.png|border|class=tlt-border|1100px]]
      Line 112: Line 109:  
Lastly we will need a Request which would send the text message that we loaded previausly, to do so you will need to create a send Request. The Send Request should look like this:
 
Lastly we will need a Request which would send the text message that we loaded previausly, to do so you will need to create a send Request. The Send Request should look like this:
   −
[[File:Networking rut configuration modbus tcp master send request v1.png|border|class=tlt-border|1100px]]
+
[[File:Modbus_TCP_Server_send_sms_example_7.8_3.png|border|class=tlt-border|1100px]]
    
'''Explanation:'''
 
'''Explanation:'''
Line 126: Line 123:  
Execute the first request, if everything was configurated correctly you should receive the confirmation message after that execute the '''Test_send''' request which will send the message to your phone number.  
 
Execute the first request, if everything was configurated correctly you should receive the confirmation message after that execute the '''Test_send''' request which will send the message to your phone number.  
   −
[[File:Networking rut configuration modbus tcp master send request test v2.png|border|class=tlt-border|1100px]]
+
[[File:Modbus_TCP_Server_send_sms_example_7.8_4.png|border|class=tlt-border|1100px]]
     

Navigation menu