Read text from a blinking signal
decode_blinkRead Morse back from an on and off signal. Send one of bits (1 on and 0 off, one character per unit), durations (the on and off lengths in milliseconds, the first one on) or levels, such as the brightness of each camera frame or a light sensor reading, with rate in samples per second or as [milliseconds, level] pairs. The level at both ends counts as off and the unit is found, unless invert or unit_ms say otherwise; a message of one letter sent at another unit than 100 ms needs unit_ms. Answers text, the code read, unknown sequences, unit_ms, quality (the share of runs within a quarter unit of 1, 3 or 7 units) and inverted. At most 200,000 samples. Nothing is stored. No API key, no account and no sign up.
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": "decode_blink"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bits | No | One character per unit, 1 for on and 0 for off, such as 101010001110111011100010101. | |
| rate | No | Samples per second for plain levels, such as 30 for a camera at 30 frames per second. | |
| invert | No | true when the low level means on, as with a screen that goes dark to signal; false when the high level does. Left out, it is found from the idle level at the ends. | |
| levels | No | A reading per sample, such as [12, 200, 198, 15] with rate, or [milliseconds, level] pairs such as [[0, 12], [33, 200]]. | |
| unit_ms | No | The unit the sender used, to fix it instead of finding it. With bits, the length of one character, 100 by default. | |
| durations | No | The on and off lengths in milliseconds in turn, the first one on. |