GPS第三方(免费或付费使用许可证)组件 [英] GPS third party (free or pay for license) component

查看:215
本文介绍了GPS第三方(免费或付费使用许可证)组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在寻找第三方软件组件(在SDK或DLL中),以使用Visual Studio构建在现有的商业GIS软件中.

我要寻找的功能之一是根据GPS地图投影将gps位置(蓝牙GPS接收器)转换为X,Y值.

我查看了不同的产品,但仍然找不到至少可以做到的dll或sdk:

例如,检测现有的蓝牙GPS接收器(Global-Sat BT-368)并读取(监听)正确的COM串行端口,例如COM10,BaudRate:4800,然后根据GPS地图投影以X,Y值返回当前GPS位置.

如果有人知道可以执行此操作的产品或如何在.NET中对此进行编码,请告诉我.如果

Hello,

I am looking for a third party software component (in SDK or DLL) to build in a existing commercial GIS software using Visual studio.

One of the features i am looking for is converting the gps location (bluetooth GPS receiver) to X,Y values based on the GPS map projection.

I looked at different products but still can not find a dll or sdk which can at least:

detect a existing bluetooth GPS receiver for example (Global-Sat BT-368) and read (listening) to the right COM serial port e.g. COM10, BaudRate:4800 and return the current GPS location in X,Y values based on the GPS map projection.

If someone knows a product that can do this or how to code this in .NET let me know. I will be very thankful if

推荐答案

大多数蓝牙GPS模块使用BT SPP(串行端口配置文件)进行连接,我将非常感激.该设备是BT的事实与您如何从应用程序连接到该设备无关.在您的程序中,它看起来就像是COM端口.就像通过USB或真实串行端口连接一样.因此,我认为您不会找到专门支持BT GPS模块的库.

话虽如此,您可以使用SerialPort.GetPorts();获取系统上定义的串行端口的列表.枚举返回的字符串数组,依次打开每个端口,然后将注意命令发送到GPS模块,或者如果模块只是盲目地将数据发送出去,则侦听格式正确的数据.确保设置读写超时,因为可能定义了端口(例如物理串行端口),但是您不会对发送或接收的消息做出任何响应.如果您未设置超时,则ReadLine和WriteLine函数将永远挂起.确定正确的串行端口后,读取数据并将其转换为GIS数据应该非常简单.

如果您坚持要在BT中徘徊,请查看32feet库.我相信您可以枚举BT设备并通过该库打开直接串行连接.
Most Bluetooth GPS modules connect using the BT SPP (Serial Port Profile). The fact the device is BT really has no bearing on how you would connect to it from your application. To your program, it would simply look like a COM port. The same as if it were connected via USB or a real serial port. So I don''t think you will find a library that specifically supports a BT GPS module.

That being said, you can get a list of the serial ports defined on the system with SerialPort.GetPorts(); Enumerate the returned string array opening each port in order and sending the attention command to the GPS module or listen for properly formatted data if the module just blindly sends the data out. Be sure to set read and write timeouts because a port may be defined (like a physical serial port) but you will get no response to messages sent or received. If you don''t set the timeout, the ReadLine and WriteLine functions will hang forever. Once you have identified the proper serial port, reading the data and converting it to GIS data should be pretty simple.

If you insist on munging around in BT, look at the 32feet library. I believe you can enumerate the BT devices and open a direct serial connection via that library.


这篇关于GPS第三方(免费或付费使用许可证)组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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