Posted October 2, 20213 yr Hey I purchased 60198 City cargo train set and I run may train either with the remote or with my smartphone powered up application. For me powered up has much more potential when used with pybricks. So I tried to use my city/train hub with pybricks to write some programs to run my train. Unfortunately, I got stuck on installing firmware for pybricks (bootloader). I followed guidelines from their webpage, so was holding green button till light started blinking in purple and then clicked "Install Pybricks firmware" button in Pybricks code webpage opened in my browser. Light on hub is blinking red/green/blue and there is shown progress in % (Pybricks code webpage) after it reaches 100% error message occurs: "Hub took too long to respond" and hub led blinks red/green/blue in infinite mode - you need to put off batteries to stop it. On Github pybricks/support I found whole topic regarding that error message "Hub took too long to respond" and probably there is solution to that problem but I am beginner at Python programming so don't know how to solve this problem. Should I write some kind of input file to get through that issues with bluetooth or other? They put some code file there but I totally do not know how to use it. Here is link to that support page: https://github.com/pybricks/support/issues/256 Any help welcome :) Regards
October 2, 20213 yr Please try to update the Firmware from the HUB with the Lego PU App, after this try PyBricks again. My guess: the Firmware from the PU-Hub is maybe very old. Too old for PyBricks. Thomas
October 3, 20213 yr What Ts_ says, I had the same problem. Update the LEGO firmware to the latest one with the latest PU App before loading Pybricks firmware.
October 4, 20213 yr Had the same problem, what did it for me was to use another bluetooth device to upload the firmware. First I used a PC with an usb bluetooth dongle, next I used a laptop with embedded bluetooth device. For some reason, not all bluetooth devices (dongles) seem to have the capability to upload the firmware. After this upload, upload of the programs could be achieved with both bluetooth devices (both pc with dongle and the laptop). Hope this helps... Kalin
October 4, 20213 yr Author Hey thank you guys. Regarding firmware update I think it is up to date, as my Powered Up app on my smartphone does not make any request for updates and according to TLG Powered Up FAQ updates are made automatically via app. Regarding this bluetooth problem; I tried on my smartphone with error code mentioned before, tried also on my PC with bluetooth dongle but it got another error message. So maybe need to try on another laptop. Edited October 4, 20213 yr by sp1984
October 5, 20213 yr Thanks for reporting this! Could you give it a try via https://beta.pybricks.com/ ? This already contains quite a few fixes for Bluetooth connectivity. These should eventually come to the stable release as well.
October 7, 20213 yr Author On 10/5/2021 at 3:16 PM, Pybricks said: Thanks for reporting this! Could you give it a try via https://beta.pybricks.com/ ? This already contains quite a few fixes for Bluetooth connectivity. These should eventually come to the stable release as well. Hey it seems to work using that https://beta.pybricks.com/. Thanks! :) So on my PC in Chrome: bootloader is loaded, wifi connection established. I tested simple program to turn the red light on and off and it works. However I got stuck on another obstacle: I tried to run simple program for my train motor (motor without sensor) - Making a train drive forever and it does not work. Code is compiled without an error and diode is blinking blue on regular interval but nothing more happens i.e. motor is not running... I see sb posted similar issue already at Pybricks support page: https://github.com/pybricks/support/issues/500 Greets
October 9, 20213 yr Glad to hear the update works with the latest version! Thanks for reporting the motor issue as well. I can reproduce the problem and we will fix it soon. In the mean time, it should already work if you plug in the motor before you turn the hub on.
November 1, 20213 yr Author Hey, finally it works with beta version (link from this thread). It took following steps: i uploaded bootloader and after I switched off City hub and switched on it again and then train motor started to work with written code. Thanks :)
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.