Protocol.json 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. [
  2. {
  3. "id": 1,
  4. "key": "PROTOCAL_RS485",
  5. "name": "RS485 规约 ",
  6. "description": " ",
  7. "properties": [
  8. {
  9. "id": 1,
  10. "key": "RS485_CLEAR_INTERRUPT",
  11. "name": "通信中断数据是否清零",
  12. "label": "通信中断数据是否清零",
  13. "type": "select",
  14. "defaultValue": "",
  15. "placeholder": "请选择通信中断数据是否清零",
  16. "description": "",
  17. "selections": [
  18. {
  19. "value": 1,
  20. "label": "是"
  21. },
  22. {
  23. "value": 2,
  24. "label": "否"
  25. }
  26. ]
  27. },
  28. {
  29. "id": 2,
  30. "key": "RS485_SEND_TIME_INTERVAL",
  31. "name": "发送时间间隔(ms)",
  32. "label": "发送时间间隔(ms)",
  33. "type": "double",
  34. "defaultValue": "",
  35. "description": "",
  36. "placeholder": "输入发送时间间隔(ms)",
  37. "selections": []
  38. },
  39. {
  40. "id": 3,
  41. "key": "RS485_TIME_OUT",
  42. "name": "超时时间(ms)",
  43. "label": "超时时间(ms)",
  44. "type": "double",
  45. "defaultValue": "",
  46. "description": "",
  47. "placeholder": "输入超时时间(ms)",
  48. "selections": []
  49. },
  50. {
  51. "id": 4,
  52. "key": "RS485_COLON_NEEDED",
  53. "name": "是否需要冒号",
  54. "label": "是否需要冒号",
  55. "type": "select",
  56. "defaultValue": "",
  57. "description": "",
  58. "placeholder": "请选择是否需要冒号",
  59. "selections": [
  60. {
  61. "value": 1,
  62. "label": "不需要"
  63. },
  64. {
  65. "value": 2,
  66. "label": "需要"
  67. }
  68. ]
  69. },
  70. {
  71. "id": 5,
  72. "key": "RS485_ADDRESS_BIT",
  73. "name": "地址字节长度",
  74. "label": "地址字节长度",
  75. "type": "integer",
  76. "defaultValue": "",
  77. "description": "",
  78. "placeholder": "请输入地址字节长度",
  79. "selections": []
  80. },
  81. {
  82. "id": 6,
  83. "key": "RS485_ADDRESS_ENDIANSS",
  84. "name": "地址字节序",
  85. "label": "地址字节序",
  86. "type": "select",
  87. "defaultValue": "",
  88. "description": "",
  89. "placeholder": "请选择地址字节序",
  90. "selections": [
  91. {
  92. "value": 1,
  93. "label": "前高后低"
  94. },
  95. {
  96. "value": 2,
  97. "label": "前低后高"
  98. }
  99. ]
  100. },
  101. {
  102. "id": 7,
  103. "key": "RS485_FUNCTION_BIT",
  104. "name": "功能码字节长度",
  105. "label": "功能码字节长度",
  106. "type": "integer",
  107. "defaultValue": "",
  108. "description": "",
  109. "placeholder": "请输入功能码字节长度",
  110. "selections": []
  111. },
  112. {
  113. "id": 8,
  114. "key": "RS485_FUNCTION_ENDIANSS",
  115. "name": "功能码字节序",
  116. "label": "功能码字节序",
  117. "type": "select",
  118. "defaultValue": "",
  119. "description": "",
  120. "placeholder": "请选择功能码字节序",
  121. "selections": [
  122. {
  123. "value": 1,
  124. "label": "前高后低"
  125. },
  126. {
  127. "value": 2,
  128. "label": "前低后高"
  129. }
  130. ]
  131. },
  132. {
  133. "id": 9,
  134. "key": "RS485_VERIFY_ALGORITHM",
  135. "name": "校验方式",
  136. "label": "校验方式",
  137. "type": "select",
  138. "defaultValue": "",
  139. "description": "",
  140. "placeholder": "请选择校验方式",
  141. "selections": [
  142. {
  143. "value": 1,
  144. "label": "CRC8校验"
  145. },
  146. {
  147. "value": 2,
  148. "label": "CRC16校验"
  149. },
  150. {
  151. "value": 3,
  152. "label": "CRC32校验"
  153. }
  154. ]
  155. },
  156. {
  157. "id": 10,
  158. "key": "RS485_VERIFY_BIT",
  159. "name": "校验码字节长度",
  160. "label": "校验码字节长度",
  161. "type": "integer",
  162. "defaultValue": "",
  163. "description": "",
  164. "placeholder": "请输入校验码字节长度",
  165. "selections": []
  166. },
  167. {
  168. "id": 11,
  169. "key": "RS485_VERIFY_ENDIANSS",
  170. "name": "校验码字节序",
  171. "label": "校验能码字节序",
  172. "type": "select",
  173. "defaultValue": "",
  174. "description": "",
  175. "placeholder": "请选择校验码字节序",
  176. "selections": [
  177. {
  178. "value": 1,
  179. "label": "前高后低"
  180. },
  181. {
  182. "value": 2,
  183. "label": "前低后高"
  184. }
  185. ]
  186. },
  187. {
  188. "id": 12,
  189. "key": "RS485_RETURN_BIT_ENDIANSS",
  190. "name": "返回报文字组装方式",
  191. "label": "返回报文字组装方式",
  192. "type": "select",
  193. "defaultValue": "",
  194. "description": "",
  195. "placeholder": "请输入返回报文字组装方式",
  196. "selections": [
  197. {
  198. "value": 1,
  199. "label": "前高后低"
  200. },
  201. {
  202. "value": 2,
  203. "label": "前低后高"
  204. }
  205. ]
  206. },
  207. {
  208. "id": 13,
  209. "key": "RS485_RETURN_BYTE_ENDIANSS",
  210. "name": "返回报文字节组装方式",
  211. "label": "返回报文字节组装方式",
  212. "type": "select",
  213. "defaultValue": "",
  214. "description": "",
  215. "placeholder": "请输入返回报文字节组装方式",
  216. "selections": [
  217. {
  218. "value": 1,
  219. "label": "前高后低"
  220. },
  221. {
  222. "value": 2,
  223. "label": "前低后高"
  224. }
  225. ]
  226. },
  227. {
  228. "id": 14,
  229. "key": "RS485_RETURN_BYTE",
  230. "name": "返回数据字节数",
  231. "label": "返回数据字节数",
  232. "type": "select",
  233. "defaultValue": "",
  234. "description": "",
  235. "placeholder": "请选择返回数据字节数",
  236. "selections": [
  237. {
  238. "value": 1,
  239. "label": "1"
  240. },
  241. {
  242. "value": 2,
  243. "label": "2"
  244. }
  245. ]
  246. },
  247. {
  248. "id": 15,
  249. "key": "RS485_NEGATIVE_DISPLAY",
  250. "name": "负数显示方式",
  251. "label": "负数显示方式",
  252. "type": "select",
  253. "defaultValue": "",
  254. "description": "",
  255. "placeholder": "请选择负数显示方式",
  256. "selections": [
  257. {
  258. "value": 1,
  259. "label": "补码"
  260. },
  261. {
  262. "value": 2,
  263. "label": "原码"
  264. }
  265. ]
  266. }
  267. ]
  268. }
  269. ]