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

Unexpected error while trying to connect: Connection failed for unknown reason #555

Open
VegaMansk opened this issue Dec 13, 2021 · 7 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

@VegaMansk
Copy link

VegaMansk commented Dec 13, 2021

No description provided.

@VegaMansk
Copy link
Author

Error on code.pybricks.com screen . After connection thrue bluetooth. I get the message unexpected error while trying to connect: Connection failed for unknown reason.

I use: Windows 10 Education: Versie: 10.0.19044 Build 19044. Chrome browser Versie 96.04.4664.93 (64 bits). The update of My Inventor (51515) with pybricks (with USB) went ok. Do you have advise for me?

Bluetoothlog.zip

@VegaMansk VegaMansk changed the title Please see #270 for troubleshooting tips and open a new issue with logs/packet capture. Unexpected error while trying to connect: Connection failed for unknown reason Dec 13, 2021
@dlech dlech added 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 labels Dec 13, 2021
@dlech
Copy link
Member

dlech commented Dec 13, 2021

Thanks for making the logs. It looks like the connection is successful in the logs, so I'm afraid I don't know why Windows is giving an error. Did you try rebooting the computer? If there are any LEGO or Pybricks hubs listed in Bluetooth & other devices in the WIndows settings, try removing them.

image

@MartinGarciaMatienzo
Copy link

I have the same issue with my technic hubs, I wanted to connect 2 hubs from the Liebherr set, but my laptop pybricks doesn't connect to the hubs but it registers the hubs. Is there any way I can connect them properly or some solutions..?
It says "Vinculado", meaning its connected, but the time I wanna pair them it just take a while and sends the unexpected error while trying to conect.
Thanks for reading.
8abda934-f932-4784-b60b-16d51076de1a

@MartinGarciaMatienzo
Copy link

Even when I try to connect directly by the PC's Bluetooth it shows "LEGO Boothloader" as in pybricks, but sometimes when the LED is white; it says "Technic Hub".
image

@MartinGarciaMatienzo
Copy link

Now just says: "GATT Server is disconnected. Cannot retrieve services. (Re)connect first with device.gatt.connect."
image

@dlech
Copy link
Member

dlech commented Dec 22, 2021

Even when I try to connect directly by the PC's Bluetooth it shows "LEGO Boothloader"

Do not pair the hub using the OS settings menu. If you have already done this, remove the device from the settings menu.

Also see #270 for troubleshooting tips. If you can log Bluetooth packets, please upload them here and we will have a look.

@MartinGarciaMatienzo
Copy link

Even when I try to connect directly by the PC's Bluetooth it shows "LEGO Boothloader"

Do not pair the hub using the OS settings menu. If you have already done this, remove the device from the settings menu.

Also see #270 for troubleshooting tips. If you can log Bluetooth packets, please upload them here and we will have a look.

I didn´t, I don't know what the problem is. The connection, upload from the firmware and the program ran well in an ASUS computer, I'm trying to connect with an HP but doesn´t. Both use Windows 10

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

3 participants