bryan.odonoghue
Posts: 2
Joined: Thu Nov 01, 2018 12:30 pm

A simple UDP device -> server example

Thu Nov 01, 2018 1:31 pm

Hello.

I'm trying to understand the most basic requirements to send a test GPS string to a GPSgate server over UDP.

I'm reading this
http://docs.gpsgate.com/protocol/GpsGateTrackerOne.pdf

and trying to understand how many of those commands are required to get this simple GPS "ping" working as outlined here:

https://support.gpsgate.com/hc/en-us/articles/360008878033-Connecting-devices-to-GpsGate-Server

Set IMEI:
$FRRET,IMEI,_GprsSettings,,GpsGate TrackerOne,Super Tracker,1.31

Send location data:
$FRCMD,IMEI,_SendMessage,,latitude,hemi,longitude,hemi,alt,speed,heading,date,time
,valid

Is it required we must deal with incoming data from the server i.e. a whole transaction ?

Could you guys perhaps provide an example of a very simple UDP application that successfully communicates data to the server ?

manda007
Posts: 3
Joined: Tue Feb 13, 2018 6:29 pm

Re: A simple UDP device -> server example

Thu Nov 08, 2018 4:11 pm

First thing you need to change setting of device you are using to sent data on some static public IP on some port (defined in setting of device).
Second, then you receive this data (what kind of data depends on device you are using) make string like in example and forward to the GpsGate App on port 8008 (default according to manual)

You need to make and forward this kind of sting in (php, java, etc..)

Syntax:
http://hostname:8008/GpsGate/?cmd=$FRCMD...
Example:
http://online.gpsgate.com:8008/GpsGate/?
cmd=$FRCMD,353857014816785,_SendMessage,,4748.00000,N,3530.00000,E,34.6,234,90,170109,
120523.657,1


Third, you need to make custom device in GpsGate with settings (data you will receive ) in GpsGate and that is it.

Regards!

Return to “GpsGate for Developers”