project.json 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  1. {
  2. "project_id": "prod2u-door-temp-motor-compat",
  3. "profile": "prod2u-motor-compat-intake-v1",
  4. "display_name": "Prod2U door/temp motor-compat intake (non-production)",
  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. "chamber_ptc_count": 4,
  26. "chamber_ptc_pairs": [
  27. {
  28. "chamber": 1,
  29. "ptc_indices": [
  30. 0,
  31. 1
  32. ]
  33. },
  34. {
  35. "chamber": 2,
  36. "ptc_indices": [
  37. 2,
  38. 3
  39. ]
  40. },
  41. {
  42. "chamber": 3,
  43. "ptc_indices": [
  44. 4,
  45. 5
  46. ]
  47. },
  48. {
  49. "chamber": 4,
  50. "ptc_indices": [
  51. 6,
  52. 7
  53. ]
  54. }
  55. ],
  56. "ptc_channels": [
  57. {
  58. "index": 0,
  59. "name": "ptc1",
  60. "signal": "ptc_pwm_out[0]",
  61. "board_signal": "HEAT2",
  62. "ball": "G16",
  63. "connector": "CON18",
  64. "connector_pin": 3,
  65. "polarity": "active_high"
  66. },
  67. {
  68. "index": 1,
  69. "name": "ptc2",
  70. "signal": "ptc_pwm_out[1]",
  71. "board_signal": "HEAT1",
  72. "ball": "F16",
  73. "connector": "CON18",
  74. "connector_pin": 1,
  75. "polarity": "active_high"
  76. },
  77. {
  78. "index": 2,
  79. "name": "ptc3",
  80. "signal": "ptc_pwm_out[2]",
  81. "board_signal": "HEAT8",
  82. "ball": "N1",
  83. "connector": "CON27",
  84. "connector_pin": 3,
  85. "polarity": "active_high"
  86. },
  87. {
  88. "index": 3,
  89. "name": "ptc4",
  90. "signal": "ptc_pwm_out[3]",
  91. "board_signal": "HEAT7",
  92. "ball": "M1",
  93. "connector": "CON27",
  94. "connector_pin": 1,
  95. "polarity": "active_high"
  96. },
  97. {
  98. "index": 4,
  99. "name": "ptc5",
  100. "signal": "ptc_pwm_out[4]",
  101. "board_signal": "HEAT14",
  102. "ball": "R16",
  103. "connector": "CON28",
  104. "connector_pin": 3,
  105. "polarity": "active_high"
  106. },
  107. {
  108. "index": 5,
  109. "name": "ptc6",
  110. "signal": "ptc_pwm_out[5]",
  111. "board_signal": "HEAT13",
  112. "ball": "P16",
  113. "connector": "CON28",
  114. "connector_pin": 1,
  115. "polarity": "active_high"
  116. },
  117. {
  118. "index": 6,
  119. "name": "ptc7",
  120. "signal": "ptc_pwm_out[6]",
  121. "board_signal": "HEAT20",
  122. "ball": "P9",
  123. "connector": "CON29",
  124. "connector_pin": 3,
  125. "polarity": "active_high"
  126. },
  127. {
  128. "index": 7,
  129. "name": "ptc8",
  130. "signal": "ptc_pwm_out[7]",
  131. "board_signal": "HEAT19",
  132. "ball": "T9",
  133. "connector": "CON29",
  134. "connector_pin": 1,
  135. "polarity": "active_high"
  136. }
  137. ],
  138. "fan_channels": [
  139. {
  140. "index": 0,
  141. "name": "fan1",
  142. "signal": "fan_pwm_out[0]",
  143. "board_signal": "FAN_PWM3",
  144. "ball": "B1",
  145. "connector": "CON25",
  146. "connector_pin": 7,
  147. "polarity": "active_low"
  148. },
  149. {
  150. "index": 1,
  151. "name": "fan2",
  152. "signal": "fan_pwm_out[1]",
  153. "board_signal": "FAN_PWM1",
  154. "ball": "C4",
  155. "connector": "CON8",
  156. "connector_pin": 7,
  157. "polarity": "active_low"
  158. },
  159. {
  160. "index": 2,
  161. "name": "fan3",
  162. "signal": "fan_pwm_out[2]",
  163. "board_signal": "FAN_PWM2",
  164. "ball": "B5",
  165. "connector": "CON24",
  166. "connector_pin": 7,
  167. "polarity": "active_low"
  168. },
  169. {
  170. "index": 3,
  171. "name": "fan4",
  172. "signal": "fan_pwm_out[3]",
  173. "board_signal": "FAN_PWM4",
  174. "ball": "A14",
  175. "connector": "CON26",
  176. "connector_pin": 7,
  177. "polarity": "active_low"
  178. }
  179. ],
  180. "pwm_bits": 8,
  181. "pwm_internal_width": 7,
  182. "pwm_max_duty": 100,
  183. "pwm_phase_count": 100,
  184. "pwm_slot_clks": 1042,
  185. "pwm_frequency_hz": 20,
  186. "pwm_actual_frequency_hz": 19.993602047,
  187. "ptc_polarity": "active_high",
  188. "fan_polarity": "active_low",
  189. "ptc_default": 0,
  190. "fan_default": 10,
  191. "fan_connector_active_level": "high",
  192. "fan_board_inverts": true,
  193. "boot_targets": {
  194. "ptc": 0,
  195. "fan": 10
  196. }
  197. },
  198. "doors": {
  199. "scope": "four_chamber_thermal_plus_chamber1_three_doors",
  200. "chamber_controlled": 1,
  201. "intake_actuator": "motor",
  202. "intake_motor_profile_available": true,
  203. "exhaust_axes": [
  204. "x",
  205. "y"
  206. ],
  207. "solenoid": {
  208. "signal": "intake_solenoid_out",
  209. "evidence_status": "blocked",
  210. "open_level": "high",
  211. "closed_level": "low",
  212. "inactive_level": "low",
  213. "notes": "Production solenoid profile remains default. This motor-compat variant does not instantiate the solenoid; intake uses a third motor axis. Physical ball still blocked."
  214. },
  215. "intake_motor": {
  216. "signal": "intake_step/intake_dir",
  217. "evidence_status": "blocked",
  218. "package": false,
  219. "notes": "Non-production sim-only ports; no ADC LOC. Physical mapping blocked."
  220. }
  221. },
  222. "motors": {
  223. "count": 3,
  224. "order": [
  225. "x",
  226. "y",
  227. "intake"
  228. ],
  229. "role": "exhaust_plus_intake_motor_compat",
  230. "fixed_steps": 450,
  231. "execution": "overlap",
  232. "busy_wait_ms": 600,
  233. "step_rate_hz": 1000,
  234. "step_half_cycles": 12500,
  235. "dir_setup_cycles": 25000,
  236. "command_values": [
  237. 0,
  238. 1,
  239. 2
  240. ],
  241. "heartbeat_value": 0,
  242. "open_dir_value": 0,
  243. "close_dir_value": 1,
  244. "mapping": {
  245. "x": {
  246. "axis": "x",
  247. "role": "exhaust",
  248. "step_ball": "C11",
  249. "dir_ball": "B12"
  250. },
  251. "y": {
  252. "axis": "y",
  253. "role": "exhaust",
  254. "step_ball": "D15",
  255. "dir_ball": "H14"
  256. },
  257. "intake": {
  258. "axis": "intake",
  259. "role": "intake",
  260. "step_ball": null,
  261. "dir_ball": null,
  262. "evidence_status": "blocked",
  263. "package": false,
  264. "notes": "Sim-only; not in production ADC."
  265. }
  266. },
  267. "enable_n": {
  268. "ball": "A10",
  269. "active_level": "low",
  270. "policy": "shared_constant_low"
  271. }
  272. },
  273. "limits": {
  274. "limit_count": 3,
  275. "active_level": "high",
  276. "functional_use": true,
  277. "runtime_use": false,
  278. "startup": {
  279. "enabled": true,
  280. "direction_value": 1,
  281. "direction_meaning": "close",
  282. "burst_step_count": 450,
  283. "burst_step_rate_hz": 1000,
  284. "inter_burst_ms": 50,
  285. "max_bursts": 10,
  286. "axis_order": [
  287. "x",
  288. "y",
  289. "intake"
  290. ],
  291. "limit_stop_during_burst": true,
  292. "stop_semantics": "finish_current_high_pulse_then_no_next_rising_edge",
  293. "additional_rising_edges_after_synchronized_limit": 0,
  294. "runtime_limit_use": false
  295. },
  296. "channels": [
  297. {
  298. "name": "x_limit_raw",
  299. "ball": "B9"
  300. },
  301. {
  302. "name": "y_limit_raw",
  303. "ball": "A11"
  304. },
  305. {
  306. "name": "intake_limit_raw",
  307. "ball": null,
  308. "evidence_status": "blocked",
  309. "package": false,
  310. "notes": "Sim-only third close-limit; not in production ADC."
  311. }
  312. ]
  313. },
  314. "temperature": {
  315. "value_count": 27,
  316. "device_addresses": [
  317. 73,
  318. 72,
  319. 75
  320. ],
  321. "registers": [
  322. 0,
  323. 1,
  324. 2,
  325. 3,
  326. 4,
  327. 5,
  328. 6,
  329. 7,
  330. 8
  331. ],
  332. "scl_ball": "M8",
  333. "sda_ball": "N9",
  334. "bus": "i2c",
  335. "device": "CT7428",
  336. "invalid_value": 255,
  337. "maximum_celsius": 150,
  338. "conversion": {
  339. "profile": "ct7428-msb-integer",
  340. "raw_shift": 7,
  341. "raw_width": 9,
  342. "reject_sign_bit": true
  343. }
  344. },
  345. "pins": {
  346. "host_uart_rx": "N11",
  347. "host_uart_tx": "M10",
  348. "temp_scl": "M8",
  349. "temp_sda": "N9",
  350. "ptc_pwm": [
  351. "G16",
  352. "F16",
  353. "N1",
  354. "M1",
  355. "R16",
  356. "P16",
  357. "P9",
  358. "T9"
  359. ],
  360. "fan_pwm": [
  361. "B1",
  362. "C4",
  363. "B5",
  364. "A14"
  365. ],
  366. "motor_en_n": "A10",
  367. "x_step": "C11",
  368. "x_dir": "B12",
  369. "y_step": "D15",
  370. "y_dir": "H14",
  371. "x_limit_raw": "B9",
  372. "y_limit_raw": "A11"
  373. },
  374. "resource_policy": {
  375. "target_ram": "optional",
  376. "request_ram": "optional",
  377. "temperature_ram": "optional",
  378. "dsp": 0,
  379. "shared_pwm_comparators": 1,
  380. "shared_motor_executors": 1,
  381. "shared_i2c_readers": 1
  382. },
  383. "protocol": {
  384. "header_hex": "A55A",
  385. "crc": {
  386. "name": "CRC-16/CCITT-FALSE",
  387. "polynomial": 4129,
  388. "initial": 65535,
  389. "reflect_input": false,
  390. "reflect_output": false,
  391. "xor_output": 0,
  392. "coverage": "type_length_payload",
  393. "wire_order": "little"
  394. },
  395. "commands": {
  396. "set_all": 1,
  397. "get_temperature": 2,
  398. "temperature_data": 130
  399. },
  400. "set_all": {
  401. "payload_length": 11,
  402. "fan_offset": 0,
  403. "chamber_ptc_offset": 4,
  404. "chamber_ptc_count": 4,
  405. "intake_door_offset": 8,
  406. "exhaust_x_offset": 9,
  407. "exhaust_y_offset": 10,
  408. "legacy_payload_length_rejected": 14,
  409. "duty_min": 0,
  410. "duty_max": 100,
  411. "door_values": [
  412. 0,
  413. 1,
  414. 2
  415. ],
  416. "response": "none"
  417. },
  418. "temperature_data": {
  419. "payload_length": 27,
  420. "frame_length": 33
  421. }
  422. },
  423. "timeouts": {
  424. "frame_inter_byte_ms": 10,
  425. "host_get_response_ms": 5000
  426. },
  427. "watchdog": {
  428. "timeout_seconds": 10,
  429. "tick_us": 500,
  430. "tick_clks": 12500,
  431. "timeout_ticks": 20000,
  432. "target": {
  433. "ptc": 0,
  434. "fan": 20
  435. }
  436. }
  437. }