Feature #3116
申电云-龙阳与卷帘门modbustcpc_ex接口增加DO遥控以16功能码发送且回答0x8x错误码跳过继续执行其余扫描
Start date:
08/02/2023
Due date:
08/02/2023
% Done:
0%
Estimated time:
Description
20230802 22:00申电云-龙阳换乘站现场调试卷帘门,采用libmodbus_tcpc_ex.so协议,需要采用DO遥控以16功能码发一个AO遥控命令
要求当晚完成接口对接调试
libmodbus_tcpc_ex.so协议接口增加DO遥控以16功能码发送且回答0x8x错误码跳过继续执行其余扫描
debian10 QTISCS3.1.1数字底座
Files
History
Updated by yufeng wu over 1 year ago
- File modbus_tcpex.cpp modbus_tcpex.cpp added
- File libmodbus_tcpc_ex.so libmodbus_tcpc_ex.so added
- File 卷帘门接口csv_20230802-2200.jpg 卷帘门接口csv_20230802-2200.jpg added
由于没权限上传到svn代码服务器,暂时上传到附件中。
Updated by yufeng wu over 1 year ago
- Status changed from New to Resolved
卷帘门设备,发现polling扫描间隔不能太小(当前设置800ms),否则不回答数据,
且扫描未提供服务的地址,设备不回答任何报文码。地址%MW3用来16功能码发AO遥控,但是此地址不支持读取。
Updated by yufeng wu over 1 year ago
- File libmodbus_tcpc_ex.so libmodbus_tcpc_ex.so added
20230803 16功能码遥控0值,有问题,现场修改
uint8 CModbusTcpc::Operate_16(uint16 Address, uint16 num, uint16 pValue, uint8 func)
{
if (num > 125 || pValue NULL)
{
PrintLog(LOG_ERROR, ">>>>>> Wrong Func_16 parameter");
return 0;
}
if (num > 125 || pValue NULL)改为if (num > 125)