C#:GPS 跟踪系统

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1062725/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 07:19:43  来源:igfitidea点击:

C#: GPS Tracking system

c#gpssystemtracking

提问by

How do I go about building a GPS tracking system with mobile (with GPS) in C#.net ? The scenario is

如何在 C#.net 中使用移动设备(带 GPS)构建 GPS 跟踪系统?场景是

  1. 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?

  2. 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. 通过支持 GPS 的手机跟踪用户(服务工程师,这里没有任何违法行为)。我需要什么软件和硬件?有没有开源实现?

  2. 对于车辆跟踪系统,如何使用 GPS?我想知道各个步骤/程序。我正在寻找一些正确的方向。

回答by User

  1. First define the requirements, what functionalities your software should have
  2. Decide on the platform: iPhone, Windows Mobile, Symbian, Android or something else
  1. 首先定义需求,你的软件应该有哪些功能
  2. 决定平台:iPhone、Windows Mobile、Symbian、Android 或其他

With "C#.net" you will likely be able to develop only for Windows Mobile.

使用“C#.net”,您可能只能针对 Windows Mobile 进行开发。

回答by Simeon Pilgrim

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.

如果你想要一个车辆跟踪系统,为什么不买一个,因为那里有很多。如果您真的不知道如何去做,我不确定您是否能够以比商业系统更低的成本生产解决方案。

回答by Nick Berardi

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.

我构建了一个 Window Forms 版本来显示来自 GPS 的信息。从那以后就没有真正接触过它,但是如果您有兴趣,代码在 CodePlex 上。

http://gps.codeplex.com/SourceControl/changeset/view/24953#146657

http://gps.codeplex.com/SourceControl/changeset/view/24953#146657

All that you need to do to get this tracking somebody is

你需要做的就是让这个跟踪某人

  1. Convert to Windows Mobile
  2. Build a Web Service for recording location
  3. Modify code to post location to Web Service every so often
  1. 转换为 Windows Mobile
  2. 构建用于记录位置的 Web 服务
  3. 经常修改代码以将位置发布到 Web 服务

Really I already did the hard work, or parsing the GPS commands from the serial connection for you. :)

真的,我已经完成了艰苦的工作,或者为您解析了来自串行连接的 GPS 命令。:)

回答by Calanus

Its actually not that hard (done it myself!).

其实没那么难(自己做的!)。

Best place to start looking is here:

开始寻找的最佳地点在这里:

http://msdn.microsoft.com/en-us/library/bb158708.aspx

http://msdn.microsoft.com/en-us/library/bb158708.aspx

You will need to download the windows mobile 6.0 SDK from here:

您需要从这里下载 windows mobile 6.0 SDK:

http://www.microsoft.com/downloads/details.aspx?FamilyID=06111A3A-A651-4745-88EF-3D48091A390B&displaylang=en

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.

sdk 实际上包含一个示例 GPS 应用程序,您可以使用它来根据自己的需要进行自定义。

回答by Henk Holterman

Since you mention C#, you will need a phone that runs Windows Mobile. And has GPS of course.

由于您提到了 C#,您将需要一部运行 Windows Mobile 的手机。当然还有GPS。

After you download and install the WinMob 6.1 SDK, you can simply start a Smart Device project in V. Studio.

下载并安装 WinMob 6.1 SDK 后,您只需在 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).

您可以通过 SerialPort 或使用 GPS API 读取 GPS。SDK 示例文件夹中有 API 的托管包装器。(WM 5 版本有一些问题,谷歌对此)。

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.

当您可以读取位置时,您必须将其发送到某处的服务器。WinMob 支持在断断续续的连接情况下调用 Web 服务。

回答by David Hayes

I've been looking into this myself and I came across this

我自己一直在研究这个,我遇到了这个

http://www.codeplex.com/SharpGPS

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

这是一个基于 .NET 2 full 或 CF 的 GPS 库,我还没有尝试过,但看起来很有前途

回答by admin

you can find more info at: http://www.miisoft.it/portale/index.php/programmazione/37-c/51-gps-parte-iHere you can find notice about gps, parsing NMEA string and example code.

您可以在 以下位置找到更多信息:http: //www.miisoft.it/portale/index.php/programmazione/37-c/51-gps-parte-i在这里您可以找到有关 gps、解析 NMEA 字符串和示例代码的通知.

回答by admin

Try tracking location of GPS enabled mobile in PC:

尝试在 PC 中跟踪启用 GPS 的移动设备的位置:

  1. develope android app in mobile (which gives permission to access GPS...coded in Android Manifest.xml)
  2. develope PC app using .net which takes Location data from server and plot the location on PC by automatically generating Javascript
  1. 在移动设备上开发 android 应用程序(允许访问 GPS...在 Android Manifest.xml 中编码)
  2. 使用 .net 开发 PC 应用程序,该应用程序从服务器获取位置数据并通过自动生成 Javascript 在 PC 上绘制位置