Tunnel – Advanced 4G-RS232 Tunnel – Setting up the MTX Tunnel as permanently connected and TCP/IP Server configured to send the IP by socket to a private DNS server

¿Buscas alguna otra cosa?

Scenario details:

  • We need to monitor 100 devices with the RS232 port (115200.8.N.1 and HW flow control) from a central control station using a 3G link. This will be done with the MTX-Tunnel to act as a transparent 4G-RS232 tunnel
  • Access to the RS232 remote devices at any time is mandatory. So the modem connected to the serial port device (which needs to be controlled) must remain permanently connected to the 4G, waiting for a connection. Access to the modems must only be allowed for the IP coming from the PC Control (200.200.200.200) and also for a backup IP coming from the central office ADSL line, which is: 200.200.200.201
  • In order to reduce costs, SIM cards use dynamic IP addressing. As we have a large number of modems, we will not use DynDNS. Instead, every time the MTX Tunnel sends the IP that it has been assigned (by the GSM operator) to a control centre. Every time a modem changes its IP address, the new IP must be sent to the control centre in order to report the change (IP 200.201.202.203 and port TCP 20000). This way, the PC control centre always knows the current IP of each modem

MTX-Tunnel firmware + MTX-Java-IoT/MTX-Java-T/MTX-Java-T2

Config.txt configuration file:

Configuration Observations

COMM_baudrate: 115200
COMM_bitsperchar: 8
COMM_autocts: on
COMM_autorts: on
COMM_stopbits: 1
COMM_parity: none
GPRS_apn: movistar.es
GPRS_login: MOVISTAR
GPRS_password: MOVISTAR
GPRS_DNS: 8.8.8.8
GPRS_timeout: 0
MTX_PIN: 0000
MTX_model: MTX-4G-JAVA-IOT-STD-N
MTX_mode: server
MTX_urc: off
TCP_port: 20010
FIREWALL_enabled: on
FIREWALL_IP1: 200.200.200.200
FIREWALL_IP2: 200.200.200.201
DNS_enabled: on
DNS_mode: socketDNS_extended: off
DNS_password: 12345678
DNS_server: 200.201.202.203
DNS_port: 20000
DNS_extended: off

Serial port baud rate
8 bit data
CTS hardware control enabled
RTS hardware control enabled
1 stop bit
No parity
GPRS APN from your network operator
GPRS Login
GPRS Password
Google DNS. Must be used if TCP_IP is set to DNS
Value 0 means MTX-Tunnel is GPRS always connected
If SIM card has no PIN security, use 0000
MTX terminal modem model used
TCP server mode
URC messages will not be sent
TCP port used
Accepts connections from authorized IPs
This IP address can only connect to remote modem
This IP address can only connect to remote modem
DNS service enabled
DNS server information sent via socket type
Password string sent in DNS communication
DNS server IP address
DNS server TCP port open
GPIO and ADC values extra information is not sent