Fleet Control Example 1. Sending GPS position and I/Os to the server by GPRS.
In this example we will see how to configure the MTX-Tunnel-GPS. The device will be installed in a vehicle to periodically send its GPS position and I/Os (analog and digital inputs and outputs) to a PC Server. As well as sending the GPS position, GSM cells are required to obtain an approximate location in the event that there is no GPS coverage (for example, when the vehicle is underground or in a garage). In this case, the Telnet service will be activated to remotely connect to the device and be able to carry out maintenance.
Details of the example scenario:
- The GPS position of a MTX-Tunnel-GPS that is installed in a van needs to be sent to a central server with IP address 200.201.202.203 and TCP 20010.
- The MTX-Tunnel-GPS must take the GPS position every 30 seconds and send it in real time to a TCP socket server.
- In the event of there being no GPS coverage, the modem is required to send every two minutes a KeepAlive message with the necessary information to be able to locate the vehicle using GSM cell locations.
- Telemetry data (digital inputs) from devices that are connected to the digital inputs of the modem must also be sent.
- Remote access to the configuration of the modem must be available, as well as the ability to monitor data such as GSM coverage in any given moment, or to read the modem’s analog inputs that are connected to other devices. To do this, the Telnet service must be activated. For security reasons, the Telnet service must only be accessed via the central IP address, which is 200.201.202.210.
Proposed solution using MTX-Tunnel-GPS.
Configuration file of MTX-Tunnel-GPS for the previously proposed solution
This is the configuration that must be inputted in the file MTXTunnelGPS.jad of the modem to be able to carry out the implementation described in the scenario.
By configuring the MTX-Tunnel-GPS device with these parameters, the device will periodically send the GPS position to the PC Server. The structure of the file sent with the data can be found in the MTX-Tunnel-GPS file (specifically in Annex 1, page 73).