-
Notifications
You must be signed in to change notification settings - Fork 36
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
Connection fails "operation in process" to a peripheral device without pairing #32
Comments
I've got the same issue here. Using My device is a BS444 scale, like the one used in this project: https://github.com/keptenkurk/BS440/ |
On connect I'm getting the following rumble debug output:
I'm therefore guessing that this happens in the |
I'm interested in using this crate, but this happens to me whenever I talk to any BLE device. As in, I have not yet successfully connected to anything, even using the example code. There seems to be a serious bug in the way it's managing BlueZ's connection state. (The error it's reporting is the one BlueZ produces when you make two simultaneous connection requests, for what it's worth.) |
Cannot connect to any device as well. Also experiencing permissions errors unless I run as root, not sure if anyone else has run into that? |
Experiencing the exact same here, including having to run as root (I believe that is due to permissions on the bluetooth central adapter) |
@SamuelWAnderson45 the permission error can be fixed temporarily by running 'sudo setcap 'cap_net_raw,cap_net_admin+eip' /path/to/your/compiled/binary |
@Josh-Thompson already tried that. Didn't make a difference. |
I don't know it that's the right issue, but my peripheral device accepts connections without pairing, and complains if you actually want to pair.
I can connect to the device using bluetoothctl and everything works as expected, but when I try to connect with the code from the example (where only the name has been changed), it does not work. It tries to connect (it blocks) then it panics with an "operation in process" error message.
What could be the next steps to debug the issue?
I'm thinking it might be related to pairing as I also tried to connect with blurz and it works with that crate when I just connect - without pairing - to the device. Looking at your code on connect it does not look like you are trying to pair though...
The text was updated successfully, but these errors were encountered: