Titan – Example Scenario 2.8: Configuration to send to a webserver the Modbus readings of 5 Modbus RS485 devices, as well as providing Internet access to an Ethernet network analyzer

Details of the example scenario:

  • We have five electric meters with Modbus RTU protocol. These meters have a series of variables/registers (for example, current consumption and average consumption) in its internal memory which should be periodically read and sent to a webserver.
  • The router should request this data from the meter every 15 minutes. The registers to be read for the current consumption is register 20, and the average consumption is register 21.
  • The router should send the value of registers to a webserver via HTTP GET using a JSON object after each reading, but it must be able to store up to 1000 readings in its flash memory in case of GPRS communication failure. These will be send upon restoration of the service. For each meter, a JSON string will be sent where the meter that is read will be indicated with an identifier (the Modbus address).
  • Finally, the router should provide Internet access to a network analyzer with an Ethernet interface. The IP address of the analyzer is The router must also map the TCP
    port 8080 to the TCP port 80 to be able to remotely access it.
  • The router will use a SIM card with a dynamic IP address. Therefore, the IP address must be send each time it is changed to the webserver.

Solution: MTX-Router-Titan mini

Configuration example ready for use:

We can easily load the example from the router’s web configuration environment from the menu “Other>Backup/Examples


  1. After the configuration is loaded in our router, we can access the router’s configuration with the default username and password: “admin” and “admin”, and the IP address“”
  2. Check the configuration in the menus “Wan>Basic Settings”, “Lan>Basic Settings”, “Firewall>Nat”, “Serial Settings>Serial Port1”, “External Devices>Logger Configuration”,“External Devices>Generic Modbus RTU”, “Other>Time Servers”.
  3. If we need a webserver to carry out testing, write to us at iotsupport@mtxm2m.com and request a testing account in the test server site www.metering.es.
  4. Remember that in section 4.5.4 of this manual, we have the exact format of the data (JSON object) that is sent to the webserver when the Modbus devices are read.
  5. Remember that in section 4.6.2 of this manual, we have the exact format of the data (JSON object) that is sent to the webserver when the IP address is read.
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.