Project

General

Profile

Bug #943

SHL15现场测试发现QTISCS303的Modbus_TRAINc.cpp接收列车位置数据长度处理错误

Added by yufeng wu over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Start date:
10/31/2020
Due date:
% Done:

0%

Estimated time:

Description

QTISCS 3.03
Modbus_TRAINc.cpp
SHL15现场测试ATS发现QTISCS303的Modbus_TRAINc.cpp接收列车位置数据长度处理错误

143行,Move(datalen+8)超了,要改成+6

日志打印修正
边线号==buf11+(buf12<<8)
offset=4字节

include\daq\daq_protocol.h里列车数据信息的offset需要调整为4字节
S_TRAIN结构的offset由2字节uint16改为4字节uint32
typedef struct S_TRAIN{
uint8 trainno;
uint8 dir;
uint16 edgeno;
// uint16 offset;
uint32 offset;
uint8 headstn;
uint8 state;
uint16 TDN;
}S_TRAIN;


Files

Modbus_TRAINc.cpp (5.16 KB) Modbus_TRAINc.cpp yufeng wu, 11/03/2020 11:17 PM

History

#1

Updated by yufeng wu over 3 years ago

20201103 QTISCS3.03 SHL15中心 Modbus_TRAINc.cpp中对于数据接收处理错误
数据长度小于8时,会导致当作误码丢弃

待svn上传

#2

Updated by yufeng wu over 3 years ago

  • Assignee set to yufeng wu

Also available in: Atom PDF