USB Hub Port Cycle
uhubctl_cyclePower-cycles a USB hub port off then on after a set delay to hard reset a board with a wedged USB serial connection.
Instructions
Power a USB hub port off, wait delay_s seconds, then on.
The hard reset for a board whose USB serial has wedged (calls to it fail with
"Power-cycle it (uhubctl_cycle)"). One call instead of off+on, with the timing handled
in-process. Target by (location, port) from uhubctl_list, or by role (see
uhubctl_power). Requires confirm=True, or the user's answer when the client can
ask.
Returns {action, location, port, delay_s, duration_s, ...}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "uhubctl_cycle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | The port number on that hub. | |
| role | No | A device role, resolved as in `uhubctl_power`; not with `location`/`port`. | |
| confirm | No | `True` once the user agreed; omitted, a client that can ask prompts the human. | |
| delay_s | No | Seconds the port stays off, 0..60. | |
| location | No | The hub location from `uhubctl_list`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||