Skip to content

Commit

Permalink
Set RTS option and explain its effect (#580)
Browse files Browse the repository at this point in the history
* Set RTS option and explain its effect

The `RTS=on` was the default so far,
but `RTS=off` is needed to prevent ESP32
controllers from restarting.

* Rephrase comment and don't set RTS option
  • Loading branch information
michaelosthege authored May 18, 2024
1 parent 20e390a commit 59442b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Programs/connect-serial-port.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ if "%COMPORT%" == "ASK" set /p COMPORT=Enter a COM Port Number:

set /A TTYNUM=%COMPORT%-1
if "%MODE_OUTPUT_REDIR%" == "NUL" echo Connecting to COM port %COMPORT%
REM The DTR and RTS settings to the mode command effect whether the microcontroller restarts when the port opens.
REM Different combinations of DTR/RTS={on|off} might be needed depending on the type of board, and whether you want it to restart.
mode COM%COMPORT% BAUD=250000 PARITY=N DATA=8 STOP=1 TO=off DTR=off %MODE_OUTPUT_REDIR%
timeout 5
if "%PROTOCOL%" == "UDP" socat\socat %VERBOSE% UDP4-RECV:5010,ip-add-membership=239.255.50.10:0.0.0.0,reuseaddr!!udp-sendto:localhost:7778 /dev/ttyS%TTYNUM%
Expand Down

0 comments on commit 59442b8

Please sign in to comment.