Need to set --dtr and --rts serial monitor options

Hi,

I am using PlatformIO IDE on Linux for the ESP210 board. It works just great but you have to explicitly set --dtr and --rts options to 0 in order to get the serial monitor working. These are not currently available in the advanced settings.

I was able to add these options by adding

      <div class="form-group">
        <label>DTR</label>
        <select class="form-control monitor-option" data-monitor-option="dtr">
          <option value="0" selected>off</option>
          <option value="1">on</option>
        </select>
      </div>
      <div class="form-group">
        <label>RTS</label>
        <select class="form-control monitor-option" data-monitor-option="rts">
          <option value="0" selected>off</option>
          <option value="1">on</option>
        </select>
      </div>

to the advanced-settings div element in my ~/.atom/packages/platformio-ide/lib/serial-monitor/template.html file.
It would be nice if these options could get into the PlatformIO IDE.
I am not sure what the default options are supposed to be in order not to break communication using the other boards/OSs though.
Thanks / Mikael

Hello @mrkarlsson,

I’ve just added DTR and RTS options to Serial monitor right here.

Thanks!
The problem though by setting the default values in command.js to the same as the selected ones in template.html is that they will not be added to the command line (since they are considered defalult). This was what I experienced anyway when testing and hence I removed them from command.js in order to explicitly have them set when starting miniterm.

Both options now default to “not specified”, so whenever you choose “on” or “off” explicitly, options will be added to the command. See this commit for details.

Are these available for use in platformio.ini? I can’t see anything in the docs.

Ahh, yes I see. This will keep backwards compatibility too. Brilliant! :slight_smile:

These options are not related to platformio.ini. This is separate platformio serialports monitor.