-
Notifications
You must be signed in to change notification settings - Fork 53
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
--connect for device is not holding through blueutil, but connection can hold through the Mac GUI #64
Comments
Screen.Recording.2022-01-10.at.10.38.39.AM.mov |
after more digging I believe this has something to do with the pairing. The --connect feature works with devices that do not require pin pairing. I see someone reported a similar issue #55 Also, is there a feature to turn off the automatic prompt for pin pairing? I would like to be able to use this feature in an automated fashion |
Thanks for opening the issue. Could you please tell if you did intentionally upload the .zip of a .mov and not .mov itself? It will be easier to understand the issue if a player is presented instead of a link. From the recording you are connecting a device that is already paired, so pin should not be an issue unless you are unpairing every time. Also if you mean bypassing pin when pairing it could decrease security of pairing. As long as you understand the consequences in case during pairing only confirmation is requested, you can pipe |
Hi, yes the file was too big to upload the video by itself. I only see this issue with devices that require pin pairing. It looks as though it pairs fine and shows up in blueutil --paired:
When I try to connect after that is when I see the issue:
|
On video the command succeeds, but connection drops right after, in your last comment the command failed. Just to check if you tried cycling bluetooth power and restarting? |
I just tried it and same result:
I believe connection drops because it tries to connect during the pairing command. Attached is a video that shows that. I've experienced both scenarios. |
Sorry, my mistake. I did not mean to close the issue. I just tried it and same result:
I believe connection drops because it tries to connect during the pairing command. Attached is a link for a video that shows that. I've experienced both scenarios. 1. Where it attempts to connect during the pairing, does not hold, and then it "connects" using the command but then it drops connection immediately after. 2. I use the command and I get the message "Failed to connect." |
Odd is that on the video in the GUI the device after pairing appears connected, disconnects, connects again and disconnects, then connects after If paired using |
Seems like I can pair through blueutil, connect through the Mac GUI fine and connection holds. There is no option in the GUI to just pair, so I connect through the GUI, then disconnect and it is still in the list of paired items in blueutil. Then try to connect through blueutil and get "failed to connect."
I still am seeing failure using --wait-disconnect as well |
Can you try to reproduce conditions when |
Here's a video of my process. For some reason the first run of |
Hi Ivan, Any updates here? I'm thinking of updating my Mac to Monterey but I see there are issues there too. What do you think? |
Hi Jillian, |
Hi, I just wanted to contribute to this issue as I had been struggling with it this morning with both --connect and --wait-connect (both terminated immediately while in a script). Strangely, this issue was resolved for me by running:
instead of |
@fallible-algebra That is peculiar, this creates one more process between terminal emulator and blueutil, but there is already the login shell, so no idea why would it fix the issue. |
Zsh is my login shell, with a fairly basic oh-my-zsh install. I'll get around to that shortly. |
Can confirm that specifically |
This also works with the script set to zsh, and with the command set to zsh. |
using blueutil v2.9.0 on Mac Big Sur 11.6, connect is working very temporarily. Having the macOS GUI up, I can see the device connects using blueutil --connect through a script I wrote and manually, and then a few seconds later shows "not connected." I thought it might be the device, but when I connect through the GUI, the connection holds.
The text was updated successfully, but these errors were encountered: