Skip to content

Connection Error: Connection attempt failed. Cant connect my new hub to pybricks #2128

Closed

Description

@ollyoYT

Whenever I try to download the Pybricks firmware the error message

Connection Error: Connection attempt failed.

always comes up. I have tried it many times and am quite disappointed as the technic hub was costly. Please help me if you can :)
Thank you!

Activity

  1. added
    triageIssues that have not been triaged yet
    on Mar 20, 2025
  2. dlech commented on Mar 20, 2025

    @dlech
    Member

    Can you please give more information on how exactly to reproduce this problem?

    • What operating system?
    • Are you using https://code.pybricks.com ?
    • What are the exact steps that lead to this? For example, I click on... then I clicked on... then pressed and held the button on my hub...
  3. ollyoYT commented on Mar 21, 2025

    @ollyoYT
    Author

    @dlech Hi there! Thanks for replying to my problem. Sorry i didn't specify further. Here are the answers :)
    I am on windows 10
    I tried both code.pybricks.com and beta.pybricks.com, neither work
    The exact steps are as follows: Step one, I click onto "install Pybricks firmware". Step two, I selected the hub, accepted the licenses, named the device and watched the video. Step three, I held down the green button on the hub, it turned purple so i clicked install (still holding the button) Step four, I noted that the light on the hub flashed multiple colours. Step five, when the hub stopped flashing the error message "Connection Error: Connection attempt failed" popped up on my screen. Step six, I tried multiple times and still nothing so I can to github to report my issue!
    Thanks again, I really hope you can help me. :)

  4. dlech commented on Mar 21, 2025

    @dlech
    Member

    Once the hub starts flashing multiple colors, you can let go of the button. Some of the hubs don't like it if you hold the button too long. Low batteries can also cause problems when flashing firmware. And on the City Hub, having anything plugged into an I/O port will cause flashing firmware to fail.

  5. ollyoYT commented on Mar 21, 2025

    @ollyoYT
    Author

    @dlech Hi again. I do always let go whenever the download starts as you mentioned but nothing, its also full battery. Do you think it might be my laptops problem? I might try it on a different device. If it doesn't work do you know any other softwares to use, or how to use powered up on pc? Thank you so much :)

  6. dlech commented on Mar 21, 2025

    @dlech
    Member

    Yes, could be a Bluetooth adapter issue. Intel Wireless + Bluetooth is notorious for not working well with Bluetooth low energy.

    Some people have better luck flashing the firmware, e.g. with their Android phone, then they can still use Pybricks Code on their computer after the firmware has been updated.

  7. ollyoYT commented on Mar 21, 2025

    @ollyoYT
    Author

    @dlech Thanks a million for all of your help. I'll defo put it into action. Bye

  8. added
    supportRequest for technical support for a problem that is not a bug or feature request
    software: pybricks-codeIssues with https://code.pybricks.com application
    and removed
    triageIssues that have not been triaged yet
    on May 19, 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

    software: pybricks-codeIssues with https://code.pybricks.com applicationsupportRequest for technical support for a problem that is not a bug or feature requesttopic: bluetoothIssues involving bluetooth

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions