measure
Powers a device under test at a set voltage for a defined duration, records current and optional UART/channel data, then returns recording ID and statistics.
Instructions
Power the device under test from the Otii main output at main_voltage for duration_s seconds and record it, then turn power off. Returns the recording id and statistics for the whole recording.
main_voltage: supply voltage in V. Check it is safe for the device under test. max_current_A: the main output cuts off above this current. channels: channels to record in addition to main current 'mc', e.g. 'mv' (main voltage), 'mp' (main power), 'i1'/'i2' (digital inputs GPI1/GPI2, for energy_between_gpi_edges). uart_baudrate: set to record the device's UART output (rx channel) as a timestamped log, which enables get_log and energy_between_messages. exp_voltage: expansion port voltage (1.2-5 V), i.e. the UART/GPIO logic level. Must match the device's IO voltage when recording UART or GPI. Left unchanged if not given. device: Otii device name; defaults to OTII_DEVICE or the only connected device.
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": {
"main_voltage": "<main_voltage>"
},
"name": "measure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| channels | No | ||
| duration_s | No | ||
| exp_voltage | No | ||
| main_voltage | Yes | ||
| max_current_A | No | ||
| uart_baudrate | No |