mhs5200_connect
Establish a serial connection to an MHS-5200A signal generator, a required first step before using any control tools. Reconnects automatically if a connection already exists.
Instructions
Connect to MHS-5200A signal generator via serial port.
This must be called before using any other mhs5200_* tools. If already connected, the existing connection is closed first.
Args: params: Connection parameters containing: - port (str): Serial port name (e.g., 'COM3', '/dev/ttyUSB0')
Returns: JSON with connection status and device information: { "status": "ok", "model": "5225A", "serial": "1234567890" }
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": {
"params": "<params>"
},
"name": "mhs5200_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |