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:
It is assumed that:
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.
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.
Fig.2. Vehicle GPS tracker. "Data Redirecting" plug-in configuration.
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 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|
|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|
|Date and time||DATE_TIME|
|Number of satellites||GLONASS_SAT_NO|
|#1 analog input value||AI1|
|#2 analog input value||AI2|
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).
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.
Fig.4. Vehicle GPS tracker. Data being redirected.