I made a Pico webclient over USB based on that: https://github.com/Hermann-SW/pico-webclient
My plan is to access internet from Pico through ESP01 (8pin ESP8266 module) Wifi: viewtopic.php?f=145&t=307220
This thread is about the opposite direction of ESP01 use:
Allow for wireless access to Pico Micropython REPL through the ESP01.
First I wanted to do that with Micropython on the ESP01 as well.
But the project us2n I tried was just broken
(example JSON on README.md invalid, even with code changed was not able to work even against Pi400 RX/TX):
Then I remembered having used ESP01 as telnet to serial bridge 6 years ago to telnet wireless into bitlash shell running on Arduino:
So I downloaded Linux ARM 32bit Arduino IDE to my Pi400 and installed it:
Next I followed instruction on adding ESP8266 boards to the IDE via Boards Manager according instructions:
https://github.com/esp8266/Arduino#inst ... ds-manager
I selected "Generic ESP8266" as board and used cheap USB programming board to program the ESP01 over /dev/ttyUSB0
(I did solder a switch below the board between GND and I00, in order to easily bring ESP01 into flash mode):
First I loaded Blink example, that compiled and flashed fine, but did not start. The last message from Arduino IDE stated restarting via RTS, and that did not work with my module. But removing and reinserting the module did work.
Then I downloaded "ESP8266Wifi/WifiTelnetToSerial" demo, compiled and flashed without changes.
Finally I connected the ESP01 without USB module to the Pi400:
3V3/GND/RX/TX/EN to 3V3/GND/GPIO14/GPIO15/GPIO4
The ESP01 got powered.
Below you can see session of wireless login into Pi400 through ESP01 (makes more sense to do that with a Pi0).
I had enabled serial interface with login prompt via "sudo raspi-config".
This is what you see:
- executing "finger" on Pi400, showing there is no serial login active
- start pigpiod, configure GPIO4 as output and write 0 (to disable ESP01 enable pin)
- ping 192.168.178.77 shows not able to connect
- writing 1 to GPIO4 enables ESP01 and pings become successful
- telnet 192.168.178.77 goes through ESP01 to Pi400
- for some reson (dirt on the wire) font gets scrambled in session
- after login as pi/verySecret command "reset" gives clear view again
- now "finger" command shows that serial login is active
- logout and leaving telnet work as they should
What we have seen is that ESP01 after powered and enabled perfectly routes telnet session to what is connected serially.
ESP01 was powered by Pi400, will be powered from and serially connected to Pico next.
From what I have seen and reported here, wireless Pico Micropython REPL access should just work ... trying that now.