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

[Bug] Popup stating "GATT Error Unknown." during download #1468

Open
laurensvalk opened this issue Feb 22, 2024 · 11 comments
Open

[Bug] Popup stating "GATT Error Unknown." during download #1468

laurensvalk opened this issue Feb 22, 2024 · 11 comments
Labels
bug Something isn't working software: pybricks-code Issues with https://code.pybricks.com application software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime) topic: bluetooth Issues involving bluetooth

Comments

@laurensvalk
Copy link
Member

(...) with the beta firmware and in the middle of running the program, before it finished downloading to the hub, I got an unexpected error message popup stating "GATT Error Unknown."

Originally posted by @ninoguba in #1467 (comment)

@laurensvalk laurensvalk changed the title [Bug] Popup stating "GATT Error Unknown." [Bug] Popup stating "GATT Error Unknown." during download Feb 22, 2024
@laurensvalk
Copy link
Member Author

This was also reported by:

Originally posted by @Tcm0 in #1462 (comment)

@laurensvalk
Copy link
Member Author

I have also seen this while working on @martynboogaarts 's laptop.

Once it did occur, it was deterministic after that. We kept getting that error when we clicked Download again.

Restarting the hub worked around it.

@laurensvalk laurensvalk added bug Something isn't working topic: bluetooth Issues involving bluetooth software: pybricks-code Issues with https://code.pybricks.com application software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime) labels Feb 22, 2024
@Tcm0
Copy link

Tcm0 commented Feb 22, 2024

So far I only got the issue once and it didn't happen when I tested my code for the app controlled transformation vehicle (I did at least 10 program uploads for sure). It only happened with that Technic Hub Disconnection test code

@laurensvalk
Copy link
Member Author

Thanks for the additional details. Indeed, it seems to occur only occasionally.

It only happened with that Technic Hub Disconnection test code

I think this is probably a coincidence. It doesn't start running any of the Xbox controller code until after the program starts. Or, depending on what you tried, even after initializing the steering motor.

@PeterAmiga
Copy link

PeterAmiga commented Apr 1, 2024

I am trying to install firmware on boost hub, and I get above error or attached error 'something went wrong'. I have tried ten times. I tried to install official firmware twice, and that worked fine.
I follow the instructions, setting no specific hub name. Instructions say Select Lego Bootloader and click Connect. But I can see Lego Bootloader - Paired, and then I can press Pair.

For me this does not seem logic, since it is already paired.

The process starts but I get attached error after around 10-12 seconds and the flashing on the hub stops.

Is there any way for me to see additional logging about what could go wrong?

Additional comment: I was able to install firmware on a city hub without problems.

pybricks_bootloader
pybricks_something_went_wrong

@dlech
Copy link
Member

dlech commented Apr 1, 2024

Is there any way for me to see additional logging about what could go wrong?

See https://github.com/orgs/pybricks/discussions/270

@PeterAmiga
Copy link

I just fetched bluetooth logging from browser. Will try other debugging tomorrow.
pybricks_bluetooth_debug

@dlech
Copy link
Member

dlech commented Apr 1, 2024

For this particular error ("The hub said something went wrong"), I think we will need Bluetooth packet logs.

The console log in the browser may give a slightly better hint as to the cause though (narrows it down to 1 of 5 possibilities).

@BertLindeman
Copy link

Comment of a simple Pybricks user :

  1. The "pair" in pybricks in fact means to connect to.
  2. I had this type of error sometimes when there were too many devices near the pc and the hub.
    As example when my phone is between the pc and the hub.

But bluetooth logging might show what is the real problem.

Bert

@PeterAmiga
Copy link

Impressively quick replies :-)

I realised I could run pybricks from my android phone. I also used my android phone to install the original firmware again. I succeded installing pybricks firmware using my phone.

And afterwards I can run a program on the hub from my Windows pc.

Thanks for the suggestions on how to solve the pc problem. For now I will experiment with the code on my hub and not dig further into this problem.

If you would like to have the Bluetooth packet logs, let me know. I will try to provide them.

@dlech
Copy link
Member

dlech commented Apr 2, 2024

If you would like to have the Bluetooth packet logs, let me know. I will try to provide them.

Yes, that wold be helpful to be able to see if this is a bug we can fix or if it is just a bad Bluetooth driver on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working software: pybricks-code Issues with https://code.pybricks.com application software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime) topic: bluetooth Issues involving bluetooth
Projects
None yet
Development

No branches or pull requests

5 participants