@@ -447,6 +447,15 @@ namespace JT809.Protocol.Enums | |||
[JT809BodiesType(typeof(JT809_0x1600_0x1601))] | |||
[JT809SubBusinessTypeDescription("UP_BASE_MSG_VEHICLE_ADDED_ACK", "补报车辆静态信息应答", JT809BusinessType.主链路静态信息交换消息)] | |||
补报车辆静态信息应答 = 0x1601, | |||
///<summary> | |||
///补报车辆行驶路线信息应答消息 | |||
///UP_BASE_MSG_DRVLINE_ADDED_REQ | |||
///</summary> | |||
[Description("补报车辆行驶路线信息应答消息")] | |||
[JT809BodiesType(typeof(JT809_0x1600_0x1602))] | |||
[JT809SubBusinessTypeDescription("UP_BASE_MSG_DRVLINE_ADDED_REQ", "补报车辆行驶路线信息应答消息", JT809BusinessType.主链路静态信息交换消息)] | |||
补报车辆行驶路线信息应答消息 = 0x1602, | |||
#endregion | |||
#region 从链路静态信息交换消息 DOWN_BASE_MSG | |||
@@ -0,0 +1,52 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Text; | |||
namespace JT809.Protocol.Metadata | |||
{ | |||
public class JT809VehiclePositionProperties_2019 | |||
{ | |||
/// <summary> | |||
/// 是否使用国测局批准的地图保密插件进行加密 1 已加密 0未加密 | |||
/// </summary> | |||
public byte Encrypt { get; set; } | |||
/// <summary> | |||
/// 车辆定位信息数据长度 | |||
/// </summary> | |||
public uint DataLength { get; set; } | |||
/// <summary> | |||
/// 车辆定位信息内容,包括车辆位置基本信息和位置附加信息 | |||
/// 其数据格式安装 808-2019中8.12要求 | |||
/// </summary> | |||
public byte[] GnssData { get; set; } | |||
/// <summary> | |||
/// 监控平台唯一编码,由平台所在地行政区域代码和平台编码组成 | |||
/// </summary> | |||
public byte[] PlatformId1 { get; set; } | |||
/// <summary> | |||
/// 报警状态,二进制标识 0 正常 1表示报警 | |||
/// 具体定义按照808-2019中表18的规定 | |||
/// </summary> | |||
public uint Alarm1 { get; set; } | |||
/// <summary> | |||
/// 市级监控平台唯一编码,由平台所在地行政区域代码和平台编码组成 | |||
/// 未填写时,全填0,无市级平台应由省级平台全填1 | |||
/// </summary> | |||
public byte[] PlatformId2 { get; set; } | |||
/// <summary> | |||
/// 报警状态,二进制标识 0 正常 1表示报警 | |||
/// 具体定义按照808-2019中表18的规定 | |||
/// </summary> | |||
public uint Alarm2 { get; set; } | |||
/// <summary> | |||
/// 省级监控平台唯一编码,由平台所在地行政区域代码和平台编码组成 | |||
/// 未填写时,全填0 | |||
/// </summary> | |||
public byte[] PlatformId3 { get; set; } | |||
/// <summary> | |||
/// 报警状态,二进制标识 0 正常 1表示报警 | |||
/// 具体定义按照808-2019中表18的规定 | |||
/// </summary> | |||
public uint Alarm3 { get; set; } | |||
} | |||
} |
@@ -0,0 +1,46 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Text; | |||
namespace JT809.Protocol.Metadata | |||
{ | |||
/// <summary> | |||
/// 车辆静态信息数据体 | |||
/// </summary> | |||
public class JT809VehicleStaticInfo | |||
{ | |||
/// <summary> | |||
/// 车牌号 必填 | |||
/// 车牌号码中不设分隔符号。所有字母数字连续保存 | |||
/// </summary> | |||
public string Vin { get; set; } | |||
/// <summary> | |||
/// 车牌颜色 必填 应该使用枚举 | |||
/// </summary> | |||
public string VehicleColor { get; set; } | |||
/// <summary> | |||
/// 车辆类型 必填 应该使用枚举 | |||
/// </summary> | |||
public string VehicleType { get; set; } | |||
/// <summary> | |||
/// 运输行业编码 必填 应该使用枚举 | |||
/// </summary> | |||
public string TransType { get; set; } | |||
/// <summary> | |||
/// 车籍地 必填 | |||
/// </summary> | |||
public string VehicleNationnality { get; set; } | |||
/// <summary> | |||
/// 业户ID 非必填 该业户ID为下级平台存储业户信息所采用的ID编号 | |||
/// </summary> | |||
public string OwersId { get; set; } | |||
/// <summary> | |||
/// 业户名称 必填 运输企业名称 | |||
/// </summary> | |||
public string OwersName { get; set; } | |||
/// <summary> | |||
/// 业户联系电话 非必填 运输企业名称 | |||
/// </summary> | |||
public string OwersTel { get; set; } | |||
} | |||
} |
@@ -0,0 +1,50 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Text; | |||
namespace JT809.Protocol.Metadata | |||
{ | |||
/// <summary> | |||
/// 车辆静态信息数据体 | |||
/// </summary> | |||
public class JT809VehicleStaticInfo_2019 | |||
{ | |||
/// <summary> | |||
/// 车牌号 必填 | |||
/// 车牌号码中不设分隔符号。所有字母数字连续保存 | |||
/// </summary> | |||
public string Vin { get; set; } | |||
/// <summary> | |||
/// 车牌颜色 必填 应该使用枚举 | |||
/// </summary> | |||
public string VehicleColor { get; set; } | |||
/// <summary> | |||
/// 车辆类型 必填 应该使用枚举 | |||
/// </summary> | |||
public string VehicleType { get; set; } | |||
/// <summary> | |||
/// 运输行业编码 必填 应该使用枚举 | |||
/// </summary> | |||
public string TransType { get; set; } | |||
/// <summary> | |||
/// 车籍地 必填 | |||
/// </summary> | |||
public string VehicleNationnality { get; set; } | |||
/// <summary> | |||
/// 经营范围代码 必填 应该使用枚举 | |||
/// </summary> | |||
public string BusinessCopeCode { get; set; } | |||
/// <summary> | |||
/// 业户ID 非必填 该业户ID为下级平台存储业户信息所采用的ID编号 | |||
/// </summary> | |||
public string OwersId { get; set; } | |||
/// <summary> | |||
/// 业户名称 必填 运输企业名称 | |||
/// </summary> | |||
public string OwersName { get; set; } | |||
/// <summary> | |||
/// 业户联系电话 非必填 运输企业名称 | |||
/// </summary> | |||
public string OwersTel { get; set; } | |||
} | |||
} |
@@ -0,0 +1,35 @@ | |||
using JT809.Protocol.Enums; | |||
using JT809.Protocol.Formatters; | |||
using JT809.Protocol.MessagePack; | |||
using JT809.Protocol.Extensions; | |||
using JT809.Protocol.Interfaces; | |||
namespace JT809.Protocol.SubMessageBody | |||
{ | |||
/// <summary> | |||
/// 补报车辆行驶路线信息应答消息 | |||
/// <para>子业务类型标识:UP_BASE_MSG_VEHICLE_ADDED_ACK</para> | |||
/// <para>描述:下级平台向上级平台补报车辆行驶路线信息</para> | |||
/// </summary> | |||
public class JT809_0x1600_0x1602:JT809SubBodies, IJT809MessagePackFormatter<JT809_0x1600_0x1602>, IJT809_2019_Version | |||
{ | |||
public override ushort SubMsgId => JT809SubBusinessType.补报车辆行驶路线信息应答消息.ToUInt16Value(); | |||
public override string Description => "补报车辆行驶路线信息应答消息"; | |||
/// <summary> | |||
/// 路线信息,808-2019中0x8606规定的报文格式 | |||
/// </summary> | |||
public byte[] DRVLine { get; set; } | |||
public JT809_0x1600_0x1602 Deserialize(ref JT809MessagePackReader reader, IJT809Config config) | |||
{ | |||
var value = new JT809_0x1600_0x1602(); | |||
value.DRVLine = reader.ReadArray(reader.ReadCurrentRemainContentLength()).ToArray(); | |||
return value; | |||
} | |||
public void Serialize(ref JT809MessagePackWriter writer, JT809_0x1600_0x1602 value, IJT809Config config) | |||
{ | |||
writer.WriteArray(value.DRVLine); | |||
} | |||
} | |||
} |