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

SimpleBLE C and C++ examples failling in Linux with DBus exception error #220

Closed
Dharani3110 opened this issue Mar 10, 2023 · 5 comments
Closed
Labels
bug Something isn't working

Comments

@Dharani3110
Copy link

I get the below DBus issue when trying to execute examples in simpleBLE c and cpp folders. But simpledbus example seems to work.

My environment:
OS: Ubuntu 22.10 Virtual machine
Installed packages: libdbus-1-dev

terminate called after throwing an instance of 'SimpleDBus::Exception::DBusException'
what():
org.freedesktop.DBus.Error.MatchRuleNotFound: The given match rule wasn't found and can't be removed
Aborted (core dumped)

Please help me in solving this issue.

@Dharani3110 Dharani3110 changed the title SimpleBLE C and C++ examples failing in Linux with DBus exception error SimpleBLE C and C++ examples failling in Linux with DBus exception error Mar 10, 2023
@kdewald kdewald added the bug Something isn't working label Mar 14, 2023
@kdewald
Copy link
Member

kdewald commented Mar 14, 2023

Hey @Dharani3110, can you check if your BLE adapter is supported in the VM? We've had some issues in the past where the OS doesn't really have access to any outside peripherals.

Also, which VM app are you using? VirtualBox? VMWare?

@Dharani3110
Copy link
Author

Dharani3110 commented Mar 14, 2023

To answer your question, I use Oracle Sun VirtualBox. Let me check if OS has access to outside peripherals and get back.

@Dharani3110
Copy link
Author

After adding my host bluetooth adaptor to the USB devices of the Ubuntu virtual machine, now I get the "Bluetooth not found" error status instead of the DBus error.

@kdewald
Copy link
Member

kdewald commented Mar 16, 2023

It's quite likely that the virtualization layer is failing to properly expose this to Ubuntu.

My biggest recommendation would be to try this directly on the host, given that it's already supported.

@Dharani3110
Copy link
Author

Sure, Thanks for your support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants