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

Missing Services #12

Open
Fungusware opened this issue Nov 20, 2020 · 5 comments
Open

Missing Services #12

Fungusware opened this issue Nov 20, 2020 · 5 comments

Comments

@Fungusware
Copy link

Hi,

When running my application that uses this excellent on a standard Ubuntu linux box, I can see all 6 of my BLE services and the characteristics. I can also grab data from them.

When I run the same application on the Raspberry Pi, I can see only one service, and not the ones I need. I have added the 'pi' user to the lp and bluetooth groups.

I'm guessing 'dotnet run' might need to run with sudo but I'm not sure.

Any help is greatly appriciated.

@gvheertum
Copy link

Did you do a discovery scan before accessing the devices. I noticed that in some cases the Bluetooth adapter needs to get some time to fully discover devices. Maybe that helps. If there is need to run as sudo you will get exceptions from the dbus stating that you are not allowed to perform an action. So I think sudo won't help.

@Fungusware
Copy link
Author

Fungusware commented Nov 20, 2020 via email

@hansmbakker
Copy link

@Fungusware did you find the cause of your issue?

@Fungusware
Copy link
Author

Unfortunately time restraints meant I had to abandon my testing, and I ended up just using Linux command line and pipe it back into the C# code. Not pretty but its effective.

@hansmbakker
Copy link

I found out the hard way that the Battery service is hidden / inaccessible as a GATT service (#3) - you need to access it via the org.Bluez.Battery1 interface but it is not clear to me how to do that (#19)

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

No branches or pull requests

3 participants