|
@@ -145,7 +145,7 @@ static void UartTask(void* arg)
|
|
|
}
|
|
|
else if(Timer_count%10==0)
|
|
|
{
|
|
|
- #ifdef USING_PRINTF
|
|
|
+ #ifdef USING_PRINTF1
|
|
|
printf("[%d]AvgBattTemp :%d,UartBattInfoRecvFlag:%d,battHeatEnableState:%d \n",__LINE__,AvgBattTemp,UartBattInfoRecvFlag,battHeatEnableState);
|
|
|
#endif
|
|
|
if(osMessageQueueGet(UartWriteCmdHandle,&UartWriteData,0,0)==osOK && UartBattInfoRecvFlag==TRUE)
|
|
@@ -2306,7 +2306,7 @@ updateBMSStatus MS_BMS_Update_Service() //美顺BMS升级服务
|
|
|
{
|
|
|
checkSumCal = (checkSumCal + ReadNVMTemp[j]) & 0xFF;
|
|
|
}
|
|
|
- //osDelay(10);
|
|
|
+ osDelay(10);
|
|
|
}
|
|
|
if(checkSum != checkSumCal)
|
|
|
{
|
|
@@ -2349,7 +2349,7 @@ updateBMSStatus MS_BMS_Update_Service() //美顺BMS升级服务
|
|
|
pUpdateMsgSend[5] = CRCtemp&0xFF; //CRC Low
|
|
|
|
|
|
memset((UINT8*)(bmsAnswerMsg) , 0, 8);
|
|
|
- ret0 = MS_BMS_Update_Query(pUpdateMsgSend, updateMsgSendLen, (UINT8*)(bmsAnswerMsg), updateMsgReadLen, 500);
|
|
|
+ ret0 = MS_BMS_Update_Query(pUpdateMsgSend, updateMsgSendLen, (UINT8*)(bmsAnswerMsg), updateMsgReadLen, 1000);
|
|
|
#ifdef USING_PRINTF
|
|
|
printf("update step 1 answer,updateMsgReadLen = %x:\n",updateMsgReadLen);
|
|
|
|
|
@@ -2449,7 +2449,7 @@ updateBMSStatus MS_BMS_Update_Service() //美顺BMS升级服务
|
|
|
pUpdateMsgSend[5+dataLen] = CRCtemp&0xFF; //CRC Low
|
|
|
|
|
|
memset((UINT8*)(bmsAnswerMsg) , 0, 8);
|
|
|
- ret0 = MS_BMS_Update_Query(pUpdateMsgSend, updateMsgSendLen, (UINT8*)(bmsAnswerMsg), updateMsgReadLen, 500);
|
|
|
+ ret0 = MS_BMS_Update_Query(pUpdateMsgSend, updateMsgSendLen, (UINT8*)(bmsAnswerMsg), updateMsgReadLen, 1000);
|
|
|
#ifdef USING_PRINTF
|
|
|
printf("update step 3 answer:\n");
|
|
|
for(ii=0;ii<updateMsgReadLen;ii++)
|
|
@@ -2532,7 +2532,7 @@ updateBMSStatus MS_BMS_Update_Service() //美顺BMS升级服务
|
|
|
pUpdateMsgSend[5+dataLen] = CRCtemp&0xFF; //CRC Low
|
|
|
|
|
|
memset((UINT8*)(bmsAnswerMsg) , 0, 8);
|
|
|
- ret0 = MS_BMS_Update_Query(pUpdateMsgSend, updateMsgSendLen, (UINT8*)(bmsAnswerMsg), updateMsgReadLen, 500);
|
|
|
+ ret0 = MS_BMS_Update_Query(pUpdateMsgSend, updateMsgSendLen, (UINT8*)(bmsAnswerMsg), updateMsgReadLen, 1000);
|
|
|
#ifdef USING_PRINTF
|
|
|
printf("update step 5 answer:\n");
|
|
|
for(ii=0;ii<updateMsgReadLen;ii++)
|
|
@@ -2632,7 +2632,7 @@ updateBMSStatus MS_BMS_Update_Service() //美顺BMS升级服务
|
|
|
pUpdateMsgSend[5+dataLen] = CRCtemp&0xFF; //CRC Low
|
|
|
|
|
|
memset((UINT8*)(bmsAnswerMsg) , 0, 8);
|
|
|
- ret0 = MS_BMS_Update_Query(pUpdateMsgSend, updateMsgSendLen, (UINT8*)(bmsAnswerMsg), updateMsgReadLen, 500);
|
|
|
+ ret0 = MS_BMS_Update_Query(pUpdateMsgSend, updateMsgSendLen, (UINT8*)(bmsAnswerMsg), updateMsgReadLen, 1000);
|
|
|
#ifdef USING_PRINTF
|
|
|
printf("update step 7 answer:\n");
|
|
|
for(ii=0;ii<updateMsgReadLen;ii++)
|
|
@@ -2716,7 +2716,7 @@ updateBMSStatus MS_BMS_Update_Service() //美顺BMS升级服务
|
|
|
pUpdateMsgSend[5] = CRCtemp&0xFF; //CRC Low
|
|
|
|
|
|
memset((UINT8*)(bmsAnswerMsg) , 0, 8);
|
|
|
- ret0 = MS_BMS_Update_Query(pUpdateMsgSend, updateMsgSendLen, (UINT8*)(bmsAnswerMsg), updateMsgReadLen, 500);
|
|
|
+ ret0 = MS_BMS_Update_Query(pUpdateMsgSend, updateMsgSendLen, (UINT8*)(bmsAnswerMsg), updateMsgReadLen, 1000);
|
|
|
#ifdef USING_PRINTF
|
|
|
printf("update step 9 answer:\n");
|
|
|
for(ii=0;ii<updateMsgReadLen;ii++)
|
|
@@ -2779,7 +2779,7 @@ updateBMSStatus MS_BMS_Update_Service() //美顺BMS升级服务
|
|
|
pUpdateMsgSend[5] = CRCtemp&0xFF; //CRC Low
|
|
|
|
|
|
memset((UINT8*)(bmsAnswerMsg) , 0, 8);
|
|
|
- ret0 = MS_BMS_Update_Query(pUpdateMsgSend, updateMsgSendLen, (UINT8*)(bmsAnswerMsg), updateMsgReadLen, 500);
|
|
|
+ ret0 = MS_BMS_Update_Query(pUpdateMsgSend, updateMsgSendLen, (UINT8*)(bmsAnswerMsg), updateMsgReadLen, 1000);
|
|
|
#ifdef USING_PRINTF
|
|
|
printf("update step A answer:\n");
|
|
|
for(ii=0;ii<updateMsgReadLen;ii++)
|