Project

General

Profile

Bug #1167

modbus_tcps 服务端规约防止长时间不响应

Added by xiangyang li almost 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
01/06/2021
Due date:
% Done:

100%

Estimated time:
Defect version:

Description

异常情况下,客户端程序出问题,而服务端没有感知到,则会造成通道是运行,服务端一直等待对方的请求。
需要主动尝试通道切换:利用超时时间实现。

modbus_tcps根据rtu的超时时间,在此范围内没有收到对方的请求,则记录一次超时;系统在连续3次超时的情况下,会关闭通道,等待重新连接。


Files

modbus_tcps.h (955 Bytes) modbus_tcps.h yufeng wu, 01/06/2021 05:06 PM
modbus_tcps.cpp (11.1 KB) modbus_tcps.cpp yufeng wu, 01/06/2021 05:06 PM
pmodbus_tcps.dll (112 KB) pmodbus_tcps.dll yufeng wu, 01/06/2021 05:14 PM

History

#1

Updated by yufeng wu almost 4 years ago

C3 17 的电力一转三FEP 版本v2.1,Win2008环境,附件 FEPwin 2.1版环境下,我编了一个可以给17C3用

SHL15 occ ATS FEP版本3.01 win2012环境的TCMS 车辆数据 电科戚悦也用到了这个协议

#2

Updated by xiangyang li almost 4 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF