Suchen Sie etwas anderes?
Scenario details:
- We need to collect daily data of meteorological logger equipment with an RS232 port using GPRS. We need to use a low power consumption modem as the main battery cannot be changed
- The GPRS modem has to be in low power mode (2 μA) for 24 hours
- Then, after 24 hours, the modem has to wake up and connect to the GPRS. The first task is sending their IP address to the server. The server stores this IP address in a database. Another software task in the server detects the new IP address and connects to it. The GPRS-RS232 tunnel is created and meteorological data can be obtained daily
- When the process has finished, the modem goes back into ultra low power for another 24 hours and the entire process is repeated
Solution: MTX-Tunnel firmware + MTX-Java-IoT
Config.txt configuration file:
Configuration | 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_DNS: 8.8.8.8 GPRS_timeout: 0 MTX_model: 199801454 MTX_mode: server MTX_ATEmbedded: on MTX_ATEmbeddedPass: 1234 TCP_port: 20010 FIREWALL_enabled: off DNS_enabled: on DNS_mode: socket DNS_server: 288.2.242.14 DNS_port: 20010 ULP_enabled: on ULP_sleepMode: minutes ULP_minutesOff: 1440 ULP_secondsOn: 600 |
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 Google DNS. Must be used if TCP_IP is set to DNS Connected to data while active MTX terminal modem model used TCP server mode Modem allows sending embedded AT from gtw Password to send data TCP port used Any incoming connection form any IP is allowed IP to DNS sending activated Information via TCP socket Server IP receiving MTX IP Server TCP receiving modem IP Modem ULP activated Wake up every X minutes Asleep during 24 hours Awake during 10 minutes |
Details:
- The remote modem sends their IP address to the server using this text string format:
#IMEI#DNS_password#IPPublica#
IMEI is the modem’s IMEI identifier. DNS_password is a user configurable parameter. IPPublica is the public IP address the modem gets
The “DNS_extended: on” parameter can be also used for an extended text string format:
#IMEI#DNS_password#IPPublica#gpio1#gpio2# … #gpio10#adc1#adc2# - Functioning is:
1. Modem awakes
2. Modem sends its IP to DNS_server:DNS_port
3. When the server receives the IP, the server detects the modem is awake
4. The server opens a socket towards the modem IP and TCP_port
5. The server uses IP-RS232 gateway to read the weather station
6. Once the reading is finished, we can let the modem turn off on its own, after being awake for ULP_secondsOn or, since embedded AT commands are activated, we can send the following AT command via IP-RS232 gateway so it’s executed by the modem:
<MTXTUNNELR 1234>AT^MTXTUNNEL=SETULPSECONDS,10</MTXTUNNELR>
This will adjust the remaining modem time to enter ULP mode (to shut down) to 10 seconds, and the shut down will be immediate.