You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] GATT Server is disconnected. Cannot retrieve services. (Re)connect first with device.gatt.connect. #312
OS: Windows 11Issues that only occur on Windows 11 (or 10)software: pybricks-codeIssues with https://code.pybricks.com applicationtopic: bluetoothIssues involving bluetooth
Describe the bug
When installing the pybricks firmware to the TechnicHub, I get the "GATT Server is disconnected. Cannot retrieve services. (Re)connect first with device.gatt.connect." error message.
OS: Windows v 20H2 (OS Build 19042.928)
Browser: Chrome 89.0.4389.128 (Official Build) (64-bit)
BT: Qualcomm Atheros QCA61x4A Bluetooth 4.1
Log: bth_hci.zip
Same bug as #56 which is now closed.
To reproduce
Steps to reproduce the behavior:
Go to Pybricks Code.
Press and hold the hub button. Wait for a blinking pink light.
While you hold it, click the firmware update button.
Select the LEGO Bootloader and click Pair.
Wait until the light turns off, and then blinks red/green/blue.
Release the button and wait for the installation to finish.
Error message appears.
Expected behavior
The error message should not appear and I should have the pybricks firmware installed.
As a workaround for now, perhaps you can try the installation with an Adroid device. After that, you may be able to use your PC again to write scripts.
Update: I tried in my company's laptop and it worked just fine. I could install the firmware and execute programs. Then I went back to my own PC and tried executing the same program from it. Same error message appeared.
Cheers
I'm going to go ahead and close this one since it is getting a bit old and hasn't been updated in a while and we have other open issues with the same error message.
For any future visitors here with the same error message on Windows, it would be helpful to know which Bluetooth adapter you are using so we can try to figure out which ones are compatible and which ones have issues.
Please see #921 for a PowerShell command line to get this info and post your results in that issue.
OS: Windows 11Issues that only occur on Windows 11 (or 10)software: pybricks-codeIssues with https://code.pybricks.com applicationtopic: bluetoothIssues involving bluetooth
Activity
laurensvalk commentedon Apr 18, 2021
Thanks for reporting!
As a workaround for now, perhaps you can try the installation with an Adroid device. After that, you may be able to use your PC again to write scripts.
dlech commentedon Apr 18, 2021
Thanks for taking the time to log the Bluetooth. Here is what it looks like decoded:
For some reason, it is disconnecting instead of finishing the MTU exchange.
When I have seen this error message in Windows, usually retrying again works. If it doesn't, rebooting Windows will clear up the problem.
Stari89 commentedon Apr 19, 2021
Update: I tried in my company's laptop and it worked just fine. I could install the firmware and execute programs. Then I went back to my own PC and tried executing the same program from it. Same error message appeared.
Cheers
dlech commentedon Apr 22, 2021
What is different about the work computer? Windows version? Bluetooth chip?
bdhughes0047 commentedon May 11, 2021
dlech commentedon May 11, 2021
bdhughes0047 commentedon May 12, 2021
dlech commentedon Oct 20, 2021
Here is an upstream Chromium bug report of the same issue: https://crbug.com/1192634
They were unable to reproduce the issue as well, so it seems to only happen on certain Windows machines.
dlech commentedon Mar 23, 2023
I'm going to go ahead and close this one since it is getting a bit old and hasn't been updated in a while and we have other open issues with the same error message.
For any future visitors here with the same error message on Windows, it would be helpful to know which Bluetooth adapter you are using so we can try to figure out which ones are compatible and which ones have issues.
Please see #921 for a PowerShell command line to get this info and post your results in that issue.