prod2u_p4_normal_host_contract_v4.json 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. {
  2. "schema": "prod2u-p4-normal-host-contract-v4",
  3. "profile": "prod2u-p4-normal-actuator-binary921-v3",
  4. "profile_id": 4,
  5. "protocol": "binary921-v3",
  6. "version_source": "lowercase_git_sha8",
  7. "wire": {
  8. "magic_hex": "A55A",
  9. "version": 2,
  10. "seq": 0,
  11. "timestamp_tick": 0,
  12. "header_offsets": {
  13. "magic": [0, 1],
  14. "version": 2,
  15. "profile_id": 3,
  16. "frame_type": 4,
  17. "seq_u32_le": [5, 8],
  18. "timestamp_tick_u32_le": [9, 12],
  19. "payload_length_u8": 13,
  20. "payload": [14, "14+payload_length-1"],
  21. "crc16_le": ["14+payload_length", "15+payload_length"]
  22. },
  23. "crc16": {
  24. "name": "CRC-16/CCITT-FALSE",
  25. "polynomial": 4129,
  26. "initial": 65535,
  27. "reflect_input": false,
  28. "reflect_output": false,
  29. "xor_output": 0,
  30. "coverage": "version_through_payload_inclusive",
  31. "wire_byte_order": "little-endian"
  32. },
  33. "request_compatibility": "BYTE_EXACT_FROZEN",
  34. "ordinary_response_order": ["HOST_ACK"],
  35. "motor_status_response_order": ["HOST_ACK", "MOTION_STATUS"],
  36. "temperature_response_order": ["TEMPERATURE_SHORT"],
  37. "unsolicited_frames": false
  38. },
  39. "frame_types": {
  40. "HOST_CMD": 5,
  41. "HOST_ACK": 6,
  42. "HOST_BATCH_CMD": 7,
  43. "TEMPERATURE_SHORT": 16,
  44. "MOTION_CMD": 17,
  45. "MOTION_STATUS": 18
  46. },
  47. "commands": {
  48. "get_status": {
  49. "frame_type": 5,
  50. "command": 36,
  51. "payload_length": 4,
  52. "payload_hex": "24 00 00 00",
  53. "response": "HOST_ACK",
  54. "always_accepted": true
  55. },
  56. "disable": {
  57. "frame_type": 5,
  58. "command": 38,
  59. "payload_length": 4,
  60. "payload_hex": "26 00 00 00",
  61. "response": "HOST_ACK",
  62. "always_accepted": true,
  63. "effect": "IMMEDIATE_SAFE_NON_MOTOR_OUTPUTS",
  64. "motor_effect": "NONE",
  65. "non_motor_effect": "IMMEDIATE_SAFE_OUTPUTS"
  66. },
  67. "get_temperatures": {
  68. "frame_type": 5,
  69. "command": 40,
  70. "payload_length": 4,
  71. "request_payload_hex": "28 00 00 00",
  72. "success_response": "TEMPERATURE_SHORT_ONLY_NO_ACK",
  73. "powerup_under_one_second": "ALL_FF_NO_I2C",
  74. "nack_policy": "CURRENT_VALUE_FF_CONTINUE",
  75. "bus_error_status": "TEMPERATURE_BUS_ERROR",
  76. "bus_error_status_code": 10,
  77. "read_order": ["U6", "U24", "U25"],
  78. "addresses": [73, 72, 75],
  79. "registers": [0, 1, 2, 3, 4, 5, 6, 7, 8]
  80. },
  81. "set_output_snapshot": {
  82. "frame_type": 7,
  83. "command": 42,
  84. "payload_length": 34,
  85. "full_frame_length": 50,
  86. "input_layout": "2A flags PTC1..24 FAN1..4 solenoid X Y Z",
  87. "ptc_range": [0, 100],
  88. "fan_range": [0, 100],
  89. "binary_values": [0, 100],
  90. "xyz_range": [0, 255],
  91. "xyz_policy": "IGNORE_ANY_U8_NO_MOTOR_EFFECT",
  92. "motor_effect": "NONE",
  93. "ptc_fan_commit_when_motion_busy": true,
  94. "solenoid_change_when_any_xy_busy": "ALWAYS_COMMIT",
  95. "axis_policy": "IGNORE_ANY_U8_NO_MOTOR_EFFECT",
  96. "response": "HOST_ACK"
  97. },
  98. "jog": {
  99. "frame_type": 17,
  100. "command": 53,
  101. "payload_length": 8,
  102. "full_frame_length": 24,
  103. "input_layout": "35 axis raw_dir speed_code steps_u16_le 00 00",
  104. "axes": {"X": 0, "Y": 1, "Z_PROTOCOL_ONLY": 2},
  105. "cli_axes": ["X", "Y"],
  106. "reserved_z_status": "BAD_VALUE",
  107. "direction": {"OPEN_UP": 0, "CLOSE_DOWN": 1},
  108. "speed_codes": [0, 1, 2, 3],
  109. "step_range": [1, 65535],
  110. "step_field_policy": "RAW_U16_TRUSTED_HOST_NO_CPLD_CAP",
  111. "fast_path_policy": "RX_FAST_JOG_BYPASSES_NORMAL_REQUEST_SLOT",
  112. "executed_step_cap": null,
  113. "over_cap_status": "NOT_APPLICABLE",
  114. "over_cap_behavior": "EXECUTE_REQUESTED_U16_STEPS",
  115. "speed_field_policy": "VALIDATE_0_TO_3_THEN_IGNORE",
  116. "effective_step_rate_hz": 1000,
  117. "ack_semantics": "FIRST_STEP_EMITTED",
  118. "arms_watchdog": false,
  119. "same_axis_active_policy": "IMMEDIATE_RELOAD_AND_RESTART_DIR_SETUP",
  120. "same_axis_host_rule": "HOST_MUST_NOT_REPEAT_SAME_AXIS_BEFORE_COMPLETION",
  121. "same_axis_violation_policy": "LATEST_COMMAND_WINS_OLD_ACK_NOT_GUARANTEED",
  122. "multiple_pending_policy": "NONE",
  123. "replacement_dir_setup_us": 1000,
  124. "limit_policy": "IGNORE_ALL_INPUTS",
  125. "rejects_busy": false,
  126. "admission_ignores": [
  127. "AXIS_ACTIVE",
  128. "SNAPSHOT_VALID",
  129. "LIMIT_INPUTS",
  130. "WATCHDOG_TIMEOUT"
  131. ],
  132. "watchdog_timeout_recovery": "NOT_APPLICABLE_TIMEOUT_HAS_NO_MOTOR_EFFECT",
  133. "peer_axis_busy_does_not_block": true,
  134. "completion_event": "NONE_HOST_TRACKS_TIME",
  135. "response": "HOST_ACK"
  136. },
  137. "mark_closed": {
  138. "frame_type": 17,
  139. "command": 54,
  140. "payload_length": 8,
  141. "input_layout_preserved": true,
  142. "status": "UNSUPPORTED_IN_PROFILE",
  143. "status_code": 1,
  144. "changes_state": false
  145. },
  146. "get_motor_status": {
  147. "frame_type": 17,
  148. "command": 55,
  149. "payload_length": 8,
  150. "payload_hex": "37 00 00 00 00 00 00 00",
  151. "responses": ["HOST_ACK", "MOTION_STATUS"],
  152. "always_accepted": true,
  153. "refreshes_watchdog_only_when_armed": true
  154. }
  155. },
  156. "unsupported_commands": {
  157. "0x29": {
  158. "request_payload_hex": "29 00 00 00",
  159. "status": "UNSUPPORTED_IN_PROFILE",
  160. "status_code": 1,
  161. "changes_state": false,
  162. "arms_watchdog": false
  163. },
  164. "0x36": {
  165. "status": "UNSUPPORTED_IN_PROFILE",
  166. "status_code": 1,
  167. "changes_state": false,
  168. "arms_watchdog": false
  169. }
  170. },
  171. "responses": {
  172. "host_ack": {
  173. "frame_type": 6,
  174. "payload_length": 8,
  175. "full_frame_length": 24,
  176. "byte_offsets": {
  177. "ok": 14,
  178. "command": 15,
  179. "status": 16,
  180. "detail": 17,
  181. "state_hash16": [18, 19],
  182. "response_type": 20,
  183. "result_flags": 21,
  184. "crc": [22, 23]
  185. },
  186. "state_hash16": {
  187. "algorithm": "CRC-16/CCITT-FALSE",
  188. "encoding": "u16_le",
  189. "input_order": ["applied_PTC1..24", "applied_FAN1..4", "applied_solenoid"],
  190. "semantic": "ACTUAL_APPLIED_SYNCHRONOUS_OUTPUTS"
  191. },
  192. "snapshot_detail_bits": {"all_bits": "ZERO"},
  193. "snapshot_result_flag_bits": {
  194. "ptc_fan_solenoid_committed": 0,
  195. "axis_bits_3_to_1": "ZERO"
  196. },
  197. "status_codes": {
  198. "OK": 0,
  199. "UNSUPPORTED_IN_PROFILE": 1,
  200. "BAD_FLAGS": 2,
  201. "BAD_LENGTH": 3,
  202. "BAD_VALUE": 5,
  203. "BUSY": 9,
  204. "TEMPERATURE_BUS_ERROR": 10,
  205. "PARTIAL": 22
  206. }
  207. },
  208. "temperature_short": {
  209. "frame_type": 16,
  210. "payload_length": 27,
  211. "full_frame_length": 35,
  212. "layout": "A5 5A 02 04 10 1B values[27] crc16_le",
  213. "crc_coverage": "02 04 10 1B values[27]",
  214. "value_order": [
  215. "U6.local",
  216. "U6.remote1..8",
  217. "U24.local",
  218. "U24.remote1..8",
  219. "U25.local",
  220. "U25.remote1..8"
  221. ]
  222. },
  223. "motion_status": {
  224. "frame_type": 18,
  225. "payload_length": 10,
  226. "full_frame_length": 26,
  227. "layout": "flags valid_mask busy_mask current_xyz target_xyz fault_mask",
  228. "position_values": {"UNKNOWN": 255},
  229. "position_valid_mask": 0,
  230. "current_xyz": [255, 255, 255],
  231. "target_xyz": [255, 255, 255],
  232. "busy_mask": 0,
  233. "busy_semantic": "ALWAYS_ZERO",
  234. "busy_role": "RESERVED_CONSTANT_ZERO",
  235. "enable_active": 1,
  236. "fault_mask": 0,
  237. "z_current_target": 255,
  238. "z_valid_busy_fault": 0
  239. }
  240. },
  241. "motion": {
  242. "axes": ["X", "Y"],
  243. "execution": "TWO_INDEPENDENT_PARALLEL_EXECUTORS",
  244. "motor_driving_commands": ["0x35"],
  245. "jog_ack_semantics": "FIRST_STEP_EMITTED",
  246. "same_axis_jog_while_active": "IMMEDIATE_RELOAD_AND_RESTART_DIR_SETUP",
  247. "peer_axis_may_start": true,
  248. "dir_setup_us": 1000,
  249. "effective_step_rate_hz": 1000,
  250. "normal_step_stop": "NEW_SAME_AXIS_JOG_MAY_TRUNCATE_OLD_STEP",
  251. "motor_stop_sources": ["RESET", "POWER_LOSS", "RECONFIGURATION"]
  252. },
  253. "limit": {
  254. "axes": ["X", "Y"],
  255. "polarity": "ACTIVE_HIGH",
  256. "open_voltage_v": 0.0,
  257. "closed_voltage_v": 3.3,
  258. "synchronizer_stages": 0,
  259. "pins_retained": true,
  260. "logic_consumer": "NONE",
  261. "used_only_for": "RETAINED_PINS_NO_LOGIC_CONSUMER",
  262. "motion_effect": "NONE",
  263. "dir0_jog_ignores_limit": true,
  264. "dir1_jog_ignores_limit": true,
  265. "position_memory": false,
  266. "direction_learning": false
  267. },
  268. "watchdog": {
  269. "timeout_seconds": 5,
  270. "accepted_output_arms": true,
  271. "accepted_motion_arms": false,
  272. "armed_get_motor_status_refreshes": true,
  273. "status_query_cannot_arm_or_revive": true,
  274. "expiry_beats_same_cycle_refresh": true,
  275. "expiry_requires_disable_before_rearm": false,
  276. "next_valid_output_clears_timeout_and_rearms": true,
  277. "motor_effect": "NONE",
  278. "non_motor_effect": "SAFE_OUTPUTS"
  279. },
  280. "programming": {
  281. "operation": "PROGRAM_SRAM",
  282. "speed_hz": 200000,
  283. "attempt_limit": 1,
  284. "automatic_retry": false,
  285. "flash_allowed": false
  286. }
  287. }