Bug #943
SHL15现场测试发现QTISCS303的Modbus_TRAINc.cpp接收列车位置数据长度处理错误
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
History
Updated by yufeng wu about 4 years ago
- File Modbus_TRAINc.cpp Modbus_TRAINc.cpp added
- Status changed from New to Resolved
20201103 QTISCS3.03 SHL15中心 Modbus_TRAINc.cpp中对于数据接收处理错误
数据长度小于8时,会导致当作误码丢弃
待svn上传