如何用C#跟踪GPS设备 [英] How to track GPS device with C#

查看:118
本文介绍了如何用C#跟踪GPS设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要用C#为我的最终项目开发GPS跟踪系统。我如何开发程序以及所需的GPS传感器?

解决方案

你需要获取位置详细信息的GPS设备。尝试 Xexun TK-103 。 GPS设备将包含以下内容:

1. GPS单元 - 用于查找位置(经度和纬度)。

2。 GSM单元 - 将GPS数据(经度和纬度)传输到远程服务器。



GSM单元包含SIM卡,它将以2种方式发送GPS数据,一种是通过短信发送,另一种是使用GPRS数据。在使用GPS设备之前,我们需要对其进行配置。每个设备都有自己的配置设置和方法,因此请选择设备并按照设备制造商提供的配置和用户手册进行操作。



通过使用GPRS,GPS设备将将位置信息发送到远程服务器,在此之前我们需要在GPS设备中设置远程服务器的IP地址和PORT。配置GPS设备后,它会开始将位置信息作为TCP数据包发送到远程服务器。远程服务器必须可公开访问。



现在,在服务器端,我们需要在C#中开发一个必须监听GPS设备中指定的PORT的TCP服务器。通过使用此服务器程序,您可以处理收到的数据,并可以使用Map API在地图上显示它。


一些可以帮助您的链接 -

使用GPS和C#进行映射 [ ^ ]

使用C#创建自己的GPS应用程序 [< a href =http://spatialhorizo​​ns.com/2006/12/18/create-your-own-gps-application-using-c-1/target =_ blanktitle =New Window> ^

I need to develop GPS tracking system with C# for my final project.How I develop Program and what are the required GPS sensor ?

解决方案

Hi, you need a GPS device to get location details. Try Xexun TK-103. The GPS device will contains the following,
1. GPS Unit - Used to find out the location (latitude and longitude).
2. GSM Unit - Transmits the GPS data(latitude and longitude) to the remote server.

The GSM Unit contains a SIM card, It will sends GPS data in 2 modes, one is by SMS and other one is by using GPRS data. Before use the GPS Device, we need to configure it. Each device has its own configuration settings and methods, so choose a device and follow the configuration that the device manufacturer provides with user manual.

By using GPRS, GPS Device will sends location information to a remote server, before that we need to set the remote server's IP address and PORT in the GPS device. Once the GPS Device is configured, it starts to send location information to the remote server as TCP packets. The remote server must be publicly accessible.

Now, In the server side, we need to develop a TCP server in C# that have to listen to the PORT specified in the GPS Device. By using this server program, you can process the received data and you can show it on the map using Map APIs.


Some links that could help you -
Mapping with a GPS and C#[^]
Create your own GPS application using C#[^]


这篇关于如何用C#跟踪GPS设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆