如何从VB.NET中的USB端口获取数据 [英] How to get the data from a USB port in VB.NET

查看:508
本文介绍了如何从VB.NET中的USB端口获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个用于管理患者详细信息的软件,该软件将数据存储到MSsql数据库中. 但是,我需要存储的数据必须从传输数据的外部设备中读取...现在,我的查询是如何使用VB.NET 2010读取数据.

I have developed a software for managing the details of patients, the software stores the data into MSsql database.... However, the data I need to get stored has to be read from an external device which transmits data... Now my query is how I can read that data using VB.NET 2010.

我在网上搜索后发现可以使用My.Computer.Port从USB连接的设备读取数据,但是我无法获得其逻辑,也无法通过任何示例实际完成此操作...

I have searched on net and found that I can use My.Computer.Port to read data from USB connected device, but I am unable to get its logic and any example to get this practically done...

我也读过很多书,以了解这样做的实际方法,但是还没有解决任何问题.....

I also been through many books to understand the practical way of doing this, but not yet resolved with anything.....

如果有人可以帮我举一个例子,以便我有前进的道路来完成任务....

If somebody can help me with an example so that i get a way forward to accomplish my task....

推荐答案

这是我发现的内容.您使用 HID.dll 来连接USB端口.而你知道最好的部分吗?我找到了一些例子.

Here is what I found. You use the HID.dll to interface the usb ports. And you know the best part? I found some examples.

这里是一个链接,其中包含USB接口的基本示例和教程. HID页面

Here's a link that contains basic examples and tutorial for usb interfacing. The HID Page

示例项目文件

这篇关于如何从VB.NET中的USB端口获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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