[8.1.0][adas] 多链路数据控制接口开发

This commit is contained in:
xinfengkun
2025-05-28 16:25:52 +08:00
parent 092d248d64
commit e11db10d67
9 changed files with 445 additions and 41 deletions

View File

@@ -107,6 +107,9 @@ enum MessageType
MsgTypeCloudConfig = 0x10135;//云端配置查询和返回(上下行)
MsgTypeImgUploadCloudEnable = 0x10136;//摄像头上传NDE云开关
MsgTypeImgUploadCloudStatusQuery = 0x10137;//查询摄像头上传NDE云状态
MsgTypeForceStopOrStartCloudReq = 0x10138;//关闭或打开云链接
MsgTypeSetObuUploadReq = 0x10139;//关闭或打开域控上报自车数据到OBU
MsgTypeObuUploadStatus = 0x1013A;//obu上报状态查询以结果(上下行)
}
message Header
@@ -856,8 +859,8 @@ message SetOneParam
// 9:m1拼接视频自车位置参数(string), 格式:x,y,width,height
// 10:故障减速停车策略开关(bool) 0:关闭故障减速停车策略 1:使用故障减速停车策略 默认1
// 11: 盲区开关(bool) 0: off 1:on /telematics/sensor/blindarea_flag
// 12: 融合v2n开关(bool) 0:不发给PnC 1:发给Pnc /telematics/fusion/v2n_flag
// 13: 融合v2i开关(bool) 0:不发给PnC和鹰眼 1:发给Pnc和鹰眼默认0 /telematics/fusion/v2i_flag
// 12: 融合v2n开关 NDE下行事件数据进pnc (bool) 0:不发给PnC 1:发给Pnc /telematics/fusion/v2n_flag
// 13: 融合v2i开关 V2I下行感知数据进pnc (bool) 0:不发给PnC和鹰眼 1:发给Pnc和鹰眼默认0 /telematics/fusion/v2i_flag
// 14: 融合模式(int) 1:全融合模式 2:盲区模式 3:超视距模式 4:透传模式 5:纯路侧模式默认1 /telematics/fusion/fusion_mode
// 15座椅状态(int) 0:表示仅主驾位有人,1:表示仅副驾位有人,2:表示主驾和副驾同时有人,3:表示仅后排有人,4:表示主驾有人+后排有人,5:表示副驾有人+后排有人,6:表示主驾和副驾同时有人+后排有人,7: 所有座位都无人, 255:缺省
// 16: 超车的最大速度阈值(double, m/s) T1/T2: 范围[3, 12.5], 默认值10
@@ -865,6 +868,7 @@ message SetOneParam
// 18: 碰撞上报(null) TODO 废弃使用message CollisionReport
// 19: 会车开关(bool) 0: off 1:on 默认0
// 20: 超车开关(bool) 0: off 1:on 默认0
// 21: NDE下行感知数据进pnc(bool) 0:不发给PnC 1:发给Pnc /telematics/fusion/v2n_perception_flag
string value = 2; // 转成字符串的值
}
@@ -998,6 +1002,15 @@ message EZhouCloud
bytes data = 1;
}
//message definition for MsgTypeForceStopOrStartCloudReq
//云连接地址
message ForceStopOrStartReq
{
uint32 type = 1;//0:蘑菇云 1:NDE云 2:基础平台云
uint32 direction = 2;//0:上行和下行 1:上行 2:下行
bool enable = 3;//连接使能开关, true:开 false:关闭
}
//message definition for MsgTypeCloudConfig
//云连接地址
message CloudLinkAddr
@@ -1007,6 +1020,7 @@ message CloudLinkAddr
string domain = 3;//域名
uint32 port = 4;//端口 0xFFFFFFFF 无效值
bool enable = 5;//连接使能开关, true:开 false:关闭
string ip = 6;//ip
}
//域控连接的云端配置
@@ -1024,4 +1038,10 @@ message ImgUploadCloudCmd {
//查询摄像头上传NDE云状态返回
message ImgUploadCloudStatusResp {
bool enable = 1; //false: 关闭, true: 打开
}
}
//message definition for MsgTypeSetObuUploadReq
message SetEnableReq
{
uint32 enable = 1; //1: enable, 0: disable
}

View File

@@ -16,8 +16,8 @@ enum MapSystemParamType{
M1_STITCHED_VIDEO_SELF_VEHICLE_PARAM = 9;//9:m1拼接视频自车位置参数(string), 格式:x,y,width,height
BREAKDOWN_SLOW_DOWN = 10;//10:故障减速停车策略开关(bool) 0:关闭故障减速停车策略 1:使用故障减速停车策略 默认1
BLIND_AREA = 11;//11: 盲区开关(bool) 0: off 1:on /telematics/sensor/blindarea_flag
V2N_TO_PNC = 12;//12: 融合v2n开关(bool) 0:不发给PnC 1:发给Pnc /telematics/fusion/v2n_flag
V2I_TO_PNC = 13;//13: 融合v2i开关(bool) 0:不发给PnC和鹰眼 1:发给Pnc和鹰眼默认0 /telematics/fusion/v2i_flag
V2N_TO_PNC = 12;//12: 融合v2n开关 NDE下行事件数据进pnc (bool) 0:不发给PnC 1:发给Pnc /telematics/fusion/v2n_flag
V2I_TO_PNC = 13;//13: 融合v2i开关 V2I下行感知数据进pnc (bool) 0:不发给PnC和鹰眼 1:发给Pnc和鹰眼默认0 /telematics/fusion/v2i_flag
FUSION_MODE = 14;//14: 融合模式(int) 1:全融合模式 2:盲区模式 3:超视距模式 4:透传模式 5:纯路侧模式默认1 /telematics/fusion/fusion_mode
SEAT_STATE = 15;//15: 座椅状态(int) 0:表示仅主驾位有人,1:表示仅副驾位有人,2:表示主驾和副驾同时有人,3:表示仅后排有人,4:表示主驾有人+后排有人,5:表示副驾有人+后排有人,6:表示主驾和副驾同时有人+后排有人,7: 所有座位都无人, 255:缺省
OVERTAKE_MAX_SPEED = 16;//16: 超车的最大速度阈值(double, m/s, 范围[3, 12.5])
@@ -25,6 +25,7 @@ enum MapSystemParamType{
COLLISION_REPORTING = 18;//18: 碰撞上报(null) TODO 废弃使用message CollisionReport
PARK_VEH_CROSS = 19;//19: 会车开关(bool) 0: off 1:on 默认0
PARK_VEH_OVERTAKE = 20;//20: 超车开关(bool) 0: off 1:on 默认0
PERCEPTION_TO_PNC = 21;//21: NDE下行感知数据进pnc(bool) 0:不发给PnC 1:发给Pnc /telematics/fusion/v2n_perception_flag
}
/**