Suchen Sie etwas anderes?
Scenario details:
- There are a few hundreds of devices with RS232 port ( configurated at a 115200,8,N,1 and flow control HW). We need to monitor them from a Computer with Internet connection
- It should be possible to access RS232 devices at any moment, therefore the modem connected to the serial port of the device should be connected to 4G 100 % of the time waiting for a connection (or to 3G if there is no 4G coverage). The modems will remain waiting for incoming connections through TCP 20010 port to create 4G-RS232 transparent gateway
- SIM cards with private APN providing fixed IP address will be used
- The modems should be supervised by SNMPv2c protocol. By means of the protocol it should be possible to read the state of the modems as well as their configuration. Via SNMP it should be also possible to change remote configuration, as well as carry out remote resets, if necessary, and fulfill any other task
Solution: MTX-Tunnel firmware + MTX-Java-IoT/MTX-Java-T/MTX-Java-T2
EXAMPLE of configuration (config.txt file) for the scenario that each MTX-Tunnel should have:
Configuration | Observations |
COMM_baudrate: 115200 COMM_bitsperchar: 8 COMM_autocts: on COMM_autorts: on COMM_stopbits: 1 COMM_parity: none GPRS_apn: mycompany.movistar.es GPRS_login: MOVISTAR GPRS_password: MOVISTAR GPRS_timeout: 0 GPRS_mode: auto MTX_PIN: 0000 MTX_model: MTX-4G-JAVA-IOT-STD-N MTX_mode: server MTX_urc: off MTX_ping: 35 MTX_pingIP: 8.8.8.8 MTX_urc: off MTX_ATLimited: off TCP_port: 20010 FIREWALL_enabled: off TELNET_enabled: on TELNET_login: user TELNET_password: 1234 TELNET_port: 20023 SMS_allPhones: on SMS_ATEnabled: on SMS_ATResponse: on SNMP_enabled: on SNMP_port: 161 SNMP_community: public SNMP_communityW: public |
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 MTX-Tunnel is always GPRS connected 3G and 2G connection in case there is no 3G If SIM card has no PIN security, use 0000 value MTX-Terminal modem model used TCP server mode URC messages will be not output Ping every 35 minutes without comms IP address to ping We don’t need URC information messages To execute any AT command TCP port used Any incoming connection form any IP is allowed Telnet is activated Telnet login Telnet password Port chosen for Telnet All phone numbers are authorized AT commands via SMS enabled SMS responses to sent AT commands enabled SNMP service enabled UDP port forSNMP. 161 is standard port “Password” for GET operations (reading) “Password” for SEToperation (writing) |
Details:
- To download MIBS database for SNMP use the following link: https://www.dropbox.com/s/g6bfa0xxh4xcykp/MTXTUNNEL-MIB?dl=0
- The MIB provided in the previous link can import it in its SNMP management software. Here is an example of SNMP query where the coverage (in dBm) and firmware version were read.If you want to try out the same software, be sure to fill in the fields marked in red
- Use 2 OIDs to carry out actions: the one indicated as mtx Reset and the one indicated as mtx ATCommand. The first one will help you to execute a remote reset of the device. The second one will allow to execute an AT command in the modem the same way it would do it through Telnet,SMS…
- To execute an AT command via SNMP, simply send it to be executed together with a SET command of the OID mtx ATCommand. Then, to read the result of the AT command, execute a GET command of the same OID. The execution of the command AT+CSQ for coverage reading is shown on the screen below