Sending GPS via HTTP POST XML to Tickets

91 views
Skip to first unread message

Dr. Larry

unread,
Aug 6, 2020, 12:20:56 PM8/6/20
to Open Source CAD
Has anyone had any experience of sending gps data in xml format to the tickets server? I searched the group and found nothing, if it was posted forgive me in advance.,
I have a number of Moovbox's that send GPS data to third party software via http post in xml format.  below is the information from the manual about this:


If you wish to integrate your Moovbox with a third party tracking solution, enabling GPS Coordinate Transmission will send information to a remote server as an HTTP POST in XML format.

This information includes time stamp, latitude, longitude, altitude and speed. The third party application will need to be able to parse the data and interpret it as a supported device type.

HTTP URL Enter the URL of the target server location to where you want the HTTP POST request to be sent. This can be either HTTP or HTTPS; FTP URLs are not supported. The HTTP POST is in the following format: ... CHAPTER 1. DEVICE SETTINGS 13 ... ... ... ... ... ... ... 

The ellipses represent values that will be filled with data once the HTTP POST is made.

Most are standard decimal values with the exception of: Fix - either 0 for no GPS signal, 2 for 2D fix, or 3 for 3D fix (depending on the number and strength of satellite signals) Time - UNIX time (i.e. number of seconds since midnight UTC of Jan 1st 1970)

Thanks
Larry

Shawn Stoddard

unread,
Aug 6, 2020, 1:27:49 PM8/6/20
to open-source-cad
Do you have a sample XML document?
--
You received this message because you are subscribed to the Google Groups "Open Source CAD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-source-c...@googlegroups.com.

Jeff Silberberg

unread,
Aug 7, 2020, 11:08:03 AM8/7/20
to Open Source CAD

As Shawn posted you need the XML schema and then this should be fairly straight forward.   Having said that the advantage to XML and json is that they are mostly self documenting
put together a simple php script capture some data and write to the stream (text) file.  Then open that in your text editor of choice and you will have our fields.  . 

Then you can parse it into a structure and use the values you need..  Be sure to pay attention to the Fix value so you use the data correctly. 

-------------



On Thu, Aug 6, 2020, at 12:20, Dr. Larry wrote:
Has anyone had any experience of sending gps data in xml format to the tickets server? I searched the group and found nothing, if it was posted forgive me in advance.,
I have a number of Moovbox's that send GPS data to third party software via http post in xml format.  below is the information from the manual about this:


If you wish to integrate your Moovbox with a third party tracking solution, enabling GPS Coordinate Transmission will send information to a remote server as an HTTP POST in XML format.

This information includes time stamp, latitude, longitude, altitude and speed. The third party application will need to be able to parse the data and interpret it as a supported device type.

HTTP URL Enter the URL of the target server location to where you want the HTTP POST request to be sent. This can be either HTTP or HTTPS; FTP URLs are not supported. The HTTP POST is in the following format: ... ... CHAPTER 1. DEVICE SETTINGS 13 ... ... ... ... ... ... ... 

The ellipses represent values that will be filled with data once the HTTP POST is made.

Most are standard decimal values with the exception of: Fix - either 0 for no GPS signal, 2 for 2D fix, or 3 for 3D fix (depending on the number and strength of satellite signals) Time - UNIX time (i.e. number of seconds since midnight UTC of Jan 1st 1970)

Thanks
Larry


--
You received this message because you are subscribed to the Google Groups "Open Source CAD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-so...@googlegroups.com.

Arnie Shore

unread,
Aug 9, 2020, 4:33:45 PM8/9/20
to Open Source CAD
My late response to "Has anyone had any experience of sending gps data ..." is yes, a number of you do, possibly without realizing it.  Explanation follows.

Today's Tix implements twelve different mechanisms by which external position data is gathered automatically in order to update responder location information.  Of these twelve two handle XML-structured data while others mostly use JSON.

Those I'm aware of connect Tix to some server for a server-to-server data capture process, avoiding the issues of client implementations, some of which were notably problematic, early APRS an example some of you may have encountered.

An implementation of an additional type would include:
1.  A minor Responder schema revision to include a boolean for this type.
2.  A Settings addition to accommodate server connection information.
3.  A Config test script to to facilitate connectivity testing.
4.  Revisions to remotes.php to accommodate the new type;  Connection, data parsing, and position update on device id match.
5.  Some other minor revisions to show mobility type.

Items 3 and 4 above care about XML/JSON/whatever data format.  There's no shortage of PHP functions available for use on this.

HTH


Dr. Larry

unread,
Aug 17, 2020, 10:23:20 AM8/17/20
to Open Source CAD


I was able to get it working with traccar, I didn't get much help from opengts, and they don't know when they can do it, but I was able to get traccar to update their coding, and I have it working, with traccar 4.xx Now I'm trying to get it linked to tix. but still stuck. I tried a few methods and I cannot get tix to retrieve the data.

if you want the XML part I can still post it. there was an interesting issue, which I have reached out to ICOMERA. their LONG/LAT is reversed. this has been fixed in TRACCAR already.  If you want the HEX code and the XML format, let me know I will post it.
Larry

Shawn, KG4OVQ

unread,
Aug 17, 2020, 8:35:30 PM8/17/20
to Open Source CAD
We’ll definitely need samples if you want to push forward on that front. The more options - the greater chance for success.

Dr. Larry

unread,
Aug 17, 2020, 9:34:05 PM8/17/20
to Open Source CAD

The Moovbox sends out a http post in the following format:

<gps id="..."> <coordinates> <coordinate> <fix>...</fix> <time>...</time> <latitude>...</latitude> <longitude>...</longitude> <altitude>...</altitude> <climb>...</climb> <speed>...</speed> <separation>...</separation> <track>...</track> </coordinate></coordinates> </gps

The manual from Icomera states:
If you wish to integrate your Moovbox with a third party tracking solution, en-abling GPS Coordinate Transmission will send information to a remote serveras an HTTP POST in XML format. This information includes time stamp, lat-itude, longitude, altitude and speed. The third party application will need to be able to parse the data and interpret it as a supported device type.HTTP URLEnter the URL of the target server location to where you want the HTTP POST request to be sent. This can be either HTTP or HTTPS; FTP URL's are not supported.

The Actual output from a moovbox is:
POST / HTTP/1.1 Host: 192.168.1.2:5011 Accept: */* Content-Type: application/xml Content-Length: 329 <gps id="911"> <coordinates><coordinate> <fix>3</fix> <time>1597580050</time> <latitude>100.726257</latitude> <longitude>13.821351</longitude> <altitude>9.500000</altitude> <climb>0.000000</climb> <speed>0.064000</speed> <separation>-27.300000</separation> <track>0.000000</track> <satellites>9</satellites> </coordinate></coordinates> </gps>
***please note***
the Long and Lat are reversed, this is directly from the moovbox and not something that was changed. I dont know why its like this, but I have asked moovbox to see if this was corrected in a later version,
Reply all
Reply to author
Forward
0 new messages