Unable to connect to USB devices in uwp
![](https://techprofile.blob.core.windows.net/images/05jRnbCoIUORBGbm2tcvDA.png?8D8179)
Victor Chen
106
Reputation points
I tried to connect USB devices in uwp according to the instructions in MSDN, and also tried to download the sample provided by MSDN to connect devices, but I still couldn't connect to usb devices.
What is the possible cause of this problem? Any directions or suggestions?
Here is part of my code:
Package.appxmanifest:
<Capabilities>
<DeviceCapability Name="usb">
<Device Id="vidpid:1532 0a14">
<Function Type="name:vendorSpecific"/>
<!--The following statement also tries-->
<!--<Function Type="classId:ff * *"/>-->
</Device>
</DeviceCapability>
</Capabilities>
C# code:
string aqs = UsbDevice.GetDeviceSelector(0x1532, 0x0A14);
var finder = DeviceInformation.FindAllAsync(aqs).GetResults();
//finder.Count always equals 0
About the registry for this device:
Sign in to answer