Webrepl not working while executing code

The official PYBD running MicroPython, and its accessories.
Target audience: Users with a PYBD
Post Reply
kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Webrepl not working while executing code

Post by kevinkk525 » Mon May 03, 2021 4:04 pm

I tried using the webrepl on my pyboard-D but it doesn't go further than entering my password. After that, nothing happens. Not even the repl output gets sent to the webrepl. Sending/Receiving files also doesn't work.
When I interrupt my uasyncio program or any other executed code on the pyboard, everything works fine again. (But I need to Interrupt from the console, it doesn't work through the webrepl)
Oddly enough, starting the same code again from the webrepl makes the repl output appear in the webrepl, however the KeyboardInterrupt still won't work.
I don't have these problems on my esp8266 or esp32.

I'm using micropython 1.15 from the download page.

additionally: Sending files to the pyboard through webrepl doesn't make them appear in the PYBFLASH drive on windows until a hard reset. Not even a soft reset makes them show up.

Edit: Openen an issue on github: https://github.com/micropython/micropython/issues/7208
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: Webrepl not working while executing code

Post by kevinkk525 » Sat May 22, 2021 8:06 pm

So nobody got problems with webrepl? Or is nobody using that anymore?

Wanted to deploy my pyboard in my garden project but if the webrepl is unusable, remote debugging won't be possible.. Then I'll have to use my esp32, which would be a shame (and some stuff won't work as well but at least the esp32 works properly..)
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: Webrepl not working while executing code

Post by kevinkk525 » Thu May 27, 2021 5:26 am

Well, for anyone interested, I ended up building my own firmware with _thread enabled and just ran my application in a thread, which leaves the repl responsive and therefore the webrepl works fine too. Not really my preferred mode but at least it seems to work stable. An added benefit might be that you can debug the application while it is running :D
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

Post Reply