Connect two Trackers to a single Asset

This article explains how to configure two trackers under a single asset. With this setup, if the primary tracker goes offline, the backup tracker automatically takes over. In this article, let’s assume Teltonika FMC125 is the primary tracker and Teltonika Iridium Edge is the backup tracker.

Adding Two Trackers to the Same Asset

Device type configurations: 

In the Type Editor, go to the Device user type and select Devices.
Ensure that both Device 1 and Device 2 fields are Visible.

Create the asset: 

1. In the asset panel, select the 'Custom asset.'

 

2. Choose the trackers under Tracker 1 and Tracker 2 (e.g., FMC125 and Iridium Edge).
More details on how to set up the asset can be found in this guide

Note: The tracker under selected Tracker 1 will be the primary tracker, and the one under Tracker 2 will be the backup tracker. Both trackers will appear as a single asset in the asset list.

Handling Data from Trackers:

  • When trackers are connected:

    • All data from connected trackers is combined under the Tracks window.

    • There is no direct distinction between data coming from each tracker.

  • Example scenario:

    • You have two trackers installed on a vehicle:

      • FMC125 – reports position and fuel consumption.

      • Iridium Edge – reports engine temperature and oil pressure.

    • In GpsGate, these data points are merged based on the variable mappings set in the device mapper.

  • If you need to identify which tracker sends each data point:

    • Use the Terminal window to view raw data from each tracker, or

    • Create a script in the device mapper to separate and display the information in the Tracks window.

Terminal Window:

You can view the data reported by both trackers separately in the Terminal Window. You can switch between trackers to view their data (as shown in the image below). 

For this, right-click on the Asset and select ‘Show Terminal.’ 

OR

Click on the Asset, and then navigate to Main Menu > Window > Terminal.

Device Mapper Script:

Another method to display the data from both trackers separately is through device mapper scripting. You can view this data in the Tracks window.

How to set up: 

1. Create two custom fields by the names ‘Device 1’ and ‘Device 2’ and add them to the Device user type (in the type editor) as below.

2. Open the Asset - Edit details window: (Right-click the asset. -> Select ‘Edit’.)

3. Locate the fields ‘Device 1’ and ‘Device 2’.

  • In the ‘Device 1’ field, enter FMC125 (set as the primary tracker).
  • In the ‘Device 2’ field, enter Iridium Edge (set as the backup tracker)

4. Add scripts to the device mappers of both FMC125 and Iridium Edge to identify which tracker is sending data in the Tracks window.

  • Before adding the scripts, create a custom variable of type String—for example, name it ‘DeviceType’ (or any preferred name). This variable will store the output from the script.

5. Then, navigate to the device mapper for FMC125 and select ‘Scripts.’

  • Create a new script (e.g., name it DeviceType).

  • Set the Output Variable to DeviceName.

  • Click ‘Open Script Editor’and paste the following script.

 

var deviceid = user.getCustomFieldValue("Device 1"); //boolean return deviceid; 
  • Click ‘Test Script’ — this will generate the DeviceName variable with the value FMC125.

  • After confirming the output, click ‘Save’ to close the Script Editor.

  • Finally, save both the device mapper script and the device mapper to apply the changes.

6. Repeat the above steps for the Iridium Edge device mapper with the following script: 

var deviceid = user.getCustomFieldValue("Device 2"); //boolean
return deviceid;

 

Note: Ensure that the output variable is the same for both scripts. In this example, the output variable used is DeviceName.

Note: If both trackers are of the same model and share a single device mapper, create separate instances of the device type. Assign each instance a custom field (e.g., Device 1 and Device 2) to distinguish between them.

Tracks window

In the Tracks window, the device reporting the data can be identified by adding the DeviceName column.

By default, the Tracks window retrieves historical data from the primary tracker (FMC125), as indicated in the DeviceName column.

When the primary tracker (FMC125) goes offline, you can view the history data from the backup tracker (Iridium Edge).

By linking two trackers to a single asset, you maintain data continuity and enhance reliability. GpsGate consolidates the data for a seamless experience, while still allowing you to separate it using the Terminal or Device Mapper scripts when necessary.

Note: Billing counts only one asset, even if two trackers are attached.