NormalChargeConstant.java 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. package com.tmzn.devicelinkykc.transdata.constant;
  2. /**
  3. * 汽车单双枪 充电常量
  4. */
  5. public class NormalChargeConstant{
  6. //发送主题指令
  7. public static final String SEND_TOPIC = "d_wt1206_d2113/";
  8. //获取主板消息
  9. public static final String GET_MAINBOARD_MSG = "[85,96,1,0,97]";
  10. //重启设备
  11. public static final String RESTART_DEVICE = "[85,117,1,0,118]";
  12. //端口详情
  13. public static final String PORT_DETAIL = "[85,103,1,0,104]";
  14. //命令方为 85
  15. public static final Integer CMD_SEND = 85;
  16. //读取主板参数
  17. public static final Integer CMD_SET_MAINBOARD = 75960;
  18. //开始充电
  19. public static final Integer CMD_START_CHARGE = 75960;
  20. //结束充电
  21. public static final Integer CMD_STOP_CHARGE = 75960;
  22. //---------配置文件名称
  23. public static final String CONFIG_DIR = "config";
  24. //发送消息
  25. public static final String CONFIG_SEND_SUFFIX = "send";
  26. //返回消息
  27. public static final String CONFIG_BACK_SUFFIX = "back";
  28. //配置文件名称 主板
  29. public static final String CONFIG_MAINBOARD_FILENAME = "mainboard";
  30. //预约充电
  31. public static final String CONFIG_PLANCHARGE_FILENAME = "plancharge";
  32. //开始充电
  33. public static final String CONFIG_STARTCHARTGE_FILENAME = "startcharge";
  34. //结束充电
  35. public static final String CONFIG_ENDCHARGE_FILENAME = "endcharge";
  36. //结束充电通知
  37. public static final String CONFIG_ENDNOTICE_FILENAME = "endchargenotice";
  38. //重启设备
  39. public static final String CONFIG_RESTART_DEVICE = "restartdeivce";
  40. //端口状态
  41. public static final String CONFIG_PORT_STATUS = "portstatus";
  42. //双枪端口详情
  43. public static final String CONFIG_PORT_DETAIL_DOUBLE = "portdetaildouble";
  44. //单枪端口详情
  45. public static final String CONFIG_PORT_DETAIL_SINGLE = "portdetailsingle";
  46. //端口上报
  47. public static final String CONFIG_PORT_REPORT = "portreport";
  48. //远程禁用或者开启端口
  49. public static final String CONFIG_PORT_OPER = "portoper";
  50. //----------配置文件结束
  51. //各个指令key
  52. //主板
  53. public static final Integer KEY_MAINBOARD = 96;
  54. //开启充电
  55. public static final Integer KEY_STARTCHARGE = 104;
  56. //结束充电
  57. public static final Integer KEY_ENDCHARGE = 105;
  58. //结束充电通知
  59. public static final Integer KEY_END_NOTICE = 113;
  60. //重启充电桩
  61. public static final Integer KEY_RESTART_DEVICE = 117;
  62. //端口状态
  63. public static final Integer KEY_PORT_STATUS = 101;
  64. //端口详情
  65. public static final Integer KEY_PORT_DETAIL = 103;
  66. //端口详情
  67. public static final Integer KEY_PORT_DETAIL_EXTEND = 163;
  68. //主动上报详情
  69. public static final Integer KEY_PORT_REPORT = 115;
  70. //远程禁用或者开启端口
  71. public static final Integer KEY_PORT_OPER = 112;
  72. /**
  73. * 急停停充
  74. */
  75. public static final Integer EMERGENCY_STOP_CHARGING = 123;
  76. //上电1分钟后主动上报主板版本号和所有端口状态
  77. public static final Integer REPORT_PORT_STATUS = 114;
  78. //启充停充上报端口状态
  79. public static final Integer PORT_STATUS = 116;
  80. //各个指令key --- end
  81. }