GPS-TRACK.TK
Configuration
HTTP GET
In order to send a request to a HTTP server you need to connect the device directly to the HTTP server and send the GET command.
An example:
GET /test/test.php?Lon=10.12345&Lat=50.12345 HTTP/1.1 [crlf]
Host: www.testserver.com [crlf]
[crlf]
PFAL command
In order to send this multiple line command you can use the Workbench editor: Please uncheck the [ ]CRC field before sending the lines and follow the example (send all three lines single by double clicking them):
USE EXACTLY THIS LINE if you want to use the simple-http-tracker for your test!
PFAL,CNF.Set,AL0=TCP.Client.eConnected:TCP.Client.Send,0,"GET /map/input.php?date=&(Date)&time=&(Time)&lat=&(Lat)&lon=&(Lon)&imei=&(IMEI) HTTP/1.1
Host: f34.onpw.de
"
TCP settings
Perform the configuration to connect the device to your HTTP-server:
PFAL,CNF.Set,TCP.CLIENT.CONNECT=0,62.113.209.124,80
Send format
Header, footer and checksum have to be disabled in order to send only
the raw data of the request:
PFAL,CNF.Set,DEVICE.PFAL.SEND.FORMAT="",NOCKSUM,"",""
Client login
Make sure that the client login is disabled
PFAL,CNF.Set,TCP.CLIENT.LOGIN=0
Trigger the connect
In order to get a new position on the HTTP-server, for example every 10
minutes, start a cyclic timer and connect on the timer event. The HTTP
server will close the connection automatically after receiving the GET
and sending its response.
PFAL,CNF.Set,AL1=SYS.Device.eStart:SYS.Timer0.Start=cyclic,600000
PFAL,CNF.Set,AL2=SYS.Timer.e0:TCP.Client.Connect