在 Visual Basic 6.0 中使用 HID USB

发布于 2024-08-22 18:24:28 字数 80 浏览 4 评论 0原文

我正在尝试连接 Gramin USB GPS 来获取 Visual Basic 项目中的坐标,但我不知道如何实现这一点,有人请指出我正确的方向吗?

im trying to interface a Gramin usb GPS to get the coordinates in a visual basic project, but i dont have an idea how to accomplish this, anyone point me out in the right direction please?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

飘过的浮云 2024-08-29 18:24:29

如果 Garmin 设备使用 RS-232(标准串行)接口,则其 USB 驱动程序可能会实现一个虚拟串行端口,您可以使用 MSCOMM 控件打开该端口。

通过打开硬件管理器进行检查,看看是否有额外的端口,甚至可能标记为“Garmin”,而它已插入。GPS

设备使用简单、标准的文本协议。只要没有其他应用程序打开该端口,您就应该能够在 VB 中打开它并通过对波特率等进行一些实验来捕获输出。4800,8,N,1 是一个很好的起点。

If the Garmin unit uses an RS-232 (standard serial) interface, then its USB driver probably implements a virtual serial port that you can open using the MSCOMM control.

Check that by opening the Hardware Manager and see if there's an extra port, maybe even labeled 'Garmin', while it's plugged in.

There are simple, standard text protocols used by GPS units. As long as no other app has the port open, you should be able to open it in VB and capture the output with a little experimenting for baud rate, etc. 4800,8,N,1 is a good place to start.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文