Community discussions

 
nemke
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 80
Joined: Thu Jul 31, 2014 2:52 am

GPS http send to GpsGateServer script

Sun Jul 22, 2018 12:20 am

Hello
I manage to setup LtAP and GpsGate Server to communicate and server recive cordinate. Problem is that all work manually when I input all parametars in fetch comman
Format for Server is:
http://IPADDESS:PORT/GpsGate/?$FRCMD,IMEI,_SendMessage,,latitude,hemi,longitude,hemi,alt,speed,heading,date,time,valid
So command on MT is:
/ tool fetch mode=http url="http://192.168.88.85:8008/GpsGate/\?cmd ... 8,222518,1" keep-result=no

In this format it work with no problem. So I like to do script to TAKE needed value from MT, and put in in fetch command to automate process

Where is from MT:
IMEI - 1234567890
Latitude - N 44 50' 39.972"
Longitude - E 20 24' 35.190"
Altitude - 97.5
Speed - 0,07
Date - 210718
Time - 222512
Valid Fix - 1

I am not good in scripting to make this script :-(

So any help is needed

Thank you
 
User avatar
kinx
just joined
Posts: 6
Joined: Mon Sep 04, 2017 9:16 pm
Location: 127.0.0.1
Contact:

Re: GPS http send to GpsGateServer script

Mon Aug 06, 2018 2:19 am

Hi,

Have you already been able to make a script that works with GpsGate? I'm interested too and have bought a LtAP LTE + external GPS antenna for testing in one of our vans.
If it's working fine we'll use it for tracking our vehicles and also providing WiFi Internet through LTE for the built-in Android tablets & navigation purposes.

And when it's working great, we'll suggest it to our customers :D
 
nemke
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 80
Joined: Thu Jul 31, 2014 2:52 am

Re: GPS http send to GpsGateServer script

Mon Aug 13, 2018 2:41 am

Yes, but work only if I put manual value on it.
I want to make script that do the jub auto, take "log" and "lat" and "speed", put value in sitax which is needed to be send to GSPGate.
If I make script and I write this value, after run command I see position on GPS Gate server
/tool fetch mode=http url="http://192.168.88.85:8008/GpsGate/\?cmd ... 22518,1*65" keep-result=no

This script work, but value for log, alt and speed need to be taken direct from ROS and put in script. That part I can't do, don't know how. Problem for me is that this value can't be taken like $[system gps get longitite]

Who is online

Users browsing this forum: No registered users and 6 guests