在VB应用程序中连接和管理内部GPS [英] Connect and manage an internal GPS in a VB application

查看:73
本文介绍了在VB应用程序中连接和管理内部GPS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Visual Basic-app检测到我的WT8 Encore平板电脑(Windows 8.1)的内部GPS的访问权限。我现有的应用程序检测并处理外部GPS接收器,但无法看到内部GPS。

我找到了一个由javascript调用的基于Web的对象,它可以与内部GPS传感器一起使用。请参阅:http://msdn.microsoft.com/en-us/library/windows/desktop/dd317709(v = vs.85).aspx。但是在我的应用程序中使用simpel webbrowser来获取数据是行不通的,因为它没有按钮来接受使用基于Web的应用程序中的位置数据。

How can I detect en get acces to the internal GPS of my WT8 Encore tablet (windows 8.1) with a Visual Basic-app. My existing app detects and handles an external GPS receiver, but cannot see the internal GPS.
I found a web-based object that is invoked by a javascript and that works fine with the internal GPS sensor. See: http://msdn.microsoft.com/en-us/library/windows/desktop/dd317709(v=vs.85).aspx. But using a simpel webbrowser in my application to get the data from does not work because it gives no button to accept using location-data like in web-based applications.

推荐答案

GPS设备(内部或外部)与wintel计算机的接口有两种常见方式。



大多数连接到COM端口(RS232C),无论是真实还是虚拟。使用这些设备,您可以连接终端应用程序(或在您的情况下读取和写入COM端口)。 GPS从符合NEMA 0183标准的端口发出字符串。以下是VB.NET中的一个示例:使用GPS和VB进行映射。 NET [ ^ ]



其他设备不使用COM端口,而是使用其他一些其他专有通信方式。在这种情况下,制造商包含一个Windows位置API可以使用的驱动程序。



在您的情况下,他们执行后者。 我认为您会发现这个主题很有用。 [ ^ ]
There are two common ways that GPS devices (internal or external) interface with wintel computers.

Most connect to a COM port (RS232C), either real or virtual. With these devices you can connect with a terminal application (or read and write the COM port in your case). The GPS sends strings out the port that follow the NEMA 0183 standard. Here is an example in VB.NET: Mapping with a GPS and VB.NET[^]

Other devices do not use a COM port, but some other other proprietary means of communication. In this case the manufacturer includes a driver that one of the Windows location APIs can use.

In your case they did the latter. I think you will find this thread useful.[^]


这篇关于在VB应用程序中连接和管理内部GPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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