Using mpremote with micropython via stdio #18817
Replies: 4 comments 13 replies
-
This is a special serial-over-ethernet protocol. We just have a raw socket without this protocol. |
Beta Was this translation helpful? Give feedback.
-
|
Instead of doing a network socket, would it be possible to share a pty device with the docker container, e.g. with |
Beta Was this translation helpful? Give feedback.
-
|
I have been working on
This setup passes all current mpremote tests, as well several network related tests I added. To my disappointment this does not run much faster than a USB CDC serial connection (yet), although that may point at too conservative timing/polling in mpremote, and some rfc2217 protocol overhead.
|
Beta Was this translation helpful? Give feedback.
-
|
It would be great to be able to use mpremote on unix micropython in the same way as on a embedded system. It would really speed up development and testing. I am running up against the same issues as above. I have been using the socat method... ...works just fine and gives me a repl. But... gives the following error.... It would be even better if mpremote and unix micropython supported a repl over IP, but that's just crazy talk! Btw, I have been testing with micropython 1.27 and WSL2 ubuntu. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been trying to connect
mpremoteto a running instance of the Unix port of MicroPython. How can Iconnectto a locally runningmicropythonprocess? (original discussion with @dlech )My end goal is to
mpremote runscripts.Here's what I came up with as a first step:
(am not sure everything is necessary, there was a bit of random knob turning)
I can connect to
s_namewith egscreenand I get a working REPL:Then tried with
mpremote, and while I do get a REPL, it hangs as soon asmicropythontries to print something. EvenCtrl-Xdoesn't help and I have to kill the micropython process formpremoteto shut down, and then need toresetmy shell as well:I'm not super familiar with terminal and serial devices, and am not sure what
mpremoteis actually doing. From sniffing the bytes between it andmicropythonit appears to send some raw bytes too, not just text so I'm assuming it uses some binary handshake with the MicroPython device?It appears
mpremotecan connect to a port. WithsocatI get a REPL:Here again though
mpremoteseems unhappy about something:here are some relevant conversations on rfc2217 with socat and what mpremote might need from a micropython device
Beta Was this translation helpful? Give feedback.
All reactions