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

GUIDE: Send GPS data to your own server using UDP

Sun Jul 08, 2007 9:33 pm

How to send GPS data to your own server using UDP

Option 1 - Without user authentication

The simplest way is to add a "UDP sender" as output in GpsGate, this will send all data without user authentication to a specified host/port.

Option 2 - With user authentication

If you will have several devices sending data to your server, you need to differ the data packages by user authentication.

Requires GpsGate 2.5 build 167 or later.

Follow those steps:
1. Open the Settings dialog
2. Go to the Output tab
3. Add "GpsGate.com (Send)" as output.
4. Click on the button "..." left of "online.gpsgate.com
5. Enter your server address and port number
6. Change "Protocol" to UDP
7. Click OK.
8. Enter username (and password)
9. Set sending interval in time or traveled distance.
10. Click OK.

GpsGate will now send UDP datagrams to the server + port you specified in the interval you specified.

The format of the datagrams are the following

$FRLIN,,username,password*CC
$GPRMC,...*CC

Where "CC" is an NMEA checksum
And $GPRMC is a standard NMEA RMC sentence
And "username" is username you specified above, and which you can use to identify the datagrams
And "password" is the password specified above. More info on encryption/decryption here:
http://forum.gpsgate.com/topic.asp?TOPIC_ID=5638

Other protocols

You can also send data to your server using TCP/IP or HTTP.

More info on HTTP here:
http://forum.gpsgate.com/topic.asp?TOPIC_ID=5637

Regards,
Johan

GpsGate Support

skufcar
Posts: 3
Joined: Mon Oct 29, 2007 5:52 pm
Location: USA

RE: GUIDE: Send GPS data to your own server using UDP

Sat Dec 29, 2007 6:34 am

I am developing my own UDP server in C# .NET 2.0 to accept GPS data. I am using option 2 with user authentication. I understand how to set up GpsGate to login using $FRLIN. You stated you use the username to identify the datagram. How exactly do you use the username to identify the datagram.
Are you sending both the $FRLIN and $GPSRMC sentences at once. Or are you sending the $FRLIN sentence and then the $GPSRMC. If you are sending the 2 sentences separate then how do you link up the login with the RMC sentence (the RMC sentence does not have any username info in it).

Thanks

Ron

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

RE: GUIDE: Send GPS data to your own server using UDP

Sat Dec 29, 2007 7:22 pm

GpsGate will send FRLIN and GPRMC in the same datagram. However the IP standard does not guarantee that all data will arrive at the destination in one datagram, it can be divided into several. (The split datagram can also arrive in a any order.)

The simplest solution is to assume FRLIN and GPRMC always comes in the same datagram, this is almost always the case.

A more advance solution will check which IP + port the datagram came from and then add all data from that particular source together and parse it.

Neither of the two approaches above can handle the fact that a orginal datagram split up to two new datagrams some times arrive in a different order. To handle that you need to use TCP/IP.

Regards,
Johan

Franson Support

skufcar
Posts: 3
Joined: Mon Oct 29, 2007 5:52 pm
Location: USA

RE: GUIDE: Send GPS data to your own server using UDP

Sun Dec 30, 2007 4:30 am

Thanks for the info it was very helpful.

thomasz
Posts: 4
Joined: Wed May 14, 2008 7:27 am
Contact: Website

RE: GUIDE: Send GPS data to your own server using UDP

Fri Jun 13, 2008 12:36 pm

Nice post. Thanks to share them.

JayFF
Posts: 116
Joined: Fri Oct 03, 2014 1:03 am
Location: USA
Contact: Website

Re: GUIDE: Send GPS data to your own server using UDP

Mon Apr 23, 2018 11:01 pm

Hi All,

I have been trying to figure out how to use this functionality, but I can't find the "Output" tab in the Settings page in either the Site Administration application or a user application. I have checked and "DataForward" plug-in is installed.

Any assistance will be greatly appreciated.

Regards,
Jay
J. F. Florey

Return to “GpsGate for Developers”