6400-wire.yaml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. schema: prod2u-6400-manual-wire-v5
  2. clock_hz: 25000000
  3. device: EF2L45BG256B
  4. note: >-
  5. Single wire protocol for the 6400 V2.0 product. There is exactly one frame
  6. shape; no version field, product id, sequence number, tag or TLV, and no
  7. autodetection of any historical format.
  8. frame:
  9. preamble: [0xA5, 0x5A]
  10. fields: [type: u8, length: u8, payload: bytes, crc: u16le]
  11. total_bytes: length_plus_6
  12. crc:
  13. name: CRC-16/CCITT-FALSE
  14. polynomial: 0x1021
  15. initial: 0xFFFF
  16. reflect_input: false
  17. reflect_output: false
  18. xor_output: 0
  19. coverage: type_length_payload
  20. wire_order: little
  21. excludes_header: true
  22. rx_and_tx_accumulators_are_independent: true
  23. length_width_bits: 8
  24. inter_byte_timeout_clks: 250000
  25. inter_byte_timeout_us: 10000
  26. max_request_payload_bytes: 128
  27. max_response_payload_bytes: 83
  28. request_staging_bytes: 128
  29. rx_path:
  30. default_rx_fifo_bytes: 512
  31. implemented_rx_fifo_bytes: 0
  32. reduction_evidence: >-
  33. The one-outstanding-ordinary-transaction rule plus a byte-serial parser that
  34. drains at wire rate into a dedicated single-writer request RAM means there is
  35. no stall path a separate RX FIFO could cover. The parser stays enabled while a
  36. reply or an asynchronous DONE is being transmitted, so a request arriving
  37. during that window is still accepted. Reducing the depth from the 512-byte
  38. default therefore does not weaken the agreed load. A back-to-back/coalesced
  39. frame regression proves no byte loss.
  40. overflow_policy: never_execute_a_partial_request_and_keep_a_bounded_recovery_path
  41. host_uart:
  42. baud: 921600
  43. supported_build_bauds: [921600, 460800, 230400, 115200]
  44. format: 8N1
  45. fixed_candidate_clks_per_bit: 27
  46. divider: nearest_integer_clock_hz_over_selected_baud
  47. implemented_baud_at_921600: 925925.925926
  48. rs232: {connector: CON134, tx_connector_pin: 1, rx_connector_pin: 2, tx_ball: T14, rx_ball: R13, status: confirmed}
  49. ttl:
  50. connector: CON12
  51. tx_connector_pin: 3
  52. rx_connector_pin: 4
  53. tx_ball: K2
  54. rx_ball: J4
  55. level: LVCMOS33
  56. status: confirmed
  57. note: >-
  58. 6400 V2.0 external STM32H7 TTL binding on CON12. This is a UART-only binding;
  59. the product has no host register interface and no other host bus.
  60. source_select: minimal_rx_source_select_with_broadcast_tx
  61. conflict_detection: none
  62. fair_arbitration: none
  63. bmc_uart:
  64. baud: 115200
  65. format: 8N1
  66. clks_per_bit: 217
  67. optional: true
  68. set_all_allowed_without_bmc: true
  69. rs232: {connector: CON77, tx_connector_pin: 1, rx_connector_pin: 2, tx_ball: L10, rx_ball: M9, status: confirmed}
  70. poll_ascii: "ipmitool raw 0x36 0x6c 0xdf 0xdd 0x00 0x03"
  71. poll_line_terminator: 0x0A
  72. poll_command_bytes: 43
  73. response_hex_tokens: 48
  74. response_pairs: 24
  75. response_lines_typical: 3
  76. commands:
  77. SET_ALL:
  78. type: 0x01
  79. payload_length: 32
  80. response: SET_ACK
  81. feeds_watchdog: true
  82. admission: SET_ACCEPT_after_validation_and_reservation
  83. payload_fields:
  84. - {name: ptc_duty_percent, offset: 0, count: 24, minimum: 0, maximum: 100, unit: percent}
  85. - {name: front_fan_duty_percent, offset: 24, count: 4, minimum: 0, maximum: 100, unit: percent}
  86. - {name: rear_fan_duty_percent, offset: 28, count: 4, minimum: 0, maximum: 100, unit: percent}
  87. fan_duty_meaning: connector_requested_duty_not_rpm_not_airflow
  88. GET_ALL:
  89. type: 0x02
  90. payload_length: 0
  91. response: [GET_ACK, GET_DATA]
  92. response_order: ack_then_data_contiguous_group
  93. feeds_watchdog: true
  94. data_is_not_an_ack: true
  95. HEARTBEAT:
  96. type: 0x03
  97. payload_length: 0_or_4
  98. response: HEARTBEAT_ACK
  99. feeds_watchdog: true
  100. note: >-
  101. Simplest independent heartbeat ping for physical link health verification.
  102. Immediately acknowledged without touching thermal banks.
  103. Payload can be 0 or 4 (nonce). If 4-byte nonce provided, HEARTBEAT_ACK echoes it.
  104. UNLISTED_TYPES: UNSUPPORTED
  105. responses:
  106. SET_ACK: {type: 0x81, payload_length: 0}
  107. GET_ACK: {type: 0x82, payload_length: 0}
  108. HEARTBEAT_ACK: {type: 0x83, payload_length: 0_or_4}
  109. AUTO_GET_DATA: {type: 0x42, payload_length: 83, autonomous: true, period_ms: 5000, feeds_watchdog: false, payload_contract: 6400-snapshot.yaml, note: "Emitted when the transaction core is idle; no preceding GET_ACK"}
  110. GET_DATA: {type: 0x42, payload_length: 83, payload_contract: 6400-snapshot.yaml}
  111. NACK:
  112. type: 0xC0
  113. payload_length: 2
  114. payload: [request_type, reason]
  115. reason: {UNSUPPORTED: 1, BAD_LENGTH: 2, BAD_VALUE: 3, QUEUE_FULL: 4, BUSY: 5}
  116. no_detail_strings: true
  117. no_field_index: true
  118. no_extra_fault_state: true
  119. MOTOR_DONE: {type: 0x50, product_behavior: NOT_PRESENT}
  120. RESPONSE_TYPES_ARE_REQUESTS: UNSUPPORTED
  121. host_response_order:
  122. SET_ALL: [SET_ACK]
  123. GET_ALL: [GET_ACK, GET_DATA]
  124. HEARTBEAT: [HEARTBEAT_ACK]
  125. UNSUPPORTED: [NACK]
  126. invalid_behavior:
  127. bad_header_crc_partial_timeout_framing: silent_drop_and_recover
  128. complete_crc_valid_request: exactly_one_set_ack_get_ack_or_nack
  129. crc_valid_but_unsupported_or_bad_length_or_bad_value: nack_and_take_no_effect_and_do_not_feed_watchdog
  130. declared_length_over_request_ram: consume_full_frame_and_crc_then_bad_length
  131. a55a_inside_payload: not_a_new_frame
  132. resync: next_real_frame_after_declared_extent
  133. half_frame: abandon_only_after_inter_byte_timeout
  134. outstanding_transactions: 1
  135. command_fifo: false
  136. watchdog:
  137. seconds: 30
  138. timebase: existing_shared_tick
  139. feed_on: [successful_set_accept, legal_get_accept, legal_heartbeat_accept]
  140. no_feed_on: [bad_request, nack, motor_done]
  141. starts_at: first_successful_set_get_or_heartbeat
  142. expiry:
  143. stop_all_axes: true
  144. invalidate_segments_queues_unsent_dones: true
  145. thermal_output_defaults_within: next_complete_500hz_pwm_period
  146. reset_uart_or_parser_or_fifo_or_tx: false
  147. already_started_reply_frames_finish: true
  148. old_done_completion_callback_restarts_work: false
  149. pre_expiry_settings_permanently_invalid: true
  150. default_validity_cleared_only_by_a_genuinely_applied_new_set: true
  151. get_continues_to_feed_while_returning_defaults: true
  152. same_value_set_after_expiry_recovers_directly: true
  153. different_value_set_after_expiry_recovers_directly: true
  154. retry_semantics:
  155. set_all_pure_output: retryable_after_resync
  156. get_all: retryable_after_resync
  157. malformed_or_unlisted_requests: resend_after_resync