You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Question] Getting Started Documentation for Robot Inventor? #167
hub: primehub/inventorhubIssues related to the LEGO SPIKE Prime hub and LEGO MINDSTORMS Robot Invetor hubsupportRequest for technical support for a problem that is not a bug or feature request
Thanks for asking John! You're right, we're quite far along with Pybricks for the Inventor Hub and the Prime Hub. The documentation currently says coming soon, because it is still a bit tricky for beginning users. But since you are asking here, this is a good opportunity to show the more curious users how to get started already.
In the mean time, we're working to make it stable and easy for everyone else too.
Overview
The installation consists of three steps:
Running a script on the hub using the official app. This installs the Pybricks firmware alongside the original.
Starting Pybricks by holding the right button when you turn it on.
Running scripts with Pybricks code.
(Optional) Installing a Python package on your computer, so you can run programs.
Wait for the installation to complete. The hub lights indicate installation progress.
Then it reboots and you will see the Bluetooth light blink. Keep waiting, you're almost done. Finally, the hub boots again and you will see the standard firmware as if nothing happened. Success!
2: Starting Pybricks
Turn off the hub and unplug USB
Press and hold the center button to start Pybricks. If the status light is blinking blue, you are running Pybricks.
A regular (short) press will start the stock firmware instead.
NOTE: For the moment, the battery does not automatically charge while running Pybricks. So, make sure to reboot the hub when you are done using it, so it can charge the battery using the standard firmware.
3: Running scripts
Install Google Chrome.
Go to Pybricks Code. This should be fairly self-explanatory. It's the same for all hubs. We will be adding more documentation and guides as we go along.
4 (Optional) Installing the Pybricksdev command line tool to download and run programs locally
poetry run pybricksdev run ble "Pybricks Hub" demo/shortdemo.py
If you open the pybricksdev folder in Visual Studio Code, you can easily run the current file with the Run BLE configuration. Make sure the official Python extension is installed.
5 (Optional) Recovery
A regular firmware update using the official app will remove Pybricks. If this does not work, or if something else does not work, you can recover to the official firmware using this page.
Reacted by Joos Buijs, Ali Kishk, PhD, Nolan MacAfee, Marat Radchenko, petitlen, DJuego and Jaafar Benabdallah
We've been working on an updated firmware and installer, but it isn't quite ready yet.
Hopefully we can get the next version out in a few weeks. And if not, we can certainly give this older version a maintenance update to allow V1.4.01, if there's demand for it.
Thanks for quick reply on this.
Since at least two of us have fallen into this trap, I suspect others will have same problem.
Also, it is not so obvious about how to go back to earlier hub versions as the error note suggests.
So, an installer update to allow new version V1.4.01 to be used would be appreciated.
Seems like having your software and the Lego hub software track each other is tricky business.
I suppose every time Lego does a hub update, you would need to test that your software still works and then add new version to your installer. Is there a large dependence on the Lego hub software that would require a lot of update verification?
If not, maybe just check the hub for a minimum rev level in the installer?
Not sure if Lego hub updates are linked to App updates but the 10.3 App update on my iPhone shows released 2 weeks ago.
I could help to check functionality using your software on new hub version if that would help.
I guess the download would need to work ok first, but I have an application that uses a lot of the features, like motors, lights, all sensors, sounds, remote control, etc. This is based on the RI "Charlie" model.
Take care.
I also have v1.4.01.0000-594ce3d, as reported by https://install.pybricks.com/, and so the install fails. For me (in the US, on a modern Android phone) this has been the case at least since I started using my 51515 MINDSTORMS Robot Inventor Lego set on 2021 Dec 25. I'm also looking forward to trying Pybricks, so looking forward to any updates!
For the record, I've tried rolling back to firmware-backup-v1.2.01.0103-d08b6f, and then istalling pybricks, which works, but when I try to run programs, I get all kinds of weird errors. I did not bother with this, because I assumed I should just wait until the modern Hub firmware is supported by Pybricks, and then try again.
A rollback to the firmware "firmware-backup-v1.2.01.0103-d08b6f". doesn't work for me either. After installing the "old" firmware, I can no longer connect the hub for the dual-boot installation.
The following error:
"Failed to connect. Please wait 60 seconds and try again. Make sure that no other apps are using the hub."
...
The following error: "Failed to connect. Please wait 60 seconds and try again. Make sure that no other apps are using the hub."
...
I've got the same error on Linux, but on MacOS the installations went through. I've also had v1.4.01.0000-594ce3d firmware that gave me error but after rolling back to v1.3.00.0203-71f6a41 everything went fine and now I can code ;>
I solved the problem on Win 11 / Edge by deleting the driver (hub) in the device manager. then the hub has reconnected properly.
rollback is always necessary (at least in Germany) because the firmware of the native applications (Lego Mindstorms, Spike) currently "not yet" work for the dual boot.
hub: primehub/inventorhubIssues related to the LEGO SPIKE Prime hub and LEGO MINDSTORMS Robot Invetor hubsupportRequest for technical support for a problem that is not a bug or feature request
Activity
laurensvalk commentedon Nov 21, 2020
NOTE: This discussion is outdated.
Please see #591 for updated instructions
Thanks for asking John! You're right, we're quite far along with Pybricks for the Inventor Hub and the Prime Hub. The documentation currently says coming soon, because it is still a bit tricky for beginning users. But since you are asking here, this is a good opportunity to show the more curious users how to get started already.
In the mean time, we're working to make it stable and easy for everyone else too.
Overview
The installation consists of three steps:
1: Installing the firmware
2: Starting Pybricks
A regular (short) press will start the stock firmware instead.
NOTE: For the moment, the battery does not automatically charge while running Pybricks. So, make sure to reboot the hub when you are done using it, so it can charge the battery using the standard firmware.
3: Running scripts
4 (Optional) Installing the Pybricksdev command line tool to download and run programs locally
pybricksdevfolder in Visual Studio Code, you can easily run the current file with theRun BLEconfiguration. Make sure the official Python extension is installed.5 (Optional) Recovery
A regular firmware update using the official app will remove Pybricks. If this does not work, or if something else does not work, you can recover to the official firmware using this page.
BertLindeman commentedon Nov 21, 2020
laurensvalk commentedon Nov 21, 2020
BertLindeman commentedon Nov 21, 2020
johnscary-ev3 commentedon Nov 22, 2020
johnscary-ev3 commentedon Nov 22, 2020
BertLindeman commentedon Nov 22, 2020
laurensvalk commentedon Nov 22, 2020
Alitai12 commentedon Nov 22, 2020
laurensvalk commentedon Nov 22, 2020
Alitai12 commentedon Nov 22, 2020
70 remaining items
laurensvalk commentedon Jan 4, 2022
We've been working on an updated firmware and installer, but it isn't quite ready yet.
Hopefully we can get the next version out in a few weeks. And if not, we can certainly give this older version a maintenance update to allow V1.4.01, if there's demand for it.
johnscary-ev3 commentedon Jan 4, 2022
Thanks for quick reply on this.
Since at least two of us have fallen into this trap, I suspect others will have same problem.
Also, it is not so obvious about how to go back to earlier hub versions as the error note suggests.
So, an installer update to allow new version V1.4.01 to be used would be appreciated.
Seems like having your software and the Lego hub software track each other is tricky business.
I suppose every time Lego does a hub update, you would need to test that your software still works and then add new version to your installer. Is there a large dependence on the Lego hub software that would require a lot of update verification?
If not, maybe just check the hub for a minimum rev level in the installer?
Thanks for the help.
laurensvalk commentedon Jan 4, 2022
That’s right - we verify the version just to make sure everything is working. In this case, v1.4 does not seem to be out yet in my country.
Once the installer is integrated in our main app, most of this complexity will go away, but this is what we have to do for now.
johnscary-ev3 commentedon Jan 5, 2022
Not sure if Lego hub updates are linked to App updates but the 10.3 App update on my iPhone shows released 2 weeks ago.
I could help to check functionality using your software on new hub version if that would help.
I guess the download would need to work ok first, but I have an application that uses a lot of the features, like motors, lights, all sensors, sounds, remote control, etc. This is based on the RI "Charlie" model.
Take care.
laurensvalk commentedon Jan 7, 2022
In the mean time, you can install the official SPIKE firmware, which should still be compatible with our dual-boot installer.
To do so, launch the SPIKE app. When you connect, it will ask you to do the update.
SpudGunMan commentedon Jan 8, 2022
spike is now at LEGO Firmware version: b'v1.3.00.0000-e8c274a', so its too new as well
blac1175 commentedon Jan 9, 2022
I also have v1.4.01.0000-594ce3d, as reported by https://install.pybricks.com/, and so the install fails. For me (in the US, on a modern Android phone) this has been the case at least since I started using my 51515 MINDSTORMS Robot Inventor Lego set on 2021 Dec 25. I'm also looking forward to trying Pybricks, so looking forward to any updates!
For the record, I've tried rolling back to firmware-backup-v1.2.01.0103-d08b6f, and then istalling pybricks, which works, but when I try to run programs, I get all kinds of weird errors. I did not bother with this, because I assumed I should just wait until the modern Hub firmware is supported by Pybricks, and then try again.
laurensvalk commentedon Jan 10, 2022
Thanks for your patience everyone! 😄
DanNetor commentedon Jan 12, 2022
A rollback to the firmware "firmware-backup-v1.2.01.0103-d08b6f". doesn't work for me either. After installing the "old" firmware, I can no longer connect the hub for the dual-boot installation.
The following error:
"Failed to connect. Please wait 60 seconds and try again. Make sure that no other apps are using the hub."
"
poldolot commentedon Jan 12, 2022
I've got the same error on Linux, but on MacOS the installations went through. I've also had v1.4.01.0000-594ce3d firmware that gave me error but after rolling back to v1.3.00.0203-71f6a41 everything went fine and now I can code ;>
DanNetor commentedon Jan 12, 2022
I solved the problem on Win 11 / Edge by deleting the driver (hub) in the device manager. then the hub has reconnected properly.
rollback is always necessary (at least in Germany) because the firmware of the native applications (Lego Mindstorms, Spike) currently "not yet" work for the dual boot.
laurensvalk commentedon Jan 12, 2022
Thanks everyone for sharing your experiences. Good news --- we expect to release the next beta version next week or so.
The installation will be compatible with the latest official firmware, so please stay tuned :)
laurensvalk commentedon Jan 14, 2022
The beta release is now out. Thanks for waiting everyone!
Please see #591 for updated instructions
If you have any questions or concerns regarding the update, please feel free to open a new issue or discussion.
We will be closing this discussion about the alpha version so we don't confuse new users.