问题遇到的现象和发生背景
软件在刚刚执行的前几个小时都是几百毫秒就可以收到回复
但是在执行一天后,通讯速率就变慢大概五秒左右
问题相关代码,请勿粘贴截图
```c#
_serialHelper.ClosePort();
System.Threading.Thread.Sleep(500);
_serialHelper = new Utility.Helper.SerialHelper();
System.Threading.Thread.Sleep(500);
_serialHelper.Port = serialPortName;
_serialHelper.Baudrate = _serialPortModel.BoardRate;
_serialHelper.AnalyzeType = "Hex";
_serialHelper.OpenPort();
_serialHelper.SendData(SendList[i]);
int maxByteWaitTime = _serialPortModel.WaitTime;
string lastRespond = _serialHelper.ReceivedText;
//等待接受完整帧
while (true)
{
System.Threading.Thread.Sleep(20);
string CurrentRespond = _serialHelper.ReceivedText;
if (CurrentRespond == lastRespond)
{
break;
}
else
{
lastRespond = _serialHelper.ReceivedText;
}
if (maxByteWaitTime == 0) break;
maxByteWaitTime--;
}
###### 运行结果及报错内容
###### 我的解答思路和尝试过的方法
###### 我想要达到的结果
```c#