Project

General

Profile

Bug #908

南昌line3# 发现modbus_comm_ex串口协议通讯中断或接收超时 时不能自恢复自动重新请求数据

Added by yufeng wu about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
High
Assignee:
lq Du
Start date:
10/14/2020
Due date:
% Done:

0%

Estimated time:

Description

南昌3#线发现modbus_comm_ex串口协议通讯中断或接收超时时不能自恢复自动重新请求数据
串口485短线后直接什么都不发了


Files

History

#1

Updated by lq Du about 4 years ago

  • Subject changed from 南昌3#线发现modbus_comm_ex串口协议通讯中断或接收超时时不能自恢复自动重新请求数据 to 南昌line3# 发现modbus_comm_ex串口协议通讯中断或接收超时 时不能自恢复自动重新请求数据
#2

Updated by yufeng wu about 4 years ago

经查modbuscomm_ex.cpp行2040超时时间写死了5000秒
if (commstatus == CMST_RX_CNT && (nowtime - m_LastSendTime) >= 5000*)
需改为取RTU表设置的超时时间秒(不设置默认10秒)
if (commstatus == CMST_RX_CNT && (nowtime - m_LastSendTime) >= m_RcvTimeOuts)

#3

Updated by jingke lu about 4 years ago

Rx中定义现在时间的数据格式不正确无法判定时间超时从而改变链路状态导致超时不自动请求数据 已修复

#4

Updated by lq Du about 4 years ago

已测试 超时5s后会询问重新问第一帧

规约文件位置

Also available in: Atom PDF