-
Notifications
You must be signed in to change notification settings - Fork 4
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
Force Bluetooth connection to same device after Timeout #13
Comments
Hi,
Isn't it what |
Hmm is that so? What happens if you run it with the |
Ok, so I've went on some long drives and the disconnect happened a couple of times. The '-c` option did work, but it kept cycling through all connected devices, see screenshot: I think this won't be easy to solve. Currently, I am using the I upped the |
Hello @manio!
I've been using my solution with your
aa-proxy-rs
on my car for a couple of days now and it works beautifully. I have noticed a minor inconvenience. If, for some reason, it throws aUSB read/write" and/or "TCP deadline has elapsed
and it disconnects, it won't re-connect to bluetooth on its own and the only way to make it restart is to restart the rpi, if you are driving. I suspect this is because the phone thinks it is already connected so it won't try to re-connect. I am talking about using it without the "-c connect" option.These are the running parameters:
This is the log:
I will try to increase the
--timeout-secs
parameter and see if this decreases the frequency, but the root problem of not re-connecting to bluetooth remains.I thought of a solution; What if we save the connected bluetooth mac somewhere, and in the case of a timeout/connection error, we try to reconnect to the same bluetooth device? Only on the next restart, the default behavior will still hold, i.e. wait for any bluetooth connection. What do you think?
The text was updated successfully, but these errors were encountered: