WINDOWS系统怎么看USB外链工具设备是什么

本文介绍了如何在Windows操作系统使用libusb访问USB设备,libusb支持Windows&7/10,32位64位系统均可使用。
英文原文地址
这个项目为开源的USB库&&添加了对Windows 操作系统的支持,&&帮助开发者很容易的在Windows操作系统访问USB设备。现在支持使用&和HID 驱动程序的通过USB设备,也支持使用&和&&驱动程序的USB设备。
请注意 libusb-win32 和 libusbK 是不同的项目. libusb-win32 仅支持Windows,提供了和libusb-0.1 API 兼容的库和内核驱动libusb0.sys。libusbK 是一个Windows 项目,为Windows和内核驱动程序libusbK.sys提供了一套新的API 。&
二进制文件
在&&提供了预编译的二进制文件和相关的源代码. 对于新的版本1.0.21 release, 也可以从&下载。
Windows版本的预编译的二进制文件是使用下面的工具生成的:
Microsoft Visual Studio and DDK/WDK & MS32(32 bit) and MS64 (64 bit) directories
MinGW -& MinGW32 (32 bit) and MinGW64 (64 bit) directories
支持的操作系统
支持从Windows XP开始的所有的Windows操作系统,包括32位和64位操作系统。以下几种情况是例外:
Windows 2003 (Windows 2003&32bit/64bit&不支持WinUSB&)
Windows XP 64 bit (Windows XP&64bit&系统微软官方不支持WinUSB&)
支持USB 3.0
libusb 支持Windows操作系统下的 USB 3.0 控制器和设备。 供应商为Windows 7 以及以前的版本,和为Windows 8提供的Microsoft controller xHCI 驱动也是支持的。如果你不是使用Windows 8 或者更新的操作系统, 你需要使用厂家提供的驱动程序. 请确保你使用了最新版的驱动程序。
如果你使用了NEC/Renesas USB 3.0 控制器, 例如uPD720200/uPD720200A, 请确保控制的驱动程序版本是&. 老版本的驱动程序有BUG。
支持Windows 8.x/10 (包括32位和64位)
在 Windows 8 and Windows 8.1(包括 32位 和 64位)操作系统,libusb&都可以正常工作。.
支持.NET开发
&是.NET版本的libusb, 基于 libusb 1.0, 由 Travis Lee Robinson开发。如果你计划在.NET项目中使用libusb,你可以访问&或者&, 请注意 LibUsbDotNet'最新版本是 v2.2.8, 发布。
Travis Lee Robinson 页创建了 libusbK 项目, C# 封装了&libusbK.dll&。最新版本(v3.0.7, ) 二进制文件, 源代码和C#封装类文件可以从&下载.
如何在Windows操作系统使用libusb
安装USB驱动程序
如果你的目标设备不是类似鼠标、键盘的HID设备,在使用libusb之前,必须安装驱动程序。现在可以安装微软的 Microsoft's&WinUSB,&&或者&&驱动. 有两个选择:
强烈推荐: 使用最新版本的&, 一个图形化的软件,可以自动安装&WinUSB、&libusb-win32&和&libusbK.。
也可以直接选择选择&WinUSB, 你可以下载&,并且为你的设备编辑&inf&文件。.
注意:如果你手动安装libusb-win32 驱动, 你还需要安装libusbK DLL, 因为libusb-win32需要使用libusbK DLL访问USB设备. 一种安装或更新libusbK.dll 的方法是安装libusbk开发工具包 (从&&下载libusbK-x.x.x.x-setup.exe文件,在安装过程中选择更新系统文件。但是libusb-win32/libusb0.sys 文件还没准备好, 所以现在最好不要使用 libusb-win32/libusb0.sys 。
1.0.21版本或者更新的版本 , 你可以使用usbdk 。&&提供了另外一种驱动。
开发者需要考虑的内容
The handling of composite devices under Windows is done with multiple drivers, that are children of the&usbccgp.sys&driver (Composite Generic Parent), as this is the default for the OS. For more info, see&&2. How Windows handles a composite device&&at&. If needed, it is also possible to replace the composite parent driver to access the device.
Because Windows does not provide a native&poll()&function, and cygwin is the only development environment that provides such a call, the use of libusb file descriptors with&poll()&on cygwin isNOT&supported. In a future version of libusb, we should provide better handling of native Windows events, but this will require a redesign of the libusb API, so it probably won't occur before libusb 2.0.
已知的一些限制
WinUSB&不能发送真正的复位命令给USB设备。 这是WinUSB的限制。
WinUSB&和&libusbK&不能设置USB设备的配置文件。&.. 这是KMDF USB I/O Target的限制。.
WinUSB&不支持 多个程序并发访问 (as per the&).
WinUSB&在 Windows XP/Vista/7/8不支持同步传输. WinUSB 在 Windows 8.1 或者更新的版本支持同步传输。libusb Windows 支持使用usbdk backend (version 1.0.21 and later)实现同步传输.
With&WinUSB, when&LIBUSB_RECIPIENT_INTERFACE&is used for the transfer, the&WinUSB&DLL forces the low byte of&wIndex&to the interface number, regardless of what you set it to.
This is not a real limitation though, please refer to the&. From Tim Roberts answer in that thread:&One can also argue that this is a security measure. The USB spec requires that the low byte of wIndex be set to the interface number when the recipient is set to &interface&. Devices that use that field for other purposes are broken.
HID keyboards and mice cannot be accessed using the native HID driver as Windows reserves exclusive access to them.
Multiple HID top level collections are currently not supported (only the first top level collection will be used).
The HID Report Descriptors provided by libusb are recomposed and may present minor differences from the actual ones, as the Windows HID API does not allow to read them directly from the device.
Because there is no native&poll()&on Windows, the ability to return externally pollable file descriptors on Windows&libusb_get_pollfd()&returns an error.
If you use a composite device, and plan to install a libusb compatible driver for any of the interfaces, you should ensure that your driver package adds a Device Interface GUID in the registry, as proper enumeration of composite devices in libusb depends on it. This is typically achieved by adding something like the following in your inf:
HKR,,DeviceInterfaceGUIDs,0x4-3456789ABC}
This is in particular a problem with libusb-win32's inf-wizard which will be deprecated by libusb-win32 project. Please use Zadig instead.
libusb0.sys and libusbk.sys&access is done through the libusbK DLL, therefore, if you plan to use the libusb-win32/libusb0.sys or libusbK/libusbk.sys driver in libusb, you must have that library installed. If using a recent version of Zadig, you should not have to do anything, at it will install the library for you. However the support of libusb0.sys is not ready, therefore you should not use libusb-win32/libusb0.sys for now.
开发者使用的一些有用链接
Note that the inf file given in the howto has a typo. If you don't changeSourceDisksFiles.NTamd64&to&SourceDisksFiles.amd64, the driver installation will fail to copy the required DLLs on 64 bit systems...
&(including resources on instrumenting the USB stack in Windows 7)
&&about Windows Co-Installers
更新时间:
<input type="hidden" name="content" value=" " />
联系人:刘工
电话:010-Windows系统无法识别USB的解决方法
我的图书馆
Windows系统无法识别USB的解决方法
无法识别的USB设备:Unknown USB Device. 很多人都遇到过的一个问题,所谓“无法识别”对于操作系统来说,或者是驱动程度有问题,或者是USB设备出现了问题,或者是计算机与USB设备连接出现了故障,解决问题的方法也是从这几处着手。 对于不同的设备会有不同的处理方法,了解USB设备正常工作需要的条件以及一些可能影响USB设备正常工作的因素,会有助于解决问题。下面是保证USB设备可以正常工作的一些条件:(1)USB设备本身没有任何问题——可以通过在其它计算机上进行测试,保证能正常工作;(2)USB接口没有任何问题——可以通过连接其它的USB设备在此接口上进行测试;(3)USB设备的驱动程序已经正确安装,如果有详细说明书的USB设备,一定要仔细查看相应的说明文件,按照说明安装相应的驱动程序;Windows 2000以后的操作系统以识别大部分的USB设备,Windows 98以前的操作系统可以安装USB设备自带的驱动或者安装通用的USB设备驱动程序。插入后,就会在右下角弹出电脑正在尝试连接此USB设备的一些信息,有时就会弹出对话框让用户选择,有些用户还没看清就点了否,或者因为电脑一些初始的设置问题,禁止了USB的一些功能。像解决问题,应该右键点“我的电脑”,选“属性”--“硬件”--“驱动器签名”,在此选择“忽略”,点“确定”。然后重新插上MP3,还是不连的话,再右键点“我的电脑”--“属性”--“硬件”--“设备管理器”,从中找到“通用串行总线控制器”,右键,然后“扫描检测硬件改动”。&&由于现在MP3的趋势是千方百计的降低成本,所以各公司不断采用新方案,新主控,新FLASH芯片,并不是说这些新东西就偷工减料了,问题在于这些新东西往往需要长期的调试才能达到最佳,但市场状况只能允许MP3工厂测试能在电脑的一个接口上联机就投产,所以常出现不联机、掉盘等现象。 这种情况下就需要用户多试几次,换插不同USB接口,单独再配一条质量好的USB线,一般越粗越好,铜的比铁的好,然后保证MP3供电正常。
TA的最新馆藏[转]&[转]&[转]&[转]&[转]&[转]&
喜欢该文的人也喜欢

我要回帖

更多关于 外链管理系统 的文章

 

随机推荐