← index #7208Issue #2561
Off-topic · high · value 1.425
QUERY · ISSUE

Pyboard-D: Webrepl not responding

openby kevinkk525opened 2021-05-03updated 2022-09-13

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 nightly 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. But that is a separate issue and not really important (who uses webrepl to upload files while connected to a pc...)

Steps to reproduce:

  1. Connect to wlan and start webrepl
  2. Have a script (or run from serial repl) start some code:
import time
c=0
while True:
    print(c)
    c+=1
    time.sleep(1)
  1. Connect through webrepl
  2. Entering password works, serial repl prints connection established

Expected Behaviour:
The output of the script gets printed to both serial repl and webrepl, file upload/downloads work while the script runs, KeyboardInterrupts work.

Actual Behaviour:

  1. No output printed to the webrepl. Interestingly though, if you Interrupt the script from the serial repl and start it again from the webrepl, the output gets printed to the webrepl. But reconnecting the webrepl results in the same problem, no output.
  2. No KeyboardInterrupt. Not even when the script prints the output to the webrepl.
  3. Webrepl is only responsive while no script is running (so you need to interrupt it from the serial repl before you can enter anything in the webrepl).
  4. No file upload/download while a script is running.
  5. Disconnect only due to timeout while a script is running.
CANDIDATE · ISSUE

WebREPL refuses connection

closedby djolezopened 2016-10-26updated 2016-10-31

Hi,
yesterday for no reason WebREPL on my esp8266 12e stopped responding, when I try to transfer files using webrepl_cli I get a Connection timed out error, if I try to connect over web app I just get a Disconnected message.

I tried restarting it a couple of times but it didn't help, after I reflashed the firmware it worked normally but now I got the same problem. Micropython that I am using is v1.8.5-40-g266e4ac. Besides that everything works normally, I can also ping it, this is the output from serial console:

connecting to network...
scandone
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 11
cnt

connected with Telecom-85285913, channel 11
dhcp client start...
ip:192.168.1.4,mask:255.255.255.0,gw:192.168.1.1
WebREPL daemon started on ws://192.168.1.4:8266
Started webrepl in normal mode
network config: ('192.168.1.4', '255.255.255.0', '192.168.1.1', '192.168.1.1')
pm open,type:2 0

If some additional info is needed please tell me.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied