wokwi-features icon indicating copy to clipboard operation
wokwi-features copied to clipboard

wokwi emulator responds to the rfc2217 connections only when vs code is in the foreground

Open petrarce opened this issue 1 year ago • 2 comments
trafficstars

I am using rpi pico w configured setup for running the wokwi emulator in VS code based on the mycropython firmware 1.23.0. However, i would like to be able to connect to repl and also perform the filesystem operations with the running emulator using the mpremote tool. This is right now problematic, since the serial communication with the emulator over the rfc2217 tcp port is not working properly, unless the VS code plugin is moved on the foreground. More specifically:

  1. I connect to the emulator with mpremote using this command:
mpremote connect rfc2217://localhosta:4000 repl
  1. Typing anything to the console doesn't produce any echo from the serial port
  2. Switching to the VS code seems to flush the serial communication buffers.

Within the wire-shark i can see this picture: image It seems to me, that when the VS code is not on the foreground the wokwi simulator is somehow paused.

Is it an expected behavior? Is it possible to somehow configure the wokwi VS code plugin to run on the background instead of pausing when the VS code is not on the foreground?

petrarce avatar Oct 19 '24 20:10 petrarce