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

Write with response to City/Technic hubs sometimes does respond causing hang during download and run #1145

Open
dlech opened this issue Jul 7, 2023 Discussed in #1142 · 1 comment
Labels
bug Something isn't working hub: cityhub Issues related to the LEGO Powered Up Smart hub (Hub No. 4) hub: technichub Issues related to the LEGO Technic hub (Hub No. 2) software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime) topic: bluetooth Issues involving bluetooth

Comments

@dlech
Copy link
Member

dlech commented Jul 7, 2023

Discussed in https://github.com/orgs/pybricks/discussions/1142

Originally posted by vascolp July 5, 2023
I am having a lot of pybricksdev hanging when trying to run a program.

It hangs almost always at 300b (300/1.55k [00:30<02:06, 9.92B/s]), no matter the size of the program, but with a bigger programs it's impossible, it always hangs...

  • Command line: pybricksdev.exe run ble -n "THUB 5" ligapc_teste.py
  • pybricksdev v1.0.0a46
  • TechnicHub with Pybricks 3.3.0b7
  • Cygwin bash on windows 10

pybricksdev gets stuck, or enters a very long timeout, I have to kill it...
Any ideas?

Wireshark logs:
pybricks_code_run_stuck.zip
pybricksdev_run_stuck.zip

@dlech dlech added bug Something isn't working hub: cityhub Issues related to the LEGO Powered Up Smart hub (Hub No. 4) hub: technichub Issues related to the LEGO Technic hub (Hub No. 2) topic: bluetooth Issues involving bluetooth software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime) labels Jul 7, 2023
@dlech
Copy link
Member Author

dlech commented Jul 7, 2023

Both wireshark logs show something similar.

image

A status notification is sent after the write request but before the write response and then the write response is never sent.

We probably need to add some kind of message queue in the driver to avoid these from walking over each other.

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: cityhub Issues related to the LEGO Powered Up Smart hub (Hub No. 4) hub: technichub Issues related to the LEGO Technic hub (Hub No. 2) 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

1 participant