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.

112 lines
2.5 KiB

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. ```