-
Notifications
You must be signed in to change notification settings - Fork 112
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
Error "dbus.exceptions.DBusException: org.bluez.Error.NotAvailable: Operation currently not available" on central #395
Comments
To help debug this can you try the following:
When running
|
Rather than referring to It looks like the image that has the four terminals shown is of the
Let's try and break this down in to smaller steps to check what is working and what is not. Firstly, only start the If that works fine, then move on to the RPi where the If that all works then we should have established that the |
I have to admit that I am new to BLE and when reading about it I think that I need a I actually don't care about the energy consumption since the I need some proprietary communication between both devices so originally I was just thinking about sending bytes over BLE which are a combination of an identifier and the data and both sides know how to encode and decode this data based on the identifier (like ISO 11898 Controller area network (CAN)). But again I am just trying to read myself into BLE so not sure what the best approach would be for my use case. |
If it it is just the two RPi's that you are communicating between and you want to send arbitrary data between the two then it might be a more gentle learning curve to use Bluetooth Classic. That can be done with standard Python socket library: Or the Bluedot library has packaged up client server examples very well: If you want BLE then this might be a better example to start from for the peripheral: I think you should be able to leverage the microbit module in Bluezero as the central: |
Thanks for the links, myself I couldn't find that much regarding this topic. I have PyBluez up and running with a client and server on both sides but not in BLE mode. Found through your links the BlueDot Bluetooth Comm API seems also really simple and something I want. I will take a look at this too. From your repositories I found BLE GATT which seems interesting for the client on the central. But I am not sure if this can also be used for a client on the peripheral. And what can be used as a server. |
|
Closing because of inactivity |
When running
heartrate_monitor_peripheral.py
on one Raspberry PI andheartrate_monitor_central.py
on another one I get the following error:dbus.exceptions.DBusException: org.bluez.Error.NotAvailable: Operation currently not available
.So other device is found but then when trying to monitor the heartrate something is wrong.
Full trace:
The text was updated successfully, but these errors were encountered: