Page 1 of 1

mpremote over telnet on ESP32

Posted: Tue Aug 31, 2021 2:00 pm
by jdts
I'm evaluating the new mpremote tool, which works really well over serial. The mount command is especially powerful. I'd like to use mpremote's (via pyboard's) in-built telnet-based connection. This requires a telnet server running (MPv1.15), which I still don't think is built-in.

I have utelnetserver installed and working fine from telnet (no user or passwd). But trying to use this telnet server with mpremote fails:

Code: Select all

% telnet feedthedog.local                   
Trying 192.168.0.43...
Connected to feedthedog.local.
Escape character is '^]'.

>>> 
% mpremote connect 192.168.0.43  repl        
Failed to establish a telnet connection with the board
Does anyone have mpremote over telnet working on ESP32? If so I'd love to hear how you managed it.

Re: mpremote over telnet on ESP32

Posted: Tue Aug 31, 2021 10:52 pm
by jdts
OK, by digging through pyboard.py and console.py, I see that it expects a telnet server which prompts for login and password. This is pretty easy to bypass, but that next leads to

Code: Select all

AttributeError: 'TelnetToSerial' object has no attribute 'fd'
and the choice comment (in console.py)

Code: Select all

# TODO pyb_serial might not have fd

It would be wonderful to make both mpremote FS mount traffic and REPL traffic flow over the same remote telnet connection with good speed. But perhaps this hope is a bit premature.