Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用modbusTCP连接了一天左右,突然连接写不进去值了,重启之后就可以连接上继续写值 #48

Open
sl9411 opened this issue Oct 8, 2023 · 3 comments

Comments

@sl9411
Copy link

sl9411 commented Oct 8, 2023

No description provided.

@sl9411
Copy link
Author

sl9411 commented Oct 8, 2023

_wcld_client = new ModbusTcpNet(_ipaddr, _port);
OperateResult OptRet = _wcld_client.ConnectServer();
if (OptRet.IsSuccess)
{
Log.LogInstance.WriteLog("连接成功", LogType.Run, "Cooler" + _devno + "Log");
_net_connected = true;
StartWriteHeartBeatThread();
StartWcldStateThread();
}
else
{
Log.LogInstance.WriteLog("连接失败", LogType.Run, "Cooler" + _devno + "Log");
_net_connected = false;
}

@sl9411
Copy link
Author

sl9411 commented Oct 8, 2023

我有多个设备需要连接,使用的都是这样一中连接方式,多台不同的设备同时写不进去值了。其他设备采用别的连接方式没用使用此类库连接正常

@dathlin
Copy link
Owner

dathlin commented Oct 9, 2023

库本身如果不激活的话,只能连续使用24小时,重启软件又是24小时,并且在读写失败后,Message显示授权失败的消息。
授权参考:http://www.hsltechnology.cn/Home/Licence?area=HslCommunication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants