Closed whoopsmith closed 2 years ago
It is not expected and this is the first time I have seen this issue.
I will not look at this in the foreseeable future I am afraid. I am swamped with other (paid) work and cannot guarantee doing anything with this project for quite some time. I will still address PRs to develop
branch occasionally, so if you desire these changes you have to do the legwork yourselves.
Great. Thank you for the response. I don't mind digging in and figuring out whats going on. That will be a great way to learn more about how it works.
Now that I know its not expected I'll drill down and see what I can find. Like you my day job calls me away but the device(s) I'm trying to connect to are part of my day job so I can justify some paid time to investigate.
Hey @whoopsmith,
Have you solved your issue? It seems I have the similar one - from time to time when I call connect method I got org.bluez.Error.Failed: Software caused connection abort
error. And this happens really randomly.
I implemented retry logic which tries to reconnect again and again when this happens. Sometimes it connects from the first attempt quickly, sometimes it takes 2-3 attempts and sometimes 7-8. Basically this makes my software pretty unstable and super slow.
So any insight on the root cause will be highly appertained.
There was quite a long discussion about this in #94. See if anything there helps.
This repo also had issues with this some years ago. The accepted solution seems to be to restart the bluetooth adapter...
Hi @whoopsmith and @corvis did you resolved this issue? I am also experiencing this issue at raspbian and my bluez is already at 5.50
@RulerKun unfoirtunately no. It still happens randomly, for some people (combination of hardware and software) it happens more often then for others. The recent example is here: https://github.com/corvis/prana_rc/issues/1#issuecomment-680928556 the guy has raspbian and uses embedded rpi adaptor.
I have no news for you regarding this. It might be alleviated if #236 is worked on. It might be due to txdbus
and how it handles the DBus connections.
There are newer issues where people have reported the same "Software caused connection abort" error, so let's close this one as a duplicate.
bluetoothctl -v
) in case of Linux: bluetoothctl: 5.48Description
Trying to learn how to use this project by playing around. I'm scanning for devices and trying to discover services.
I have combined the discover example with the service_explorer example. I discover all the devices and then feed each of those to the service_explorer code.
Sometimes I get a list of services but sometimes get the exception below. Is this expected?
What I Did