package com.ruoyi.iot.constants;


/**
 * iot常量信息
 *
 * @author ruoyi
 */
public class IotConstants {

    // 命令分隔符
    public static final String COMMAND_SEPARATOR = "@";

    // 接口地址
    public static final String ADDS_COMMAND = "/datapoint/synccmds";    // 命令下发
    public static final String ADDS_HISTORY_DATAPOINTS = "/datapoint/history-datapoints";   // 历史设备数据点
    public static final String ADDS_CURRENT_DATAPOINTS = "/datapoint/current-datapoints";   // 当前设备数据点
    public static final String ADDS_DEVICE_DETAIL = "/device/detail";   // 设备详情
    public static final String ADDS_DEVICE_LIST = "/device/list";   // 设备列表
    public static final String ADDS_CREATE_DEVICE = "/device/create";   // 添加设备

    // 在线获取方式
    public static final String ONLINE_TYPE_GET = "1";   // 从OneNet获取
    public static final String ONLINE_TYPE_COMMAND = "2"; // 发送命令获取

    // 命令
    public static final String COMMAND_UPLOAD_DATA = "111"; // 强制上报数据
    public static final String COMMAND_UNLOCK = "open"; // 开锁
    public static final String COMMAND_LOCK = "close"; // 锁车
    public static final String COMMAND_HPEN = "hpen";   // 开坐垫锁
    public static final String COMMAND_MUSIC = "music"; // 声音设置
    public static final String COMMAND_SUB = "sub"; // subXX@ xx是上报时间修改，例如20 则上报20秒一次， 关闭订单之后为5倍的上报间隔也就是100秒上报一次数据
    public static final String COMMAND_BAT = "bat"; // 发送低电压预警设置
    public static final String COMMAND_QLOSE = "qlose"; // 超出营运区（禁行区）断电，不进行轮动检测
    public static final String COMMAND_LLOSE = "llose"; // 临时锁车，断电会进行轮动检测
    public static final String COMMAND_PLAY = "play"; // 播放语音
    public static final String VOLTAGE_CHECK = "check"; // 电压校准
    public static final String COMMAND_REBOOT = "reboot"; // 重启设备

    // 语音列表
    public static final String PLAY_WELCOME = "0";// 欢迎
    public static final String PLAY_WARNING = "1";// 报警
    public static final String PLAY_BOUNDARY_NEAR = "2";// 接近运营边界请规划好路线
    public static final String PLAY_BOUNDARY_OUT = "3";// 超出营运边界
    public static final String PLAY_NOT_UNLOCK = "4";// 车辆未解锁
    public static final String PLAY_OVERSPEED = "5";// 超速
    public static final String PLAY_LOW_BATTERY = "6";// 电量低
    public static final String PLAY_TEMP_STOP = "7";// 临时停车
    public static final String PLAY_END = "8";// 使用结束

    // 声音列表
    public static final String MUSIC_MUTE = "0";// 静音
    public static final String MUSIC_VOICE = "1";// 语音
    public static final String MUSIC_RING = "2";// 彩铃

    // 数据点
    public static final String DS_SYS = "sys"; // 系统信息
    public static final String DS_VER = "VER"; // 版本号
    public static final String DS_SYS_STATUS = "status"; // 电动车状态
    public static final String DS_SYS_BAT = "bat"; // 电压
    public static final String DS_SYS_CSQ = "csq"; // 信号强度
    public static final String DS_SYS_S = "s"; // 卫星数量
    public static final String DS_SYS_Q = "q"; // 钥匙状态
    public static final String DS_SYS_LON = "lon"; // 经度
    public static final String DS_SYS_LAT = "lat"; // 纬度
    public static final String DS_CSQ = "CSQ";  // 信号强度
    
}
