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

The hub took too long to respond. Restart the hub and try again. #329

Closed
ferhatozdmr opened this issue May 9, 2021 · 22 comments
Closed
Labels
bug Something isn't working hub: movehub Issues related to the LEGO BOOST Move hub OS: macOS Issues that only occur on macOS software: pybricks-code Issues with https://code.pybricks.com application topic: bluetooth Issues involving bluetooth

Comments

@ferhatozdmr
Copy link

Question
I ghis error when I am trying to connect my movehub to macos 10.15.7

Context
What are you trying to accomplish that led to this question?

Screenshots
There is a saying that a picture is worth a 1000 words. Screenshots really help to identify and solve problems.

@ferhatozdmr ferhatozdmr added support Request for technical support for a problem that is not a bug or feature request triage Issues that have not been triaged yet labels May 9, 2021
@ferhatozdmr
Copy link
Author

I have tried too many times. reinstalled original firmware and tried again. but I get the same error.

@dlech
Copy link
Member

dlech commented May 9, 2021

Could you please try some of the things in our Bluetooth Troubleshooting Guide to help us figure out what the problem is?

@dlech dlech added OS: macOS Issues that only occur on macOS software: pybricks-code Issues with https://code.pybricks.com application and removed triage Issues that have not been triaged yet labels May 9, 2021
@ferhatozdmr
Copy link
Author

Hi David, I couldn't get much info I guess. But here are some screenshots:
Screen Shot 2021-05-09 at 18 49 57
Screen Shot 2021-05-09 at 18 51 37

I can control it with out any problems through https://legoboost.azurewebsites.net/ this web site. I know it uses totally different protocol but I believe this shows that there is no hardware or communication issue between the hub and my computer. In pybricks case, it finds my hub, starts flashing the drive only at the last step it gives this error.

@ferhatozdmr
Copy link
Author

I have installed the firmware on another windows machine, and now I connect it to my mac without ant issues. I don't know what the problem is installing firmware on a mac but if anybody has similar problem on mac, install the firmware on a windows pc and use your hub with your mac.

@dlech
Copy link
Member

dlech commented May 10, 2021

If you are able to capture the Bluetooth packets on your Mac, it would be interesting to compare it to #256.

@dlech dlech added the hub: movehub Issues related to the LEGO BOOST Move hub label May 16, 2021
@dlech
Copy link
Member

dlech commented May 17, 2021

We just released pybricks-code@1.0.0-rc.2 that fixed #256. Could you try flashing the firmware on your Mac using this new version to see if the problem on Mac is fixed as well?

@dlech dlech added bug Something isn't working and removed support Request for technical support for a problem that is not a bug or feature request labels May 17, 2021
@ferhatozdmr
Copy link
Author

ferhatozdmr commented May 17, 2021 via email

@dlech
Copy link
Member

dlech commented May 17, 2021

Thanks for checking. If you have time, it would still be helpful to do a Bluetooth packet capture on the Mac. It would be nice if we could fix it in case other people have the same problem.

@dlech dlech reopened this May 17, 2021
@ferhatozdmr
Copy link
Author

ferhatozdmr commented May 17, 2021 via email

@dlech
Copy link
Member

dlech commented May 17, 2021

It's been a while since I did that so I don't remember exactly where it is, but there are some filters in the PacketLogger.app that can be enabled to narrow it down to just Bluetooth traffic.

@ferhatozdmr

This comment has been minimized.

@dlech

This comment has been minimized.

@ferhatozdmr

This comment has been minimized.

@ferhatozdmr

This comment has been minimized.

@dlech

This comment has been minimized.

@ferhatozdmr

This comment has been minimized.

@laurensvalk
Copy link
Member

I get the same error.”The hub took to long to respond” as soon as the installation reaches to %100.

I think I can reproduce this consistently on Android with the City Hub.

And I can add/confirm that the hub then goes back to blinking pink, so there's no firmware on the hub; it's not just a matter of restarting the hub.

If this is not reproducable for you @dlech, I'll try to find logs as needed.

@dlech
Copy link
Member

dlech commented Jun 9, 2021

I would rather start a new issue about Android since this one is about macOS.

@laurensvalk
Copy link
Member

It was more to confirm that it can in fact get to 100% and still be without a valid firmware, which we weren't sure about yet in a recent discussion.

@pbochynski
Copy link

pbochynski commented Nov 1, 2022

Hi,
I was struggling with the same issue today. Macbook Pro and Lego Move Hub. Firmware installation was failing with different reasons. Usually, the hub took too long to respond, but sometimes it was unexpected GATT error. Always few seconds after erasing the firmware. I tried all troubleshooting, started to analyze bluetooth logs, etc.
Then I had some hunch and I disconnected my magic mouse (connected by bluetooth). And now flashing works every time!
So my advice - disconnect all other bluetooth devices before you start flashing your hub.

@laurensvalk
Copy link
Member

On the Move Hub specifically, fresh batteries seem to make a big difference as well.

@dlech dlech added the topic: bluetooth Issues involving bluetooth label Dec 7, 2022
@dlech
Copy link
Member

dlech commented Mar 20, 2023

Closing since Pybricks Code and the firmware has changed significantly since the initial report, so any reports of the same error message are not necessarily the same issue.

If anyone who has a problem that is fixed by turning off other Bluetooth devices, please capture Bluetooth logs as described here and post the results in #938. This seems to b a common problem and could help other users if we can understand it better.

@dlech dlech closed this as completed Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hub: movehub Issues related to the LEGO BOOST Move hub OS: macOS Issues that only occur on macOS software: pybricks-code Issues with https://code.pybricks.com application topic: bluetooth Issues involving bluetooth
Projects
None yet
Development

No branches or pull requests

4 participants