| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- schema: prod2u-6400-manual-wire-v5
- clock_hz: 25000000
- device: EF2L45BG256B
- note: >-
- Single wire protocol for the 6400 V2.0 product. There is exactly one frame
- shape; no version field, product id, sequence number, tag or TLV, and no
- autodetection of any historical format.
- frame:
- preamble: [0xA5, 0x5A]
- fields: [type: u8, length: u8, payload: bytes, crc: u16le]
- total_bytes: length_plus_6
- crc:
- name: CRC-16/CCITT-FALSE
- polynomial: 0x1021
- initial: 0xFFFF
- reflect_input: false
- reflect_output: false
- xor_output: 0
- coverage: type_length_payload
- wire_order: little
- excludes_header: true
- rx_and_tx_accumulators_are_independent: true
- length_width_bits: 8
- inter_byte_timeout_clks: 250000
- inter_byte_timeout_us: 10000
- max_request_payload_bytes: 128
- max_response_payload_bytes: 83
- request_staging_bytes: 128
- rx_path:
- default_rx_fifo_bytes: 512
- implemented_rx_fifo_bytes: 0
- reduction_evidence: >-
- The one-outstanding-ordinary-transaction rule plus a byte-serial parser that
- drains at wire rate into a dedicated single-writer request RAM means there is
- no stall path a separate RX FIFO could cover. The parser stays enabled while a
- reply or an asynchronous DONE is being transmitted, so a request arriving
- during that window is still accepted. Reducing the depth from the 512-byte
- default therefore does not weaken the agreed load. A back-to-back/coalesced
- frame regression proves no byte loss.
- overflow_policy: never_execute_a_partial_request_and_keep_a_bounded_recovery_path
- host_uart:
- baud: 921600
- supported_build_bauds: [921600, 460800, 230400, 115200]
- format: 8N1
- fixed_candidate_clks_per_bit: 27
- divider: nearest_integer_clock_hz_over_selected_baud
- implemented_baud_at_921600: 925925.925926
- rs232: {connector: CON134, tx_connector_pin: 1, rx_connector_pin: 2, tx_ball: T14, rx_ball: R13, status: confirmed}
- ttl:
- connector: CON12
- tx_connector_pin: 3
- rx_connector_pin: 4
- tx_ball: K2
- rx_ball: J4
- level: LVCMOS33
- status: confirmed
- note: >-
- 6400 V2.0 external STM32H7 TTL binding on CON12. This is a UART-only binding;
- the product has no host register interface and no other host bus.
- source_select: minimal_rx_source_select_with_broadcast_tx
- conflict_detection: none
- fair_arbitration: none
- bmc_uart:
- baud: 115200
- format: 8N1
- clks_per_bit: 217
- optional: true
- set_all_allowed_without_bmc: true
- rs232: {connector: CON77, tx_connector_pin: 1, rx_connector_pin: 2, tx_ball: L10, rx_ball: M9, status: confirmed}
- poll_ascii: "ipmitool raw 0x36 0x6c 0xdf 0xdd 0x00 0x03"
- poll_line_terminator: 0x0A
- poll_command_bytes: 43
- response_hex_tokens: 48
- response_pairs: 24
- response_lines_typical: 3
- commands:
- SET_ALL:
- type: 0x01
- payload_length: 32
- response: SET_ACK
- feeds_watchdog: true
- admission: SET_ACCEPT_after_validation_and_reservation
- payload_fields:
- - {name: ptc_duty_percent, offset: 0, count: 24, minimum: 0, maximum: 100, unit: percent}
- - {name: front_fan_duty_percent, offset: 24, count: 4, minimum: 0, maximum: 100, unit: percent}
- - {name: rear_fan_duty_percent, offset: 28, count: 4, minimum: 0, maximum: 100, unit: percent}
- fan_duty_meaning: connector_requested_duty_not_rpm_not_airflow
- GET_ALL:
- type: 0x02
- payload_length: 0
- response: [GET_ACK, GET_DATA]
- response_order: ack_then_data_contiguous_group
- feeds_watchdog: true
- data_is_not_an_ack: true
- HEARTBEAT:
- type: 0x03
- payload_length: 0_or_4
- response: HEARTBEAT_ACK
- feeds_watchdog: true
- note: >-
- Simplest independent heartbeat ping for physical link health verification.
- Immediately acknowledged without touching thermal banks.
- Payload can be 0 or 4 (nonce). If 4-byte nonce provided, HEARTBEAT_ACK echoes it.
- UNLISTED_TYPES: UNSUPPORTED
- responses:
- SET_ACK: {type: 0x81, payload_length: 0}
- GET_ACK: {type: 0x82, payload_length: 0}
- HEARTBEAT_ACK: {type: 0x83, payload_length: 0_or_4}
- 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"}
- GET_DATA: {type: 0x42, payload_length: 83, payload_contract: 6400-snapshot.yaml}
- NACK:
- type: 0xC0
- payload_length: 2
- payload: [request_type, reason]
- reason: {UNSUPPORTED: 1, BAD_LENGTH: 2, BAD_VALUE: 3, QUEUE_FULL: 4, BUSY: 5}
- no_detail_strings: true
- no_field_index: true
- no_extra_fault_state: true
- MOTOR_DONE: {type: 0x50, product_behavior: NOT_PRESENT}
- RESPONSE_TYPES_ARE_REQUESTS: UNSUPPORTED
- host_response_order:
- SET_ALL: [SET_ACK]
- GET_ALL: [GET_ACK, GET_DATA]
- HEARTBEAT: [HEARTBEAT_ACK]
- UNSUPPORTED: [NACK]
- invalid_behavior:
- bad_header_crc_partial_timeout_framing: silent_drop_and_recover
- complete_crc_valid_request: exactly_one_set_ack_get_ack_or_nack
- crc_valid_but_unsupported_or_bad_length_or_bad_value: nack_and_take_no_effect_and_do_not_feed_watchdog
- declared_length_over_request_ram: consume_full_frame_and_crc_then_bad_length
- a55a_inside_payload: not_a_new_frame
- resync: next_real_frame_after_declared_extent
- half_frame: abandon_only_after_inter_byte_timeout
- outstanding_transactions: 1
- command_fifo: false
- watchdog:
- seconds: 30
- timebase: existing_shared_tick
- feed_on: [successful_set_accept, legal_get_accept, legal_heartbeat_accept]
- no_feed_on: [bad_request, nack, motor_done]
- starts_at: first_successful_set_get_or_heartbeat
- expiry:
- stop_all_axes: true
- invalidate_segments_queues_unsent_dones: true
- thermal_output_defaults_within: next_complete_500hz_pwm_period
- reset_uart_or_parser_or_fifo_or_tx: false
- already_started_reply_frames_finish: true
- old_done_completion_callback_restarts_work: false
- pre_expiry_settings_permanently_invalid: true
- default_validity_cleared_only_by_a_genuinely_applied_new_set: true
- get_continues_to_feed_while_returning_defaults: true
- same_value_set_after_expiry_recovers_directly: true
- different_value_set_after_expiry_recovers_directly: true
- retry_semantics:
- set_all_pure_output: retryable_after_resync
- get_all: retryable_after_resync
- malformed_or_unlisted_requests: resend_after_resync
|