| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547 |
- {
- "axis_count": 3,
- "commands": {
- "get_motor_status": {
- "payload_length": 0,
- "response": "MOTOR_STATUS_DATA",
- "type": "0x03"
- },
- "get_temperature": {
- "payload_length": 0,
- "response": "TEMPERATURE_DATA",
- "type": "0x02"
- },
- "motor_status_data": {
- "frame_length": 37,
- "layout": {
- "axis_fields": [
- "state",
- "flags",
- "requested_percent",
- "current_position_le16",
- "target_position_le16",
- "travel_steps_le16",
- "fault_code"
- ],
- "axis_order": [
- "x",
- "y",
- "z"
- ],
- "byte0_global": {
- "bit0_2": "calibrated_mask_xyz",
- "bit3_5": "fault_mask_xyz",
- "bit6": "startup_complete",
- "bit7": "watchdog_tripped"
- },
- "fault_codes": {
- "BOTH_LIMITS_ACTIVE": 1,
- "CAL_CLOSE_TIMEOUT": 2,
- "CAL_OPEN_TIMEOUT": 3,
- "ENDPOINT_TIMEOUT": 5,
- "INVALID_ZERO_OR_TINY_TRAVEL": 4,
- "NONE": 0
- },
- "flags": {
- "calibrated": 2,
- "close_limit": 1,
- "endpoint_mode": 4,
- "moving": 3,
- "open_limit": 0,
- "replan_pending": 6,
- "reserved": 7,
- "target_valid": 5
- },
- "per_axis_bytes": 10,
- "states": {
- "CAL_MEASURE_OPEN": 1,
- "CAL_SEEK_CLOSE": 0,
- "FAULT": 6,
- "IDLE": 2,
- "MOVE_CLOSE": 4,
- "MOVE_OPEN": 3,
- "WAIT_REPLAN": 5
- }
- },
- "payload_length": 31,
- "type": "0x83"
- },
- "set_all": {
- "door_percent_range": [
- 0,
- 100
- ],
- "door_percent_semantics": {
- "0": "full_open_endpoint",
- "0x65": "rejected_out_of_range",
- "100": "full_close_endpoint",
- "1_to_99": "mid_percent_close",
- "all_zero_frame": "fan_ptc_zero_and_all_doors_full_open_not_heartbeat"
- },
- "duty_range": [
- 0,
- 100
- ],
- "field_order": [
- "fan_chamber_1",
- "fan_chamber_2",
- "fan_chamber_3",
- "fan_chamber_4",
- "ptc_chamber_1",
- "ptc_chamber_2",
- "ptc_chamber_3",
- "ptc_chamber_4",
- "door_z_percent",
- "door_x_percent",
- "door_y_percent"
- ],
- "payload_length": 11,
- "response": "none",
- "type": "0x01"
- },
- "temperature_data": {
- "frame_length": 33,
- "payload_length": 27,
- "type": "0x82"
- }
- },
- "limit_count": 6,
- "limits": {
- "active_level": "high",
- "channels": [
- {
- "ball": "A5",
- "connector": "CON12",
- "connector_pin": 1,
- "name": "x_limit_ls",
- "side": "low"
- },
- {
- "ball": "B6",
- "connector": "CON12",
- "connector_pin": 2,
- "name": "x_limit_hs",
- "side": "high"
- },
- {
- "ball": "C8",
- "connector": "CON12",
- "connector_pin": 3,
- "name": "y_limit_ls",
- "side": "low"
- },
- {
- "ball": "A8",
- "connector": "CON12",
- "connector_pin": 4,
- "name": "y_limit_hs",
- "side": "high"
- },
- {
- "ball": "K16",
- "connector": "CON129",
- "connector_pin": 1,
- "name": "z_limit_ls",
- "side": "low"
- },
- {
- "ball": "J15",
- "connector": "CON129",
- "connector_pin": 2,
- "name": "z_limit_hs",
- "side": "high"
- }
- ],
- "close_limit_is_ls": [
- true,
- true,
- true
- ],
- "functional_use": true,
- "limit_active_high": [
- true,
- true,
- true
- ],
- "limit_count": 6,
- "runtime_use": true,
- "startup": {
- "additional_rising_edges_after_synchronized_limit": 0,
- "axis_order": [
- "x",
- "y",
- "z"
- ],
- "enabled": true,
- "fault_lock_until_reset": true,
- "final_position": "open",
- "limit_stop_during_move": true,
- "max_steps": 5000,
- "min_travel_steps": 2,
- "mode": "seek_close_then_measure_open",
- "partial_axis_failure_allowed": true,
- "runtime_limit_use": true,
- "step_rate_hz": 1000,
- "stop_semantics": "truncate_current_high_pulse_immediately_after_synchronized_limit"
- }
- },
- "motors": {
- "close_dir_value": 1,
- "count": 3,
- "dir_close_level": [
- 1,
- 1,
- 1
- ],
- "dir_setup_cycles": 25000,
- "enable_n": {
- "active_level": "low",
- "ball": "C11",
- "connector": "CON120",
- "connector_pin": 2,
- "notes": "NPN open-collector invert at board; FPGA drives constant 1 so connector EN is permanently asserted.",
- "policy": "permanent_high"
- },
- "execution": "overlap",
- "mapping": {
- "x": {
- "axis": "x",
- "dir_ball": "J6",
- "dir_connector": "CON142",
- "dir_connector_pin": 3,
- "role": "door",
- "step_ball": "H4",
- "step_connector": "CON142",
- "step_connector_pin": 2
- },
- "y": {
- "axis": "y",
- "dir_ball": "A4",
- "dir_connector": "CON126",
- "dir_connector_pin": 3,
- "role": "door",
- "step_ball": "E7",
- "step_connector": "CON126",
- "step_connector_pin": 2
- },
- "z": {
- "axis": "z",
- "dir_ball": "A12",
- "dir_connector": "CON127",
- "dir_connector_pin": 3,
- "role": "door",
- "step_ball": "B4",
- "step_connector": "CON127",
- "step_connector_pin": 2
- }
- },
- "open_dir_value": 0,
- "order": [
- "x",
- "y",
- "z"
- ],
- "positioning": {
- "close_endpoint_percent": 100,
- "command_interrupt": "finish_current_high_pulse_then_replan",
- "endpoint_guard_extra_steps": 500,
- "idempotent_same_target": true,
- "latest_wins": true,
- "mid_clamp": "1_to_travel_minus_1",
- "mid_percent_max": 99,
- "mid_percent_min": 1,
- "mode": "percent_close",
- "open_endpoint_percent": 0,
- "percent_max": 100,
- "percent_min": 0,
- "planner_count": 1,
- "rounding": "half_up",
- "shared_percent_planner": true
- },
- "role": "door",
- "step_half_cycles": 12500,
- "step_rate_hz": 1000
- },
- "outputs": {
- "boot_targets": {
- "fan": 10,
- "ptc": 0
- },
- "chamber_ptc_count": 4,
- "chamber_ptc_pairs": [
- {
- "chamber": 1,
- "ptc_indices": [
- 0,
- 1
- ]
- },
- {
- "chamber": 2,
- "ptc_indices": [
- 2,
- 3
- ]
- },
- {
- "chamber": 3,
- "ptc_indices": [
- 4,
- 5
- ]
- },
- {
- "chamber": 4,
- "ptc_indices": [
- 6,
- 7
- ]
- }
- ],
- "fan_board_inverts": true,
- "fan_channels": [
- {
- "ball": "B1",
- "board_signal": "FAN_PWM3",
- "connector": "CON25",
- "connector_pin": 7,
- "index": 0,
- "name": "fan1",
- "polarity": "active_low",
- "signal": "fan_pwm_out[0]"
- },
- {
- "ball": "C4",
- "board_signal": "FAN_PWM1",
- "connector": "CON8",
- "connector_pin": 7,
- "index": 1,
- "name": "fan2",
- "polarity": "active_low",
- "signal": "fan_pwm_out[1]"
- },
- {
- "ball": "B5",
- "board_signal": "FAN_PWM2",
- "connector": "CON24",
- "connector_pin": 7,
- "index": 2,
- "name": "fan3",
- "polarity": "active_low",
- "signal": "fan_pwm_out[2]"
- },
- {
- "ball": "A14",
- "board_signal": "FAN_PWM4",
- "connector": "CON26",
- "connector_pin": 7,
- "index": 3,
- "name": "fan4",
- "polarity": "active_low",
- "signal": "fan_pwm_out[3]"
- }
- ],
- "fan_connector_active_level": "high",
- "fan_count": 4,
- "fan_default": 10,
- "fan_polarity": "active_low",
- "ptc_channels": [
- {
- "ball": "G16",
- "board_signal": "HEAT2",
- "connector": "CON18",
- "connector_pin": 3,
- "index": 0,
- "name": "ptc1",
- "polarity": "active_high",
- "signal": "ptc_pwm_out[0]"
- },
- {
- "ball": "F16",
- "board_signal": "HEAT1",
- "connector": "CON18",
- "connector_pin": 1,
- "index": 1,
- "name": "ptc2",
- "polarity": "active_high",
- "signal": "ptc_pwm_out[1]"
- },
- {
- "ball": "N1",
- "board_signal": "HEAT8",
- "connector": "CON27",
- "connector_pin": 3,
- "index": 2,
- "name": "ptc3",
- "polarity": "active_high",
- "signal": "ptc_pwm_out[2]"
- },
- {
- "ball": "M1",
- "board_signal": "HEAT7",
- "connector": "CON27",
- "connector_pin": 1,
- "index": 3,
- "name": "ptc4",
- "polarity": "active_high",
- "signal": "ptc_pwm_out[3]"
- },
- {
- "ball": "R16",
- "board_signal": "HEAT14",
- "connector": "CON28",
- "connector_pin": 3,
- "index": 4,
- "name": "ptc5",
- "polarity": "active_high",
- "signal": "ptc_pwm_out[4]"
- },
- {
- "ball": "P16",
- "board_signal": "HEAT13",
- "connector": "CON28",
- "connector_pin": 1,
- "index": 5,
- "name": "ptc6",
- "polarity": "active_high",
- "signal": "ptc_pwm_out[5]"
- },
- {
- "ball": "P9",
- "board_signal": "HEAT20",
- "connector": "CON29",
- "connector_pin": 3,
- "index": 6,
- "name": "ptc7",
- "polarity": "active_high",
- "signal": "ptc_pwm_out[6]"
- },
- {
- "ball": "T9",
- "board_signal": "HEAT19",
- "connector": "CON29",
- "connector_pin": 1,
- "index": 7,
- "name": "ptc8",
- "polarity": "active_high",
- "signal": "ptc_pwm_out[7]"
- }
- ],
- "ptc_count": 8,
- "ptc_default": 0,
- "ptc_polarity": "active_high",
- "pwm_actual_frequency_hz": 19.993602047,
- "pwm_bits": 8,
- "pwm_frequency_hz": 20,
- "pwm_internal_width": 7,
- "pwm_max_duty": 100,
- "pwm_phase_count": 100,
- "pwm_slot_clks": 1042
- },
- "profile": "prod2u-normal-multiproject-115200-v1",
- "project_id": "prod2u-door-temp",
- "protocol": {
- "commands": {
- "get_motor_status": 3,
- "get_temperature": 2,
- "motor_status_data": 131,
- "set_all": 1,
- "temperature_data": 130
- },
- "crc": {
- "coverage": "type_length_payload",
- "initial": 65535,
- "name": "CRC-16/CCITT-FALSE",
- "polynomial": 4129,
- "reflect_input": false,
- "reflect_output": false,
- "wire_order": "little",
- "xor_output": 0
- },
- "get_motor_status": {
- "payload_length": 0,
- "response": "motor_status_data"
- },
- "header_hex": "A55A",
- "motor_status_data": {
- "frame_length": 37,
- "layout": "host-contract",
- "payload_length": 31
- },
- "set_all": {
- "chamber_ptc_count": 4,
- "chamber_ptc_offset": 4,
- "door_percent_max": 100,
- "door_percent_min": 0,
- "door_percent_rejected_example": 101,
- "duty_max": 100,
- "duty_min": 0,
- "exhaust_x_offset": 9,
- "exhaust_y_offset": 10,
- "fan_offset": 0,
- "legacy_payload_length_rejected": 14,
- "payload_length": 11,
- "response": "none",
- "z_door_offset": 8
- },
- "temperature_data": {
- "frame_length": 33,
- "payload_length": 27
- }
- },
- "runtime_limit_use": true,
- "schema": "prod2u-simple-host-contract-v1",
- "temperature": {
- "bus": "i2c",
- "conversion": {
- "profile": "ct7428-msb-integer",
- "raw_shift": 7,
- "raw_width": 9,
- "reject_sign_bit": true
- },
- "device": "CT7428",
- "device_addresses": [
- 73,
- 72,
- 75
- ],
- "invalid_value": 255,
- "maximum_celsius": 150,
- "registers": [
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7,
- 8
- ],
- "scl_ball": "M8",
- "sda_ball": "N9",
- "value_count": 27
- },
- "uart": {
- "baud": 115200,
- "clks_per_bit": 217,
- "data_bits": 8,
- "flow_control": "none",
- "inter_byte_timeout_ms": 10,
- "parity": "N",
- "rx_ball": "N11",
- "stop_bits": 1,
- "tx_ball": "M10"
- },
- "watchdog": {
- "enable_after_startup_complete": true,
- "target": {
- "fan": 10,
- "ptc": 0
- },
- "tick_clks": 12500,
- "tick_us": 500,
- "timeout_seconds": 30,
- "timeout_ticks": 60000
- }
- }
|