share-space-java/share-space-common/src/main/java/com/ruoyi/common/constant/IotConstants.java

222 lines
4.8 KiB
Java
Raw Normal View History

2024-11-19 13:30:11 +08:00
package com.ruoyi.common.constant;
/**
* iot常量信息
*
* @author ruoyi
*/
public class IotConstants {
/**
* 时间单位 分钟
*/
public static final String TIME_MIN = "min";
/**
* 时间单位 小时
*/
public static final String TIME_HOUR = "hour";
/**
* 命令分隔符 @
*/
public static final String COMMAND_SEPARATOR = "@";
/**----------------------------地址start----------------------------*/
/**
* 命令下发地址
*/
2024-11-25 20:52:41 +08:00
public static final String ADDS_COMMAND = "/datapoint/synccmds";
2024-11-19 13:30:11 +08:00
/**
* 设备数据点地址
*/
2024-11-25 20:52:41 +08:00
public static final String ADDS_HISTORY_DATAPOINTS = "/datapoint/history-datapoints";
2024-11-19 13:30:11 +08:00
/**
* 设备数据点地址
*/
2024-11-25 20:52:41 +08:00
public static final String ADDS_CURRENT_DATAPOINTS = "/datapoint/current-datapoints";
/**
* 设备详情
*/
public static final String ADDS_DEVICE_DETAIL = "/device/detail";
/**
* 添加设备
*/
public static final String CREATE_DEVICE = "/device/create";
2024-11-19 13:30:11 +08:00
/**----------------------------地址end----------------------------*/
/**----------------------------命令start----------------------------*/
/**
* 命令 打开
*/
public static final String COMMAND_OPEN = "open";
2024-11-25 20:52:41 +08:00
/**
2024-12-30 21:43:16 +08:00
* 命令 电量充值 : 通电多长时间
2024-11-25 20:52:41 +08:00
*/
public static final String COMMAND_RECHARGE = "time";
2024-12-30 21:43:16 +08:00
/**
* 命令 电量充值(反向) 后面带时间 单位秒 断电多长时间
*/
public static final String COMMAND_REVERSE_RECHARGE = "ttme";
2024-11-25 20:52:41 +08:00
/**
* 命令 直接设置电量
*/
public static final String COMMAND_SET_ELE = "mmney";
public static final String COMMAND_SET_SSID = "ssid";
public static final String COMMAND_SET_PASS = "pass";
/**
* 命令 设置语音播报阈值()
*/
public static final String COMMAND_SET_VOICE = "dj_set";
/**
* 命令 设置总用电量
*/
public static final String COMMAND_SET_TOTAL_ELE = "pow_set";
2024-11-19 13:30:11 +08:00
/**
* 命令 开坐垫锁
*/
public static final String COMMAND_HPEN = "hpen";
/**
* 命令 关闭
*/
public static final String COMMAND_CLOSE = "close";
/**
* 命令 subXX@ xx是上报时间修改例如20 则上报20秒一次 关闭订单之后为5倍的上报间隔也就是100秒上报一次数据
*/
public static final String COMMAND_SUB = "sub";
/**
* 命令 发送低电压预警设置
*/
public static final String COMMAND_BAT = "bat";
/**
* 命令 超出营运区禁行区断电不进行轮动检测
*/
public static final String COMMAND_QLOSE = "qlose";
/**
* 命令 临时锁车断电会进行轮动检测
*/
public static final String COMMAND_LLOSE = "llose";
/**
* 命令 0欢迎
*/
public static final String COMMAND_PLAY0 = "play0@";
/**
* 命令 1报警
*/
public static final String COMMAND_PLAY1 = "play1@";
/**
* 命令 2营运边界
*/
public static final String COMMAND_PLAY2 = "play2@";
/**
* 命令 3超出营运边界
*/
public static final String COMMAND_PLAY3 = "play3@";
/**
* 命令 4车辆未解锁
*/
public static final String COMMAND_PLAY4 = "play4@";
/**
* 命令 5超速
*/
public static final String COMMAND_PLAY5 = "play5@";
/**
* 命令 6电量低
*/
public static final String COMMAND_PLAY6 = "play6@";
/**
* 命令 7临时停车
*/
public static final String COMMAND_PLAY7 = "play7@";
/**
* 命令 8使用结束
*/
public static final String COMMAND_PLAY8 = "play8@";
/**
* 命令 频率5秒
*/
public static final String COMMAND_FREQUENCY_5 = "sub5@";
/**
* 命令 频率20秒
*/
public static final String COMMAND_FREQUENCY_20 = "sub20@";
/**
* 命令 频率一个小时
*/
public static final String COMMAND_FREQUENCY_3600 = "sub300@";
/**
* 命令 重启设备
*/
public static final String COMMAND_REBOOT = "reboot";
/**----------------------------命令end----------------------------*/
/**
* ONENET定位日志
*/
public static final String ONENET_LOCATION = "sys";
/**
* ONENET版本号
*/
public static final String ONENET_VER = "VER";
2024-11-25 20:52:41 +08:00
/**
* 命令 累加充值电量
*/
public static final String COMMAND_ADD_ELE = "money";
/**
* 命令 设置电压系数
*/
public static final String COMMAND_SET_VXS = "v_xs";
/**
* 在线获取方式发送命令获取
*/
public static final String ONLINE_TYPE_COMMAND = "2";
/**
* 命令 强制上报数据
*/
public static final String COMMAND_UPLOAD_DATA = "111";
2024-11-19 13:30:11 +08:00
}