|
@@ -1075,6 +1075,7 @@ void TcpDataEncode(uint32 *PtrSendAddr, uint16 *SendLen)
|
|
|
}
|
|
|
case 0x8A:
|
|
|
{
|
|
|
+ uint32 temp = 0;
|
|
|
AccInfoToTcp AccInfoToTcpMsg;
|
|
|
*SendLen = sizeof(AccInfoToTcpMsg);
|
|
|
SendBuffer = pvPortMalloc(*SendLen);
|
|
@@ -1107,11 +1108,11 @@ void TcpDataEncode(uint32 *PtrSendAddr, uint16 *SendLen)
|
|
|
AccInfoToTcpMsg.AccMsg.accDrvMiles[1] = 0;
|
|
|
AccInfoToTcpMsg.AccMsg.sohNoCalibrTime[0] = 0;
|
|
|
AccInfoToTcpMsg.AccMsg.sohNoCalibrTime[1] = 0;
|
|
|
- AccInfoToTcpMsg.AccMsg.accChrgEng[0] = 0;
|
|
|
- AccInfoToTcpMsg.AccMsg.accChrgEng[1] = 0;
|
|
|
- AccInfoToTcpMsg.AccMsg.accChrgEng[2] = 0;
|
|
|
- AccInfoToTcpMsg.AccMsg.accChrgEng[3] = 0;
|
|
|
- uint32 temp = 0;
|
|
|
+ temp = AppConfigInfo.AppDataInfo.battChrgAccEnrg/1000;
|
|
|
+ AccInfoToTcpMsg.AccMsg.accChrgEng[0] = temp>>24;
|
|
|
+ AccInfoToTcpMsg.AccMsg.accChrgEng[1] = temp>>16;
|
|
|
+ AccInfoToTcpMsg.AccMsg.accChrgEng[2] = temp>>8;
|
|
|
+ AccInfoToTcpMsg.AccMsg.accChrgEng[3] = temp;
|
|
|
temp = AppConfigInfo.AppDataInfo.battDischrgAccEnrg/1000;
|
|
|
AccInfoToTcpMsg.AccMsg.accDischrgEng[0] = temp>>24;
|
|
|
AccInfoToTcpMsg.AccMsg.accDischrgEng[1] = temp>>16;
|