Suchen Sie etwas anderes?
Scenario details:
- We have a device with an RS232port (9600,8,N,1 and without flow control HW). This device, when an alarm is created, sends a data packet that, for security reasons, must be sent to 3 different servers.
- The communication with the servers must be made using UDP data packets. The different server addresses are: 200.1.1.1, 200.1.1.2 and 200.1.1.3. The 3 servers expect to receive the data in the UDP port 20010
- Servers also must be able to send data to the device for settings and supervision issues. They send the data packets to the port UDP 20000
Solution: MTX-Tunnel firmware + MTX-Java-IoT/MTX-Java-T/MTX-Java-T2
EXAMPLE of settings (file config.txt) for this scenario:
Configuration | Observations |
COMM_baudrate: 9600 COMM_bitsperchar: 8 COMM_autocts: off COMM_autorts: off COMM_stopbits: 1 COMM_parity: none GPRS_apn: movistar.es GPRS_login: MOVISTAR GPRS_password: MOVISTAR GPRS_timeout: 0 MTX_PIN: 0000 MTX_model: MTX-4G-JAVA-T MIX_mode: udp MTX_urc: off MTX_ping: 35 MTX_pingIP: 8.8.8.8 UDP_IP: 200.1.1.1,200.1.1.2,200.1.1.3 UDP_remotePort: 20010 UDP_localPort: 20000 FIREWALL_enabled: off |
Serial port baud rate 8 bit data No flow control No flow control 1 stop bit No parity GPRS APN from by GSM operator GPRS Login GPRS Password GPRS connection is active 100% of time If SIM card does not have PIN, leave as 0000 The MTX model chosen The modem is set up as UDP We do not need URC information messages Every 35 min. without communications, one ping Address where the ping is made The 3 servers addresses, separated by commas UDP remote port of servers where data will be sent UDP local port where servers will send data Firewall disabled |