Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device Enumeration Sample: Enumerate Snapshot or Enumerate & Watch, Bluetooth LE (paired) or Bluetooth (paired) -> Exception #246

Closed
bc3tech opened this issue Dec 18, 2015 · 4 comments

Comments

@bc3tech
Copy link

bc3tech commented Dec 18, 2015

"The Parameter is Incorrect" exception as soon as you click Find

Running on Mobile 10586.36

Seems like it could be similar/related to #170

@bc3tech bc3tech changed the title Device Enumeration Sample: Enumerate Snapshot, Bluetooth LE -> Exception Device Enumeration Sample: Enumerate Snapshot, Bluetooth LE (paired) or Bluetooth (paired) -> Exception Dec 18, 2015
@bc3tech bc3tech changed the title Device Enumeration Sample: Enumerate Snapshot, Bluetooth LE (paired) or Bluetooth (paired) -> Exception Device Enumeration Sample: Enumerate Snapshot or Enumerate & Watch, Bluetooth LE (paired) or Bluetooth (paired) -> Exception Dec 18, 2015
@bc3tech
Copy link
Author

bc3tech commented Dec 18, 2015

Per AQS doco, there isn't a ProtocolId Filter for Bluetooth:
Screenshot of doco table

Yet the sample injects one:
"System.Devices.DevObjectType:=5 AND System.Devices.Aep.ProtocolId:=\"{E0CBF06C-CD8B-4647-BB8A-263B43F0F974}\" AND (System.Devices.Aep.IsPaired:=System.StructuredQueryType.Boolean#True OR System.Devices.Aep.Bluetooth.IssueInquiry:=System.StructuredQueryType.Boolean#False)"

I believe this is the error.

@vidager
Copy link

vidager commented Apr 14, 2016

Yes, Bluetooth query should be enabled in the 10586 release or later. I will follow up on getting the MSDN doc page updated. You should be able to manually build your own Device Selectors (AQS strings) using the Bluetooth[LE] protocol ids.

As for the exception, I will look into it. Can you provide the following details: 1) Which phone you're using, and 2) In the sample project properties under the Application tab, double check the Target and Min versions. It's very possible you're hitting an issue that was just recently fixed on build 14295+ (https://blogs.windows.com/windowsexperience/2016/03/25/announcing-windows-10-insider-preview-build-14295-for-pc-and-mobile/).

Thanks,
Ben

@bc3tech
Copy link
Author

bc3tech commented Apr 16, 2016

this is a super old issue. I can tell you at the time I was running whatever the current Fast Ring Mobile Insider build was, and the devices were both a Lumia Icon and Lumia 640.

@vidager
Copy link

vidager commented Apr 18, 2016

I apologize for the delayed response. Let me know if you see the issue again. I did get the MSDN page updated, so the Bluetooth and Bluetooth LE protocol GUIDs are now available for building custom selectors. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants