serial_set_signals
Reset a microcontroller or enter bootloader mode by setting DTR and RTS hardware signals on the serial port.
Instructions
Control DTR and RTS hardware signals on the serial port.
These pins are commonly used to:
Reset microcontrollers (DTR on Arduino, DTR+RTS on ESP32)
Enter bootloader/programming mode
Control power to peripherals via transistor switches
Implement hardware flow control
Examples: - Reset Arduino: serial_set_signals(dtr=False); serial_set_signals(dtr=True) - ESP32 bootloader: serial_set_signals(dtr=False, rts=True) then serial_set_signals(dtr=True, rts=False)
Args: dtr: Set DTR signal high (True) or low (False). None leaves it unchanged. rts: Set RTS signal high (True) or low (False). None leaves it unchanged. session_id: Port name of the session. Optional if only one session is open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dtr | No | ||
| rts | No | ||
| session_id | No |