|
@@ -289,7 +289,10 @@ static void TcpDataInfoAssembleSend()
|
|
|
*(SendBuffer + 47 ) = battMOSSwitchState; //mos状态-48
|
|
|
*(SendBuffer + 48 ) = battSOC; //soc-49
|
|
|
*(SendBuffer + 49 ) = battSOH; //soh-50
|
|
|
- memcpy((SendBuffer + 50 ),&battBalanceoInfo,4); //均衡状态-51-54
|
|
|
+ *(SendBuffer + 50 ) = (battBalanceoInfo>>24)&0xFF;
|
|
|
+ *(SendBuffer + 51 ) = (battBalanceoInfo>>16)&0xFF;
|
|
|
+ *(SendBuffer + 52 ) = (battBalanceoInfo>>8)&0xFF;
|
|
|
+ *(SendBuffer + 53 ) = battBalanceoInfo&0xFF; //均衡状态-51-54
|
|
|
*(SendBuffer + 54 ) = AppNVMData.BattCellCount; //电压个数-55
|
|
|
for(i=0;i<AppNVMData.BattCellCount;i++) //单体电压
|
|
|
{
|
|
@@ -461,7 +464,7 @@ static void TcpDataInfoAssembleSend()
|
|
|
VerMsgToTcpInfo.VerInfo.BmsInfo = BMS_INFO;
|
|
|
VerMsgToTcpInfo.VerInfo.DataModuleType = DATA_MODULE_TYPE;
|
|
|
VerMsgToTcpInfo.CRC = bcc_chk((UINT8 *)&VerMsgToTcpInfo, sizeof(VerMsgToTcpInfo)-1 );
|
|
|
- if(UartRecvFlag==TRUE&&NB_Fota_update_flag==FALSE)
|
|
|
+ if(NB_Fota_update_flag==FALSE)
|
|
|
{
|
|
|
len = tcpipConnectionSend(socContext.id, (UINT8 *)&VerMsgToTcpInfo, sizeof(VerMsgToTcpInfo), 0, 0, 0);
|
|
|
if(len>0)
|
|
@@ -471,15 +474,10 @@ static void TcpDataInfoAssembleSend()
|
|
|
else
|
|
|
{
|
|
|
TcpSendLen = 0xFE & TcpSendLen;
|
|
|
- send_counter = 1;
|
|
|
+ send_counter = 0;
|
|
|
sendQueueMsg(QMSG_ID_NW_IP_SUSPEND, 0);
|
|
|
}
|
|
|
}
|
|
|
- else
|
|
|
- {
|
|
|
- send_counter = 1;
|
|
|
- return;
|
|
|
- }
|
|
|
}
|
|
|
if(send_counter==0)//调试信息暂时不发,需调整之后发送
|
|
|
{
|