Touch 1200Bps
touch_1200bpsOpen and close the board's serial port at 1200 baud to reboot nRF52840, native-USB ESP32-S3, RP2040, or similar devices into their USB bootloader, then report the bootloader port.
Instructions
Open port at 1200 baud and close it, rebooting an nRF52840, native-USB ESP32-S3,
RP2040 or similar into its USB bootloader; on an nRF52 it also drops DTR, which its
Adafruit core needs.
Then reports the bootloader's port: a new one, or the same node under a new PID (Linux keeps the /dev/ttyACM node and renames the /dev/serial/by-id link). Erases nothing; it is annotated destructive because it reboots the device.
Returns {ok, former_port, new_port, new_port_vid_pid, ...}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"port": "<port>"
},
"name": "touch_1200bps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | The board's serial port. | |
| settle_ms | No | Milliseconds to hold the port open at 1200 baud before closing it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||