User avatar
johan
GpsGate
Posts: 14224
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

FEATURE: Data Forward.

Fri May 31, 2013 6:34 pm

FEATURE: Data Forward.

The DataForward plugin can be used to forward the unmodified data sent from a device to one or many other servers. For example a GpsGate Server setup for testing that needs some real world data. Or some other tracking system.

In this way you can use one GpsGate Server as a data switch. Selected sets of device data is forwarded to selected servers.

INSTALL

1. Login to SiteAdmin
2. Go to Plugins
3. Change URL to labsupdate.gpsgate.com
4. Go to "Gate More Plugins".
5. Install DataForward


SETUP SERVER ADDRESSES

1. Login to SiteAdmin
2. Go to Service (top menu)
3. Go to Data Forward (left menu)

4. Click on Add Server
5. Enter a name, the IP to forward data to and port number.
6. Save.

You can add any number of servers. In the next step it is explained how you direct which devices to which servers.


ACTIVATE IN APPLICATIONS

1. Login to SiteAdmin
2. Go to Applications
3. Click on the application you want to add Data Forward to.
4. Select _DataForward under Enable/Disable features
5. Select the Servers you want enabled for this application under _DataForward
6. Scroll down and press Save.

7. Login to application.
8. Select Roles from Admin menu.
9. Click on "Create Copy" next to _Unit
10. Enter a name e.g. "Data Forward to MyServer". Click Nexdt
11. Select the users you want data forwarded for (can be a good thing to test with only one first). Click Next.
12. Select _DataForward and the server you want to enable.
13. Save.

Now data from devices in this Role will be forwarded to your external server. Data is forwarded in unmodified form.


PROFILING

1. Login to SiteAdmin
2. Go to System Tools (top menu)
3. Go to Profiler (left menu)

Under the category "DataForward" you can find statistics on data forwarded to each server.

Regards,
Johan

GpsGate Support

Cerberus
Posts: 35
Joined: Sat Sep 29, 2012 11:24 am
Location: Malaysia

RE: FEATURE: Data Forward.

Sun Sep 15, 2013 7:54 am

If one gss forward to another gss server, what port should be used?

ggsgeek
Posts: 319
Joined: Wed Feb 02, 2011 6:51 am

RE: FEATURE: Data Forward.

Sun Sep 15, 2013 10:05 am

It should be same as your GPS Tracking device's port on the server. Connection type will always be UDP by default.

Cerberus
Posts: 35
Joined: Sat Sep 29, 2012 11:24 am
Location: Malaysia

RE: FEATURE: Data Forward.

Mon Sep 16, 2013 9:51 am

Since it is UDP, the tracker must be sending using UDP also right?

User avatar
johan
GpsGate
Posts: 14224
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: FEATURE: Data Forward.

Mon Sep 16, 2013 11:17 am

The best way to understand how something works is to test. Just test and you will see. That is almost always the answer.

Data Forward will forward data over UDP independently on which transport the device did send data over to the original server.

Regards,
Johan

GpsGate Support

Cerberus
Posts: 35
Joined: Sat Sep 29, 2012 11:24 am
Location: Malaysia

RE: FEATURE: Data Forward.

Tue Sep 17, 2013 5:14 am

Johan,

Testing was done prior to asking.

Anyway confirm that the tracker has to be switched to UDP for the data forward to work. OnTCP it does not work.

Tested over 2 days.

ggsgeek
Posts: 319
Joined: Wed Feb 02, 2011 6:51 am

RE: FEATURE: Data Forward.

Tue Sep 17, 2013 8:57 am

Tracker does not need to be converted to UDP. Here's how this works

Tracker (your GPS Tracking device in a vehicle)
Server1 (Your tracker is configured to send data to Server1 where GGS is installed. Say port on which Tracker sends data is 5555)
Server2 (Another server which receives forwarded data from the Server1, Tracker and Server2 does not know each other and are never directly connected. Server2 may or may not be a GGS installation. Server2 is listening on port 7777 for incoming data from Server1.)

Tracker ----->TCP/UDP/SMS-----> Server1:5555

Server1 ----->UDP------> Server2:7777

And as you can see from the (so called) data flow diagram, Tracker only interacts with Server1 and it has no role to play for data being forwarded to Server2. That is under the jurisdiction of Server1. You will configure on which port of Server2, Server1 will send the data to.

Hope this helps.

User avatar
johan
GpsGate
Posts: 14224
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: FEATURE: Data Forward.

Tue Sep 17, 2013 10:59 am

For some trackers the protocol used over UDP is different from the protocol used over TCP (and HTTP and SMS). But most have a unified protocol where transport does not matter.

Cerberus: Which type of GPS tracker do you use?

ggsgeek: Thanks for your clarifying explanation!

Regards,
Johan

GpsGate Support

Cerberus
Posts: 35
Joined: Sat Sep 29, 2012 11:24 am
Location: Malaysia

RE: FEATURE: Data Forward.

Tue Sep 17, 2013 3:24 pm

Thanks for the reply. We tried TCP but didn't work. Once UDP was selected the data came in.

Tracker is Teltonika FM1100

User avatar
johan
GpsGate
Posts: 14224
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: FEATURE: Data Forward.

Tue Sep 17, 2013 3:31 pm

Teltonika uses different protocols over UDP and TCP. That is why it does not work with Teltonika unless you use UDP from the device as well.

Regards,
Johan

GpsGate Support

ggsgeek
Posts: 319
Joined: Wed Feb 02, 2011 6:51 am

RE: FEATURE: Data Forward.

Wed Sep 18, 2013 8:06 am

@Cerberus: Go by the manuals of Teltonika and Gpsgate and make sure your tracker sends data to the server first. Please get this first part working right. Once that is working successfully, Data-Forward can be setup easily.

grigor
Posts: 90
Joined: Mon May 14, 2012 6:41 pm
Location: Albania

RE: FEATURE: Data Forward.

Sun Dec 08, 2013 3:01 am

hello all,

please can someone help me? i have server A and server B. on both server have installed GGS now i want to send data from server A to server B. recently i use Meitrack VT300,MVT380 and Teltonika FM42, device teltonika i configure to send data via UDP.

at server A i have add ServerB:1111(port) to comes data from server A. now at one application i ahve add one device but no data comes from server A.

If i go to profiler i see that server forward data. when can o see on server B this data? how can show them on application?


thanks and regards,
Grigor

ggsgeek
Posts: 319
Joined: Wed Feb 02, 2011 6:51 am

RE: FEATURE: Data Forward.

Sun Dec 08, 2013 1:35 pm

ServerA should forward data on ServerB's port on which Meitrack protocol listener is configured to listen incoming data packets. Listeners are regardless of who sends the data so it does not matter if data is coming from a real-device or being forwarded by any other server or proxy. The only difference is, you cannot have two way communication if the data is being forwarded by a server.

grigor
Posts: 90
Joined: Mon May 14, 2012 6:41 pm
Location: Albania

RE: FEATURE: Data Forward.

Tue Dec 31, 2013 11:48 am

hello ggsgeek,

by using port 8500 of meitrack we can forward data from one server to another server, server a send data by using 8500 port to server b. now can we use again server a to send data by using 12050 port to server b? it is possible?

Thanks and regards,
Grigor

ggsgeek
Posts: 319
Joined: Wed Feb 02, 2011 6:51 am

RE: FEATURE: Data Forward.

Tue Dec 31, 2013 1:26 pm

Yes that is possible. You need configure the outbound points in the data-forward. Activate those points to any device whose data you want to be forwarded to the given outbound point.

Return to “GpsGate for Developers”