开发者

Using HID USB in Visual Basic 6.0

开发者 https://www.devze.com 2022-12-21 11:22 出处:网络
im trying to interface a Gramin usb GPS to get the coordinates in a visua开发者_如何转开发l basic project, but i dont have an idea how to accomplish this, anyone point me out in the right direction pl

im trying to interface a Gramin usb GPS to get the coordinates in a visua开发者_如何转开发l basic project, but i dont have an idea how to accomplish this, anyone point me out in the right direction please?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号