Suchen Sie etwas anderes?
Scenario details:
- We have 2 devices RS232 (115200.8, N, 1 flow control HW) linked by a serial cable through which data is sent. The intention is to replace this serial cable by a transparent RS232-4GRS232 link
- The equipment does not contain a PC, nor is it intelligent, and the internal control programs cannot be changed. This can be seen as “black boxes” with an RS232 serial port with no possibility of changing anything. Therefore it will be necessary to use an MTX-Tunnel on each side of the communication, one acting as a “server “and the other one acting as a “client”
- One of them, the server, will use a SIM card with fixed IP address 200.1.2.3 (although it could be used in this scenario, we will not be using DynDNS in order to simplify the situation). The Client must be programmed to be connected to the MTX-Tunnel Server’s fixed IP address at all times so that the tunnel Serial-4G-Serial is always set
Solution: MTX-Tunnel firmware + MTX-Java-IoT/MTX-Java-T2
Config.txt configuration file:
Configuration SERVER: | Observations |
COMM_baudrate: 115200 COMM_bitsperchar: 8 COMM_autocts: on COMM_autorts: on COMM_stopbits: 1 COMM_parity: none GPRS_apn: internetestatico.movistar.es GPRS_login: MOVISTAR GPRS_password: MOVISTAR GPRS_timeout: 0 MTX_model: MTX-4G-JAVA-T MTX_mode: server TCP_port: 20010 |
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 Value 0 means MTX-Tunnel is always connected MTX terminal modem model used TCP server mode TCP port used |
Configuration CLIENT: | 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_timeout: 0 MTX_model: MTX-4G-JAVA-T MTX_mode: client TCP_IP: 200.1.2.3 TCP_port: 20010 |
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 Value 0 means MTX-Tunnel is always connected MTX terminal modem model used TCP client mode Fixed IP if MTX-Tunnel is set as server mode Remote TCP port waiting for connection |
Details:
- A SIM card with a fixed IP address is being used because it is more convenient, but the MTX Tunnel server could use DynDNS if needed