platformio-vscode-ide icon indicating copy to clipboard operation
platformio-vscode-ide copied to clipboard

platformio-ide.reopenSerialMonitorDelay has no effect for task "Upload and Monitor" resp. requesting a delay option b/w upload/monitor

Open chrislro2019 opened this issue 4 years ago • 2 comments

Situation: I often use task "Upload and Monitor", but my device (ItsyBitsyM0 with Arduino) needs some time to provide its COM port on my Windows 10 PC after the elf is uploaded. The serial monitor starts immediately after a successful upload, but often it complains with "could not open port 'COM20'", sometimes it just works. When failing, I can start monitoring manually shortly after that (task "Monitor"). So I assume a delay between upload end and monitor start could make it work. I found the option "platformio-ide.reopenSerialMonitorDelay", but it looks like it has no effect on task "Upload and Monitor". This is either intended (then I would request a new option to delay between upload/monitor in milliseconds) or a bug.

Versions: Core 5.0.4 VSCode 1.52.1 Win10

References: https://docs.platformio.org/en/latest/integration/ide/vscode.html#platformio-ide-reopenserialmonitordelay https://community.platformio.org/t/any-way-to-delay-opening-serial-port-monitor/8229 https://community.platformio.org/t/serial-monitor-delay-not-working/12419

chrislro2019 avatar Jan 19 '21 16:01 chrislro2019

Please re-test with https://community.platformio.org/t/platformio-ide-for-vscode-2-3-beta-help-us-with-testing/19219

ivankravets avatar Feb 09 '21 16:02 ivankravets

I re-tested with 2.3.0-beta.1, but the option still does not have an effect on "upload and monitor" ... from end of build it directly starts the terminal - independent from what is set in "platformio-ide.reopenSerialMonitorDelay". I started with smaller numbers (2000), I even tried a very large number (1000000) to exclude unit issues (micros vs. millis).

chrislro2019 avatar Feb 10 '21 09:02 chrislro2019

See solution at https://community.platformio.org/t/any-way-to-delay-opening-serial-port-monitor/8229/5?u=ivankravets

ivankravets avatar Dec 22 '22 17:12 ivankravets