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.

101 lines
2.0 KiB

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. "command": "DBDBTestPage__sprayLiquidPump_run",
  16. "params":{
  17. "gpm":123
  18. }
  19. }
  20. -读取压力传感器(index == 1,2)
  21. {
  22. "command": "DBDBTestPage__readPressureSensor",
  23. "params":{
  24. "index":123
  25. }
  26. }
  27. { "ack": { "pressure": 123 }, "ackcode": 0, "messageId": null, "timeStamp": 1715941946739 }
  28. -喷液空压机控制
  29. {
  30. "command": "DBDBTestPage__sprayAirCompressorPowerCtrl",
  31. "params":{
  32. "power":1
  33. }
  34. }
  35. -气密性空压机-控制
  36. {
  37. "command": "DBDBTestPage__sprayAirCompressorPowerCtrl",
  38. "params":{
  39. "power":1
  40. }
  41. }
  42. -加热空压机控制
  43. {
  44. "command": "DBDBTestPage__heaterCtrl",
  45. "params":{
  46. "power":1
  47. }
  48. }
  49. -加热空压机安全电磁阀控制
  50. {
  51. "command": "DBDBTestPage__heaterCtrlSafeValve",
  52. "params":{
  53. "power":1
  54. }
  55. }
  56. -加热片电流读取
  57. {
  58. "command": "DBDBTestPage__heaterReadElectricCurrent"
  59. }
  60. -加热片温度读取
  61. {
  62. "command": "DBDBTestPage__heaterReadTemperatureData"
  63. }
  64. { "ack": { "temperature": 45 }, "ackcode": 0, "messageId": null, "timeStamp": 1715942093615 }
  65. -风机控制(0->100)
  66. {
  67. "command": "DBDBTestPage__miniPwmBlowerCtrl",
  68. "params":{
  69. "power100":90
  70. }
  71. }
  72. -外部通道控制(可以选择通道},disinfectionChannel,dehumidificationChannel,degradationChannel)
  73. {
  74. "command": "DBDBTestPage__extValveCtrl",
  75. "params":{
  76. "channel":"disinfectionChannel"
  77. }
  78. -外部电磁阀板是否在线
  79. {
  80. "command": "DBDBTestPage__extValBoardIsOnline"
  81. }
  82. { "ack": { "isOnline": false }, "ackcode": 0, "messageId": null, "timeStamp": 1715942221499 }
  83. ```