mrdimm-wire.yaml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. schema: prod2u-mrdimm-wire-v2
  2. product: mrdimm-chamber
  3. board: FCB V1.2
  4. device: EF2L45BG256B
  5. clock_hz: 25000000
  6. note: >-
  7. The one active wire protocol for the MRDIMM FCB V1.2 product. There is exactly
  8. one frame shape: A5 5A | TYPE:u8 | LENGTH:u8 | PAYLOAD | CRC_L | CRC_H.
  9. Total bytes = LENGTH + 6. There is no version field, no product id, no sequence
  10. number, no Tag, no TLV and no autodetection of any historical frame. The
  11. retired protocol (16-bit length frames, the old ACK/status/event types, the
  12. queue-write/control/keepalive/event commands, the host register interface and
  13. the unbounded motion commands) is not present anywhere in this product.
  14. frame:
  15. preamble: [0xA5, 0x5A]
  16. fields: [type: u8, length: u8, payload: bytes, crc: u16le]
  17. total_bytes: length_plus_6
  18. payload_byte_zero_is_request_ram_address_zero: true
  19. crc:
  20. name: CRC-16/CCITT-FALSE
  21. polynomial: 0x1021
  22. initial: 0xFFFF
  23. reflect_input: false
  24. reflect_output: false
  25. xor_output: 0
  26. coverage: type_length_payload
  27. wire_order: little
  28. excludes_header: true
  29. rx_and_tx_accumulators_are_independent: true
  30. length_width_bits: 8
  31. max_request_payload_bytes: 68
  32. max_response_payload_bytes: 63
  33. request_staging_bytes: 128
  34. inter_byte_timeout_clks: 250000
  35. inter_byte_timeout_us: 10000
  36. host_uart:
  37. baud: 921600
  38. supported_build_bauds: [921600, 460800, 230400, 115200]
  39. format: 8N1
  40. clks_per_bit: 27
  41. rs232: {connector: CON78, tx_ball: M10, rx_ball: N11, status: confirmed}
  42. ttl:
  43. status: confirmed
  44. connector: CON140
  45. tx_ball: T11
  46. rx_ball: P13
  47. tx_pin: 1
  48. rx_pin: 2
  49. ground: CON77.3_or_CON77.4_or_verified_board_GND
  50. note: >-
  51. CON140.1 TX (T11 via R1261 0 ohm), CON140.2 RX (P13 via R1262 0 ohm), 3.3V.
  52. CON140.3/4 are GPIO, not ground. CON146 is a 12V LED/key circuit, never a UART.
  53. Default 921600 8N1 with fixed-rate fallback builds; same TX stream as RS232.
  54. source_select: minimal_rx_source_select_with_broadcast_tx
  55. conflict_detection: none
  56. fair_arbitration: none
  57. reply_not_truncated_by_rx_idle_release: true
  58. parser_stays_enabled_during_reply_or_done: true
  59. bmc_uart:
  60. baud: 115200
  61. format: 8N1
  62. clks_per_bit: 217
  63. optional: true
  64. set_all_allowed_without_bmc: true
  65. poll_ascii: "ipmitool raw 0x36 0x6c 0xdf 0xdd 0x00 0x03"
  66. poll_line_terminator: 0x0A
  67. poll_command_bytes: 43
  68. response_hex_tokens: 48
  69. response_pairs: 24
  70. response_lines_typical: 3
  71. commands:
  72. SET_ALL:
  73. type: 0x01
  74. payload_length: 68
  75. response: SET_ACK
  76. feeds_watchdog: true
  77. admission: SET_ACCEPT_after_validation_latest_wins_per_axis
  78. payload_fields:
  79. - {name: fan_duty_percent, offset: 0, count: 4, minimum: 0, maximum: 100, unit: percent}
  80. - {name: ptc_duty_percent, offset: 4, count: 4, minimum: 0, maximum: 100, unit: percent}
  81. - name: axis_slots
  82. offset: 8
  83. count: 12
  84. stride: 5
  85. slot_layout:
  86. action: {offset: 0, type: u8}
  87. steps: {offset: 1, type: u16le}
  88. half_period_us: {offset: 3, type: u16le}
  89. actions:
  90. 0x00: NOTHING
  91. 0x01: PUSH_DOWN
  92. 0x02: PUSH_UP
  93. 0xFF: STOP_CLEAR
  94. action_semantics:
  95. NOTHING: the four following bytes take no part in the action; the SDK writes 0
  96. STOP_CLEAR: the four following bytes take no part in the action; the SDK writes 0
  97. PUSH_DOWN: finite downward segment, steps and half period apply
  98. PUSH_UP: finite upward segment, steps and half period apply
  99. push_steps_range: [1, 65535]
  100. push_half_period_us_range: [1, 65535]
  101. half_period_nonzero_required: true
  102. speed_hz: "500000 / half_period_us"
  103. max_half_period_hz: 7.63
  104. implemented_min_half_period_us: 1
  105. implemented_min_note: >-
  106. Twelve independent counters use the shared 1 us tick. Each axis stores one
  107. finite segment; a new PUSH replaces that axis immediately. Wait for DONE
  108. when each segment must complete. Axes may run concurrently without a
  109. synchronous start requirement.
  110. every_axis_is_variable_speed: true
  111. stop_clear_timing: per_axis_during_sequential_application_after_validation
  112. fan_duty_meaning: connector_requested_duty_not_rpm_not_airflow
  113. GET_ALL:
  114. type: 0x02
  115. payload_length: 0
  116. response: [GET_ACK, GET_DATA]
  117. response_order: ack_then_data_contiguous_group
  118. feeds_watchdog: true
  119. data_is_not_an_ack: true
  120. reads_most_recent_values_in_order_without_a_global_snapshot_lock: true
  121. HEARTBEAT:
  122. type: 0x03
  123. payload_length: 0_or_4
  124. response: HEARTBEAT_ACK
  125. feeds_watchdog: true
  126. note: >-
  127. Simplest independent heartbeat ping for physical link health verification.
  128. Immediately acknowledged without touching thermal banks or actuator queues.
  129. Payload can be 0 or 4 (nonce). If 4-byte nonce provided, HEARTBEAT_ACK echoes it.
  130. UNLISTED_TYPES: UNSUPPORTED
  131. responses:
  132. SET_ACK: {type: 0x81, payload_length: 0}
  133. GET_ACK: {type: 0x82, payload_length: 0}
  134. HEARTBEAT_ACK: {type: 0x83, payload_length: 0_or_4}
  135. BEACON: {type: 0x51, payload_length: 0, autonomous: true, period_ms: 5000, feeds_watchdog: false, active_telemetry: "Legal A5 5A 51 00 81 20 frame; no ASCII banner; emitted when the transaction core is idle"}
  136. GET_DATA: {type: 0x42, payload_length: 63, payload_contract: mrdimm-status.yaml}
  137. MOTOR_DONE:
  138. type: 0x50
  139. payload_length: 4
  140. payload_fields:
  141. - {name: axis, offset: 0, type: u8}
  142. - {name: reason, offset: 1, type: u8}
  143. - {name: steps_done, offset: 2, type: u16le}
  144. reasons: {0x00: steps_complete, 0x01: lower_limit, 0x02: upper_limit, 0x03: both_limits}
  145. steps_done_counts: final_output_step_rising_edges_not_planned_steps_not_cumulative_position
  146. ff_ff_steps_is_not_an_invalid_temperature: true
  147. one_waiting_done_slot_per_axis: true
  148. NACK:
  149. type: 0xC0
  150. payload_length: 2
  151. payload: [request_type, reason]
  152. reason: {UNSUPPORTED: 1, BAD_LENGTH: 2, BAD_VALUE: 3, QUEUE_FULL: 4, BUSY: 5}
  153. no_detail_strings: true
  154. no_field_index: true
  155. no_extra_fault_state: true
  156. RESPONSE_TYPES_ARE_REQUESTS: UNSUPPORTED
  157. host_response_order:
  158. SET_ALL: [SET_ACK]
  159. GET_ALL: [GET_ACK, GET_DATA]
  160. HEARTBEAT: [HEARTBEAT_ACK]
  161. UNSUPPORTED: [NACK]
  162. invalid_behavior:
  163. bad_header_crc_partial_timeout_framing: silent_drop_and_recover
  164. complete_crc_valid_request: exactly_one_set_ack_get_ack_or_nack
  165. crc_valid_but_unsupported_or_bad_length_or_bad_value_or_queue_full: >-
  166. nack, take no effect, do not feed the watchdog, keep the command queue
  167. bounded and keep execution state unchanged
  168. declared_length_over_request_ram: consume_full_frame_and_crc_then_bad_length
  169. a55a_inside_payload: not_a_new_frame
  170. resync: next_real_frame_after_declared_extent
  171. half_frame: abandon_only_after_inter_byte_timeout
  172. outstanding_transactions: 1
  173. command_fifo: false
  174. watchdog:
  175. seconds: 30
  176. timebase: existing_shared_tick
  177. feed_on: [successful_set_accept, legal_get_accept, legal_heartbeat_accept]
  178. no_feed_on: [bad_request, nack, motor_done]
  179. starts_at: first_successful_set_or_get
  180. expiry:
  181. stop_all_axes: true
  182. invalidate_segments_queues_unsent_dones: true
  183. thermal_output_defaults_within: next_complete_500hz_pwm_period
  184. reset_uart_or_parser_or_fifo_or_tx: false
  185. already_started_reply_frames_finish: true
  186. old_done_completion_callback_restarts_work: false
  187. pre_expiry_settings_permanently_invalid: true
  188. default_validity_cleared_only_by_a_genuinely_applied_new_set: true
  189. get_continues_to_feed_while_returning_defaults: true
  190. same_value_set_after_expiry_recovers_directly: true
  191. different_value_set_after_expiry_recovers_directly: true
  192. retry_semantics:
  193. set_all_with_motor_segments: outcome_unknown_structured_no_auto_retry
  194. get_all: retryable_after_resync
  195. motor_done_is_not_a_host_request: true
  196. pwm:
  197. fan_hz: 500
  198. ptc_hz: 500
  199. phases: 100
  200. period_clks: 50000