package com.ruoyi.dataInterchange.model.enu;
|
|
import lombok.Getter;
|
|
/**
|
* 数据类型标识
|
* @author zhibing.pu
|
* @Date 2025/2/24 10:39
|
*/
|
@Getter
|
public enum DataType {
|
UP_CONNECT_REQ(0x1001, "主链路登录请求"),
|
UP_CONNECT_RSP(0x1002, "主链路登录应答"),
|
UP_DISCONNECT_REQ(0x1003, "主链路注销请求"),
|
UP_DISCONNECT_RSP(0x1004, "主链路注销应答"),
|
UP_LINKTEST_REQ(0x1005, "主链路连接保持请求"),
|
UP_LINKTEST_RSP(0x1006, "主链路连接保持应答"),
|
UP_DISCONNECT_INFORM(0x1007, "主链路断开通知"),
|
UP_CLOSELINK_INFORM(0x1008, "下级平台主动关闭主从链路通知"),
|
DOWN_CONNECT_REQ(0x9001, "从链路连接请求"),
|
DOWN_CONNECT_RSP(0x9002, "从链路连接应答"),
|
DOWN_DISCONNECT_REQ(0x9003, "从链路注销请求"),
|
DOWN_DISCONNECT_RSP(0x9004, "从链路注销应答"),
|
DOWN_LINKTEST_REQ(0x9005, "从链路连接保持请求"),
|
DOWN_LINKTEST_RSP(0x9006, "从链路连接保持应答"),
|
DOWN_DISCONNECT_INFORM(0x9007, "从链路断开通知"),
|
DOWN_CLOSELINK_INFORM(0x9008, "上级平台主动关闭主从链路通知"),
|
UP_MANAGE_TOTAL_RECV_BACK_MSG(0x9101, "发送车辆定位信息数量通知"),
|
DOWN_MANAGE_MSG_REQ(0x9102, "平台链路连接情况与车辆定位消息"),
|
UP_MANAGE_MSG_RSP(0x1102, "平台链路连接情况与车辆定位消息传输情况上报应答消息"),
|
UP_MANAGE_MSG_SN_INFORM(0x1103, "上传平台间消息序列号通知"),
|
DOWN_MANAGE_MSG_SN_INFORM(0x9103, "下发平台间消息序列号通知"),
|
UP_EXG_MSG(0x1200, "主链路车辆动态信息交换"),
|
UP_EXG_MSG_REGISTER(0x1201, "上传车辆注册信息"),
|
UP_EXG_MSG_REAL_LOCATION(0x1202, "上传车辆实时定位信息"),
|
UP_EXG_MSG_HISTORY_LOCATION(0x1203, "车辆定位信息自动补报请求"),
|
UP_EXG_MSG_RETURN_STARTUP_ACK(0x1205, "启动车辆定位信息交换应答"),
|
UP_EXG_MSG_RETURN_END_ACK(0x1206, "结束车辆定位信息交换应答"),
|
UP_EXG_MSG_APPLY_FOR_MONITOR_STARTUP(0x1207, "申请交换指定车辆定位信息请求"),
|
UP_EXG_MSG_APPLY_FOR_MONITOR_END(0x1208, "取消交换指定车辆定位信息请求"),
|
UP_EXG_MSG_APPLY_HISGNSSDATA_REQ(0x1209, "车辆定位信息补发请求"),
|
UP_EXG_MSG_REPORT_DRIVER_INFO_ACK(0x120A, "上报驾驶员身份信息应答"),
|
UP_EXG_MSG_TAKE_EWAYBILL_ACK(0x120B, "上报车辆电子运单应答消息"),
|
UP_EXG_MSG_REPORT_DRIVER_INFO(0x120C, "主动上报驾驶员身份信息"),
|
UP_EXG_MSG_REPORT_EWAYBILL_INFO(0x120D, "主动上报车辆电子运单信息"),
|
UP_BASE_MSG_DRVLINE_INFO(0x120E, "主动上报车辆行驶路线信息"),
|
DOWN_EXG_MSG(0x9200, "从链路车辆动态信息交换"),
|
DOWN_EXG_MSG_REGISTER_ACK(0x9201, "车辆注册信息应答"),
|
DOWN_EXG_MSG_CAR_LOCATION(0x9202, "交换车辆定位信息"),
|
DOWN_EXG_MSG_HISTORY_ARCOSSAREA(0x9203, "车辆定位信息交换补发"),
|
DOWN_BASE_MSG_DRVLINE_INFO(0x9602, "交换车辆行驶线路信息"),
|
DOWN_EXG_MSG_CAR_INFO(0x9204, "交换车辆静态信息"),
|
DOWN_EXG_MSG_RETURN_STARTUP(0x9205, "启动车辆定位信息交换"),
|
DOWN_EXG_MSG_RETURN_END(0x9206, "结束车辆定位信息交换"),
|
DOWN_EXG_MSG_APPLY_FOR_MONITOR_STARTUP_ACK(0x9207, "申请交换指定车辆定位信息应答"),
|
DOWN_EXG_MSG_APPLY_FOR_MONITOR_END_ACK(0x9208, "取消申请交换指定车辆定位信息应答"),
|
DOWN_EXG_MSG_APPLY_HISGNSSDATA_ACK(0x9209, "补发车辆定位信息应答"),
|
DOWN_EXG_MSG_REPORT_DRIVER_INFO(0x920A, "上报驾驶员身份信息请求"),
|
DOWN_EXG_MSG_TAKE_EWAYBILL_REQ(0x920B, "上报车辆电子运单请求"),
|
DOWN_BASE_MSG_DRVLINE_REQ(0x920C, "上报车辆行驶路线请求"),
|
DOWN_BASE_MSG_DRVLINE_ACK(0x920D, "车辆行驶路线应答消息"),
|
UP_PLATFORM_MSG(0x1300, "主链路平台间信息交互"),
|
UP_PLATFORM_MSG_POST_QUERY_ACK(0x1301, "平台查岗应答消息"),
|
UP_PLATFORM_MSG_INFO_ACK(0x1302, "下发平台间报文应答消息"),
|
UP_PLATFORM_MSG_RETRAN_REQ(0x1303, "上传平台间消息补传请求"),
|
DOWN_PLATFORM_MSG(0x9300, "从链路平台间信息交互"),
|
DOWN_PLATFORM_MSG_POST_QUERY_REQ(0x9301, "平台查岗请求"),
|
DOWN_PLATFORM_MSG_INFO_REQ(0x9302, "下发平台间报文请求"),
|
DOWN_PLATFORM_MSG_RETRAN_REQ(0x9303, "下发平台间信息补传请求"),
|
UP_WARN_MSG(0x1400, "报警信息交互"),
|
UP_WARN_MSG_URGE_TODO_ACK(0x1401, "报警督办应答消息"),
|
UP_WARN_MSG_ADPT_INFO(0x1402, "上报报警信息"),
|
UP_WARN_MSG_ADPT_TODO_INFO(0x1412, "主动上报报警处理结果"),
|
UP_WARN_MSG_URGE_TODO_ACK_INFO(0x1411, "上报报警督办应答消息"),
|
DOWN_WARN_MSG(0x9400, "从链路报警信息"),
|
DOWN_WARN_MSG_URGE_TODO_REQ(0x9401, "报警督办请求"),
|
DOWN_WARN_MSG_INFORM_TIPS(0x9402, "下发报警预警消息"),
|
DOWN_WARN_MSG_EXG_INFORM(0x9403, "实时交换报警信息"),
|
UP_WARN_MSG_INFORM_TIPS(0x1403, "上报报警预警信息"),
|
UP_WARN_MSG_URGE_TODO_REQ_INFO(0x1413, "上报报警督办请求"),
|
UP_CTRL_MSG(0x1500, "车辆监管业务"),
|
UP_CTRL_MSG_MONITOR_VEHICLE_ACK(0x1501, "车辆单向监听应答消息"),
|
UP_CTRL_MSG_TAKE_PHOTO_ACK(0x1502, "车辆牌照应答消息"),
|
UP_CTRL_MSG_TEXT_INFO_ACK(0x1503, "下发车辆报文应答消息"),
|
UP_CTRL_MSG_TAKE_TRAVEL_ACK(0x1504, "上报车辆行驶记录应答消息"),
|
UP_CTRL_MSG_EMERGENCY_MONITORING_ACK(0x1505, "车辆应急接入监管平台应答消息"),
|
DOWN_CTRL_MSG(0x9500, "从链路车辆监管业务"),
|
DOWN_CTRL_MSG_MONITOR_VEHICLE_REQ(0x9501, "车辆单向监听请求"),
|
DOWN_CTRL_MSG_TAKE_PHOTO_REQ(0x9502, "车辆牌照请求消息"),
|
DOWN_CTRL_MSG_TEXT_REQ(0x9503, "下发车辆报文请求"),
|
DOWN_CTRL_MSG_TAKE_TRAVEL_REQ(0x9504, "上报车辆行驶记录请求"),
|
DOWN_CTRL_MSG_EMERGENCY_MONITORING_REQ(0x9505, "车辆应急接入监管平台请求"),
|
UP_BASE_MSG(0x1600, "车辆静态信息交换业务"),
|
UP_BASE_MSG_DRVLINE_ADDED_REQ(0x1602, "补报车辆行驶路线信息应答"),
|
UP_BASE_MSG_VEHICLE_ADDED_ACK(0x1601, "补报车辆静态信息应答消息"),
|
DOWN_BASE_MSG(0x9600, "从链路车辆静态信息交换业务"),
|
DOWN_BASE_MSG_VEHICLE_ADDED(0x9601, "补报车辆静态信息请求"),
|
|
|
|
|
;
|
|
|
private int code;
|
private String name;
|
|
DataType(int code, String name) {
|
this.code = code;
|
this.name = name;
|
}
|
|
|
|
public static DataType getDataType(int code){
|
for (DataType value : DataType.values()) {
|
if(code == value.getCode()){
|
return value;
|
}
|
}
|
return null;
|
}
|
}
|