Skip to content

Windows 10 can't connect to CONTROL+ hub #513

Closed

Description

@DanieleBenedettelli

Describe the bug
I tried connecting to a CONTROL+ hub with
code.pybricks.com and beta.pybricks.com
from Chrome Versione 94.0.4606.81
on Windows 10 20H2 19042.1288
The hub had the fw installed using Android, because on this machine the fw upload failed.

To reproduce
Click on connect, select hub, wait

Expected behavior
The computer won't connect to the hub. On the Console, this error appears
DOMException: GATT Server is disconnected. Cannot retrieve services. (Re)connect first with device.gatt.connect

Screenshots
Here are the logs from code and beta
beta.pybricks.com-1634757617600.log
code.pybricks.com-1634757458917.log

Activity

  1. added
    triage
    on Oct 20, 2021
  2. dlech commented on Oct 20, 2021

    @dlech
    Member

    This sounds like #312. Can you try capturing Bluetooth packets to see if we see the same thing?

    Instructions: https://bleak.readthedocs.io/en/latest/troubleshooting.html#windows-10

  3. added
    OS: Windows 11
    software: pybricks-code
    topic: bluetooth
    and removed
    triage
    on Oct 20, 2021
  4. DanieleBenedettelli commented on Oct 20, 2021

    @DanieleBenedettelli
    Author

    Here are two logs taken as indicated here
    https://bleak.readthedocs.io/en/latest/troubleshooting.html#windows-10
    I started WireShark and then tried to connect using beta,pybricks.com
    win10-controlhub2.zip

  5. dlech commented on Oct 20, 2021

    @dlech
    Member

    Thanks for taking the time to do this. These Bluetooth issues that only happen on certain computers are a pain. This seems like a bug in Windows rather than Pybricks, but it would be nice if we could figure out some sort of workaround.

    I've attached a log from my working setup to see if anyone can spot any differences. The only thing I have seen so far is that in #312 (comment) and win10-controlbhu2.pcapng, there is a delay of a few seconds before "Rcvd Read Remote Version Information Complete" shortly before the device is disconnected.

    win11-technichub-pybricks-code-beta-working.zip

  6. dlech commented on Oct 20, 2021

    @dlech
    Member

    I found another Chromium bug that could be related https://crbug.com/1120338. Try starting Chrome with --enable-features=NewBLEGattSessionHandling on the command line to see if it makes a difference.

  7. DanieleBenedettelli commented on Oct 21, 2021

    @DanieleBenedettelli
    Author
  8. DanieleBenedettelli commented on Nov 15, 2021

    @DanieleBenedettelli
    Author

    @dlech I am trying flashing the firmware from an Android smartphone, it's the 3rd attempt, and when it arrives at 100%, it gives the error "The hub took too long to respond. Restart the hub and try again."

    The hub remains in bootloader mode when I power cycle it, and I have to use the LEGO Powered Up app to flash the original fw back. I really need the Technic hub for a commission.
    Two out of two devices won't flash it. Can it depend from the hub itself?

  9. DanieleBenedettelli commented on Nov 15, 2021

    @DanieleBenedettelli
    Author

    Can I use the BlueGiga BLED112 as dongle alternative to my PC embedded antenna?

    Thanks,
    D

  10. dlech commented on Nov 15, 2021

    @dlech
    Member
  11. dlech commented on Nov 15, 2021

    @dlech
    Member

    Can I use the BlueGiga BLED112 as dongle alternative to my PC embedded antenna?

    If it has a Windows driver, it could work (you will need to disable the built-in Bluetooth device in Device Manager). I don't know if the problem you are having is with the computer or with the Bluetooth chip.

  12. DanieleBenedettelli commented on Nov 15, 2021

    @DanieleBenedettelli
    Author

    Shoot, I forget using beta! Let me try again from my 3rd device, and Android tablet.

  13. DanieleBenedettelli commented on Nov 15, 2021

    @DanieleBenedettelli
    Author

    Fw update succeeded from LENOVO tablet with beta. My PC cannot even connect when the fw is PyBricks to develop code.
    I will try using Android

  14. dlech commented on Mar 23, 2023

    @dlech
    Member

    Did you ever find a compatible adapter?

  15. added
    close-me
    on Mar 23, 2023
  16. DanieleBenedettelli commented on Mar 23, 2023

    @DanieleBenedettelli
    Author

    Yes, I bought the TP-LINK Bluetooth Adapter 5.0 UB 500
    https://amzn.to/3TFxC6A which works wonderfully!
    When I need to work with PyBricks, I disable the internal antenna, and I plug the external dongle.

  17. dlech commented on Mar 23, 2023

    @dlech
    Member

    Awesome! Out of curiosity, what kind is the internal radio that doesn't work?

  18. DanieleBenedettelli commented on Mar 24, 2023

    @DanieleBenedettelli
    Author

    My DELL laptop has a Dell Wireless 1820A Bluetooth 4.1 LE adapter (Broadcom Corporation)

  19. added theissue type on Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS: Windows 11close-mesoftware: pybricks-codetopic: bluetooth

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions