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

[Enhancement] Pair with a device requiring an agent with the NoInputNoOutput capability #55

Open
barjonas opened this issue Oct 18, 2024 · 0 comments
Labels
enhancement New feature or request not-reviewed Issue that needs reviewed

Comments

@barjonas
Copy link

barjonas commented Oct 18, 2024

Description

As a user, I'd like to pair with a device requiring an agent with the NoInputNoOutput capability. I believe this applies to most HIDs since they don't have a screen or a PIN.

I see a similar issue #34. I guess agents are the missing link there too.

What I've tried

With the default agent, I get this exception from PairAsync:

Tmds.DBus.DBusException: org.bluez.Error.AuthenticationFailed: Authentication Failed at Tmds.DBus.DBusConnection.CallMethodAsync(Message msg, Boolean checkConnected, Boolean checkReplyType) at Tmds.DBus.Connection.CallMethodAsync(Message message) at Tmds.DBus.CodeGen.DBusObjectProxy.SendMethodReturnReaderAsync(String iface, String member, Nullable`1 inSignature, MessageWriter writer)

Possible solution

Looking at the D-Bus API documentation, I guess the minimum implementation would require the agent manager (org.bluez.AgentManager1) to be wrapped and at least the RegisterAgent and RequestDefaultAgent methods. Does this sound right? Would you be want a pull request, even for a partial implementation?

Finally, I'd love to hear if there's a workaround, e.g. by running a non-.NET implementation in another process just to provide the agent.

@barjonas barjonas added enhancement New feature or request not-reviewed Issue that needs reviewed labels Oct 18, 2024
@barjonas barjonas changed the title [Enhancement] [Enhancement] Pair with a device requiring an agent with the NoInputNoOutput capability Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request not-reviewed Issue that needs reviewed
Projects
None yet
Development

No branches or pull requests

1 participant