project.json 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. {
  2. "project_id": "prod2u-door-temp",
  3. "profile": "prod2u-normal-multiproject-115200-v1",
  4. "display_name": "Prod2U door and temperature controller",
  5. "device": {
  6. "family": "EF2",
  7. "part": "EF2L45BG256B",
  8. "clock_hz": 25000000,
  9. "clock_ball": "J1"
  10. },
  11. "uart": {
  12. "baud": 115200,
  13. "data_bits": 8,
  14. "parity": "N",
  15. "stop_bits": 1,
  16. "flow_control": "none",
  17. "clks_per_bit": 217,
  18. "inter_byte_timeout_ms": 10,
  19. "rx_ball": "N11",
  20. "tx_ball": "M10"
  21. },
  22. "outputs": {
  23. "ptc_count": 8,
  24. "fan_count": 4,
  25. "ptc_channels": [
  26. {"index": 0, "name": "ptc1", "signal": "ptc_pwm_out[0]", "board_signal": "HEAT2", "ball": "G16", "connector": "CON18", "connector_pin": 3, "polarity": "active_high"},
  27. {"index": 1, "name": "ptc2", "signal": "ptc_pwm_out[1]", "board_signal": "HEAT1", "ball": "F16", "connector": "CON18", "connector_pin": 1, "polarity": "active_high"},
  28. {"index": 2, "name": "ptc3", "signal": "ptc_pwm_out[2]", "board_signal": "HEAT8", "ball": "N1", "connector": "CON27", "connector_pin": 3, "polarity": "active_high"},
  29. {"index": 3, "name": "ptc4", "signal": "ptc_pwm_out[3]", "board_signal": "HEAT7", "ball": "M1", "connector": "CON27", "connector_pin": 1, "polarity": "active_high"},
  30. {"index": 4, "name": "ptc5", "signal": "ptc_pwm_out[4]", "board_signal": "HEAT14", "ball": "R16", "connector": "CON28", "connector_pin": 3, "polarity": "active_high"},
  31. {"index": 5, "name": "ptc6", "signal": "ptc_pwm_out[5]", "board_signal": "HEAT13", "ball": "P16", "connector": "CON28", "connector_pin": 1, "polarity": "active_high"},
  32. {"index": 6, "name": "ptc7", "signal": "ptc_pwm_out[6]", "board_signal": "HEAT20", "ball": "P9", "connector": "CON29", "connector_pin": 3, "polarity": "active_high"},
  33. {"index": 7, "name": "ptc8", "signal": "ptc_pwm_out[7]", "board_signal": "HEAT19", "ball": "T9", "connector": "CON29", "connector_pin": 1, "polarity": "active_high"}
  34. ],
  35. "fan_channels": [
  36. {"index": 0, "name": "fan1", "signal": "fan_pwm_out[0]", "board_signal": "FAN_PWM3", "ball": "B1", "connector": "CON25", "connector_pin": 7, "polarity": "active_low"},
  37. {"index": 1, "name": "fan2", "signal": "fan_pwm_out[1]", "board_signal": "FAN_PWM1", "ball": "C4", "connector": "CON8", "connector_pin": 7, "polarity": "active_low"},
  38. {"index": 2, "name": "fan3", "signal": "fan_pwm_out[2]", "board_signal": "FAN_PWM2", "ball": "B5", "connector": "CON24", "connector_pin": 7, "polarity": "active_low"},
  39. {"index": 3, "name": "fan4", "signal": "fan_pwm_out[3]", "board_signal": "FAN_PWM4", "ball": "A14", "connector": "CON26", "connector_pin": 7, "polarity": "active_low"}
  40. ],
  41. "pwm_bits": 8,
  42. "pwm_internal_width": 7,
  43. "pwm_max_duty": 100,
  44. "pwm_phase_count": 100,
  45. "pwm_slot_clks": 1042,
  46. "pwm_frequency_hz": 20,
  47. "pwm_actual_frequency_hz": 19.993602047,
  48. "ptc_polarity": "active_high",
  49. "fan_polarity": "active_low",
  50. "ptc_default": 0,
  51. "fan_default": 10,
  52. "fan_connector_active_level": "high",
  53. "fan_board_inverts": true,
  54. "boot_targets": {"ptc": 0, "fan": 10}
  55. },
  56. "motors": {
  57. "count": 2,
  58. "order": ["x", "y"],
  59. "role": "exhaust",
  60. "fixed_steps": 450,
  61. "execution": "overlap",
  62. "busy_wait_ms": 600,
  63. "step_rate_hz": 1000,
  64. "step_half_cycles": 12500,
  65. "dir_setup_cycles": 25000,
  66. "command_values": [0, 1, 2],
  67. "heartbeat_value": 0,
  68. "mapping": {
  69. "x": {"axis": "x", "role": "exhaust", "step_ball": "C11", "dir_ball": "B12"},
  70. "y": {"axis": "y", "role": "exhaust", "step_ball": "D15", "dir_ball": "H14"}
  71. },
  72. "enable_n": {"ball": "A10", "active_level": "low", "policy": "shared_constant_low"}
  73. },
  74. "limits": {
  75. "limit_count": 2,
  76. "active_level": "high",
  77. "functional_use": true,
  78. "runtime_use": false,
  79. "startup": {
  80. "enabled": true,
  81. "direction_value": 1,
  82. "direction_meaning": "close",
  83. "burst_step_count": 450,
  84. "burst_step_rate_hz": 1000,
  85. "inter_burst_ms": 50,
  86. "max_bursts": 10,
  87. "axis_order": ["x", "y"],
  88. "limit_stop_during_burst": true,
  89. "stop_semantics": "finish_current_high_pulse_then_no_next_rising_edge",
  90. "additional_rising_edges_after_synchronized_limit": 0,
  91. "runtime_limit_use": false
  92. },
  93. "channels": [
  94. {"name": "x_limit_raw", "ball": "B9"},
  95. {"name": "y_limit_raw", "ball": "A11"}
  96. ]
  97. },
  98. "temperature": {
  99. "value_count": 27,
  100. "device_addresses": [73, 72, 75],
  101. "registers": [0, 1, 2, 3, 4, 5, 6, 7, 8],
  102. "scl_ball": "M8",
  103. "sda_ball": "N9",
  104. "bus": "i2c",
  105. "device": "CT7428",
  106. "invalid_value": 255,
  107. "maximum_celsius": 150,
  108. "conversion": {
  109. "profile": "ct7428-msb-integer",
  110. "raw_shift": 7,
  111. "raw_width": 9,
  112. "reject_sign_bit": true
  113. }
  114. },
  115. "pins": {
  116. "host_uart_rx": "N11",
  117. "host_uart_tx": "M10",
  118. "temp_scl": "M8",
  119. "temp_sda": "N9",
  120. "ptc_pwm": ["G16", "F16", "N1", "M1", "R16", "P16", "P9", "T9"],
  121. "fan_pwm": ["B1", "C4", "B5", "A14"],
  122. "motor_en_n": "A10",
  123. "x_step": "C11",
  124. "x_dir": "B12",
  125. "y_step": "D15",
  126. "y_dir": "H14",
  127. "x_limit_raw": "B9",
  128. "y_limit_raw": "A11"
  129. },
  130. "resource_policy": {
  131. "target_ram": "optional",
  132. "request_ram": "optional",
  133. "temperature_ram": "optional",
  134. "dsp": 0,
  135. "shared_pwm_comparators": 1,
  136. "shared_motor_executors": 1,
  137. "shared_i2c_readers": 1
  138. },
  139. "protocol": {
  140. "header_hex": "A55A",
  141. "crc": {
  142. "name": "CRC-16/CCITT-FALSE",
  143. "polynomial": 4129,
  144. "initial": 65535,
  145. "reflect_input": false,
  146. "reflect_output": false,
  147. "xor_output": 0,
  148. "coverage": "type_length_payload",
  149. "wire_order": "little"
  150. },
  151. "commands": {
  152. "set_all": 1,
  153. "get_temperature": 2,
  154. "temperature_data": 130
  155. },
  156. "set_all": {
  157. "payload_length": 14,
  158. "ptc_offset": 0,
  159. "fan_offset": 8,
  160. "motor_x_offset": 12,
  161. "motor_y_offset": 13,
  162. "duty_min": 0,
  163. "duty_max": 100,
  164. "motor_values": [0, 1, 2],
  165. "heartbeat": [0, 0],
  166. "response": "none"
  167. },
  168. "temperature_data": {
  169. "payload_length": 27,
  170. "frame_length": 33
  171. }
  172. },
  173. "timeouts": {
  174. "frame_inter_byte_ms": 10,
  175. "host_get_response_ms": 5000
  176. },
  177. "watchdog": {
  178. "timeout_seconds": 10,
  179. "tick_us": 500,
  180. "tick_clks": 12500,
  181. "timeout_ticks": 20000,
  182. "target": {"ptc": 0, "fan": 20}
  183. }
  184. }