简体   繁体   English

在C#中与没有WinUSB驱动程序的USB设备通讯

[英]Talking to USB devices without WinUSB driver in C#

All documentation regarding USB access in UWP application always assumes that WinUSB driver is used. 有关UWP应用程序中USB访问的所有文档始终假定使用了WinUSB驱动程序。 The first step is to install WinUSB driver, only then one can use Windows.Devices.Usb namespace functions with USB device. 第一步是安装WinUSB驱动程序,然后才能将Windows.Devices.Usb命名空间功能与USB设备一起使用。

I am trying to access an USB device without WinUSB driver because this device comes with its own driver. 我试图访问没有 WinUSB驱动程序的USB设备因为该设备带有其自己的驱动程序。 Does this mean that now I cannot use Windows.Devices.Usb namespace functions? 这是否意味着现在我不能使用Windows.Devices.Usb命名空间函数? Or WinUSB driver is just a generic USB driver wich can be easily substituted by specific USB device driver if it is available, and I can use Windows.Devices.Usb namespace functions if USB device has its own driver? 还是WinUSB驱动程序只是一个通用的USB驱动程序,如果有可用的话,它可以很容易地用特定的USB设备驱动程序替代,如果USB设备有自己的驱动程序,我可以使用Windows.Devices.Usb命名空间函数吗?

I am trying to access an USB device without WinUSB driver because this device comes with its own driver. 我试图访问没有WinUSB驱动程序的USB设备,因为该设备带有其自己的驱动程序。 Does this mean that now I cannot use Windows.Devices.Usb namespace functions? 这是否意味着现在我不能使用Windows.Devices.Usb命名空间函数?

Yes, you can not use Windows.Devices.Usb if the device driver is not Winusb.sys. 是的,如果设备驱动程序不是Winusb.sys,则不能使用Windows.Devices.Usb See the official document What are the limitations of the namespace . 请参阅官方文档名称空间的限制是什么

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM