Skip to content
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 failed for unknown reason. #761

Open
Render19 opened this issue Oct 26, 2022 · 14 comments
Open

Connection failed for unknown reason. #761

Render19 opened this issue Oct 26, 2022 · 14 comments
Labels
OS: Windows 10 Issues that only occur on Windows 10 software: pybricks-code Issues with https://code.pybricks.com application topic: bluetooth Issues involving bluetooth

Comments

@Render19
Copy link

at code.pybricks.com I try to install the firmware onto a technic hub but an error appears that says:
"Unexpected error while trying to connect: Connection failed for unknown reason."

I'm on Windows 11 Home and use Google Chrome.
Ask if you need any more information.

I've looked all over your support page and tried everything I could but nothing works. Any Ideas?

@Render19 Render19 added the triage Issues that have not been triaged yet label Oct 26, 2022
@dlech
Copy link
Member

dlech commented Oct 26, 2022

You could try https://beta.pybricks.com and see if it works better for you.

Beyond that, we will need log files as described in #270 to help troubleshoot.

@Render19
Copy link
Author

The beta sadly has the same error.

Here is the chrome device log:
Screenshot_20221026_013717

@dlech
Copy link
Member

dlech commented Oct 26, 2022

This looks like a problem between the Bluetooth chip and the Windows Bluetooth stack. You could try logging the Bluetooth packets with Wireshark as described in #270 to get a better look at what is going on.

It seems like Windows just has issues with some Bluetooth adapters. If you have another computer/chromebook/android device, you could try flashing the firmware with that instead. Sometimes, once the firmware is flashed, then you can use Windows to download and run programs. Trying a different Bluetooth adapter on Windows could be a possibility too.

@Render19
Copy link
Author

So I installed the firmware with a different computer but now I can't pair it to this computer. It still says "Connection failed for unknown reason"

And would you want to look at the bluetooth packet?

@dlech
Copy link
Member

dlech commented Oct 26, 2022

Yes, I would be happy to look at it.

@Render19
Copy link
Author

This one is when I tried to install the firmware:
Pybricks install firmware.zip
And this one is just pairing:
Pybricks Pair.zip

@dlech dlech added topic: bluetooth Issues involving bluetooth OS: Windows 10 Issues that only occur on Windows 10 software: pybricks-code Issues with https://code.pybricks.com application and removed triage Issues that have not been triaged yet labels Oct 26, 2022
@dlech
Copy link
Member

dlech commented Oct 26, 2022

Is this with https://code.pybricks.com or https://beta.pybricks.com?

@Render19
Copy link
Author

@dlech
Copy link
Member

dlech commented Oct 26, 2022

Can you try it with https://beta.pybricks.com/? (update the firmware to the beta version using the other computer, then try to connect to the beta web site)

@Render19
Copy link
Author

Render19 commented Oct 26, 2022

It still has the same error message
Pybricks Beta Pair.zip

@dlech
Copy link
Member

dlech commented Oct 26, 2022

Thanks for making all of the logs. They all look pretty much the same. The device connects, but Windows never tries to get the BLE services from the device. So, I'm afraid there isn't much we can do in Pybricks.

If you have a different computer you can use, you could just use that. Or you might have better luck with a different Bluetooth adapter on your Windows computer that uses a different Bluetooth chip/driver.

@Render19
Copy link
Author

Ok thanks for all the help.

@dlech
Copy link
Member

dlech commented Oct 26, 2022

For the record, would you mind sharing your Bluetooth Adapter driver info from the Device Manager so we can see if other people with the same problem have the same Bluetooth chip/driver?

Mine looks like this:
image

@Render19
Copy link
Author

Screenshot_20221026_033224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS: Windows 10 Issues that only occur on Windows 10 software: pybricks-code Issues with https://code.pybricks.com application topic: bluetooth Issues involving bluetooth
Projects
None yet
Development

No branches or pull requests

2 participants