[
Originally posted by **MCreeper1** January 3, 2023
I have tried multiple times to load the pybricks firmware onto the hub and I always get the same error screen during the installation process. After I pair the hub goes from purple to rainbow then after about 30 seconds it stops and starts flashing white.A error screen appear that says :
```
Error: Failed to execute 'getPrimaryService' on 'BluetoothRemoteGATTServer': GATT Server is disconnected. Cannot retrieve services. (Re)connect first with `device.gatt.connect`.
```
I have tried switching from chrome to edge but the result is the same.
Since you said you tried Edge, is it safe to assume you are using Windows? Unfortunately, lot's of people have trouble with Bluetooth on Windows. So this is probably the same issue as #312, #513, #555, etc.
It would be useful to know what Bluetooth chip/driver you are using. Run this in PowerShell to find out:
Hi. I'm having a very similar issue trying to flash two different Technics Hubs and Windows 11 Build 22000.1335 (Date: 2022-12-11). I've tried the web based process using the latest versions of both Edge and Chrome as well as the local installs of Pybricks and Pybricks Beta. Unfortunately the results are always the same.
From reading your notes, I've tried the reboot and launching Chrome as per #513 but I still get the same errors. Attached is the Wireshark log. From your Facebook post, the error occurs at approximately 0:42 of the video and no progress indicator shows in the webpage or the local app.
Sure hope you can help.
Nick
Pybricks Error Message:
Error: Failed to execute 'getPrimaryService' on 'BluetoothRemoteGATTServer': GATT Server is disconnected. Cannot retrieve services. (Re)connect first with `device.gatt.connect`.
at https://beta.pybricks.com/static/js/main.eec8e77d.js:2:1476132
at https://beta.pybricks.com/static/js/main.eec8e77d.js:2:1480044
at m (https://beta.pybricks.com/static/js/main.eec8e77d.js:2:1480990)
at h (https://beta.pybricks.com/static/js/main.eec8e77d.js:2:1480501)
at u (https://beta.pybricks.com/static/js/main.eec8e77d.js:2:1480773)
Thanks for the logs. This has the same "LE Read Remote Version Information" response timeout as in #513. There are not any known solutions, but make sure you hub has new/fully charged batteries and that you aren't releasing the button too early. You could try flashing the firmware with another device, like an Android phone. You could try eliminating any sources of interference, like Wi-Fi and other Bluetooth devices. You could try a different Bluetooth dongle or try different driver versions for your Bluetooth adapter.
Just thought I’d send an update. I bought a $15 tp-link UB500 Bluetooth dongle (BT v5.0) for the Win11 box and that did the trick.
From the specs I uploaded, the original Bluetooth adapter was v4.1 with its smaller packet size and given the timeout errors it’s likely that was the root of the problem. v5.0 definitely works and I suspect that even v4.2 would have done the job as that was the first version with the increased packet size limit hence 2X faster data throughput.
Thanks for the followup. Would you mind running this (in powershell) and sharing the results so we can get an idea of which adapters/drivers work and which don't?
Discussed in https://github.com/orgs/pybricks/discussions/898
Since you said you tried Edge, is it safe to assume you are using Windows? Unfortunately, lot's of people have trouble with Bluetooth on Windows. So this is probably the same issue as #312, #513, #555, etc.
It would be useful to know what Bluetooth chip/driver you are using. Run this in PowerShell to find out:
You could also try logging Bluetooth packets as described in https://bleak.readthedocs.io/en/latest/troubleshooting.html#windows-10
Hi. I'm having a very similar issue trying to flash two different Technics Hubs and Windows 11 Build 22000.1335 (Date: 2022-12-11). I've tried the web based process using the latest versions of both Edge and Chrome as well as the local installs of Pybricks and Pybricks Beta. Unfortunately the results are always the same.
From reading your notes, I've tried the reboot and launching Chrome as per #513 but I still get the same errors. Attached is the Wireshark log. From your Facebook post, the error occurs at approximately 0:42 of the video and no progress indicator shows in the webpage or the local app.
Sure hope you can help.
Nick
Pybricks Error Message:
The Bluetooth chip info is:
pybricks_20230105_1729.zip
Thanks for the logs. This has the same "LE Read Remote Version Information" response timeout as in #513. There are not any known solutions, but make sure you hub has new/fully charged batteries and that you aren't releasing the button too early. You could try flashing the firmware with another device, like an Android phone. You could try eliminating any sources of interference, like Wi-Fi and other Bluetooth devices. You could try a different Bluetooth dongle or try different driver versions for your Bluetooth adapter.
Thanks for the quick reply! We'll give these a try.
Just thought I’d send an update. I bought a $15 tp-link UB500 Bluetooth dongle (BT v5.0) for the Win11 box and that did the trick.
From the specs I uploaded, the original Bluetooth adapter was v4.1 with its smaller packet size and given the timeout errors it’s likely that was the root of the problem. v5.0 definitely works and I suspect that even v4.2 would have done the job as that was the first version with the increased packet size limit hence 2X faster data throughput.
Thanks for the followup. Would you mind running this (in powershell) and sharing the results so we can get an idea of which adapters/drivers work and which don't?