|
@@ -540,14 +540,21 @@ static void TcpDataInfoAssembleSend()
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if(send_counter%60==0)
|
|
|
+ if(send_counter%10==0)
|
|
|
{
|
|
|
DebugMsgtoTcpType DebugMsgInfo;
|
|
|
UINT16 BufferLen = 0;
|
|
|
UINT8 rbuf[1000];
|
|
|
- sprintf((char *)rbuf,"%x,%d,%d,%d,%d,%d,%d,%d,,%d,%d,%d,%d,%d,%d,%d",
|
|
|
- battProtectState,AppDataInfo.RelayControl,chargerConnectState,PowerVoltage,socd_pct_battSoc,socd_pct_ahSoc,socd_pct_estSoc,socd_pct_ekfSoc,
|
|
|
- AppDataInfo.RentalType,AppDataInfo.ExpiryTimeArray[0],AppDataInfo.ExpiryTimeArray[1],AppDataInfo.ExpiryTimeArray[2],AppDataInfo.ExpiryTimeArray[3],AppDataInfo.ExpiryTimeArray[4],AppDataInfo.ExpiryTimeArray[5]);
|
|
|
+ sprintf((char *)rbuf, "%x,%d,%d,%d,,\
|
|
|
+ %d,%d,%d,%d,,\
|
|
|
+ %d,%d,%d,%d,%d,,\
|
|
|
+ %d,%d,%d,%d,%d,%d,%d,,\
|
|
|
+ %d,%d",
|
|
|
+ battProtectState,AppDataInfo.RelayControl,chargerConnectState,PowerVoltage,
|
|
|
+ tmsd_st_heatAct,sfmd_num_fltNum,sfmd_st_fltAct,sfmd_st_fltLevel,
|
|
|
+ socd_pct_ahSoc,socd_pct_ekfSoc,socd_pct_estSoc,socd_pct_battSoc,socd_pct_bcuSoc,
|
|
|
+ sohd_Q_chrgEo,sohd_flg_chrgEndEo,cand_Nr_cellNr,cand_Q_cellCap,cand_V_chrgStartStat,cand_Q_reqCp,cand_Q_totalCp,
|
|
|
+ AppDataInfo.ExpiryTimeArray[1],AppDataInfo.ExpiryTimeArray[2]);
|
|
|
BufferLen = strlen(rbuf);
|
|
|
SendBuffer = malloc(BufferLen+sizeof(DebugMsgInfo));
|
|
|
memcpy(SendBuffer+sizeof(DebugMsgInfo)-1, rbuf,BufferLen);
|