GPS Tracker Data Logger

Trust In Confidence!

For Windows 2000 - Windows 10 (2016) (incl. Server, x86 and x64). Latest version: 2.7.4 build 131. .


Vehicle GPS tracker: Redirecting data from a GPS tracker to another server changing the format of the GPS tracker

Task:

It is necessary to receive data packets from the Vehicle GPS tracker, write them to the log file and send them to another server for further processing. The other server (other software) supports only one data format and it is impossible to connect other trackers to it directly. It means that GPS Tracker Data Logger will run as a converter in this case. The tracker uses the plain ASCII format and does not require data receipt confirmation from the server. Sample source information packet:

&REPORT,000577,140909,092601,2018.6667,N,02425.4444,E,
0,0,181,17,513,00,00.03,00.03,3,04,04

Requirements:

  • GPS Tracker Data Logger Professional or the trial version;
  • ASCII data parser and query plug-in for Data Logger;
  • Special "Data Redirecting" plug-in for the logger;
  • DDE server plug-in for the logger (optional, for testing purposes).

It is assumed that:

  1. You have configured the parameters of connecting to the device and the parser for the vehicle GPS tracker the way it is described in this article;
  2. You have configured the TCP/IP connection with the other server the way it is described in this article.

Solution:

After you configure and test the parser with the help of DDE, you can get down to configuration right away. All you have to do is configure the necessary "Data Redirecting" plug-in (fig. 1) in the configuration where the parser is running and that is receiving data from the vehicle GPS tracker.

Note 1: You should disable the "Data redirecting" plug-in on the "Request Analysis Filter" tab.

Note 2: The "Data Redirecting" plug-in can convert information packets only into one supported format.

Vehicle GPS tracker. Enabling the "Data Redirecting" plug-in.

Fig.1. Vehicle GPS tracker. Enabling the "Data Redirecting" plug-in.

To configure the "Data Redirecting" plug-in (fig.3), select it in the list and click the "Configure" button under the list.

GPS tracker. Data redirecting configuration.

Fig.2. Vehicle GPS tracker. "Data Redirecting" plug-in configuration.

  1. Specify the destination IP address and port the way it is displayed in the list in fig.2 pos. 2;
  2. Select an item from the drop-down list and set one of the variables specified in the parser for it.

For example, the table below contains the list of fields and data types the plug-in expects to receive from the parser. While setting the items, you should take into account that the "Data Redirecting" plug-in expects to receive data from the parser in the specified format. You should also take into account that the list of fields depends on the format of the information packet that will be generated. While setting the values, the plug-in may automatically convert:

  • A real number into an integer by dropping the decimal part;
  • An integer into a real number;
  • A number into a sting;
  • A string into a number;

A number into a logical value (0 is false, any other value is true)

Data packet field Data type Description
IMEI String Device identifier (number, IMEI, etc.)
Date and time DateTime UTC
Longitude Float in the GPS format, e.g. 48.71514
Latitude Float in the GPS format, e.g. 48.71514
Altitude (m) Integer Meters above the mean sea level
Direction Float Angle in 0-360 degrees
Velocity Byte Kph
Distance DWORD Covered distanve, km
Relay 1-8 Boolean 1-8 Relay state
Sensor 1-8 Boolean 1-8 sensor state
ADC 1-4 Byte 1-4 ADC value
1-2 Voltage Float Voltage in volts from 0 to 25.5
GPS Byte Number of satellite (0 – 14)

For example, you can match the packet field in the following way:

Data packet field Parser variable name
IMEI DEVICE_ID
Date and time DATE_TIME
Longitude LONGITUDE
Latitude LATITUDE
Altitude ALTITUDE
Course COURSE
Number of satellites GLONASS_SAT_NO
Velocity SPEED
#1 analog input value AI1
#2 analog input value AI2
Distance ODOMETR

You should specify the default value for those fields in the data packet that have no variables for matching. This value will be also used if it is impossible to automatically convert the data type of the parser variable into that one of the data packet field.
You can set proportional scaling for those analog values that can exceed the limits of the possible range.

Now you have to save all the changes. To do it, close all dialog boxes by clicking the "OK" button.

After data is received from the vehicle GPS tracker, you will see information about the data being redirected in the message log of the program (fig. 3).

Vehicle GPS tracker. Data redirection message.

Fig.3. Vehicle GPS tracker. Data redirection message.

If you switch to the TCP client configuration (fig. 4) in the main window of the program, you will be able to see the data being redirected.

Vehicle GPS tracker. Data being redirected.

Fig.4. Vehicle GPS tracker. Data being redirected.