Tunnel – Double 4G-RS232 tunnel. Two RS232 devices controlled by a single modem and a single SIM card. Client socket connection type

¿Buscas alguna otra cosa?

Scenario details:

  • We want to control 2 serial RS232 devices that are near to each other. Therefore, as the modem MTX-4G-Java-IOT has 2 serial ports, each serial port will be connected to one of two control devices which will save the system by using a single modem and a single SIM card
  • The modem is required to simultaneously create two 4G-RS232 gateways in client mode. The PC server’s 20010 TCP port will connect to the gateway that has access to the modem’s COM1 serial device and the 20011 TCP port will connect to the gateway that has access to the modem’s COM2 serial device
  • The 2 tunnels must be permanently connected

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

Config.txt configuration file:

Configuration Observations
COMM_baudrate: 9600
COMM_bitsperchar: 8
COMM_autocts: on
COMM_autorts: on
COMM_stopbits: 1
COMM_parity: none
COMM2_baudrate: 19200
COMM2_bitsperchar: 8
COMM2_stopbits: 1
COMM2_parity: none
GPRS_apn: movistar.es
GPRS_login: MOVISTAR
GPRS_password: MOVISTAR
GPRS_timeout: 0
MTX_model: MTX-4G-JAVA-T2
MTX_mode: client
MTX_urc: off
MTX_IDClient: ID1234ABCD
MTX_rssiLevel: 10
TCP_IP: 176.10.12.14
TCP_port: 20010
TCP_IP2: 176.10.12.14
TCP_port2: 20011
Serial port baud rate
8 bit data
CTS hardware control enabled
RTS hardware control enabled
1 stop bit
No parity
Serial port baud rate 2
8 bit data
1 stop bit
No parity
GPRS APN from your network operator
GPRS Login
GPRS Password
Modem is connected to GPRS permanently
MTXTerminal modem model used
TCP client mode
URC messages will not be sent
MTX identifier
Activation of signal level LED
The gateway associated with COM1 will connect to this IP
Gateway associated with COM1 will connect to this TCP
The gateway associated with COM2 will connect to this IP
Gateway associated with COM2 will connect to this TCP