question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Working with Composite Devices on Windows 10

See original GitHub issue

When I attempt to use Device.Net (2.7) with my iPhone use an instance of FilterDeviceDefinition, the library doesn’t find it. When looking for it via Device Manager (Windows 10), the device is shown under a composite usb manifest.

When I look for it via code using the Management object searcher, it finds the device without issue.

ManagementObjectCollection collection; using (var searcher = new ManagementObjectSearcher ($"Select * From Win32_PnPEntity WHERE DeviceID Like '%{deviceId}&MI_%'")) collection = searcher.Get();

when I use device.net to accomplish the same thing, using the code below, GetDevices() doesn’t return the iPhone:

`var deviceDefinitions = new List<FilterDeviceDefinition> { new FilterDeviceDefinition{ DeviceType= DeviceType.Usb, VendorId= 0x05AC, ProductId=0x12A8, Label=“Apple iPhone” }, };

var devices = await DeviceManager.Current.GetDevices(deviceDefinitions);`

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
AlmaJensencommented, May 2, 2019

I don’t know if this is relevant here or not but I thought I would mention it incase it’s helpful but I have some external scanning sleds that I use with ipods and before any of my apps can make use of the sled I had to add this to the info plist.

<key>UISupportedExternalAccessoryProtocols</key>
<array>
	<string>com.datecs.linea.pro.msr</string>
	<string>com.datecs.linea.pro.bar</string>
</array>
1reaction
MelbourneDevelopercommented, Apr 15, 2019

@davidehnis I’m guessing so. I will see if I can get my hands on an iPhone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Register a Composite Device - Windows drivers
This topic describes how a driver of a USB multi-function device, called a composite driver, can register and unregister the composite ...
Read more >
How to Fix USB Composite Device Driver Error?
Solution 1- Update USB Composite Device Driver via Device Manager · Press the Windows key on your keyboard and tap R to reveal...
Read more >
How to Fix USB Composite Device Driver Error on ...
How to Fix USB Composite Device Driver Error on Windows 10 · Fix 1. Run Hardware and Devices Troubleshooter · Fix 2. Update...
Read more >
9 Was on How to Fix USB Composite Device Can't Work ...
Fix 1: Run Hardware and USB Troubleshooter · Fix 2: Use Windows USB Troubleshooter · Fix 3: Update or Reinstall USB Controllers ·...
Read more >
How to Fix “USB Composite Device Driver” Error on Windows
Different Solutions To Fix The USB Composite Device Error On Windows 10/11 Device · Solution1: Update Windows Operating System · Solution2: Update ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found