| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "type": "object",
- "required": ["project_id", "profile", "device", "uart", "outputs", "motors", "temperature", "pins", "resources", "protocol", "timeouts"],
- "properties": {
- "project_id": {"type": "string", "pattern": "^[a-z0-9-]+$"},
- "profile": {"type": "string", "const": "prod2u-normal-multiproject-115200-v1"},
- "device": {
- "type": "object",
- "required": ["family", "part", "clock_hz", "clock_ball"],
- "properties": {
- "family": {"type": "string", "const": "EF2"},
- "part": {"type": "string", "const": "EF2L45BG256B"},
- "clock_hz": {"type": "integer", "const": 25000000},
- "clock_ball": {"type": "string", "const": "J1"}
- },
- "additionalProperties": false
- },
- "uart": {
- "type": "object",
- "required": ["baud", "data_bits", "parity", "stop_bits", "flow_control", "clks_per_bit", "inter_byte_timeout_ms"],
- "properties": {
- "baud": {"type": "integer", "const": 115200},
- "data_bits": {"type": "integer", "const": 8},
- "parity": {"type": "string", "const": "N"},
- "stop_bits": {"type": "integer", "const": 1},
- "flow_control": {"type": "string", "const": "none"},
- "clks_per_bit": {"type": "integer", "const": 217},
- "inter_byte_timeout_ms": {"type": "integer", "const": 10}
- },
- "additionalProperties": false
- },
- "outputs": {
- "type": "object",
- "required": ["ptc_count", "fan_count", "pwm_bits", "ptc_polarity", "fan_polarity", "solenoid_policy", "z_policy"],
- "properties": {
- "ptc_count": {"type": "integer", "const": 24},
- "fan_count": {"type": "integer", "const": 4},
- "pwm_bits": {"type": "integer", "const": 8},
- "ptc_polarity": {"type": "string", "enum": ["active_high", "active_low"]},
- "fan_polarity": {"type": "string", "enum": ["active_high", "active_low"]},
- "solenoid_policy": {"type": "string", "const": "constant_safe_zero"},
- "z_policy": {"type": "string", "const": "constant_zero"}
- },
- "additionalProperties": false
- },
- "motors": {
- "type": "object",
- "required": ["count", "fixed_steps", "execution", "order", "step_rate_hz", "step_half_cycles", "dir_setup_cycles", "direction_values", "direction_meaning", "limits", "mapping", "enable_n"],
- "properties": {
- "count": {"type": "integer", "const": 2},
- "fixed_steps": {"type": "integer", "const": 450},
- "execution": {"type": "string", "const": "serial"},
- "order": {"type": "array", "const": ["inlet", "outlet"]},
- "step_rate_hz": {"type": "integer", "const": 1000},
- "step_half_cycles": {"type": "integer", "const": 12500},
- "dir_setup_cycles": {"type": "integer", "const": 25000},
- "direction_values": {"type": "array", "const": [0, 1]},
- "direction_meaning": {"type": "object"},
- "limits": {"type": "string", "const": "none"},
- "mapping": {"type": "object"},
- "enable_n": {"type": "object"}
- },
- "additionalProperties": false
- },
- "temperature": {"type": "object"},
- "pins": {"type": "object"},
- "resources": {"type": "object"},
- "protocol": {"type": "object"},
- "timeouts": {"type": "object"}
- },
- "additionalProperties": false
- }
|