Drive BLE MIDI from this host
crosspad_bleScan, connect to, and drive a CrossPad over BLE MIDI from the host Bluetooth radio to send notes, listen for board messages, and measure round-trip latency while matching the reported device address.
Instructions
[ESP HW] Talk to the CrossPad's BLE MIDI from this machine's Bluetooth radio: scan, connect, send notes, listen to what the board sends and measure round-trip latency. It matches the board by the address the board reports and refuses to guess between look-alikes. Needs the ble extra installed and a firmware with BLE compiled in; both are reported as environment errors, not a silent pass.
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": {
"action": "<action>"
},
"name": "crosspad_ble"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | send: the note to play | |
| count | No | latency: how many probes | |
| action | Yes | Drive the HOST radio: scan for the board, connect, send notes to it, listen for what it sends, measure round-trip | |
| device | No | ||
| address | No | connect: the peripheral's address. Omit to use the one the board reports as its own (BLE_STATUS self=) | |
| velocity | No | ||
| timeout_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts | No | ||
| docs | No | ||
| next | No | ||
| count | No | ||
| error | No | ||
| action | No | ||
| device | No | ||
| handle | No | ||
| notice | No | ||
| result | No | ||
| success | Yes | ||
| peripherals | No |