遥测上报调整

master
CZ 5 months ago
parent c036718c69
commit 9323e87dcb

@ -52,39 +52,38 @@ public class CloudClientMgr
if (data != null)
{
BinInfo? binInfo = binInfoRepository.QueryByClause(it => it.ChargerNo == data.ChargerNo);
ChargeDevDataInfo req = new ChargeDevDataInfo()
{
sn = StaticStationInfo.StationNo,
en = data.ChargerNo,
sd = "A"+int.Parse(data.ChargerNo),
mtp = StaticStationInfo.ChargePower,
mcr = 1,
hb = binInfo?.Exists??0,
el = 0,
cno = int.Parse(data.ChargerNo),
cs = binInfo.ChargeStatus??0,
fs = 0,
@as = 0,
ChargeDevDataInfo req = new ChargeDevDataInfo();
req.sn = StaticStationInfo.StationNo;
req.en = data.ChargerNo;
req.sd = "A"+int.Parse(binInfo.No);
req.mtp = StaticStationInfo.ChargePower;
req.mcr = 1;
req.hb = binInfo?.Exists??0;
req.el = 0;
req.cno = int.Parse(binInfo.No);
req.cs = binInfo.ChargeStatus??0;
req.fs = 0;
req.@as = 0;
//fc = data.,
//st = data.,
ct = data.ChargingTime,
req.ct = data.ChargingTime;
//ssoc = data.,
csoc = data.CurrentSoc,
req.csoc = data.CurrentSoc;
//ssoe = data.,
//csoe = data.,
cvot = data.BmsChargingVoltage,
ccur = data.BmsChargingCurrent,
nvot = data.BmsNeedVoltage,
ncur = data.BmsNeedCurrent,
lsv = data.SingleBatteryMinVoltage,
hsv = data.SingleBatteryMaxVoltage,
lst = data.MinBatteryTemp,
hst = data.MaxBatteryTemp,
ws = 0xFF,
it = 0xFF,
ot = 0xFF,
bt = DateTime.Now
};
req.cvot = data.BmsChargingVoltage;
req.ccur = data.BmsChargingCurrent;
req.nvot = data.BmsNeedVoltage;
req.ncur = data.BmsNeedCurrent;
req.lsv = data.SingleBatteryMinVoltage;
req.hsv = data.SingleBatteryMaxVoltage;
req.lst = data.MinBatteryTemp;
req.hst = data.MaxBatteryTemp;
req.ws = 0xFF;
req.it = 0xFF;
req.ot = 0xFF;
req.bt = DateTime.Now;
if ((DateTime.Now - _dateTime).TotalSeconds <= 30)
{

Loading…
Cancel
Save