From 2fef57535ea7492ce466cbf5f7844fd52a87c046 Mon Sep 17 00:00:00 2001 From: lch <1627445470@qq.com> Date: Mon, 20 May 2024 14:49:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E5=BA=A6=E7=94=B5?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E3=80=81=E8=AE=BE=E7=BD=AE=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Car/Msg/Car/Req/ElecMsg.cs | 66 +++++++++++++++++++- Service/Car/Msg/Host/Req/SetParamMsg.cs | 82 ++++++++++++++++++++++++- 2 files changed, 143 insertions(+), 5 deletions(-) diff --git a/Service/Car/Msg/Car/Req/ElecMsg.cs b/Service/Car/Msg/Car/Req/ElecMsg.cs index 8bc9233..89e8d5a 100644 --- a/Service/Car/Msg/Car/Req/ElecMsg.cs +++ b/Service/Car/Msg/Car/Req/ElecMsg.cs @@ -5,20 +5,80 @@ namespace Service.Car.Msg.Car.Req; public class ElecMsg : BaseMsg { /// - /// 累计放电量 + /// 车辆累计放电量 /// [Property(248, 24, scale: 0.01, round: 2)] public double AccDischargeCount { get; set; } /// - /// 累计放电量 + /// 车辆累计回馈电量 /// [Property(272, 24, scale: 0.01, round: 2)] public double AccFallbackCount { get; set; } /// - /// 累计放电量 + /// 车辆累计插枪充电量 /// [Property(296, 24, scale: 0.01, round: 2)] public double AccChargeCount { get; set; } + + /// + /// 5 车辆累计综合能耗 + /// + [Property(320, 24, scale: 0.01, round: 2)] + public double AccKgce { get; set; } + + /// + /// 6 本次实时放电量 + /// + [Property(344, 24, scale: 0.01, round: 2)] + public double ThisTimeRealDischarge { get; set; } + + /// + /// 7 上一次结算放电量 + /// + [Property(368, 24, scale: 0.01, round: 2)] + public double LastTimeBalanceDischarge { get; set; } + + /// + /// 8 本次实时回馈电量 + /// + [Property(392, 24, scale: 0.01, round: 2)] + public double ThisTimeRealFeedbackPower { get; set; } + + /// + /// 9 上一次结算回馈电量 + /// + [Property(416, 24, scale: 0.01, round: 2)] + public double LastTimeBalanceFeedbackPower { get; set; } + + /// + /// 10 本次实时插枪充电量 + /// + [Property(440, 24, scale: 0.01, round: 2)] + public double ThisTimeRealChargeCount { get; set; } + + /// + /// 11 上一次结算插枪充电量 + /// + [Property(464, 24, scale: 0.01, round: 2)] + public double LastTimeBalanceChargeCount { get; set; } + + /// + /// 12 本次实时综合能耗 + /// + [Property(488, 24, scale: 0.01, round: 2)] + public double ThisTimeRealKgce { get; set; } + + /// + /// 13 上一次结算综合能耗 + /// + [Property(512, 24, scale: 0.01, round: 2)] + public double LastTimeBalanceKgce { get; set; } + + /// + /// 14 待结算电费电量 + /// + [Property(536, 24, scale: 0.01, round: 2)] + public double ElectricityToBeSettled { get; set; } } \ No newline at end of file diff --git a/Service/Car/Msg/Host/Req/SetParamMsg.cs b/Service/Car/Msg/Host/Req/SetParamMsg.cs index e109768..2a1d61d 100644 --- a/Service/Car/Msg/Host/Req/SetParamMsg.cs +++ b/Service/Car/Msg/Host/Req/SetParamMsg.cs @@ -1,6 +1,84 @@ -namespace Service.Car.Msg.Host.Req; +using HybirdFrameworkCore.Autofac.Attribute; + +namespace Service.Car.Msg.Host.Req; public class SetParamMsg: BaseMsg { - + /// + /// 车辆累计放电量 + /// + [Property(248, 24, scale: 0.01, round: 2)] + public double AccDischargeCount { get; set; } + + /// + /// 车辆累计回馈电量 + /// + [Property(272, 24, scale: 0.01, round: 2)] + public double AccFallbackCount { get; set; } + + /// + /// 车辆累计插枪充电量 + /// + [Property(296, 24, scale: 0.01, round: 2)] + public double AccChargeCount { get; set; } + + /// + /// 5 车辆累计综合能耗 + /// + [Property(320, 24, scale: 0.01, round: 2)] + public double AccKgce { get; set; } + + /// + /// 6 本次实时放电量 + /// + [Property(344, 24, scale: 0.01, round: 2)] + public double ThisTimeRealDischarge { get; set; } + + /// + /// 7 上一次结算放电量 + /// + [Property(368, 24, scale: 0.01, round: 2)] + public double LastTimeBalanceDischarge { get; set; } + + /// + /// 8 本次实时回馈电量 + /// + [Property(392, 24, scale: 0.01, round: 2)] + public double ThisTimeRealFeedbackPower { get; set; } + + /// + /// 9 上一次结算回馈电量 + /// + [Property(416, 24, scale: 0.01, round: 2)] + public double LastTimeBalanceFeedbackPower { get; set; } + + /// + /// 10 本次实时插枪充电量 + /// + [Property(440, 24, scale: 0.01, round: 2)] + public double ThisTimeRealChargeCount { get; set; } + + /// + /// 11 上一次结算插枪充电量 + /// + [Property(464, 24, scale: 0.01, round: 2)] + public double LastTimeBalanceChargeCount { get; set; } + + /// + /// 12 本次实时综合能耗 + /// + [Property(488, 24, scale: 0.01, round: 2)] + public double ThisTimeRealKgce { get; set; } + + /// + /// 13 上一次结算综合能耗 + /// + [Property(512, 24, scale: 0.01, round: 2)] + public double LastTimeBalanceKgce { get; set; } + + /// + /// 14 待结算电费电量 + /// + [Property(536, 24, scale: 0.01, round: 2)] + public double ElectricityToBeSettled { get; set; } } \ No newline at end of file