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

remote not paring to hub after latest update #793

Closed
tdamsma opened this issue Nov 11, 2022 · 9 comments
Closed

remote not paring to hub after latest update #793

tdamsma opened this issue Nov 11, 2022 · 9 comments
Labels
bug Something isn't working hub: handset Issues related to the LEGO Powered Up Handset (remote control) hub: movehub Issues related to the LEGO BOOST Move hub software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime) topic: bluetooth Issues involving bluetooth

Comments

@tdamsma
Copy link

tdamsma commented Nov 11, 2022

After running the recommenced firmware update on my boost hub today on the beta channel I couldn't get the remote to pair. It did work before (on the beta channel), but now I had to revert to stable to get it working again.

@laurensvalk laurensvalk transferred this issue from pybricks/pybricks-micropython Nov 11, 2022
@dlech
Copy link
Member

dlech commented Nov 11, 2022

Can you please share the exact firmware version and an example program to reproduce the problem?

@tdamsma
Copy link
Author

tdamsma commented Nov 11, 2022

The firmware is whatever is pushed as latest on beta.pybricks.com as of today. The example program to reproduce is just call Remote() to initiate a pairing. I tried also with Remote(timeout=None) and that was just stuck.

@dlech
Copy link
Member

dlech commented Nov 11, 2022

We just published a new version today, so depending on what time of day it could be a different firmware version. So without an exact version number, we can only guess which version is being used. You can find the version here:
image

or from pybricks import version; print(version).

With Pybricks firmware v3.2.0b5 on a Technic hub and the hub connected to Pybricks Beta on Linux, I am able to get the remote connected to the hub.

Which hub and operating system are you using? Do you turn on the remote before of after you start the program on the hub?

@dlech dlech added topic: bluetooth Issues involving bluetooth software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime) hub: handset Issues related to the LEGO Powered Up Handset (remote control) bug Something isn't working labels Nov 11, 2022
@dlech
Copy link
Member

dlech commented Nov 11, 2022

Oops, I should read more carefully, I see that you said the BOOST Move hub already.

@dlech dlech added the hub: movehub Issues related to the LEGO BOOST Move hub label Nov 11, 2022
@dlech
Copy link
Member

dlech commented Nov 11, 2022

I'm able to reproduce the problem with a move hub, so we will look into it.

@tdamsma
Copy link
Author

tdamsma commented Nov 11, 2022

Great, thanks. Sorry for not writing a better issue report, am on the road now but figured I should report this nonetheless. Really great work on the beta version by the way, so much improvements compared to stable!

@dlech
Copy link
Member

dlech commented Nov 11, 2022

It appears to be working when not connected to Pybricks Beta:

Steps:

  • download and run program with Pybricks Beta (doesn't work but needed to copy program to hub)
  • stop the program
  • disconnect hub from Pybricks Beta
  • press button on hub to start program
  • press button on remote to connect remote
from pybricks.hubs import MoveHub
from pybricks.pupdevices import Motor, ColorDistanceSensor, Remote
from pybricks.parameters import Button, Color, Direction, Port, Stop
from pybricks.robotics import DriveBase
from pybricks.tools import wait, StopWatch

hub = MoveHub()

remote = Remote()

hub.light.on(Color.GREEN)
remote.light.on(Color.GREEN)

while True:
    print(remote.buttons.pressed())
    wait(1000)

@dlech
Copy link
Member

dlech commented Nov 11, 2022

Found and fixed the problem. You can use this firmware until the next beta release.

@tdamsma
Copy link
Author

tdamsma commented Nov 11, 2022

Well that was quick! Won't be able to test until Monday

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: handset Issues related to the LEGO Powered Up Handset (remote control) hub: movehub Issues related to the LEGO BOOST Move hub 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

2 participants