It is necessary to receive data packets from the GPS tracker, write them to the log file and send them to another server for further processing. The tracker uses the plain ASCII format and does not require data receipt confirmation from the server. Sample information packet:
It is assumed that:
You have configured the parameters of connecting to the device and the parser for the GPS tracker the way it is described in this article;
Note: Do not mind the "srvi" prefix before FULL_DATE_PACKET or DATE_PACKET because the DDE server adds it for internal needs.
Fig.1. GPS tracking. DDE server window.
It is enough just to redirect the data from the FULL_DATA_PACKET variable to another IP address. You can do it with the filtering "Data Redirecting" plug-in. But you have to configure a new TCP/IP connection before that.
Note: The program can redirect only that data from the GPS tracker that the parser supports and processes. For example, if the tracker sends several types of packets and the parser processes only one of them, you will be able to redirect only that one packet.
You have to create a new configuration in order to configure a new connection. Click the Green Plus button in the main window of the program for that. You have to configure only the TCP/IP parameters in the new configuration (fig. 2).
Since you need to send data to another server, the new configuration must run as a TCP client.
Fig.2. GPS tracker. TCP client configuration.
Click the "OK" button to save the changes in this configuration.
Now you need to enable and configure the "Data Redirecting" plug-in (fig. 3) in the configuration where the parser is running and that is receiving data from the satellite tracker.
Fig.3. GPS tracking. Enabling the "Data Redirecting" plug-in.
To configure the "Data Redirecting" plug-in (fig.4), select it in the list and click the "Configure" button under the list.
Fig.4. GPS tracking. "Data Redirecting" plug-in configuration.
Now you have to save all the changes. To do it, close all dialog boxes by clicking the "OK" button.
After the data is received from the GPS tracker, you will see information about the data being redirected in the message log of the program (fig. 5).
Fig.5. GPS tracking. Data redirection message.
If you switch to the TCP client configuration (fig. 6) in the main window of the program, you will be able to see the data being redirected.
Fig.6. GPS tracker. Data being redirected.