From 589874215ef107a4e4667de93f8a1eeca74f86ec Mon Sep 17 00:00:00 2001 From: zhangsheng Date: Tue, 6 May 2025 17:17:18 +0800 Subject: [PATCH] add code --- scheduler/schedule.cpp | 2 +- uart/uart_feature_parse.cpp | 2 +- uart/uart_parameter_config.cpp | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/scheduler/schedule.cpp b/scheduler/schedule.cpp index 0b693dd..14333fc 100644 --- a/scheduler/schedule.cpp +++ b/scheduler/schedule.cpp @@ -312,7 +312,7 @@ int SensorScheduler::GetNextDuration(int short_addr, int &next_task_id) { if (duration < 0 || duration > eigen_value_send_interval_) { zlog_warn(zct, "[Nxt] exception duration: %d", duration); duration = eigen_value_send_interval_; - }esle if(duration < 9){ + }else if(duration < 9){ zlog_warn(zct, "[Nxt] exception duration: %d", duration); duration = 10; } diff --git a/uart/uart_feature_parse.cpp b/uart/uart_feature_parse.cpp index 103b080..a1432ca 100644 --- a/uart/uart_feature_parse.cpp +++ b/uart/uart_feature_parse.cpp @@ -1006,7 +1006,7 @@ void Uart::WriteDatFile(int sampleRate, std::string &strMeasurementID, int iChan } } } - zlog_info(zct, "fopen FIle vecData.size : %d end ", vecData.size()); + zlog_info(zct, "fopen file vecData.size : %d end ", vecData.size()); wave_channel.wave_timestamp = nowTimetamp; g_mapWaveChannel[strMeasurementID] = wave_channel; Json::Value valWaveData; diff --git a/uart/uart_parameter_config.cpp b/uart/uart_parameter_config.cpp index f7acdf1..bf91013 100644 --- a/uart/uart_parameter_config.cpp +++ b/uart/uart_parameter_config.cpp @@ -591,6 +591,10 @@ int Uart::TaskResp(ScheduleTask scheduleTask){ UpdateData[99] = tmp; mssleep(10000); WriteToUart((const char*)UpdateData, 100); + mssleep(50000); + WriteToUart((const char*)UpdateData, 100); + mssleep(50000); + WriteToUart((const char*)UpdateData, 100); int iRet = CheckZigbeeACK(); if (iRet == 0) { zlog_info(zct, "TaskResp ACK send success,shortAddr = %02x%02x", UINT16_HIGH(scheduleTask.shortAddr),UINT16_LOW(scheduleTask.shortAddr)); @@ -641,6 +645,10 @@ int Uart::WaveResp(uint16_t shortAddr){ } sendData[7] = tmp; WriteToUart((const char*)sendData, 8); + mssleep(50000); + WriteToUart((const char*)sendData, 8); + mssleep(50000); + WriteToUart((const char*)sendData, 8); int iRet = CheckZigbeeACK(); if (iRet == 0) { zlog_info(zct, "WaveResp ACK send success,shortAddr = %x", shortAddr);