project.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. },
  20. "outputs": {
  21. "ptc_count": 24,
  22. "fan_count": 4,
  23. "pwm_bits": 8,
  24. "ptc_polarity": "active_high",
  25. "fan_polarity": "active_low",
  26. "solenoid_policy": "constant_safe_zero",
  27. "z_policy": "constant_zero"
  28. },
  29. "motors": {
  30. "count": 2,
  31. "fixed_steps": 450,
  32. "execution": "serial",
  33. "order": ["inlet", "outlet"],
  34. "step_rate_hz": 1000,
  35. "step_half_cycles": 12500,
  36. "dir_setup_cycles": 25000,
  37. "direction_values": [0, 1],
  38. "direction_meaning": {"0": "open", "1": "close"},
  39. "limits": "none",
  40. "mapping": {
  41. "inlet": {"axis": "x", "step_ball": "C11", "dir_ball": "B12"},
  42. "outlet": {"axis": "y", "step_ball": "D15", "dir_ball": "H14"}
  43. },
  44. "enable_n": {"ball": "A10", "policy": "constant_low_enabled"}
  45. },
  46. "temperature": {
  47. "value_count": 27,
  48. "device_addresses": [73, 72, 75],
  49. "registers": [0, 1, 2, 3, 4, 5, 6, 7, 8],
  50. "scl_ball": "M8",
  51. "sda_ball": "N9",
  52. "invalid_value": 255,
  53. "maximum_celsius": 150,
  54. "conversion": {
  55. "profile": "ct7428-msb-integer",
  56. "raw_shift": 7,
  57. "raw_width": 9,
  58. "reject_sign_bit": true
  59. }
  60. },
  61. "pins": {
  62. "host_uart_rx": "N11",
  63. "host_uart_tx": "M10",
  64. "solenoid": "P5",
  65. "z_step": "H12",
  66. "z_dir": "F14",
  67. "ls1": "B9",
  68. "ls2": "A11",
  69. "ptc_pwm": ["F16", "G16", "T4", "R5", "T6", "R7", "M1", "N1", "P1", "R1", "T2", "R3", "P16", "R16", "M16", "N16", "P8", "P7", "T9", "P9", "P10", "R10", "T13", "T12"],
  70. "fan_pwm": ["C4", "B5", "B1", "A14"]
  71. },
  72. "resources": {
  73. "target_ram_blocks": 1,
  74. "request_ram_blocks": 1,
  75. "temperature_ram_blocks": 1,
  76. "dsp": 0,
  77. "shared_pwm_comparators": 1,
  78. "shared_motor_executors": 1,
  79. "shared_i2c_readers": 1
  80. },
  81. "protocol": {
  82. "header_hex": "A55A",
  83. "crc": {
  84. "name": "CRC-16/CCITT-FALSE",
  85. "polynomial": 4129,
  86. "initial": 65535,
  87. "reflect_input": false,
  88. "reflect_output": false,
  89. "xor_output": 0,
  90. "coverage": "type_length_payload",
  91. "wire_order": "little"
  92. },
  93. "commands": {
  94. "set_all": 1,
  95. "get_temperature": 2,
  96. "temperature_data": 130
  97. }
  98. },
  99. "timeouts": {
  100. "frame_inter_byte_ms": 10,
  101. "host_get_response_ms": 5000
  102. }
  103. }