|
|
@ -920,7 +920,7 @@ namespace Ems.CollectService.Analysis
|
|
|
|
ushort num = 0;
|
|
|
|
ushort num = 0;
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
byte[] SendBuffer = new byte[24];
|
|
|
|
byte[] SendBuffer = new byte[25];
|
|
|
|
SendBuffer[num] = pMessagePack.m_BeginChar;
|
|
|
|
SendBuffer[num] = pMessagePack.m_BeginChar;
|
|
|
|
num = (ushort)(num + 1);
|
|
|
|
num = (ushort)(num + 1);
|
|
|
|
SendBuffer[num] = pMessagePack.m_EnergyType;
|
|
|
|
SendBuffer[num] = pMessagePack.m_EnergyType;
|
|
|
@ -945,6 +945,7 @@ namespace Ems.CollectService.Analysis
|
|
|
|
0x00,
|
|
|
|
0x00,
|
|
|
|
0x00,
|
|
|
|
0x00,
|
|
|
|
0x00,
|
|
|
|
0x00,
|
|
|
|
|
|
|
|
0x00,
|
|
|
|
HexStrTorbytes(currentTime.ToString("ss"))[0],
|
|
|
|
HexStrTorbytes(currentTime.ToString("ss"))[0],
|
|
|
|
HexStrTorbytes(currentTime.ToString("mm"))[0],
|
|
|
|
HexStrTorbytes(currentTime.ToString("mm"))[0],
|
|
|
|
HexStrTorbytes(currentTime.ToString("HH"))[0],
|
|
|
|
HexStrTorbytes(currentTime.ToString("HH"))[0],
|
|
|
@ -954,7 +955,7 @@ namespace Ems.CollectService.Analysis
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Array.Copy(timeBuffer, 0, SendBuffer, num, timeBuffer.Length);
|
|
|
|
Array.Copy(timeBuffer, 0, SendBuffer, num, timeBuffer.Length);
|
|
|
|
num = (ushort)(num + 12);
|
|
|
|
num = (ushort)(num + 13);
|
|
|
|
|
|
|
|
|
|
|
|
pMessagePack.m_Verify = MsgUtil.CalculateVerify(SendBuffer, SendBuffer.Length - 1)[0];
|
|
|
|
pMessagePack.m_Verify = MsgUtil.CalculateVerify(SendBuffer, SendBuffer.Length - 1)[0];
|
|
|
|
SendBuffer[num] = pMessagePack.m_Verify;
|
|
|
|
SendBuffer[num] = pMessagePack.m_Verify;
|
|
|
|