Last post Jul 21, 2008 03:45 PM by roi972
Jul 20, 2008 06:03 AM|roi972|LINK
I was wondering if it's possible to set up a web server (ASP.NET C#) only to receive data(no forms) from a GPRS modem , that will transmit gps data every couple of seconds ?
The data would then be saved to a database, and maybe later on would be populated on a different site showing the current location based on the gps data.
(I searched the forums, but did not find anything useful as of yet)
Thanks for any reply ,
Jul 20, 2008 08:53 AM|doitconsultants|LINK
Yes and I am actually doing some work with this.
Here's a couple links I found useful.
I hope this helps.
Jul 20, 2008 10:19 AM|roi972|LINK
Hi doitconsultants !
Thanks for your quick reply and links - I'm actually looking more into the aspect of the Webserver itself(someone else it writing the application for sending information) - how to set up a webpage/or web service that will receieve gps data (via GPRS) .
I'm guessing it will be best that the data be sent as XML and then receieved by the webservice - but I don't really know where to start ...
Awaiting more answers,
Jul 20, 2008 10:31 AM|doitconsultants|LINK
The web service should be straightforward. I just depends on how much you want to save with each reading. Obviously you want the Lat and Long passed as decimal. Also, you will want a time stamp of when the waypoint is sent. Are you going to store the
elevation or speed? those are just more parameters. Since someone else is building the app, you just need to supply them with this webmethod like
AddPoint(decimal Lat, decimal Longitude, DateTime TimeRegistered)
In the web method, save the values to the database.
In the client, reference the web service and pass the values from the gps.
Is there any other data that will coming with the gps data?
Jul 20, 2008 10:40 AM|doitconsultants|LINK
Here's also a CodePlex project that sounds like it does what you are looking for.
Jul 21, 2008 03:45 PM|roi972|LINK
Hi Mike Douglas ,
Thanks for your quick reply, sorry it took me some time to respond.
I am more or less on track now - thanks to your guidance.
I had some difficulty with the client side - but that is also solved(I think) - the client is java coded, so I had to search around to find out how java can connect to a ASP.NET web service, but as said, that was solved.
Will be doing some testing with a GPRS modem tomorrow, will post my result afterwards.
(Leaving this open for a while to see if there are other ideas)...