package com.ruoyi.sim.service.impl;

public interface CommConst {

    String name = "lishuo";

    String PREFIX = "AA";

    String SUFFIX = "55";

    /**
     * orientation
     */
    String ORN_SEND = "01";

    /**
     * orientation
     */
    String ORN_RECEIVE = "02";

    String CMD_DATA_PLACE_HOLDER = "00000000";

    String BLANK_CONTENT = "00000000";

    /**
     * 故障下发
     */
    String CMD_SET_FAULT = "01";
    /**
     * 故障清清除
     */
    String CMD_CLEAR_FAULT = "02";
    /**
     * 设备类型读取
     */
    String CMD_READ_TYPE = "03";
    /**
     * 状态读取 RESISTANCE电阻值
     */
    String CMD_READ_FAULT_RESISTANCE = "03";

    String CMD_ID_GET_SN = "B1";
    int LENGTH_2 = 2;
    int LENGTH_8 = 8;
    /**
     * 报文长度
     */
    int LENGTH_20 = 20;
    /**
     * 添加CRC后的报文长度
     */
    int LENGTH_24 = 24;

    /**
     * 请求间隔睡眠时间-long
     */
    Long SLEEP_LONG = 200L;
    /**
     * 请求间隔睡眠时间-short
     */
    Long SLEEP_SHORT = 50L;

    int SOCKET_TIME_OUT = 200;

    String[] TYPE_1_BIND_MSG = new String[]{"01", "02", "03", "04", "05",
            "06", "07", "08", "09", "0A"};

    String[] TYPE_2_BIND_MSG = new String[]{"01", "02", "03", "04", "05",
            "06", "07", "08", "09", "0A",
            "0B", "0C"};
    String[] TYPE_3_BIND_MSG = new String[]{"01", "02", "03", "04", "05",
            "06", "07", "08", "09", "0A",
            "0B", "0C", "0D", "0E", "0F"};

    int RETRY_COUNT_CHECK_ONE_FAULT = 1;
    int RETRY_COUNT_CLEAR_ONE_FAULT = 2;
    int RETRY_COUNT_WRITE_ONE_FAULT = 2;
    int RETRY_COUNT_READ_ONE_RESISTANCE = 4;
    int RETRY_COUNT_0 = 0;

    int OFFLINE_LIMIT = 6;
}
