mpremote rfc2217 telnet connection (rp2040 / Raspberry Pi Pico W) #14308
Replies: 1 comment 3 replies
-
@scruss, I added that option to support connection to Wokwi that can emulate espxx and rp2 boards in #12500 if you want a direct mpremote connection , it may be possible to just skip Telnet altogether as I mentioned in that PR: conceptually something like ## completely untested code ##
s = usocket.socket(usocket.AF_INET, usocket.SOCK_STREAM)
s.bind(('0.0.0.0', 4321))
s.listen(1)
while True:
(clientsocket, address) = s.accept()
# now do something with the clientsocket
# pretend this is a streamed filelike object
stream = uio.IOBase(clientsocket)
os.dupterm(stream)
## completely untested code ## need some safeguards and error handling around that , and security will be non-existent a small mpremote/transport_serial.py patch would be needed to also check for
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
mpremote connect supports communication over RFC 2217 - Telnet Com Port Control Option. What MicroPython code would I need to be running on a Raspberry Pi Pico W to make this remote connection work, please?
Attempts to use utelnetserver result in
failed to access rfc2217://192.168.2.126:23 (it may be in use by another program)
. If I telnet to the same address using thetelnet
command, though, I get access to the REPL.Beta Was this translation helpful? Give feedback.
All reactions