gateway_server_communication.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. [
  2. {
  3. "id": 1,
  4. "key": "GPIO",
  5. "name": "GPIO",
  6. "description": "",
  7. "properties": [
  8. {
  9. "id": 1,
  10. "key": "GPIO_CODE",
  11. "name": "系统GPIO号",
  12. "label": "系统GPIO号",
  13. "type": "integer",
  14. "defaultValue": "66",
  15. "placeholder": "请输入系统GPIO号",
  16. "description": " linux 系统 GPIO 号, 0-63 ",
  17. "selections": []
  18. },
  19. {
  20. "id": 2,
  21. "key": "GPIO_INPUT_OUTPUT",
  22. "name": "输入、输出",
  23. "label": "输入、输出",
  24. "type": "select",
  25. "defaultValue": "1",
  26. "placeholder": "请选择输入、输出",
  27. "description": " GPIO类型 输入、输出 ",
  28. "selections": [
  29. {
  30. "value": 1,
  31. "label": "输入"
  32. },
  33. {
  34. "value": 2,
  35. "label": "输出"
  36. }
  37. ]
  38. },
  39. {
  40. "id": 3,
  41. "key": "GPIO_DEFAULT_VOLTAGE",
  42. "name": "默认值",
  43. "label": "默认值",
  44. "type": "select",
  45. "defaultValue": "1",
  46. "placeholder": "请选择默认值",
  47. "description": " GPIO类型 默认值 ",
  48. "selections": [
  49. {
  50. "value": 1,
  51. "label": "低电平"
  52. },
  53. {
  54. "value": 2,
  55. "label": "高电平"
  56. }
  57. ]
  58. }
  59. ],
  60. "executor": {
  61. "id": 1,
  62. "key": "GPIO_EXECUTOR",
  63. "name": "GPIO_EXECUTOR",
  64. "description": "",
  65. "properties": []
  66. }
  67. },
  68. {
  69. "id": 2,
  70. "key": "RS485_RTU",
  71. "name": "RS485_RTU",
  72. "description": "",
  73. "properties": [
  74. {
  75. "id": 1,
  76. "key": "RS485_PORT",
  77. "name": "串口名称",
  78. "label": "串口名称",
  79. "type": "string",
  80. "defaultValue": "",
  81. "placeholder": "请输入系统串口名称",
  82. "description": " linux 系统串口名称, 0-63 ",
  83. "selections": []
  84. },
  85. {
  86. "id": 1,
  87. "key": "RS485_ADDRESS",
  88. "name": "设备地址",
  89. "label": "设备地址",
  90. "type": "string",
  91. "defaultValue": "",
  92. "placeholder": "请输入设备地址",
  93. "description": "设备地址标识",
  94. "selections": []
  95. },
  96. {
  97. "id": 2,
  98. "key": "RS485_BAUDRATE",
  99. "name": "波特率",
  100. "label": "波特率",
  101. "type": "integer",
  102. "defaultValue": "1",
  103. "placeholder": "请输入波特率",
  104. "description": "请输入波特率",
  105. "selections": []
  106. },
  107. {
  108. "id": 3,
  109. "key": "RS485_STOP_BIT",
  110. "name": "停止位",
  111. "label": "停止位",
  112. "type": "select",
  113. "defaultValue": "1",
  114. "placeholder": "请选择停止位",
  115. "description": " RS485 停止位 ",
  116. "selections": [
  117. {
  118. "value": 1,
  119. "label": "1位"
  120. },
  121. {
  122. "value": 2,
  123. "label": "2位"
  124. }
  125. ]
  126. },
  127. {
  128. "id": 4,
  129. "key": "RS485_VERIFY",
  130. "name": "校验位",
  131. "label": "校验位",
  132. "type": "select",
  133. "defaultValue": "1",
  134. "placeholder": "请选择校验位",
  135. "description": " RS485 校验位 ",
  136. "selections": [
  137. {
  138. "value": 1,
  139. "label": "无校验"
  140. },
  141. {
  142. "value": 2,
  143. "label": "奇校验"
  144. },
  145. {
  146. "value": 3,
  147. "label": "偶校验"
  148. }
  149. ]
  150. },
  151. {
  152. "id": 5,
  153. "key": "RS485_DATA_BIT",
  154. "name": "数据位",
  155. "label": "数据位",
  156. "type": "select",
  157. "defaultValue": "1",
  158. "placeholder": "请选择数据位",
  159. "description": " RS485 数据位 ",
  160. "selections": [
  161. {
  162. "value": 1,
  163. "label": "5位"
  164. },
  165. {
  166. "value": 2,
  167. "label": "6位"
  168. },
  169. {
  170. "value": 3,
  171. "label": "7位"
  172. },
  173. {
  174. "value": 4,
  175. "label": "8位"
  176. }
  177. ]
  178. }
  179. ],
  180. "executor": {
  181. "id": 1,
  182. "key": "RS485_RTU_EXECUTOR",
  183. "name": "RS485_RTU_EXECUTOR",
  184. "description": "",
  185. "properties": [
  186. ]
  187. }
  188. }
  189. ]