Suchen Sie etwas anderes?
Scenario details:
- There are 100 devices with RS232 port (115200,8,N,1 and HW flow control) which need to be monitored from a Central Control site via 3G.For this purpose MTX-Tunnel will be used, acting as a 3G serial transparent tunnel
- It is necessary to monitor the modem from a Control Platform at any moment. That means, it should be possible to read the status of each modem (for example, coverage reading) and read/change the configuration of all the sets of modems at any time. For this purpose a TCP socket should be installed permanently FROM the modem TO the Control Server (in this sense you will be able to avoid problems with private IPs, etc). The Control Server will be able to send
Solution: MTX-Tunnel firmware + MTX-Java-IoT/MTX-Java-T/MTX-Java-T2
EXAMPLE of configuration (config.txt file):
Configuration | Observations |
COMM2_baudrate: 115200 COMM2_bitsperchar: 8 COMM2_autorts: on COMM2_autocts: on COMM2_stopbits: 1 COMM2_parity: none GPRS_apn: movistar.es GPRS_login: MOVISTAR GPRS_password: MOVISTAR GPRS_timeout: 0 MTX_PIN: 0000 MTX_model: 199801393 MTX_mode: server MTX_urc: off TCP_port: 20010 FIREWALL_enabled: off LINK_enabled: on LINK_IP: myserver.mydomain.com LINK:port: 20020 LINK_retryPeriod: 60 LINK_timeout: 900 LINK_keyId: ID12345678 |
Data rate of communication of serial port Number of bits CTS Hardware flow control activated RTS Hardware flow control activated 1 stop bit No parity APN GPRS provided by the GSM operator GPRS Login GPRS Password Modem is always GPRS connected SIM Card PIN MTX modem model Modem is configured as TCP server We do not need URC notification messages TCP port of MTX for 3G-RS232 gateway Firewall desactivated LINK Service activated Control IP or DNS where modem is connected to TCP port of the server specified in LINK_IP Secs before attempt to establish connection Timeout in case no commands are received The first text modem will send via LINK socket |
Details:
- Via Link socket (with LINK_parameters) you can send AT commands to modem at any moment
- Specify LINK_retryPeriod increased to avoid high data consumption if connectivity problems
- Use the parameter LINK_keyid to identify the modem that connects to your server
- Sending ATcommand to modem from server: embedded ATcommand (MTX_ATEmbedded: on):
- Modem coverage reading request from the Server:
- Command sent from the server: <MTXTUNNELR>AT+CSQ
</MTXTUNNELR> - Response from the modem:
<MTXTUNNELR>AT+CSQ +CSQ: 22,99 OK
</MTXTUNNELR>
- Command sent from the server: <MTXTUNNELR>AT+CSQ
- Configuration parameter COMM_baudrate reading request:
- Command sent from the server:
<MTXTUNNELR>AT^MTXTUNNEL=GETPARAM,COMM_baudrate</MTXTUNNELR> - Response from the modem:
<MTXTUNNELR>AT^MTXTUNNEL=GETPARAM,COMM_baudrate115200 OK</MTXTUNNELR>
- Command sent from the server:
- Configuration parameter COMM_baudrate change request.
- Command sent from server:
<MTXTUNNELR>AT^MTXTUNNEL=SETPARAM,COMM_baudrate,9600</MTXTUNNELR> - Response from the modem:
<MTXTUNNELR>AT^MTXTUNNEL=SETPARAM,COMM_baudrate,9600 OK</MTXTUNNELR>
- Command sent from server:
- Modem coverage reading request from the Server: