3

The vendor Id and product Id is being passed to FindAllAsync and there is no device returned from FindAllAsync. We've verified that these are the right device IDs and works on other platforms. It's not a plug and play device.

Here is the code below:

UInt32 VendorId = 0x1D1B;
UInt32 ProductId = 0x1202;

string aqs = UsbDevice.GetDeviceSelector(VendorId, ProductId);

var myDevices = await Windows.Devices.Enumeration.DeviceInformation.FindAllAsync(aqs);

if (myDevices.Count == 0)
{
    return;
}

There are no devices found. Any ideas?


Clarification

I should clarify. It's not behaving like it's PNP and not appearing in the device manager in win8 and win7. The device works with a native application for driving the device even though it does not appear in the device manager.

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536
DllyVar100
  • 41
  • 3
  • USB is plug-and-play, so what do you mean by "It's not a plug and play device." Is this device somehow special or different from other USB devices? – David Grayson Jan 12 '14 at 18:53
  • What kind of device is it? You may need to write a custom driver for it, especially if it is a serial device using the older `usbser.sys` serial drivers (it needs to use the newer `WinUSB.sys`). – Nate Diamond Jan 15 '14 at 18:59
  • Also note that Windows Store apps also run in a security context that prevents them from using arbitrary devices. – Chuck Walbourn Jul 01 '14 at 06:57

1 Answers1

0

if (myDevices.Count == 0) then you AQS filter doesn't match any device interface in the system.

This means that there are not USB interfaces with VendorId = 0x1D1B & ProductId = 0x1202.

You should probably walk thorough the system device interfaces, and see what they actually are. I can show you how to do that if you need.

sam msft
  • 537
  • 6
  • 17