Send GPS lat,sat with http POST

z3eed

New Member
Licensed User
Could anyone help me?

I would like a small application that can connect to GPS, read the position and then send it with HTTP POST.

I know there already are examples here to do job but Im not a VBscripter.

http://www.b4x.com/forum/code-samples-tips/4603-http-get-post-example-online-viewer.html
http://www.b4x.com/files/GPSExample.zip

I will contribute to the one helping me with this.

Would be nice with a small easy application.
One textfield that you can enter the http URL in.
One textfield that you can enter a ID in (long string).
One textfield for automatic update interval.
One button for manual update to http URL (with POST)
One button for the automatic update to http URL (with POST)

The entered text should be saved in a INI file on the PPC.

Anyone up for the challenge?

Best regards // z3eed..
 

glook

Member
Licensed User
Longtime User
Hello z3eed,

By pure coincidence, I've been looking at GPSDriver this week, for use in a large application of mine.

It may be possible to adapt a small "proof-of-concept" program that I've written to function as you described. I will see what I can do.

Geoff.
 

glook

Member
Licensed User
Longtime User
z3eed,

This is a very simple program based on GPSDriver, so it requires WM 5 or 6 and .net CF 2. It's written for a 240x240 display so would need a little resize code to make it look nicer on 240x320, but it runs fine on my iPAQ6915.

Doesn't quite follow your requirement list exactly because it was adapted from another program, but has all the functions:
1st screen displays various GPS data and -
Connect/Disconnect menu for the GPS with text indicator
Start/Stop auto logging, with indicator, plus Options menu
Button for to send a log event manually
Option screen has -
Text box for URL and ID string
Combo with several pre-set intervals, 30 sec to 10 mins
HTTP POST sends 4 values - sattime (UTC), ID, lat and lon
Settings are read and saved in an INI file

Much of the code is based on Erel's examples (of course - :sign0188.

The HTTP server response is shown in a MsgBox. Obviously this needs to be removed and the program improved before real use, but perhaps the basis of what you need?

There are some screen shots on my website here. Source code and ini file are in the attached zip.

Regards,
Geoff.
 

Attachments

  • GPS2web-source.zip
    2.6 KB · Views: 246
Cookies are required to use this site. You must accept them to continue using the site. Learn more…