问题
How do I go about building a GPS tracking system with mobile (with GPS) in C#.net ? The scenario is
Track a user (service engineer, nothing illegal here) via a GPS enabled mobile Phone. What software and hardware will I require? Is there any open source implementation?
For a vehicle tracking system, how do I go about with GPS? I would like to know the various steps/procedure. I am looking for some right direction.
回答1:
I built a Window Forms version to display information from a GPS. Haven't really touched it much since, but if you are interested the code is on CodePlex.
http://gps.codeplex.com/SourceControl/changeset/view/24953#146657
All that you need to do to get this tracking somebody is
- Convert to Windows Mobile
- Build a Web Service for recording location
- Modify code to post location to Web Service every so often
Really I already did the hard work, or parsing the GPS commands from the serial connection for you. :)
回答2:
Its actually not that hard (done it myself!).
Best place to start looking is here:
http://msdn.microsoft.com/en-us/library/bb158708.aspx
You will need to download the windows mobile 6.0 SDK from here:
http://www.microsoft.com/downloads/details.aspx?FamilyID=06111A3A-A651-4745-88EF-3D48091A390B&displaylang=en
The sdk actually contains a sample GPS application that you can use to customize to your own needs.
回答3:
I've been looking into this myself and I came across this
http://www.codeplex.com/SharpGPS
It's a GPS library based on .NET 2 full or CF, I haven't tried it yet but it looks pretty promising
回答4:
Since you mention C#, you will need a phone that runs Windows Mobile. And has GPS of course.
After you download and install the WinMob 6.1 SDK, you can simply start a Smart Device project in V. Studio.
You can read the GPS either through a SerialPort or use the GPS API. There is a managed wrapper for the API in the SDK samples folder. (The WM 5 version had some problems, Google for that).
When you can read the position, you will have to send it to a Server somewhere. WinMob has support for calling WebServices in a intermittently connected situations.
回答5:
you can find more info at: http://www.miisoft.it/portale/index.php/programmazione/37-c/51-gps-parte-i Here you can find notice about gps, parsing NMEA string and example code.
回答6:
- First define the requirements, what functionalities your software should have
- Decide on the platform: iPhone, Windows Mobile, Symbian, Android or something else
With "C#.net" you will likely be able to develop only for Windows Mobile.
回答7:
If you are wanting a vehicle tracking system, why not buy one, as there are plenty out there. If you don't really know how to go about it, I'm not sure you'll be able to produce a solution at lower cost than a commercial system.
回答8:
Try tracking location of GPS enabled mobile in PC:
- develope android app in mobile (which gives permission to access GPS...coded in Android Manifest.xml)
- develope PC app using .net which takes Location data from server and plot the location on PC by automatically generating Javascript
来源:https://stackoverflow.com/questions/1062725/c-gps-tracking-system