I know there is a thread discussing how to do this in pure Python. It would be smart.
Meanwhile I have managed to have a decent access to my pico with esp-link with a simple solution
I did the following steps:
1 - Build MicroPython for the Pico with repl over serial enabled, as explained here (page 8) with this instruction
Code: Select all
#define MICROPY_HW_ENABLE_UART_REPL (1)
3 - Connect the Pico to the ESP
Now a full repl access is available via Telnet with this command from a Linux box on the same network:
Code: Select all
telnet <esp-link IP address> 23
This is a very decent and usable REPL access.
However we can do more and have rshell access to the pico
On the linux box we make a virtual serial port (linked to esp-link tcp port 23) with this command
Code: Select all
sudo socat pty,link=/dev/ttyTCP0,ignoreeof,user=pi,group=dialout,mode=777,rawer tcp:192.168.xx.xx:23 &
Code: Select all
rshell -p /dev/ttyTCP0 -e geany # geany or nano or your favorite editor
There is nothing really new with that as I found here and there on the web the different pieces to do it, but I found it nice to have rshell over wifi to a pico!
--