6400-v2-wire.yaml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. schema: prod2u-6400-v2-wire-v3
  2. clock_hz: 25000000
  3. device: EF2L45BG256B
  4. note: Single wire protocol for the 6400 V2.0 product. There is exactly one frame shape;
  5. no version field, product id, sequence number, tag or TLV, and no autodetection
  6. of any historical format.
  7. frame:
  8. preamble:
  9. - 165
  10. - 90
  11. fields:
  12. - type: u8
  13. - length: u8
  14. - payload: bytes
  15. - crc: u16le
  16. total_bytes: length_plus_6
  17. crc:
  18. name: CRC-16/CCITT-FALSE
  19. polynomial: 4129
  20. initial: 65535
  21. reflect_input: false
  22. reflect_output: false
  23. xor_output: 0
  24. coverage: type_length_payload
  25. wire_order: little
  26. excludes_header: true
  27. rx_and_tx_accumulators_are_independent: true
  28. length_width_bits: 8
  29. inter_byte_timeout_clks: 250000
  30. inter_byte_timeout_us: 10000
  31. max_request_payload_bytes: 128
  32. max_response_payload_bytes: 86
  33. request_staging_bytes: 128
  34. rx_path:
  35. default_rx_fifo_bytes: 512
  36. implemented_rx_fifo_bytes: 0
  37. reduction_evidence: The one-outstanding-ordinary-transaction rule plus a byte-serial
  38. parser that drains at wire rate into a dedicated single-writer request RAM means
  39. there is no stall path a separate RX FIFO could cover. The parser stays enabled
  40. while a reply or an asynchronous DONE is being transmitted, so a request arriving
  41. during that window is still accepted. Reducing the depth from the 512-byte default
  42. therefore does not weaken the agreed load. A back-to-back/coalesced frame regression
  43. proves no byte loss.
  44. overflow_policy: never_execute_a_partial_request_and_keep_a_bounded_recovery_path
  45. host_uart:
  46. baud: 921600
  47. supported_build_bauds:
  48. - 921600
  49. - 460800
  50. - 230400
  51. - 115200
  52. format: 8N1
  53. fixed_candidate_clks_per_bit: 27
  54. divider: nearest_integer_clock_hz_over_selected_baud
  55. implemented_baud_at_921600: 925925.925926
  56. rs232:
  57. connector: CON134
  58. tx_connector_pin: 1
  59. rx_connector_pin: 2
  60. tx_ball: T14
  61. rx_ball: R13
  62. status: confirmed
  63. ttl:
  64. connector: CON12
  65. tx_connector_pin: 3
  66. rx_connector_pin: 4
  67. tx_ball: K2
  68. rx_ball: J4
  69. level: LVCMOS33
  70. status: confirmed
  71. note: 6400 V2.0 external STM32H7 TTL binding on CON12. This is a UART-only binding;
  72. the product has no host register interface and no other host bus.
  73. source_select: minimal_rx_source_select_with_broadcast_tx
  74. conflict_detection: none
  75. fair_arbitration: none
  76. bmc_uart:
  77. baud: 115200
  78. format: 8N1
  79. clks_per_bit: 217
  80. optional: true
  81. set_all_allowed_without_bmc: true
  82. rs232:
  83. connector: CON77
  84. tx_connector_pin: 1
  85. rx_connector_pin: 2
  86. tx_ball: L10
  87. rx_ball: M9
  88. status: confirmed
  89. poll_ascii: ipmitool raw 0x36 0x6c 0xdf 0xdd 0x00 0x03
  90. poll_line_terminator: 10
  91. poll_command_bytes: 43
  92. response_hex_tokens: 48
  93. response_pairs: 24
  94. response_lines_typical: 3
  95. commands:
  96. SET_ALL:
  97. type: 1
  98. payload_length: 35
  99. response: SET_ACK
  100. feeds_watchdog: true
  101. admission: SET_ACCEPT_after_validation_and_reservation
  102. payload_fields:
  103. - name: ptc_duty_percent
  104. offset: 0
  105. count: 24
  106. minimum: 0
  107. maximum: 100
  108. unit: percent
  109. - name: front_fan_duty_percent
  110. offset: 24
  111. count: 4
  112. minimum: 0
  113. maximum: 100
  114. unit: percent
  115. - name: rear_fan_duty_percent
  116. offset: 28
  117. count: 4
  118. minimum: 0
  119. maximum: 100
  120. unit: percent
  121. - name: ssr_duty_percent
  122. offset: 32
  123. count: 3
  124. minimum: 0
  125. maximum: 100
  126. unit: percent
  127. order:
  128. - SSR1_chamber1
  129. - SSR2_shared_chambers2_3
  130. - SSR4_chamber4
  131. fan_duty_meaning: connector_requested_duty_not_rpm_not_airflow
  132. GET_ALL:
  133. type: 2
  134. payload_length: 0
  135. response:
  136. - GET_ACK
  137. - GET_DATA
  138. response_order: ack_then_data_contiguous_group
  139. feeds_watchdog: true
  140. data_is_not_an_ack: true
  141. HEARTBEAT:
  142. type: 3
  143. payload_length: 0_or_4
  144. response: HEARTBEAT_ACK
  145. feeds_watchdog: true
  146. note: Simplest independent heartbeat ping for physical link health verification.
  147. Immediately acknowledged without touching thermal banks. Payload can be 0 or
  148. 4 (nonce). If 4-byte nonce provided, HEARTBEAT_ACK echoes it.
  149. UNLISTED_TYPES: UNSUPPORTED
  150. responses:
  151. SET_ACK:
  152. type: 129
  153. payload_length: 0
  154. GET_ACK:
  155. type: 130
  156. payload_length: 0
  157. HEARTBEAT_ACK:
  158. type: 131
  159. payload_length: 0_or_4
  160. AUTO_GET_DATA:
  161. type: 66
  162. payload_length: 86
  163. autonomous: true
  164. period_ms: 1000
  165. feeds_watchdog: false
  166. payload_contract: 6400-v2-snapshot.yaml
  167. note: Emitted when the transaction core is idle; no preceding GET_ACK
  168. GET_DATA:
  169. type: 66
  170. payload_length: 86
  171. payload_contract: 6400-v2-snapshot.yaml
  172. NACK:
  173. type: 192
  174. payload_length: 2
  175. payload:
  176. - request_type
  177. - reason
  178. reason:
  179. UNSUPPORTED: 1
  180. BAD_LENGTH: 2
  181. BAD_VALUE: 3
  182. QUEUE_FULL: 4
  183. BUSY: 5
  184. no_detail_strings: true
  185. no_field_index: true
  186. no_extra_fault_state: true
  187. MOTOR_DONE:
  188. type: 80
  189. product_behavior: NOT_PRESENT
  190. RESPONSE_TYPES_ARE_REQUESTS: UNSUPPORTED
  191. DIAGNOSTIC:
  192. type: 82
  193. payload_length: 20
  194. autonomous: true
  195. period_ms: 1000
  196. feeds_watchdog: false
  197. format_version: 1
  198. note: Emitted after automatic GET_DATA; diagnostic version/board identity only,
  199. no change to command framing.
  200. host_response_order:
  201. SET_ALL:
  202. - SET_ACK
  203. GET_ALL:
  204. - GET_ACK
  205. - GET_DATA
  206. HEARTBEAT:
  207. - HEARTBEAT_ACK
  208. UNSUPPORTED:
  209. - NACK
  210. invalid_behavior:
  211. bad_header_crc_partial_timeout_framing: silent_drop_and_recover
  212. complete_crc_valid_request: exactly_one_set_ack_get_ack_or_nack
  213. crc_valid_but_unsupported_or_bad_length_or_bad_value: nack_and_take_no_effect_and_do_not_feed_watchdog
  214. declared_length_over_request_ram: consume_full_frame_and_crc_then_bad_length
  215. a55a_inside_payload: not_a_new_frame
  216. resync: next_real_frame_after_declared_extent
  217. half_frame: abandon_only_after_inter_byte_timeout
  218. outstanding_transactions: 1
  219. command_fifo: false
  220. watchdog:
  221. seconds: 30
  222. timebase: existing_shared_tick
  223. feed_on:
  224. - successful_set_accept
  225. - legal_get_accept
  226. - legal_heartbeat_accept
  227. no_feed_on:
  228. - bad_request
  229. - nack
  230. - motor_done
  231. starts_at: first_successful_set_get_or_heartbeat
  232. expiry:
  233. stop_all_axes: true
  234. invalidate_segments_queues_unsent_dones: true
  235. thermal_output_defaults_within: next_complete_500hz_pwm_period
  236. reset_uart_or_parser_or_fifo_or_tx: false
  237. already_started_reply_frames_finish: true
  238. old_done_completion_callback_restarts_work: false
  239. pre_expiry_settings_permanently_invalid: true
  240. default_validity_cleared_only_by_a_genuinely_applied_new_set: true
  241. get_continues_to_feed_while_returning_defaults: true
  242. same_value_set_after_expiry_recovers_directly: true
  243. different_value_set_after_expiry_recovers_directly: true
  244. retry_semantics:
  245. set_all_pure_output: retryable_after_resync
  246. get_all: retryable_after_resync
  247. malformed_or_unlisted_requests: resend_after_resync