You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

254 lines
5.6 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. # 测试指令
  2. ```
  3. ws://192.168.8.10:19001
  4. 开始消毒
  5. {"command":"startDisinfection","loglevel":12,"messageId":"startDisinfection","roomVolume":0}
  6. 导出记录
  7. {"command":"exportDisinfectionRecord","keys":["2024-0516-094233","2024-0516-092446","2024-0516-092339"],"messageId":"exportDisinfectionRecord"}
  8. 读取设备状态
  9. {"command": "getState"}
  10. 指示灯测试
  11. {"command": "TestPage_WarningLightCtrl","r": 0,"g": 0,"b": 0,"w": 0}
  12. /*******************************************************************************
  13. * 设备状态 *
  14. *******************************************************************************/
  15. /*******************************************************************************
  16. * 测试页面 *
  17. *******************************************************************************/
  18. 拉杆箱消毒剂
  19. -喷液泵转
  20. {
  21. "command": "DBDBTestPage__sprayLiquidPump_run",
  22. "params":{
  23. "gpm":123
  24. }
  25. }
  26. -读取压力传感器(index == 1,2)
  27. {
  28. "command": "DBDBTestPage__readPressureSensor",
  29. "params":{
  30. "index":123
  31. }
  32. }
  33. { "ack": { "pressure": 123 }, "ackcode": 0, "messageId": null, "timeStamp": 1715941946739 }
  34. -喷液空压机控制
  35. {
  36. "command": "DBDBTestPage__sprayAirCompressorPowerCtrl",
  37. "params":{
  38. "power":1
  39. }
  40. }
  41. -气密性空压机-控制
  42. {
  43. "command": "DBDBTestPage__airTightnessTestAirCompressorPowerCtrl",
  44. "params":{
  45. "power":1
  46. }
  47. }
  48. -加热空压机控制
  49. {
  50. "command": "DBDBTestPage__heaterCtrl",
  51. "params":{
  52. "power":1
  53. }
  54. }
  55. -加热空压机安全电磁阀控制
  56. {
  57. "command": "DBDBTestPage__heaterCtrlSafeValve",
  58. "params":{
  59. "power":1
  60. }
  61. }
  62. -加热片电流读取
  63. {
  64. "command": "DBDBTestPage__heaterReadElectricCurrent"
  65. }
  66. -加热片温度读取
  67. {
  68. "command": "DBDBTestPage__heaterReadTemperatureData"
  69. }
  70. { "ack": { "temperature": 45 }, "ackcode": 0, "messageId": null, "timeStamp": 1715942093615 }
  71. -风机控制(0->100)
  72. {
  73. "command": "DBDBTestPage__miniPwmBlowerCtrl",
  74. "params":{
  75. "power100":90
  76. }
  77. }
  78. -外部通道控制(可以选择通道},disinfectionChannel,dehumidificationChannel,degradationChannel)
  79. {
  80. "command": "DBDBTestPage__extValveCtrl",
  81. "params":{
  82. "channel":"disinfectionChannel"
  83. }
  84. -外部电磁阀板是否在线
  85. {
  86. "command": "DBDBTestPage__extValBoardIsOnline"
  87. }
  88. { "ack": { "isOnline": false }, "ackcode": 0, "messageId": null, "timeStamp": 1715942221499 }
  89. ```
  90. ```
  91. {
  92. "command": "selftest_setH2O2Val",
  93. "params": {
  94. "random": false,
  95. "sensors": [
  96. {
  97. "sensorid": 0,
  98. "h2o2": 0,
  99. "humid": 50,
  100. "temp": 50,
  101. "sat": 50,
  102. "state": 1
  103. },
  104. {
  105. "sensorid": 1,
  106. "h2o2": 0,
  107. "humid": 51,
  108. "temp": 51,
  109. "sat": 51,
  110. "state": 1
  111. },
  112. {
  113. "sensorid": 2,
  114. "h2o2": 0,
  115. "humid": 52,
  116. "temp": 52,
  117. "sat": -1,
  118. "state": 1
  119. }
  120. ]
  121. }
  122. }
  123. ```
  124. <!-- -->
  125. ```json
  126. // 消毒机拉杆箱
  127. {
  128. "command": "RealtimeSensorDataReport",
  129. "sensor_data": {
  130. "draw_bar_box_disinfection": {
  131. "heatingStrip": {
  132. "current": 0,
  133. "temperature": 0
  134. },
  135. "pressure": [
  136. 0,
  137. 0
  138. ]
  139. },
  140. "h2o2_1": 0,
  141. "h2o2_2": -1,
  142. "h2o2_3": -1,
  143. "h2o2_sensor_state_1": true,
  144. "h2o2_sensor_state_2": false,
  145. "h2o2_sensor_state_3": false,
  146. "humid_1": 34,
  147. "humid_2": -1,
  148. "humid_3": -1,
  149. "saturation_1": 32,
  150. "saturation_2": 0,
  151. "saturation_3": 0,
  152. "temp_1": 30,
  153. "temp_2": -1,
  154. "temp_3": -1
  155. },
  156. "timeStamp": 1716281819391
  157. }
  158. {
  159. "ackcode": 0,
  160. "disinfectionConfig": {
  161. "continued_gs": 0,
  162. "continued_humi": 0,
  163. "continued_satur": 0,
  164. "injection_pump_speed": -441009434,
  165. "loglevel": 0,
  166. "stoped_gs": 0,
  167. "stoped_humi": 0,
  168. "stoped_satur": 0
  169. },
  170. "messageId": null,
  171. "state": {
  172. "disinfectionState": {
  173. "dvalue": 0.0,
  174. "estimatedRemainingTimeS": 0,
  175. "id": "",
  176. "nowlog": 0.0,
  177. "preHeat": false,
  178. "preHeatRaminTimeS": 0,
  179. "targetlog": 0,
  180. "workState": 5
  181. },
  182. "disinfectionWorkState": 5,
  183. "disinfection_id": "",
  184. "estimatedRemainingTimeS": 0,
  185. "isLogin": false,
  186. "loginuser": "",
  187. "permissionLevel": 11,
  188. "preHeat": false,
  189. "preHeatRaminTimeS": 0,
  190. "sensor_data": {
  191. "draw_bar_box_disinfection": {
  192. "heatingStrip": {
  193. "current": 0,
  194. "temperature": 0
  195. },
  196. "pressure": [
  197. 0,
  198. 0
  199. ]
  200. },
  201. "h2o2_1": 0,
  202. "h2o2_2": -1,
  203. "h2o2_3": -1,
  204. "h2o2_sensor_state_1": true,
  205. "h2o2_sensor_state_2": false,
  206. "h2o2_sensor_state_3": false,
  207. "humid_1": 35,
  208. "humid_2": -1,
  209. "humid_3": -1,
  210. "saturation_1": 33,
  211. "saturation_2": 0,
  212. "saturation_3": 0,
  213. "temp_1": 30,
  214. "temp_2": -1,
  215. "temp_3": -1
  216. }
  217. },
  218. "subboardstate": {
  219. "extChannelCtrlBoard": {
  220. "online": 0
  221. }
  222. },
  223. "timeStamp": 1716281920885
  224. }
  225. ```