从USB-GPS接收器读取数据 [英] Read data from an USB-GPS-Receiver

查看:264
本文介绍了从USB-GPS接收器读取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道从USB GPS接收器(也称为"USB鼠标")读取定位数据有多困难. .NET中是否存在某种现成的API(例如在Android/WP7等移动平台中),其工作原理是因为GPS设备的驱动程序已大量集成到Windows中,或者这是一些令人讨厌的pinvoke内容,具体取决于GPS设备?

I'm wondering how difficult it is to read positioning data from an USB GPS Receiver (also known as "USB Mouse"). Is there some kind of ready-to-use API in .NET (like it is in mobile platforms like Android/WP7 etc.) which works because the GPS device's driver integrates much into Windows or is this some annyoing pinvoke stuff that depends on the GPS device?

有经验吗?

推荐答案

通常,GPS设备显示为虚拟com端口.您应该在设备管理器的com端口中看到它.几乎每个GPS都使用标准 NMEA 0183 消息将数据发送到计算机,您只需要一个库即可阅读它们.一个非常好的功能齐全的功能是 DotSpatial ,DotSpatial.Positioning库应该会自动找到您的gps并报告数据从它.

Typically a GPS device shows up as a virtual com port. You should see it listed in com ports in the device manager. Nearly every GPS sends data to the computer using standard NMEA 0183 messages, you just need a library to read them. One really nice full featured one is DotSpatial, the DotSpatial.Positioning library should automatically find your gps and report data from it.

这篇关于从USB-GPS接收器读取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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