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.

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